DSM Version 6 + Pulsestation Problem

Domotica gratuit Forums Report a bug DSM Version 6 + Pulsestation Problem

Ce sujet a 39 réponses, 15 participants et a été mis à jour par  K.Rens, il y a 2 ans et 2 mois.

10 sujets de 31 à 40 (sur un total de 40)
  • Auteur
    Messages
  • #3490

    BONJOUR,

    problème depuis le passage à dsm6 ; Pulsestation ne separt pas (status = arrêté).
    J’ai passé les commandes :
    sudo mv /usr/bin/php /usr/bin/phpORIG
    sudo ln -s /volume1/@appstore/PHP5.6/usr/local/bin/php56 /usr/local/bin/php

    Voici les messages de retour de Putty :

    login as: admin
    admin@192.168.1.113‘s password:
    Could not chdir to home directory /var/services/homes/admin: No such file or directory
    admin@DiskStation:/$ sudo mv /usr/bin/php /usr/bin/phpORIG
    Password:
    mv: cannot stat ‘/usr/bin/php’: No such file or directory
    admin@DiskStation:/$ sudo ln -s /volume1/@appstore/PHP5.6/usr/local/bin/php56 /usr/local/bin/php
    ln: failed to create symbolic link ‘/usr/local/bin/php’: File exists

    Que dois-je faire ?
    Cordialement
    François Jolivet

    #3491
    Miss Laura
    Miss Laura
    Modérateur

    Can you try running following 2 commands?

    sudo mv /usr/local/bin/php /usr/bin/phpORIG
    sudo ln -s /volume1/@appstore/PHP5.6/usr/local/bin/php56 /usr/local/bin/php

    I’ve put local in the first command.

    Fyi: don’t look at the status of the package inside DSM!
    Just try to open the url and probably PulseStation is already running.

    DSM can no longer see the status of our package, whether it’s running or not.

    • Cette réponse a été modifiée le il y a 2 ans et 2 mois par Miss Laura Miss Laura.

    Have fun,
    Laura

    #3493

    nerisson
    Participant

    Je dois prévenir: la manip de modifier PHP ci-dessus a pour conséquence de casser le backup Amazon Glacier.
    A priori le package Glacier utilise également PHP et retourne systématiquement une erreur après avoir modifié PHP.

    #3494

    K.Rens
    Admin bbPress

    Quelle erreur?
    Le modification que je propose est juste remplacer php avec une version avec plus de possibilités.
    Normalement ça ne peut pas casser Glacier?

    Kind regards,
    K.Rens

    #3495

    nerisson
    Participant

    Via l’IHM c’est un message d’erreur générique.
    En ligne de commande voici l’erreur:
    PHP Warning: require(): Unable to find the wrapper “phar” – did you forget to enable it when you configured PHP? in /volume1/@appstore/GlacierBackup/usr/lib/aws/aws.phar on line 3

    Si je remets l’ancien PHP cela refonctionne.

    #3496

    ok new commands (with local) seem to work well

    But with service zwave, here is the log

    2016-06-16 20:38:58.173 Always, OpenZwave Version 1.3.0 Starting Up
    2016-06-16 20:38:58.175 Info, Setting Up Provided Network Key for Secure Communications
    2016-06-16 20:38:58.175 Warning, Failed – Network Key Not Set
    2016-06-16 20:38:58.175 Info, mgr, Added driver for controller /dev/ttyUSB0
    2016-06-16 20:38:58.176 Info, Opening controller /dev/ttyUSB0
    2016-06-16 20:38:58.176 Info, Trying to open serial port /dev/ttyUSB0 (attempt 1)
    2016-06-16 20:38:58.177 Error, ERROR: Cannot open serial port /dev/ttyUSB0. Error code 2

    many thanks
    François Jolivet

    #3497

    K.Rens
    Admin bbPress

    @francois: strange that you cannot open the serial port.
    You can try running following command:
    chmod 777 /dev/ttyUSB0

    @nerisson: you are right.
    You can verify which extensions in php are enabled by running following commands:
    php -m

    For PulseStation database access, mysql needs to be there.
    If it is, there is no need to execute the commands mentioned above.

    If you compare that to
    php56 -m

    Glacier requires Phar to be in the list,
    PulseStation requires mysql to be in the list.

    They don’t have a version with both.

    I really do not understand why Synology puts 2 different php versions on 1 server, very very annoying…

    Kind regards,
    K.Rens

    #3498

    here is the respond for the command :
    php -m
    and
    php56 -m
    ———————————————————-
    login as: admin
    admin@192.168.1.113‘s password:
    Could not chdir to home directory /var/services/homes/admin: No such file or directory
    admin@DiskStation:/$ chmod 777 /dev/ttyUSB0
    chmod: cannot access ‘/dev/ttyUSB0’: No such file or directory
    admin@DiskStation:/$ php –m
    -sh: php: command not found
    admin@DiskStation:/$ php56 –m
    [PHP Modules]
    apc
    apcu
    bcmath
    bz2
    calendar
    Core
    ctype
    curl
    date
    dba
    dom
    ereg
    exif
    fileinfo
    filter
    ftp
    gd
    gettext
    gmp
    hash
    iconv
    imap
    intl
    json
    libxml
    mbstring
    mcrypt
    mhash
    mysql
    mysqli
    mysqlnd
    openssl
    pcntl
    pcre
    PDO
    pdo_mysql
    pdo_pgsql
    pdo_sqlite
    pgsql
    posix
    readline
    Reflection
    session
    shmop
    SimpleXML
    soap
    sockets
    SPL
    sqlite3
    standard
    syno_compiler
    sysvmsg
    sysvsem
    sysvshm
    tokenizer
    wddx
    xml
    xmlreader
    xmlrpc
    xmlwriter
    Zend OPcache
    zip
    zlib
    [Zend Modules]
    Zend OPcache

    What must I do ?

    Best regards
    François

    #3501

    Hello,
    there is a problem with synthax of the command “chmod 777 /dev/ttyUSB0”

    admin@DiskStation:/$ chmod 777 /dev/ttyUSB0
    chmod: cannot access ‘/dev/ttyUSB0’: No such file or directory
    admin@DiskStation:/$ login as: admin

    Could you tell me how write these command ?

    thank’s
    François Jolivet

    #3502

    K.Rens
    Admin bbPress

    Hi,

    Are you certain your usb key is running on /dev/ttyUSB0?
    On synology for me it has always been on /dev/ACM0

    Normally PulseStation should try to autodetect the correct port for your key.
    Otherwise just contact us in live chat.

    Kind regards,
    K.Rens

10 sujets de 31 à 40 (sur un total de 40)

Vous devez être connecté pour répondre à ce sujet.