Soucis demon Deconz (running pip as the root)

bonjour,

j’ai acheté un modul NOdon pour mes volets (dans l’optique de passer sur zigbee à la place de rfx), j’essaye de l’integrer mais il n’y arrive pas car le demon passe de ok a nok…

dans le log il y fait alusion à : un truc sur Running pip … bref je poste le log qui serra plus parlant :slight_smile:

la clé est à jour et jeedom aussi, j’utilise 2 prises sur le reseau zigbee sans soucis mais depuis l’essai d’inclusion de modul nodon j’ai l’impression qu’il fait planter le demon…

j’ai été dans : reglages/systeme/configuration et os/bd et retablis les droits de dossiers au cas ou mais rien…

le modul

et le logs.

+ echo '*******************Begin of package installation******************'
*******************Begin of package installation******************
+ touch /tmp/jeedom_install_in_progress_deconz
+ echo 1
+ echo 2
++ find /usr/local/lib/python2.7/dist-packages/ /usr/local/lib/python3.7/dist-packages/ -mindepth 1 -maxdepth 1 -type d -exec du -ks '{}' +
++ cut -f 2-
++ awk '$1 <= 4'
+ RESULTTODELETE=
++ echo ''
++ sed 's, ,\ ,g'
+ RESULTTODELETE2=
+ echo ''
+ xargs rm -rf
+ echo 3
+ sudo pip3 cache purge
Files removed: 514
+ echo 4
+ sudo pip3 install --upgrade pip
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: pip in /usr/local/lib/python3.7/dist-packages (23.3.1)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
+ echo 5
+ sudo pip3 install --force-reinstall --upgrade six
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting six
  Downloading https://www.piwheels.org/simple/six/six-1.16.0-py2.py3-none-any.whl (11 kB)
Installing collected packages: six
  Attempting uninstall: six
    Found existing installation: six 1.16.0
    Uninstalling six-1.16.0:
      Successfully uninstalled six-1.16.0
Successfully installed six-1.16.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
+ echo 6
+ sudo pip3 install --force-reinstall --upgrade pyudev
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting pyudev
  Downloading https://www.piwheels.org/simple/pyudev/pyudev-0.24.1-py3-none-any.whl (62 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.9/62.9 kB 959.4 kB/s eta 0:00:00
Installing collected packages: pyudev
  Attempting uninstall: pyudev
    Found existing installation: pyudev 0.24.1
    Uninstalling pyudev-0.24.1:
      Successfully uninstalled pyudev-0.24.1
Successfully installed pyudev-0.24.1
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
+ echo 7
+ sudo pip3 install --force-reinstall --upgrade requests
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting requests
  Downloading https://www.piwheels.org/simple/requests/requests-2.31.0-py3-none-any.whl (62 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.6/62.6 kB 701.5 kB/s eta 0:00:00
Collecting charset-normalizer<4,>=2 (from requests)
  Downloading https://www.piwheels.org/simple/charset-normalizer/charset_normalizer-3.3.2-py3-none-any.whl (48 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 48.5/48.5 kB 960.5 kB/s eta 0:00:00
Collecting idna<4,>=2.5 (from requests)
  Downloading https://www.piwheels.org/simple/idna/idna-3.4-py3-none-any.whl (61 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.5/61.5 kB 985.1 kB/s eta 0:00:00
Collecting urllib3<3,>=1.21.1 (from requests)
  Downloading https://www.piwheels.org/simple/urllib3/urllib3-2.0.7-py3-none-any.whl (124 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 124.2/124.2 kB 1.5 MB/s eta 0:00:00
Collecting certifi>=2017.4.17 (from requests)
  Downloading https://www.piwheels.org/simple/certifi/certifi-2023.7.22-py3-none-any.whl (158 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 158.3/158.3 kB 1.5 MB/s eta 0:00:00
Installing collected packages: urllib3, idna, charset-normalizer, certifi, requests
  Attempting uninstall: urllib3
    Found existing installation: urllib3 2.0.7
    Uninstalling urllib3-2.0.7:
      Successfully uninstalled urllib3-2.0.7
  Attempting uninstall: idna
    Found existing installation: idna 3.4
    Uninstalling idna-3.4:
      Successfully uninstalled idna-3.4
  Attempting uninstall: charset-normalizer
    Found existing installation: charset-normalizer 3.3.2
    Uninstalling charset-normalizer-3.3.2:
      Successfully uninstalled charset-normalizer-3.3.2
  Attempting uninstall: certifi
    Found existing installation: certifi 2023.7.22
    Uninstalling certifi-2023.7.22:
      Successfully uninstalled certifi-2023.7.22
  Attempting uninstall: requests
    Found existing installation: requests 2.31.0
    Uninstalling requests-2.31.0:
      Successfully uninstalled requests-2.31.0
Successfully installed certifi-2023.7.22 charset-normalizer-3.3.2 idna-3.4 requests-2.31.0 urllib3-2.0.7
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
+ echo 8
+ sudo pip3 install --force-reinstall --upgrade setuptools
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting setuptools
  Downloading https://www.piwheels.org/simple/setuptools/setuptools-68.0.0-py3-none-any.whl (804 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 804.0/804.0 kB 3.5 MB/s eta 0:00:00
Installing collected packages: setuptools
  Attempting uninstall: setuptools
    Found existing installation: setuptools 68.0.0
    Uninstalling setuptools-68.0.0:
      Successfully uninstalled setuptools-68.0.0
Successfully installed setuptools-68.0.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
+ echo 9
+ sudo pip3 install --force-reinstall --upgrade wheel
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting wheel
  Downloading https://www.piwheels.org/simple/wheel/wheel-0.41.3-py3-none-any.whl (65 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 65.8/65.8 kB 1.2 MB/s eta 0:00:00
Installing collected packages: wheel
  Attempting uninstall: wheel
    Found existing installation: wheel 0.41.3
    Uninstalling wheel-0.41.3:
      Successfully uninstalled wheel-0.41.3
Successfully installed wheel-0.41.3
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
+ echo 10
+ sudo pip3 install --force-reinstall --upgrade pyserial
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting pyserial
  Downloading https://www.piwheels.org/simple/pyserial/pyserial-3.5-py2.py3-none-any.whl (90 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 90.6/90.6 kB 1.3 MB/s eta 0:00:00
Installing collected packages: pyserial
  Attempting uninstall: pyserial
    Found existing installation: pyserial 3.5
    Uninstalling pyserial-3.5:
      Successfully uninstalled pyserial-3.5
Successfully installed pyserial-3.5
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
+ echo 11
+ sudo pip3 install --force-reinstall --upgrade websocket-client
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting websocket-client
  Downloading https://www.piwheels.org/simple/websocket-client/websocket_client-1.6.1-py3-none-any.whl (56 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 56.9/56.9 kB 866.0 kB/s eta 0:00:00
Installing collected packages: websocket-client
  Attempting uninstall: websocket-client
    Found existing installation: websocket-client 1.6.1
    Uninstalling websocket-client-1.6.1:
      Successfully uninstalled websocket-client-1.6.1
Successfully installed websocket-client-1.6.1
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
+ echo 12
+ php /var/www/html/core/class/../php/jeecli.php plugin dependancy_end deconz
+ rm /tmp/jeedom_install_in_progress_deconz
+ echo '*******************End of package installation******************'
*******************End of package installation******************

je viens de faire un essai d’inclusion , et dès qu’il essai de s’inclure il met en défaut le démon (je vois le démon se stopper…)

Quelle version de Debian ?
As tu pensé à désactiver la ligne série (UART) qui sort sur le port GPIO du PRI via raspiconfig au préalable ?
Quel modem zigbee utilises tu (dongle Conbee ou rzpee) ?
Une copie écran de la page de configuration de Deconz serait aussi bine utile pour te venir en aide .

voici ce que j’arrive à avoir apres un coup de propre ds le log, des l’inclusion le demon plante.

[2023-11-12 20:41:28][DEBUG] : {"00212EFFFF095205":{"e":"changed","id":"29","r":"sensors","state":{"consumption":0,"lastupdated":"2023-11-12T19:41:28.291"},"t":"event","uniqueid":"a4:c1:38:cf:2b:c0:08:0a-01-0702"}}
[2023-11-12 20:41:28][DEBUG] : Received message from gateway 127.0.0.1 : {"e":"changed","id":"30","r":"sensors","state":{"current":0,"lastupdated":"2023-11-12T19:41:28.347","power":0,"voltage":235},"t":"event","uniqueid":"a4:c1:38:cf:2b:c0:08:0a-01-0b04"}
[2023-11-12 20:41:28][INFO] : Send to jeedom :  {'00212EFFFF095205': {'e': 'changed', 'id': '30', 'r': 'sensors', 'state': {'current': 0, 'lastupdated': '2023-11-12T19:41:28.347', 'power': 0, 'voltage': 235}, 't': 'event', 'uniqueid': 'a4:c1:38:cf:2b:c0:08:0a-01-0b04'}}
[2023-11-12 20:41:28][DEBUG] : {"00212EFFFF095205":{"e":"changed","id":"30","r":"sensors","state":{"current":0,"lastupdated":"2023-11-12T19:41:28.315","power":0,"voltage":235},"t":"event","uniqueid":"a4:c1:38:cf:2b:c0:08:0a-01-0b04"}}
[2023-11-12 20:41:28][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2023-11-12 20:41:28][DEBUG] : http://127.0.0.1:80 "POST /plugins/deconz/core/php/jeeDeconz.php?apikey=JYjEqU35eb7iVhlyEWCWwOXKnXeqnaCj HTTP/1.1" 200 0
[2023-11-12 20:41:28][DEBUG] : {"00212EFFFF095205":{"e":"changed","id":"30","r":"sensors","state":{"current":0,"lastupdated":"2023-11-12T19:41:28.347","power":0,"voltage":235},"t":"event","uniqueid":"a4:c1:38:cf:2b:c0:08:0a-01-0b04"}}
[2023-11-12 20:41:28][DEBUG] : http://127.0.0.1:80 "POST /plugins/deconz/core/php/jeeDeconz.php?apikey=JYjEqU35eb7iVhlyEWCWwOXKnXeqnaCj HTTP/1.1" 200 0
[2023-11-12 20:41:28][DEBUG] : http://127.0.0.1:80 "POST /plugins/deconz/core/php/jeeDeconz.php?apikey=JYjEqU35eb7iVhlyEWCWwOXKnXeqnaCj HTTP/1.1" 200 0
[2023-11-12 20:41:31][DEBUG] : Received message from gateway 127.0.0.1 : {"attr":{"id":"1","lastannounced":null,"lastseen":"2023-11-12T19:41Z","manufacturername":"_TZ3000_w0qqde0g","modelid":"TS011F","name":"On/Off plug-in unit 1","swversion":"1.0.13","type":"On/Off plug-in unit","uniqueid":"a4:c1:38:bd:8c:c3:93:fc-01"},"e":"changed","id":"1","r":"lights","t":"event","uniqueid":"a4:c1:38:bd:8c:c3:93:fc-01"}
[2023-11-12 20:41:31][INFO] : Send to jeedom :  {'00212EFFFF095205': {'attr': {'id': '1', 'lastannounced': None, 'lastseen': '2023-11-12T19:41Z', 'manufacturername': '_TZ3000_w0qqde0g', 'modelid': 'TS011F', 'name': 'On/Off plug-in unit 1', 'swversion': '1.0.13', 'type': 'On/Off plug-in unit', 'uniqueid': 'a4:c1:38:bd:8c:c3:93:fc-01'}, 'e': 'changed', 'id': '1', 'r': 'lights', 't': 'event', 'uniqueid': 'a4:c1:38:bd:8c:c3:93:fc-01'}}
[2023-11-12 20:41:31][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2023-11-12 20:41:31][DEBUG] : {"00212EFFFF095205":{"attr":{"id":"1","lastannounced":null,"lastseen":"2023-11-12T19:41Z","manufacturername":"_TZ3000_w0qqde0g","modelid":"TS011F","name":"On\/Off plug-in unit 1","swversion":"1.0.13","type":"On\/Off plug-in unit","uniqueid":"a4:c1:38:bd:8c:c3:93:fc-01"},"e":"changed","id":"1","r":"lights","t":"event","uniqueid":"a4:c1:38:bd:8c:c3:93:fc-01"}}
[2023-11-12 20:41:31][DEBUG] : http://127.0.0.1:80 "POST /plugins/deconz/core/php/jeeDeconz.php?apikey=JYjEqU35eb7iVhlyEWCWwOXKnXeqnaCj HTTP/1.1" 200 0
[2023-11-12 20:41:38][DEBUG] : Received message from gateway 127.0.0.1 : {"attr":{"id":"3","lastannounced":null,"lastseen":"2023-11-12T19:41Z","manufacturername":"_TZ3000_w0qqde0g","modelid":"TS011F","name":"On/Off plug-in unit 3","swversion":"1.0.13","type":"On/Off plug-in unit","uniqueid":"a4:c1:38:2d:20:54:f7:b7-01"},"e":"changed","id":"3","r":"lights","t":"event","uniqueid":"a4:c1:38:2d:20:54:f7:b7-01"}
[2023-11-12 20:41:38][INFO] : Send to jeedom :  {'00212EFFFF095205': {'attr': {'id': '3', 'lastannounced': None, 'lastseen': '2023-11-12T19:41Z', 'manufacturername': '_TZ3000_w0qqde0g', 'modelid': 'TS011F', 'name': 'On/Off plug-in unit 3', 'swversion': '1.0.13', 'type': 'On/Off plug-in unit', 'uniqueid': 'a4:c1:38:2d:20:54:f7:b7-01'}, 'e': 'changed', 'id': '3', 'r': 'lights', 't': 'event', 'uniqueid': 'a4:c1:38:2d:20:54:f7:b7-01'}}
[2023-11-12 20:41:38][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2023-11-12 20:41:38][DEBUG] : {"00212EFFFF095205":{"attr":{"id":"3","lastannounced":null,"lastseen":"2023-11-12T19:41Z","manufacturername":"_TZ3000_w0qqde0g","modelid":"TS011F","name":"On\/Off plug-in unit 3","swversion":"1.0.13","type":"On\/Off plug-in unit","uniqueid":"a4:c1:38:2d:20:54:f7:b7-01"},"e":"changed","id":"3","r":"lights","t":"event","uniqueid":"a4:c1:38:2d:20:54:f7:b7-01"}}
[2023-11-12 20:41:38][DEBUG] : http://127.0.0.1:80 "POST /plugins/deconz/core/php/jeeDeconz.php?apikey=JYjEqU35eb7iVhlyEWCWwOXKnXeqnaCj HTTP/1.1" 200 0
[2023-11-12 20:41:56][DEBUG] : 127.0.0.1:8484/api/D7042DC3A1/config type : PUT
[2023-11-12 20:41:56][DEBUG] : {"\/config\/permitjoin":180}
[2023-11-12 20:42:03][DEBUG] : Closing Thread for 127.0.0.1 because Connection to remote host was lost.
[2023-11-12 20:42:03][DEBUG] : Shutting down because it's local gateway
[2023-11-12 20:42:03][DEBUG] : Shutdown
[2023-11-12 20:42:03][DEBUG] : Removing PID file /tmp/jeedom/deconz/deamon.pid
[2023-11-12 20:42:03][INFO] : LoopNetServer Thread stopped

Usage:
 kill [options] <pid> [...]

Options:
 <pid> [...]            send signal to every <pid> listed
 -<signal>, -s, --signal <signal>
                        specify the <signal> to be sent
 -l, --list=[<signal>]  list all signal names, or convert one to a name
 -L, --table            list all signal names in a nice table

 -h, --help     display this help and exit
 -V, --version  output version information and exit

For more details see kill(1).
[2023-11-12 20:42:04][DEBUG] : Exit 0

qu’elle est la fonction dont tu me parle ? (uart ) je vais regarder dans rapsiconfig, ou se situe le menu precisement ?

j’utilise le dongle combee2 cle usb.

j’ai suivis cette procédure pour désactiver L’uart, espérant etre la bonne ?

Manque la partie intéressante de la copie écran de la page de config Deconz.
Je vois que tu as installé aussi une version beta de deconz. (ce qui ne doit pas être le pb car elle tourne sans pb sur une machine de test ConBee III de mon coté).
Pour l’UART c’est un port série qui sort sur le port GPIO (deux broches de ce port).
Dans ta page santé Jeedom il y a un plug in nok, lequel ?

Pour le port série il faut passer par raspi config pour le désactiver puis rebooter.
La doc Deconz di t ceci sinon :

FAQ

Le démon démarre et se coupe tout seul au bout d’une minute

Si vous etes sous RPI le serial n’a pas du etre coupé (ca se passe dans raspi-config)

cette partie ?

l’installation de la bêta n’etait pas voulu, j’ai mis à jour il y a une semaine pour réussir à recuperer les prise zigbee qui ne s’intégrait pas correctement (manque de la fonction consommation…) mais je pensais avoir mis une vesrion NON béta… :frowning:

le plugin NOk etait le deconz mais il est ok là, il fonctionne parfaitement sauf si j’essaye d’integrer le NOdon.

je suis vert pour la version béta… :s

j’ai désactivé le port uart suivant le lien ci dessus, j’espère qu’il est bon…, mais le demon plante toujours à l’inclusion.

Une copie de ta page équipements Deconz ?
As tu installé la Conbee II au bout d’une petite rallonge USB de qualité ?

Parce que l’on voit un process deconz qui se fait killer lors de la tentative d’inclusion ce qui semble être lié à un pb de communication entre RPI et Conbee II

une copie de la page deconz, ceci

ma cle est sur un hub USB avec alimentation. :wink:

Je parlais de la page équipements ici :

image

j’aimerai mettre à jour la clé , je suis chagriné d’avoir mis une beta… (je ferais plus tard)

voici.

La béta ce n’est pas la clef c’est juste l’application deconz sur laquelle s’appuie le plug in Deconz. Pas de soucis de ce coté là.
Onglet Neouds STP ?


j’ai des sondes de Temps et des prises en bas avec consommation, le modul nodon des fois s’inclus mais pas comme il devrait il n’y à pas de commande et un store et present avec un curseur verticale …

depuis 5 mins le demon deconz n’a pas planté, mon modul Denon est vert ce qui signifie qu’il est inclus cependant il ne l’est pas dans mes nœuds ou dans le deconz.

je le reset, il passe en mode inclusion et à ce moment là il plante le demon.

nb: j’ai desactivé l’uart dans raspi config esperant avoir bien fait. :wink:

Deux points qui m’interpellent à la lecture de tes copies écran :

  1. on ne voit pas le coordinateur Conbee II dans les équipements, ce n’est pas normal.
  2. le canal 15 sélectionné dan ston réseau. Pourquoi pas, mais il faut vérifier que le module Nodon répond bien sur ce canal (je pense que oui mais je ne me souviens plus).

Quand tu écris que ton module est vert, où relèves-tu cette couleur ?

Je te conseille de passer en inclusion par l’application Phoscon.

le coordinateur , possible de me préciser ?

je me perd un peu… le canal 15 est d"origine je n’ai pas modifié à l’installation.

sur le modul Nodon est present une led, orange inclusion , vert inclusion ok… mais dans mon cas il ne l’est ps.

inclusion par phoscon , pk pas mais jeedom le recupere apres ?

possible de m’éclairer sur le coordinateur , ou il se situe ? et il devrait être comment ?

voila pk le rfx en 433 et plus simple :grin: , mais pas de retours d’etat ce que zigbee fait mieux (quand il fonctionne) :roll_eyes: