RFLINK wifi socat et docker ..

Forum dédié aux questions concernant l'utilisation de DomoticZ dans Docker ou sur un NAS.
chrisgen
Messages : 64
Inscription : 06 janv. 2023, 22:22

Re: RFLINK wifi socat et docker ..

Message par chrisgen »

Ci-joint les copies
Je ne peux pas lancer socat dans la console du docker :" unable to locate package socat "
Si je lance ./socat.sh ; il me répond en boucle
"./socat.sh: line6 :killall: command not found
./socat.sh: line7 :socat: command not found
Restarting socat"
Pièces jointes
Capture d'écran opt_domoticz_userdata.png
Capture d'écran opt_domoticz_userdata.png (11.53 Kio) Consulté 3075 fois
Capture d'écran 2024-10-19 142445.png
Capture d'écran 2024-10-19 142445.png (40.17 Kio) Consulté 3075 fois
secator
Messages : 165
Inscription : 10 nov. 2018, 18:26

Re: RFLINK wifi socat et docker ..

Message par secator »

Donc socat n'est pas installé dans ton container domoticz.......
Et un cat du customstart.sh dans la console, tu trouves bien ta ligne : apt-get -y install socat ?
Après je ne vois plus qu'un problème de droits. Je t'avoue que moi j'ai fait un chmod -R 777 sur le répertoire OPT, c'est moche........
Pièces jointes
1.jpg
1.jpg (155.3 Kio) Consulté 3066 fois
portainer.jpg
portainer.jpg (266.73 Kio) Consulté 3067 fois
chrisgen
Messages : 64
Inscription : 06 janv. 2023, 22:22

Re: RFLINK wifi socat et docker ..

Message par chrisgen »

Je vois bien apt-get install socat lors du cat customstart.sh ..
opt est en mod 777 . Pas de changement pour l' installation de socat..
secator
Messages : 165
Inscription : 10 nov. 2018, 18:26

Re: RFLINK wifi socat et docker ..

Message par secator »

le "apt-get install socat" fonctionne-t-il sous ubuntu ?
chrisgen
Messages : 64
Inscription : 06 janv. 2023, 22:22

Re: RFLINK wifi socat et docker ..

Message par chrisgen »

Je viens de faire un apt update dans la console ; il m' a ensuite installé socat ..
Je vois alors USB30 , mais ce n' est pas fonctionnel ..
Je vais essayer de relancer le docker pour voir ..
secator
Messages : 165
Inscription : 10 nov. 2018, 18:26

Re: RFLINK wifi socat et docker ..

Message par secator »

exact, regarde mon customstart.sh j'ai bien un update avant.
chrisgen
Messages : 64
Inscription : 06 janv. 2023, 22:22

Re: RFLINK wifi socat et docker ..

Message par chrisgen »

ça fonctionne !!
Il fallait donc mettre à jour l' os du docker ..

Je récapitule pour les suivants éventuels :
1- dans le répertoire pointant sur /opt/domoticz/userdata modifier le fichier customstart.sh en ajoutant la ligne :

Code : Tout sélectionner

apt update  ###### si socat n' est pas trouvé
apt-get -y install socat
2- coller le script socat
3 - Insérer le script Dzvents
4 - arrêter le docker
5 - Démarrer le docker (pas de restart)
Encore merci pour ton aide précieuse
Bon WE
secator
Messages : 165
Inscription : 10 nov. 2018, 18:26

Re: RFLINK wifi socat et docker ..

Message par secator »

Nickel. Bon week-end.
Répondre