Moode Forum
[PROBLEM] watchdog: PHP session permissions (reapplied) 20200923 170312 watchdo - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7)
+--- Thread: [PROBLEM] watchdog: PHP session permissions (reapplied) 20200923 170312 watchdo (/showthread.php?tid=3008)



watchdog: PHP session permissions (reapplied) 20200923 170312 watchdo - carmol - 09-23-2020

Hello,
I have in my moode.log the following:

20200923 170306 watchdog: PHP session permissions (reapplied)
20200923 170312 watchdog: PHP session permissions (reapplied)
20200923 170318 watchdog: PHP session permissions (reapplied)
20200923 170324 watchdog: PHP session permissions (reapplied)
20200923 170330 watchdog: PHP session permissions (reapplied)
....

the message is repeating until shutdown.


Is there a way to solve this error ?

Greetings
c.


RE: watchdog: PHP session permissions (reapplied) 20200923 170312 watchdo - Tim Curtis - 09-23-2020

Is this completely stock moOde 6.7.1 downloaded from moodeaudio.org?


RE: watchdog: PHP session permissions (reapplied) 20200923 170312 watchdo - carmol - 09-24-2020

(09-23-2020, 04:19 PM)Tim Curtis Wrote: Is this completely stock moOde 6.7.1 downloaded from moodeaudio.org?

Yes, of course


RE: watchdog: PHP session permissions (reapplied) 20200923 170312 watchdo - popej - 03-12-2021

I get the same problem in 7.0.1.

I think is because sqlite3 is not ready, when watchdog.sh starts. I have corrected it by adding a sleep at the beginning of the script:

Code:
sleep 6                                                                                            
SESSION_FILE=$SESSION_DIR/sess_$(sqlite3 $SQL_DB "SELECT value FROM cfg_system WHERE param='sessionid'")

Maybe it is connected with option "initial_turbo=40" in config.txt. I have added it to shorten boot time a bit.


RE: watchdog: PHP session permissions (reapplied) 20200923 170312 watchdo - Tim Curtis - 03-12-2021

Fixed in upcoming 7.1.0 release.

It's an order of execution issue in worker.php. A sqlite update query is busy when watchdog is started.


RE: watchdog: PHP session permissions (reapplied) 20200923 170312 watchdo - popej - 03-12-2021

I have noticed, that develop branch of Moode is very different from 7.0.1. Hope it will be much better. Thanks for your work!