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.
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
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