Domotica gratuit › Forums › How can I …? › Synology NAS › Running scene manually only work when starting "core" manually
Mots-clés : core scene
- Ce sujet contient 6 réponses, 3 participants et a été mis à jour pour la dernière fois par
Mika, le il y a 4 années et 10 mois.
-
AuteurMessages
-
février 24, 2016 à 4:37 #2858
yan.pelletier
ParticipantHello,
I’m currently building scene and nothing was working at all.
When I decided to shut everything down form the admin console and start “/volume1/web/PulseStation/services/core/core” from my Synology box, everything started to work as coded in Blocky.
Any idea why I’m having this behavior?
If I start everything from the administration console, nothing work, nothing is logged as if no scene existed. But as soon as I start everything with the Synology “core” binary everything comes alive!
Thank you!
février 25, 2016 à 12:12 #2879K.Rens
Maître des clésIt could be a permission issue.
Try chowning all pulsestation files to the correct owner
I think:
chown -R http:http /volume1/web/PulseStation/*-
Cette réponse a été modifiée le il y a 4 années et 11 mois par
K.Rens.
Kind regards,
K.Rensmars 1, 2016 à 4:52 #2904yan.pelletier
ParticipantHi,
I’ve tried your suggestion, but I’m having the same problem.
I’ve tried running the “core” service from console using “http” and everything work like a charm. As soon as I use the web interface to start everything, nothing work anymore.
Anymore ideas?
mars 3, 2016 à 10:08 #2918yan.pelletier
ParticipantHi,
I found this in the logs when running with “http” user :
- PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php/modules/mysqlnd.so’ – /usr/lib/php/modules/mysqlnd.so: undefined symbol: BIO_new_mem_buf in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php/modules/mysql.so’ – /usr/lib/php/modules/mysql.so: undefined symbol: _mysqlnd_fetch_lengths in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php/modules/mysqli.so’ – /usr/lib/php/modules/mysqli.so: undefined symbol: mysqlnd_get_client_info in Unknown on line 0
- PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php/modules/pdo_mysql.so’ – /usr/lib/php/modules/pdo_mysql.so: undefined symbol: mysqlnd_get_client_info in Unknown on line 0
If I use “root” user errors are gone.
All 4 files are readable and executable by “http” user…
Ideas?
Thank you!
mars 8, 2016 à 9:14 #2940Mika
Maître des clésWhat if you start from the package center ?
Another quick test can be to do “chmod 777 /volume1/web/PulseStation/services -R” via sshDid you modify something in the DSM in the “Control Panel > Web Services” ?
As you explain, for me the problem is that you have run the service as “root” and afterward as “http”. All the files created as “root” are not accessible to the “http” user.
mars 9, 2016 à 3:53 #2946yan.pelletier
ParticipantNone of this made any difference, but I finally found the problem :
/etc/php/conf.d/extensions.ini was in read-only by root.
Doing a “chmod 644” on the file fix everything!
I have no idea why this file had the wrong rights. One thing for sure, I didn’t touch that before.
Thank you for your help!
mars 18, 2016 à 9:17 #2982Mika
Maître des clésWe didnt modify that file via the installation script. Maybe another spk…
-
Cette réponse a été modifiée le il y a 4 années et 11 mois par
-
AuteurMessages
- Vous devez être connecté pour répondre à ce sujet.