Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Official moOde 7.0.1 support thread
#84
After fresh install of 7.0.1, I noticed, there's this error in the moode.log. It doesn't go away even after reboot.

Code:
watchdog: Error: PHP session permissions (reapplied)
watchdog: Error: PHP session permissions (reapplied)
watchdog: Error: PHP session permissions (reapplied)
watchdog: Error: PHP session permissions (reapplied)
watchdog: Error: PHP session permissions (reapplied)

Quick troubleshooting revealed, that when the watchdog.sh is started during boot, the SESSION_FILE variable is malformed (sets to /var/local/php/sess_), because the db is not yet ready to return the sessionid. As a result, the ls -l fails to locate the file, PERMS remains empty, and the subsequent test evaluates to True:

https://github.com/moode-player/moode/bl...dog.sh#L49

As a remedy, I added a small check to wait until the sessionid is returned, and only then continue the execution of the rest lines. Tested locally, works fine, no more false errors in log, since PERMS is now correctly set to '-rw-rw-rw-,www-data,www-data' value.

To contribute the project, I raised a PR. Feel free to edit it, if you have more elegant solution:

https://github.com/moode-player/moode/pull/286/files
Reply


Messages In This Thread
RE: Official moOde 7.0.1 support thread - by AlexTee - 12-31-2020, 06:37 PM
RE: Official moOde 7.0.1 support thread - by efung - 02-04-2021, 12:06 AM
RE: Upcoming moOde 7.1.0 release - by JonPike - 02-06-2021, 10:05 PM

Forum Jump: