Page 2 sur 4

Re: Migration TI CC2531 --> SLZB-06 TI CC2652P

Publié : 05 nov. 2025, 16:36
par pipiche
peux-tu faire un simple git pull pour mettre a jour le hotfix, relancer Domoticz et ensuite faire le test de shutdown

Re: Migration TI CC2531 --> SLZB-06 TI CC2652P

Publié : 05 nov. 2025, 18:45
par Chrominator
Nickel, ça fonctionne :)
Merci beaucoup.

Le système s'arrête normalement, sans message d'un fonctionnement anormal sur le webserver ou autres.
Je l'ai fait 5 fois, à chaque fois ça a bien fonctionné.

Je joins les logs si jamais tu voulais les voir.
Ils sont "bruts", je ne les ai pas retouché, je n'ai retiré aucune ligne mais j'ai démarré dz pour cette session avec des logs vides.

Tu me diras quand je pourrais rejoindre la branche sur laquelle tu publies les mises à jour habituelles (prochaine version j'imagine).

Re: Migration TI CC2531 --> SLZB-06 TI CC2652P

Publié : 05 nov. 2025, 19:37
par pipiche
Pourtant dans le dernier log il y a cela:
2025-11-05 18:32:34.109 Status: SLZB-06 TI CC2652P: Operating time : 0 Hours 3 Mins 21 Secs
2025-11-05 18:32:34.110 SLZB-06 TI CC2652P: logging_thread - ended
2025-11-05 18:32:34.111 SLZB-06 TI CC2652P: Logging Thread shutdown
2025-11-05 18:32:34.111 SLZB-06 TI CC2652P: Remaining active threads: [('MainThread', 126182641100480, True), ('ZigpyForwarder_41', 126182292973248, True)]
2025-11-05 18:32:34.115 SLZB-06 TI CC2652P: Warning: Plugin has 1 Python threads running.
2025-11-05 18:32:35.115 SLZB-06 TI CC2652P: Warning: Plugin has 1 Python threads running.
2025-11-05 18:32:36.115 SLZB-06 TI CC2652P: Warning: Plugin has 1 Python threads running.
2025-11-05 18:32:37.116 SLZB-06 TI CC2652P: Warning: Plugin has 1 Python threads running.
2025-11-05 18:32:38.116 SLZB-06 TI CC2652P: Warning: Plugin has 1 Python threads running.
2025-11-05 18:32:39.117 SLZB-06 TI CC2652P: Warning: Plugin has 1 Python threads running.
2025-11-05 18:32:40.117 SLZB-06 TI CC2652P: Warning: Plugin has 1 Python threads running.
2025-11-05 18:32:41.117 SLZB-06 TI CC2652P: Warning: Plugin has 1 Python threads running.
2025-11-05 18:32:42.118 SLZB-06 TI CC2652P: Warning: Plugin has 1 Python threads running.
2025-11-05 18:32:43.118 SLZB-06 TI CC2652P: Warning: Plugin has 1 Python threads running.
2025-11-05 18:32:44.118 SLZB-06 TI CC2652P: Warning: Plugin has 1 Python threads running.
2025-11-05 18:32:44.119 SLZB-06 TI CC2652P: Warning: Plugin has 1 Python threads running.
2025-11-05 18:32:44.119 SLZB-06 TI CC2652P: Abandoning wait for Plugin thread shutdown, hang or crash may result.

Re: Migration TI CC2531 --> SLZB-06 TI CC2652P

Publié : 05 nov. 2025, 19:57
par Chrominator
C'est vrai, toutefois ça n'engendre pas de dysfonctionnement ni de boucle (presque) infinie au niveau de domoticz comme ça pouvait le faire auparavant.

Mais en effet, une analyse plus approfondie montre que le process a été tué, il ne s'est pas terminé comme il aurait dû.

syslog :

Code : Tout sélectionner

Nov  5 18:32:06 phoenix domoticz: Domoticz is exiting...
Nov  5 18:32:06 phoenix systemd[1]: Stopping domoticz.service - domoticz_service...
Nov  5 18:33:37 phoenix systemd[1]: domoticz.service: State 'stop-sigterm' timed out. Killing.
Nov  5 18:33:37 phoenix systemd[1]: domoticz.service: Killing process 320826 (domoticz) with signal SIGKILL.
Nov  5 18:33:37 phoenix systemd[1]: domoticz.service: Failed to kill control group /system.slice/domoticz.service, ignoring: Invalid argument
Nov  5 18:33:37 phoenix systemd[1]: domoticz.service: Main process exited, code=killed, status=9/KILL
Nov  5 18:33:37 phoenix systemd[1]: domoticz.service: Failed with result 'timeout'.
Nov  5 18:33:37 phoenix systemd[1]: Stopped domoticz.service - domoticz_service.
Nov  5 18:33:37 phoenix systemd[1]: domoticz.service: Consumed 56.507s CPU time.

Re: Migration TI CC2531 --> SLZB-06 TI CC2652P

Publié : 05 nov. 2025, 20:11
par pipiche
comment fais-tu m'arrêt du plugin ?

Est-ce que tu fais via un service Domoticz stop , ou via un stop plugin dans le menu Hardware de Domoticz

sinon, ce qui m'interpelle c'est que tu semble etre le seul avec ce problème, donc ca pourrait etre également lié à un comportement particulier avec python3.10
Cependant les changements que j'ai fait dans le hot fix restent important car, il assure un arrêt des threads du plugin de façon déterministes

Re: Migration TI CC2531 --> SLZB-06 TI CC2652P

Publié : 05 nov. 2025, 20:29
par Chrominator
Je stoppe domoticz avec le service, typiquement service domoticz stop sous root.

Voici la description du service.
Lors de l'essai j'ai mis en commentaire les paramètres liés au restart pour ne pas poluer les logs.

Code : Tout sélectionner

[Unit]
      Description=domoticz_service
[Service]
      User=pi
      Group=users
      ExecStart=/home/pi/domoticz/domoticz -www 8080 -sslwww 443 -daemon -pidfile /var/run/domoticz/domoticz.pid -sslcert /home/pi/domoticz/cert_all.pem -log /var/log/domoticz.log -loglevel normal,status,error
      PIDFile=/var/run/domoticz/domoticz.pid
      EnvironmentFile=/home/pi/domoticz.env
      WorkingDirectory=/home/pi/domoticz
      # Run ExecStartPre with root-permissions
      PermissionsStartOnly=true
      ExecStartPre=-/usr/bin/mkdir /var/run/domoticz
      ExecStartPre=/usr/bin/chown -R pi:users /var/run/domoticz
      #ExecStartPre=setcap 'cap_net_bind_service=+ep' /home/pi/domoticz/domoticz
      AmbientCapabilities=CAP_NET_RAW CAP_NET_ADMIN CAP_NET_BIND_SERVICE
      Restart=on-failure
      RestartSec=1m
      #StandardOutput=null
[Install]
      WantedBy=multi-user.target
Je vais essayer demain en stoppant le plugin via le matériel, je te donnerais les logs.

Re: Migration TI CC2531 --> SLZB-06 TI CC2652P

Publié : 06 nov. 2025, 07:43
par Chrominator
Effectivement tu l'as bien pressenti, l'arrêt via l'onglet matériel de dz plante à la fin et le déstabilise.

Je soupçonne que le trouble vient de la migration de l'ancien coordinateur vers le nouveau ;
Si je configure un nouveau coordinateur SLZB-06 from scratch (en le réinitialisant lors de sa config dans dz), est-ce que le log de son démarrage/arrêt ferait progresser les choses ?
Est-ce que à l'issue je pourrais récupérer tous mes devices en réactivant l'ancien SLZB-06 ?

En attendant ton avis, voici les logs :

Re: Migration TI CC2531 --> SLZB-06 TI CC2652P

Publié : 06 nov. 2025, 13:24
par pipiche
Non, si tu passes par un nouveau tu ne récupéra rien, sauf aller changer des trucs à la main dans la base domoticz et côté plug-in

Du reste ton problème semble très spécifique.

Est-ce qu’on pourrait se faire une séance TeamViewer ou équivalent ?

Re: Migration TI CC2531 --> SLZB-06 TI CC2652P

Publié : 06 nov. 2025, 16:51
par Chrominator
C'est une super offre, merci.
J'ai essayé de créer un compte avec TeamViewer, mais je ne reçois pas le mail de vérification, rien dans mes spams ou autre.

Quelle autre solution ? (je n'en utilise aucune perso).

EDIT: je viens de recevoir le mail de vérification, maintenant j'attends celui de vérification de la machine...

Re: Migration TI CC2531 --> SLZB-06 TI CC2652P

Publié : 06 nov. 2025, 18:48
par pipiche
Anydesk est peut-etre plus simple à mettre en oeuvre.