Running scene manually only work when starting "core" manually

Free domotica! Forums How can I …? Synology NAS Running scene manually only work when starting "core" manually

Tagged: 

This topic contains 6 replies, has 3 voices, and was last updated by Mika Mika 1 year, 8 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #2858

    yan.pelletier
    Participant

    Hello,

    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!

    #2879

    K.Rens
    Keymaster

    It 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 1 year, 8 months ago by  K.Rens.

    Kind regards,
    K.Rens

    #2904

    yan.pelletier
    Participant

    Hi,

    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?

    #2918

    yan.pelletier
    Participant

    Hi,

    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!

    #2940
    Mika
    Mika
    Keymaster

    What if you start from the package center ?
    Another quick test can be to do “chmod 777 /volume1/web/PulseStation/services -R” via ssh

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

    #2946

    yan.pelletier
    Participant

    None 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!

    #2982
    Mika
    Mika
    Keymaster

    We didnt modify that file via the installation script. Maybe another spk…

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.