[Tuto] installation sécurisé Jeedom avec Docker + périphériques USB
Re: [Tuto] installation sécurisé Jeedom avec Docker + périphériques USB
Bonjour
Moi quand le lance "docker start jeedom-server" , ca bloque a
étape 6 téléchargement de jeedom réussie
All init complete
Start apache2
Failed to connect to bus: No such file or directory
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.65.3. Set the 'ServerName' directive globally to suppress this message
Restarting Apache httpd web server: apache2.
Start sshd
Failed to connect to bus: No such file or directory
start-stop-daemon: warning: failed to kill 84: No such process
Restarting OpenBSD Secure Shell server: sshd.
Start atd
Failed to connect to bus: No such file or directory
/sbin/start-stop-daemon: warning: failed to kill 102: No such process
Stopping deferred execution scheduler: atd.
Starting deferred execution scheduler: atd.
/usr/lib/python2.7/dist-packages/supervisor/options.py:298: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security.
'Supervisord is running as root and it is searching '
2019-08-31 19:42:55,752 CRIT Supervisor running as root (no user in config file)
2019-08-31 19:42:55,752 INFO Included extra file "/etc/supervisor/conf.d/supervisord.conf" during parsing
Unlinking stale socket /var/run/supervisor.sock
2019-08-31 19:42:56,064 INFO RPC interface 'supervisor' initialized
2019-08-31 19:42:56,064 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2019-08-31 19:42:56,065 INFO supervisord started with pid 104
2019-08-31 19:42:57,067 INFO spawned: 'cron' with pid 107
2019-08-31 19:42:58,069 INFO success: cron entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
J e^peu arreter avec Ctrl + C mais jeedom nes'ouvre pas a l'adresse http://localhost:9080/
Une idée ?
Thierry
Moi quand le lance "docker start jeedom-server" , ca bloque a
étape 6 téléchargement de jeedom réussie
All init complete
Start apache2
Failed to connect to bus: No such file or directory
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.65.3. Set the 'ServerName' directive globally to suppress this message
Restarting Apache httpd web server: apache2.
Start sshd
Failed to connect to bus: No such file or directory
start-stop-daemon: warning: failed to kill 84: No such process
Restarting OpenBSD Secure Shell server: sshd.
Start atd
Failed to connect to bus: No such file or directory
/sbin/start-stop-daemon: warning: failed to kill 102: No such process
Stopping deferred execution scheduler: atd.
Starting deferred execution scheduler: atd.
/usr/lib/python2.7/dist-packages/supervisor/options.py:298: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security.
'Supervisord is running as root and it is searching '
2019-08-31 19:42:55,752 CRIT Supervisor running as root (no user in config file)
2019-08-31 19:42:55,752 INFO Included extra file "/etc/supervisor/conf.d/supervisord.conf" during parsing
Unlinking stale socket /var/run/supervisor.sock
2019-08-31 19:42:56,064 INFO RPC interface 'supervisor' initialized
2019-08-31 19:42:56,064 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2019-08-31 19:42:56,065 INFO supervisord started with pid 104
2019-08-31 19:42:57,067 INFO spawned: 'cron' with pid 107
2019-08-31 19:42:58,069 INFO success: cron entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
J e^peu arreter avec Ctrl + C mais jeedom nes'ouvre pas a l'adresse http://localhost:9080/
Une idée ?
Thierry
Qui veut, trouve des solutions, Qui ne veut pas, trouve des excuses
Jeedom, Nas Synology, Motioneye,
RFXCOM, Z-STICK GEN5 - AEON LABS, Passerelle XIAOMI, Passerel Zigbee "home made"...
Jeedom, Nas Synology, Motioneye,
RFXCOM, Z-STICK GEN5 - AEON LABS, Passerelle XIAOMI, Passerel Zigbee "home made"...
Re: [Tuto] installation sécurisé Jeedom avec Docker + périphériques USB
viewtopic.php?f=67&t=45558Teggy a écrit : ↑31 août 2019, 22:20Bonjour
Moi quand le lance "docker start jeedom-server" , ca bloque a
étape 6 téléchargement de jeedom réussie
All init complete
Start apache2
Failed to connect to bus: No such file or directory
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.65.3. Set the 'ServerName' directive globally to suppress this message
Restarting Apache httpd web server: apache2.
Start sshd
Failed to connect to bus: No such file or directory
start-stop-daemon: warning: failed to kill 84: No such process
Restarting OpenBSD Secure Shell server: sshd.
Start atd
Failed to connect to bus: No such file or directory
/sbin/start-stop-daemon: warning: failed to kill 102: No such process
Stopping deferred execution scheduler: atd.
Starting deferred execution scheduler: atd.
/usr/lib/python2.7/dist-packages/supervisor/options.py:298: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security.
'Supervisord is running as root and it is searching '
2019-08-31 19:42:55,752 CRIT Supervisor running as root (no user in config file)
2019-08-31 19:42:55,752 INFO Included extra file "/etc/supervisor/conf.d/supervisord.conf" during parsing
Unlinking stale socket /var/run/supervisor.sock
2019-08-31 19:42:56,064 INFO RPC interface 'supervisor' initialized
2019-08-31 19:42:56,064 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2019-08-31 19:42:56,065 INFO supervisord started with pid 104
2019-08-31 19:42:57,067 INFO spawned: 'cron' with pid 107
2019-08-31 19:42:58,069 INFO success: cron entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
J e^peu arreter avec Ctrl + C mais jeedom nes'ouvre pas a l'adresse http://localhost:9080/
Une idée ?
Thierry
Synology DS216+ / DSM 6.2 / Docker / MariaDB 5
Conteneur : jeedom/Jeedom:master en mode réseau Host - Version Jeedom V3.3
Protocole : MyHOME Play Zigbee/ Xiaomi Aqara / HomeBridge / BLEA
Mon matériel | Tuto MyHOME en Vidéo | Documentation
Conteneur : jeedom/Jeedom:master en mode réseau Host - Version Jeedom V3.3
Protocole : MyHOME Play Zigbee/ Xiaomi Aqara / HomeBridge / BLEA
Mon matériel | Tuto MyHOME en Vidéo | Documentation
Re: [Tuto] installation sécurisé Jeedom avec Docker + périphériques USB
Hello,
Merci pour le tuto
Je viens de tenter vite fait la manip et j'ai un ptit souci d'accès à la base.
Voici les commandes que j'ai utilisé:
J'ai un log au moment du lancement du docker jeedom-http:
Et si je me connecte a la page http://localhost:9080/install/setup.php et que j'essaie de me logger avec
hostname: localhost
port: 3306
username: jeedom
password: jeedom-db
databade: jeedom
je me prends un:
une idée ?
Merci pour le tuto
Je viens de tenter vite fait la manip et j'ai un ptit souci d'accès à la base.
Voici les commandes que j'ai utilisé:
Code : Tout sélectionner
docker run --name jeedom-mysql -v /opt/jeedom/mysql:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=jeedom-db -e MYSQL_USER=jeedom -e MYSQL_PASSWORD=jeedom-db --publish 3306:3306 mariadb:10.1
docker run --net host --name jeedom-http -v /opt/jeedom/html:/var/www/html -e ROOT_PASSWORD=jeedom-http -e APACHE_PORT=9080 -e SSH_PORT=9022 -e MODE_HOST=1 jeedom/jeedom:master
Code : Tout sélectionner
étape 6 téléchargement de jeedom réussie
All init complete
Start apache2
Failed to connect to bus: No such file or directory
Restarting Apache httpd web server: apache2AH00557: apache2: apr_sockaddr_info_get() failed for jcornier-laptop
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
hostname: localhost
port: 3306
username: jeedom
password: jeedom-db
databade: jeedom
je me prends un:
Code : Tout sélectionner
SQLSTATE[HY000] [2002] No such file or directory
Re: [Tuto] installation sécurisé Jeedom avec Docker + périphériques USB
Essaye de remplacer le localhost de ta db par l'ip de l'host.
Si tu n'as toujours rien, verifie au niveau du pare-feu si tu autorise bien les input sur ton port 3306
Si tu n'as toujours rien, verifie au niveau du pare-feu si tu autorise bien les input sur ton port 3306
NAS HP Proliant - OpenMediaVault - Jeedom Docker
Raspberry Pi 3 - MagicMirror
Prusa i3
Capteurs MySensors / Xiaomi / Éclairage Ikea Tradfri
SmarterCoffee / Chromecast & Google Home / Thermostat Netatmo
Raspberry Pi 3 - MagicMirror
Prusa i3
Capteurs MySensors / Xiaomi / Éclairage Ikea Tradfri
SmarterCoffee / Chromecast & Google Home / Thermostat Netatmo
Re: [Tuto] installation sécurisé Jeedom avec Docker + périphériques USB
Merci, j'ai trouvé un autre tuto qui à presque la même approche et qui fonctionne plutôt bien
Je pense que mon pb était en effet dans le hostname qu'il faut mettre a jeedom-mysql
Pour info voici le tuto: http://laboiteajb.fr/jeedom-via-docker/
Et voici la liste des commandes que j'ai utilisé pour lancer un jeedom avec une clé ZWave.
Je pense que mon pb était en effet dans le hostname qu'il faut mettre a jeedom-mysql
Pour info voici le tuto: http://laboiteajb.fr/jeedom-via-docker/
Et voici la liste des commandes que j'ai utilisé pour lancer un jeedom avec une clé ZWave.
Code : Tout sélectionner
docker network create domotic
docker create --name jeedom-mysql -v /opt/jeedom/jeedom-mysql:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=jeedom --expose 3306 --network domotic mariadb:10.1
docker create --name jeedom-server -v /opt/jeedom/jeedom-server/:/var/www/html --device /dev/ttyACM0:/dev/ttyACM0 --publish 9080:80 --publish 9022:22 --network domotic jeedom/jeedom:master
docker start jeedom-mysql
docker start jeedom-server
Re: [Tuto] installation sécurisé Jeedom avec Docker + périphériques USB
Bonjour,
Déjà merci pour le tuto! J'ai bien tenté de le suivre, mais comme dans pas mal de sujet, j'obtiens un message d'erreur lorsque j'essaye d'activer le daemon rfxcom (Timeout waiting status).
Voici ma config, les tests effectués.
1/ Utilisation d'un portable sous ubuntu 18.04
2/ MAJ de mon rfxtrx433e avec le dernier firmware 1025
3/ Connexion du rfxcom
4/ Lancement des containers dockers (mariadb / jeedom) - en mode host ou bridge (j'obtiens le même résultat) - installation from scratch à chaque fois en supprimant les volumes
5/ Configuration du réseau jeedom comme indiqué dans le tuto
6/ Installation du plugin jeedom (activation, installation des dépendances, acttivation du daemon)
Ces différents tests ont été effectués avec 3 câbles USB différents. A chaque fois le même résultat. Lors du lancement daemon, il y a le voyant rouge du rfxcom qui s'allume, puis s'éteint après quelques dizaines de secondes.
Lorsque je me mets en mode host et que je lance la commande netstat -anp | grep 55000, lors du lancement du daemon, je vois bien apparaître le port et je peux même faire un telnet dessus. Mais rien à faire, j'ai toujours le même résultat.
Merci d'avance de votre aide!
Déjà merci pour le tuto! J'ai bien tenté de le suivre, mais comme dans pas mal de sujet, j'obtiens un message d'erreur lorsque j'essaye d'activer le daemon rfxcom (Timeout waiting status).
Voici ma config, les tests effectués.
1/ Utilisation d'un portable sous ubuntu 18.04
2/ MAJ de mon rfxtrx433e avec le dernier firmware 1025
3/ Connexion du rfxcom
4/ Lancement des containers dockers (mariadb / jeedom) - en mode host ou bridge (j'obtiens le même résultat) - installation from scratch à chaque fois en supprimant les volumes
5/ Configuration du réseau jeedom comme indiqué dans le tuto
6/ Installation du plugin jeedom (activation, installation des dépendances, acttivation du daemon)
Ces différents tests ont été effectués avec 3 câbles USB différents. A chaque fois le même résultat. Lors du lancement daemon, il y a le voyant rouge du rfxcom qui s'allume, puis s'éteint après quelques dizaines de secondes.
Lorsque je me mets en mode host et que je lance la commande netstat -anp | grep 55000, lors du lancement du daemon, je vois bien apparaître le port et je peux même faire un telnet dessus. Mais rien à faire, j'ai toujours le même résultat.
Merci d'avance de votre aide!
Code : Tout sélectionner
[2019-12-01 17:16:46][INFO] : Lancement démon rfxcomd : /usr/bin/python /var/www/html/plugins/rfxcom/resources/rfxcomd/rfxcomd.py --device /dev/ttyUSB0 --loglevel debug --socketport 55000 --serialrate 38400 --protocol 12,13,18,20,21,22,23 --callback http://127.0.0.1:80/plugins/rfxcom/core/php/jeeRfxcom.php --apikey xxx --cycle 0.3 --pid /tmp/jeedom/rfxcom/deamon.pid
[2019-12-01 16:16:46][INFO] : Start rfxcomd
[2019-12-01 16:16:46][INFO] : Log level : debug
[2019-12-01 16:16:46][INFO] : Socket port : 55000
[2019-12-01 16:16:46][INFO] : Socket host : 127.0.0.1
[2019-12-01 16:16:46][INFO] : PID file : /tmp/jeedom/rfxcom/deamon.pid
[2019-12-01 16:16:46][INFO] : Device : /dev/ttyUSB0
[2019-12-01 16:16:46][INFO] : Apikey : xxx
[2019-12-01 16:16:46][INFO] : Callback : http://127.0.0.1:80/plugins/rfxcom/core/php/jeeRfxcom.php
[2019-12-01 16:16:46][INFO] : Cycle : 0.3
[2019-12-01 16:16:46][INFO] : Serial rate : 38400
[2019-12-01 16:16:46][INFO] : Serial timeout : 9
[2019-12-01 16:16:46][INFO] : Protocol : 12,13,18,20,21,22,23
[2019-12-01 16:16:46][INFO] : Find device : /dev/ttyUSB0
[2019-12-01 16:16:46][DEBUG] : Writing PID 12807 to /tmp/jeedom/rfxcom/deamon.pid
[2019-12-01 16:16:46][DEBUG] : Init request module v2.12.4
[2019-12-01 16:16:46][DEBUG] : Starting new HTTP connection (1): 127.0.0.1
[2019-12-01 16:16:46][DEBUG] : http://127.0.0.1:80 "GET /plugins/rfxcom/core/php/jeeRfxcom.php?apikey=xxx HTTP/1.1" 200 0
[2019-12-01 16:16:46][DEBUG] : Init serial module v3.2.1
[2019-12-01 16:16:46][DEBUG] : Start listening...
[2019-12-01 16:16:46][DEBUG] : Socket interface started
[2019-12-01 16:16:46][DEBUG] : LoopNetServer Thread started
[2019-12-01 16:16:46][DEBUG] : Listening on: [127.0.0.1:55000]
[2019-12-01 16:16:46][DEBUG] : Open serial port on device: /dev/ttyUSB0, rate 38400, timeout : 9
[2019-12-01 16:16:46][DEBUG] : Open Serialport
[2019-12-01 16:16:46][DEBUG] : flushOutput serial port
[2019-12-01 16:16:46][DEBUG] : flushInput serial port
[2019-12-01 16:16:46][DEBUG] : flushOutput serial port
[2019-12-01 16:16:46][DEBUG] : flushInput serial port
[2019-12-01 16:16:46][DEBUG] : Read Socket Thread Launched
[2019-12-01 16:16:46][DEBUG] : Read Device Thread Launched
[2019-12-01 16:16:47][DEBUG] : Send rfxcomd_reset
[2019-12-01 16:16:47][DEBUG] : Write data to serial port : 0D 00 00 00 00 00 00 00 00 00 00 00 00 00
[2019-12-01 16:16:47][DEBUG] : Sleep 1 sec
[2019-12-01 16:16:48][DEBUG] : flushInput serial port
[2019-12-01 16:16:48][DEBUG] : Send get status test
[2019-12-01 16:16:48][DEBUG] : Write data to serial port : 0D 00 00 01 02 00 00 00 00 00 00 00 00 00
[2019-12-01 17:16:49][INFO] : Démon RFXcom lancé
[2019-12-01 16:17:15][ERROR] : Timeout waiting status
[2019-12-01 16:17:15][DEBUG] : Shutdown
[2019-12-01 16:17:15][DEBUG] : Removing PID file /tmp/jeedom/rfxcom/deamon.pid
[2019-12-01 16:17:16][DEBUG] : LoopNetServer Thread stopped
[2019-12-01 16:17:16][DEBUG] : Close serial port
[2019-12-01 16:17:16][DEBUG] : Serial port closed
[2019-12-01 16:17:16][DEBUG] : Exit 0
Re: [Tuto] installation sécurisé Jeedom avec Docker + périphériques USB
Fais nous voir les commandes ou le docker-compose que tu as utilisé pour lancer tes containers.
tu as bien monté le device série avec un --volume /dev/ttyUSB0:/dev/ttyUSB0 ?
tu as bien monté le device série avec un --volume /dev/ttyUSB0:/dev/ttyUSB0 ?
Re: [Tuto] installation sécurisé Jeedom avec Docker + périphériques USB
Voici pour les commandes
J'ai le sentiment que l'ajout du rfxcom dans le container fonctionne, car je vois le voyant rouge de gauche s'allumer quand je lance le daemon. Mais par contre, j'utilise le param --device et non --volume. Je vais essayer tous de suite
Code : Tout sélectionner
$ ls -l /dev/serial/by-id | grep RFX
lrwxrwxrwx 1 root root 13 déc. 1 17:16 usb-RFXCOM_RFXtrx433_A1Y06XTB-if00-port0 -> ../../ttyUSB0
$ docker run --name jeedom-mysql -v /opt/jeedom/mysql:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=jeedom -e MYSQL_USER=jeedom -e MYSQL_PASSWORD=jeedom --detach --publish 3306:3306 --restart always mariadb:10.1
$ docker create --net bridge --link jeedom-mysql --name jeedom-server -v /opt/jeedom/html:/var/www/html -e ROOT_PASSWORD=jeedom --device /dev/serial/by-id/usb-RFXCOM_RFXtrx433_A1Y06XTB-if00-port0:/dev/ttyUSB0 --publish 9080:80 --publish 9022:22 --restart always jeedom/jeedom:master
$ docker start jeedom-server && docker logs -f jeedom-server
Re: [Tuto] installation sécurisé Jeedom avec Docker + périphériques USB
Avec le volume, la connexion ne semble pas se faire, et aucune lumière rouge au niveau du rfxcom lors du lancement du daemon.
Code : Tout sélectionner
[2019-12-01 18:12:53][INFO] : Lancement démon rfxcomd : /usr/bin/python /var/www/html/plugins/rfxcom/resources/rfxcomd/rfxcomd.py --device /dev/ttyUSB0 --loglevel debug --socketport 55000 --serialrate 38400 --protocol 12,13,18,20,21,22,23 --callback http://127.0.0.1:80/plugins/rfxcom/core/php/jeeRfxcom.php --apikey vWX70y0fPn5gTKuTS6Upfy05WFVuM8sB --cycle 0.3 --pid /tmp/jeedom/rfxcom/deamon.pid
Error: importing module jeedom.jeedom
[2019-12-01 18:13:23][ERROR] : Impossible de lancer le démon RFXcom, vérifiez le log rfxcmd
Qui est en ligne ?
Utilisateurs parcourant ce forum : Aucun utilisateur inscrit et 2 invités