[Résolu] Migration sous docker

Forum dédié aux questions concernant l'utilisation de DomoticZ dans Docker ou sur un NAS.
lacha007
Messages : 64
Inscription : 28 oct. 2018, 11:37

[Résolu] Migration sous docker

Message 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

Dernière modification par lacha007 le 16 nov. 2021, 16:20, modifié 1 fois.
Deufo
Messages : 280
Inscription : 26 févr. 2019, 16:25

Re: Migration sous docker

Message 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
lacha007
Messages : 64
Inscription : 28 oct. 2018, 11:37

[Resolu] Re: Migration sous docker

Message 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
lacha007
Messages : 64
Inscription : 28 oct. 2018, 11:37

Re: Migration sous docker

Message 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
Keros
Messages : 6638
Inscription : 23 juil. 2019, 20:57

Re: [Résolu]Migration sous docker

Message 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 :?
Comment bien utiliser le forum : Poser une question, Mettre un script, un fichier, une image ou des logs
Mes petits guides : Débuter en programmation, Le débogage, Le choix de matériel, Les sauvegardes
Ma présentation - Mes Tutos
lacha007
Messages : 64
Inscription : 28 oct. 2018, 11:37

Re: [Résolu]Migration sous docker

Message par lacha007 »

C est pas grave car le forum est la, et s il est bien indexé ce thread pourra rendre service.
pipiche
Messages : 4677
Inscription : 04 avr. 2018, 16:16
Contact :

Re: [Résolu]Migration sous docker

Message par pipiche »

Si le fichier n'existe pas il sera créé par le plugin avec les valeurs par default
Keros
Messages : 6638
Inscription : 23 juil. 2019, 20:57

Re: [Résolu]Migration sous docker

Message 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).
Comment bien utiliser le forum : Poser une question, Mettre un script, un fichier, une image ou des logs
Mes petits guides : Débuter en programmation, Le débogage, Le choix de matériel, Les sauvegardes
Ma présentation - Mes Tutos
Répondre