Free domotica! › Forums › How can I …? › Synology NAS › Running scene manually only work when starting "core" manually
Tagged: core scene
- This topic has 6 replies, 3 voices, and was last updated 4 years, 11 months ago by
Mika.
-
AuthorPosts
-
February 24, 2016 at 4:37 am #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!
February 25, 2016 at 12:12 pm #2879K.Rens
KeymasterIt could be a permission issue.
Try chowning all pulsestation files to the correct owner
I think:
chown -R http:http /volume1/web/PulseStation/*-
This reply was modified 5 years ago by
K.Rens.
Kind regards,
K.RensMarch 1, 2016 at 4:52 pm #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?
March 3, 2016 at 10:08 pm #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!
March 8, 2016 at 9:14 pm #2940Mika
KeymasterWhat 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.
March 9, 2016 at 3:53 am #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!
March 18, 2016 at 9:17 pm #2982Mika
KeymasterWe didnt modify that file via the installation script. Maybe another spk…
-
This reply was modified 5 years ago by
-
AuthorPosts
- You must be logged in to reply to this topic.