Page 1 sur 1

[Résolu] Migration sous docker

Publié : 16 nov. 2021, 15:45
par lacha007
HEllo
Suite a un passage a BullsEye sur mon PI, mon instance de domoticz ne tourne plus. Je suppose un soucis au niveau de python. Bref normalement docker est la pour cela.
Du coup je viens de monter un container avec :
https://github.com/linuxserver/docker-domoticz
Du coup bien sur tout se lance bien mais La Zigate ne connais plus mes devices.
J ai pourtant copy past l'ancien folder Plugin dans le nouveau.
Du coup qu'ai je oublié de faire a votre avis?
Avez vous deja une image avec le plugin installé et les port configurés?
Mes logs :

Code : Tout sélectionner

2021-11-16 14:38:16.502  Error: ZiGate: (ZiGate) Cannot access path: /opt/domoticz/plugins/Domoticz-Zigate/Conf/PluginConf-09.json
2021-11-16 14:38:16.503  Error: ZiGate: (ZiGate) Cannot access path: /opt/domoticz/plugins/Domoticz-Zigate/
2021-11-16 14:38:16.503  Error: ZiGate: (ZiGate) Cannot access path: /opt/domoticz/plugins/Domoticz-Zigate/
2021-11-16 14:38:16.503  Error: ZiGate: (ZiGate) Cannot access path: /opt/domoticz/plugins/Domoticz-Zigate/Data/
2021-11-16 14:38:16.503  Error: ZiGate: (ZiGate) Cannot access path: /opt/domoticz/plugins/Domoticz-Zigate/Conf/
2021-11-16 14:38:16.503  Error: ZiGate: (ZiGate) Cannot access path: /opt/domoticz/plugins/Domoticz-Zigate/OTAFirmware/
2021-11-16 14:38:16.503  Error: ZiGate: (ZiGate) Cannot access path: /opt/domoticz/plugins/Domoticz-Zigate/Reports/
2021-11-16 14:38:16.504  Error: ZiGate: (ZiGate) Cannot access path: /opt/domoticz/plugins/Domoticz-Zigate/www/
2021-11-16 14:38:16.504  Error: ZiGate: (ZiGate) Cannot access path: /opt/domoticz/plugins/Domoticz-Zigate/Logs/

Code : Tout sélectionner

2021-11-16 14:38:16.557  Error: ZiGate: (ZiGate) checkListOfDevice2Devices - W_radiateur_chambre_amis - 00158d0002166ba4 not found in Plugin Database
2021-11-16 14:38:16.558  Error: ZiGate: (ZiGate) checkListOfDevice2Devices - temp_cuisine - 00158d0002310205 not found in Plugin Database
2021-11-16 14:38:16.558  Error: ZiGate: (ZiGate) checkListOfDevice2Devices - temp_sdb_bas - 00158d0002310318 not found in Plugin Database
2021-11-16 14:38:16.558  Error: ZiGate: (ZiGate) checkListOfDevice2Devices - temp_chambre_amis - 00158d0002310322 not found in Plugin Database
2021-11-16 14:38:16.559  Error: ZiGate: (ZiGate) checkListOfDevice2Devices - plug-mosaic - 00124b0023592cd3 not found in Plugin Database
2021-11-16 14:38:16.560  Error: ZiGate: (ZiGate) checkListOfDevice2Devices - Pompe_a_Eau - 7cb03eaa00afbcd6 not found in Plugin Database
2021-11-16 14:38:16.561  Error: ZiGate: (ZiGate) checkListOfDevice2Devices - temp_bureau - 00158d0002389139 not found in Plugin Database


Re: Migration sous docker

Publié : 16 nov. 2021, 15:56
par Deufo
Je ne peux que te conseiller le wiki et notamment les pages suivantes :

https://github.com/pipiche38/Domoticz-Z ... vec-docker
https://github.com/pipiche38/Domoticz-Z ... -Docker.md

[Resolu] Re: Migration sous docker

Publié : 16 nov. 2021, 16:07
par lacha007
Bon la reponse etait sous mes yeux.
Mon fichier de conf

Code : Tout sélectionner

Conf/PluginConf-09.json 
etait configuré pour l'ancien path.
Du coup avec cette images docker cela doit etre

Code : Tout sélectionner

{
  "EnableLedIfOn": 0,
  "EnableReleaseButton": 1,
  "blueLedOnOff": 0,
  "capturePairingInfos": 1,
  "channel": "11",
  "debugPairing": 1,
  "filename": "/config/plugins/Domoticz-Zigate/Conf/PluginConf-09.json",
  "homedirectory": "/config/plugins/Domoticz-Zigate/",
  "pluginConfig": "/config/plugins/Domoticz-Zigate/Conf/",
  "pluginData": "/config/plugins/Domoticz-Zigate/Data/",
  "pluginHome": "/config/plugins/Domoticz-Zigate/",
  "pluginLogs": "/config/plugins/Domoticz-Zigate/Logs/",
  "pluginOTAFirmware": "/config/plugins/Domoticz-Zigate/OTAFirmware/",
  "pluginReports": "/config/plugins/Domoticz-Zigate/Reports/",
  "pluginWWW": "/config/plugins/Domoticz-Zigate/www/",
  "trackError": 1
}
au cas ou.
Merci pour tout

Re: Migration sous docker

Publié : 16 nov. 2021, 16:33
par lacha007
Deufo a écrit : 16 nov. 2021, 15:56 Je ne peux que te conseiller le wiki et notamment les pages suivantes :

https://github.com/pipiche38/Domoticz-Z ... vec-docker
https://github.com/pipiche38/Domoticz-Z ... -Docker.md
Encore une fois merci Pipiche, la reponse etait sous mes yeux, pour ma culture a quelle moment se rempli ce fichier de conf? Conf/PluginConf-09.json
Car en cas de changement d installation il faut penser à le mettre à jour
A bientot

Re: [Résolu]Migration sous docker

Publié : 16 nov. 2021, 18:49
par Keros
Le cas d'un changement d'installation est très particulier et ayant traduit la documentation en français, c'est vrai que je n'ai pas du tout pensé à ce cas de figure :?

Re: [Résolu]Migration sous docker

Publié : 16 nov. 2021, 18:53
par lacha007
C est pas grave car le forum est la, et s il est bien indexé ce thread pourra rendre service.

Re: [Résolu]Migration sous docker

Publié : 16 nov. 2021, 19:51
par pipiche
Si le fichier n'existe pas il sera créé par le plugin avec les valeurs par default

Re: [Résolu]Migration sous docker

Publié : 16 nov. 2021, 20:50
par Keros
C'est bien ce que je pensais : le fichier de config est généré au premier lancement du plugin puisqu'il n'est pas présent (hors ton cas particulier de migration, mais dans lequel les paramètres sont à mettre à jour).