Installation jeedom Docker Synology

Quelques petites suggestions pour améliorer encore la documentation sur ce sujet:
Préciser qu’il faut créer les répertoires sur le Synology
/docker/jeedom/db
/docker/jeedom/html
Et les réinitialiser probablement si on refait une installation.
Et remettre textuellement dans la doc les paramètres (pour faciliter le copier-coller et éviter les erreurs de resaisie par exemple)
/docker/jeedom/db /var/lib/mysql
/docker/jeedom/html /var/www/html
Merci

Sinon @Loic je confirme que la procédure fonctionne dans ces conditions, j’arrive bien à ma mire de login:

Merci!

Je vais voir pour les remarque mais pas oublier qu’il n’y a pas de support officiel docker c’est juste la en best effort pour vous aider. On a pas vraiment de temps a consacrer la dessus malheureusement

Oui, je comprends bien !
Merci encore!

Cette image ne s’installera pas correctement si vous choisissez le mode Host

Start init
	
Start jeedom installation
	
--2020-06-12 16:12:17--  https://raw.githubusercontent.com/jeedom/core/alpha/install/install.sh
	
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.120.133
	
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.120.133|:443... connected.
	
HTTP request sent, awaiting response... 200 OK
	
Length: 15297 (15K) [text/plain]
	
Saving to: '/root/install.sh'
	
	
/root/install.sh      0%[                    ]       0  --.-KB/s               
/root/install.sh    100%[===================>]  14.94K  --.-KB/s    in 0.003s  
	
	
2020-06-12 16:12:18 (5.73 MB/s) - '/root/install.sh' saved [15297/15297]
	
	
Welcome to Jeedom installer
	
Jeedom version : V4-stable
	
Web folder : /var/www/html
	
Installation type : standard
	
---------------------------------------------------------------------
	
Commence l'étape 6 téléchargement de jeedom
	
--2020-06-12 16:12:18--  https://github.com/jeedom/core/archive/V4-stable.zip
	
Resolving github.com (github.com)... 140.82.118.3
	
Connecting to github.com (github.com)|140.82.118.3|:443... connected.
	
HTTP request sent, awaiting response... 302 Found
	
Location: https://codeload.github.com/jeedom/core/zip/V4-stable [following]
	
--2020-06-12 16:12:18--  https://codeload.github.com/jeedom/core/zip/V4-stable
	
Resolving codeload.github.com (codeload.github.com)... 140.82.112.10
	
Connecting to codeload.github.com (codeload.github.com)|140.82.112.10|:443... connected.
	
HTTP request sent, awaiting response... 200 OK
Length: 44873438 (43M) [application/zip]
368 éléments.
Start init
	
Start jeedom installation
	
--2020-06-12 16:12:17--  https://raw.githubusercontent.com/jeedom/core/alpha/install/install.sh
	
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.120.133
	
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.120.133|:443... connected.
	
HTTP request sent, awaiting response... 200 OK
	
Length: 15297 (15K) [text/plain]
	
Saving to: '/root/install.sh'
	
	
/root/install.sh      0%[                    ]       0  --.-KB/s               
/root/install.sh    100%[===================>]  14.94K  --.-KB/s    in 0.003s  
	
	
2020-06-12 16:12:18 (5.73 MB/s) - '/root/install.sh' saved [15297/15297]
	
	
Welcome to Jeedom installer
	
Jeedom version : V4-stable
	
Web folder : /var/www/html
	
Installation type : standard
	
---------------------------------------------------------------------
	
Commence l'étape 6 téléchargement de jeedom
	
--2020-06-12 16:12:18--  https://github.com/jeedom/core/archive/V4-stable.zip
	
Resolving github.com (github.com)... 140.82.118.3
	
Connecting to github.com (github.com)|140.82.118.3|:443... connected.
	
HTTP request sent, awaiting response... 302 Found
	
Location: https://codeload.github.com/jeedom/core/zip/V4-stable [following]
	
--2020-06-12 16:12:18--  https://codeload.github.com/jeedom/core/zip/V4-stable
	
Resolving codeload.github.com (codeload.github.com)... 140.82.112.10
	
Connecting to codeload.github.com (codeload.github.com)|140.82.112.10|:443... connected.
	
HTTP request sent, awaiting response... 200 OK
	
Length: 44873438 (43M) [application/zip]
	
Saving to: '/tmp/jeedom.zip'
	
	
/tmp/jeedom.zip       0%[                    ]       0  --.-KB/s               
/tmp/jeedom.zip       0%[                    ]  64.16K   268KB/s               
/tmp/jeedom.zip       0%[                    ] 209.56K   435KB/s               
/tmp/jeedom.zip       1%[                    ] 480.27K   664KB/s               
/tmp/jeedom.zip       2%[                    ]   1.27M  1.31MB/s               
/tmp/jeedom.zip       7%[>                   ]   3.24M  2.68MB/s               
/tmp/jeedom.zip      19%[==>                 ]   8.25M  5.45MB/s               
/tmp/jeedom.zip      36%[======>             ]  15.74M  8.96MB/s               
/tmp/jeedom.zip      55%[==========>         ]  23.75M  11.9MB/s               
/tmp/jeedom.zip      75%[==============>     ]  32.11M  14.3MB/s               
/tmp/jeedom.zip      94%[=================>  ]  40.63M  16.7MB/s               
/tmp/jeedom.zip     100%[===================>]  42.79M  17.0MB/s    in 2.5s    
	
	
2020-06-12 16:12:21 (17.0 MB/s) - '/tmp/jeedom.zip' saved [44873438/44873438]
	
	
étape 6 téléchargement de jeedom réussie
	
WARNING: The host 'jeedom' could not be looked up with /usr//bin/resolveip.
	
This probably means that your libc libraries are not 100 % compatible
	
with this binary MariaDB version. The MariaDB daemon, mysqld, should work
	
normally with the exception that host name resolving will not work.
	
This means that you should use IP addresses instead of hostnames
	
when specifying MariaDB privileges !
	
Installing MariaDB/MySQL system tables in '/var/lib/mysql/' ...
	
OK
	
	
To start mysqld at boot time you have to copy
	
support-files/mysql.server to the right place for your system
	
	
	
PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !
	
To do so, start the server, then issue the following commands:
	
	
'/usr//bin/mysqladmin' -u root password 'new-password'
	
'/usr//bin/mysqladmin' -u root -h 127.0.0.1
	
127.0.0.1 password 'new-password'
	
	
Alternatively you can run:
'/usr//bin/mysql_secure_installation'
368 éléments.
HTTP request sent, awaiting response... 200 OK
	
Length: 44873438 (43M) [application/zip]
	
Saving to: '/tmp/jeedom.zip'
	
	
/tmp/jeedom.zip       0%[                    ]       0  --.-KB/s               
/tmp/jeedom.zip       0%[                    ]  64.16K   268KB/s               
/tmp/jeedom.zip       0%[                    ] 209.56K   435KB/s               
/tmp/jeedom.zip       1%[                    ] 480.27K   664KB/s               
/tmp/jeedom.zip       2%[                    ]   1.27M  1.31MB/s               
/tmp/jeedom.zip       7%[>                   ]   3.24M  2.68MB/s               
/tmp/jeedom.zip      19%[==>                 ]   8.25M  5.45MB/s               
/tmp/jeedom.zip      36%[======>             ]  15.74M  8.96MB/s               
/tmp/jeedom.zip      55%[==========>         ]  23.75M  11.9MB/s               
/tmp/jeedom.zip      75%[==============>     ]  32.11M  14.3MB/s               
/tmp/jeedom.zip      94%[=================>  ]  40.63M  16.7MB/s               
/tmp/jeedom.zip     100%[===================>]  42.79M  17.0MB/s    in 2.5s    
	
	
2020-06-12 16:12:21 (17.0 MB/s) - '/tmp/jeedom.zip' saved [44873438/44873438]
	
	
étape 6 téléchargement de jeedom réussie
	
WARNING: The host 'jeedom' could not be looked up with /usr//bin/resolveip.
	
This probably means that your libc libraries are not 100 % compatible
	
with this binary MariaDB version. The MariaDB daemon, mysqld, should work
	
normally with the exception that host name resolving will not work.
	
This means that you should use IP addresses instead of hostnames
	
when specifying MariaDB privileges !
	
Installing MariaDB/MySQL system tables in '/var/lib/mysql/' ...
	
OK
	
	
To start mysqld at boot time you have to copy
	
support-files/mysql.server to the right place for your system
	
	
	
PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !
	
To do so, start the server, then issue the following commands:
	
	
'/usr//bin/mysqladmin' -u root password 'new-password'
	
'/usr//bin/mysqladmin' -u root -h 127.0.0.1
	
127.0.0.1 password 'new-password'
	
	
Alternatively you can run:
	
'/usr//bin/mysql_secure_installation'
	
	
which will also give you the option of removing the test
	
databases and anonymous user created by default.  This is
	
strongly recommended for production servers.
	
	
See the MariaDB Knowledgebase at http://mariadb.com/kb or the
	
MySQL manual for more instructions.
	
	
You can start the MariaDB daemon with:
	
cd '/usr/' ; /usr//bin/mysqld_safe --datadir='/var/lib/mysql/'
	
	
You can test the MariaDB daemon with mysql-test-run.pl
	
cd '/usr//mysql-test' ; perl mysql-test-run.pl
	
	
Please report any problems at http://mariadb.org/jira
	
	
The latest information about MariaDB is available at http://mariadb.org/.
	
You can find additional information about the MySQL part at:
	
http://dev.mysql.com
	
Consider joining MariaDB's strong and vibrant community:
	
https://mariadb.org/get-involved/
	
	
[....] Stopping MariaDB database server: mysqld[ ok .
	
[....] Starting MariaDB database server: mysqld . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .[FAIL failed!
	
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
	
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
	
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
	
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
	
Welcome to Jeedom installer
Jeedom version : V4-stable
368 éléments.
'/usr//bin/mysql_secure_installation'
	
	
which will also give you the option of removing the test
	
databases and anonymous user created by default.  This is
	
strongly recommended for production servers.
	
	
See the MariaDB Knowledgebase at http://mariadb.com/kb or the
	
MySQL manual for more instructions.
	
	
You can start the MariaDB daemon with:
	
cd '/usr/' ; /usr//bin/mysqld_safe --datadir='/var/lib/mysql/'
	
	
You can test the MariaDB daemon with mysql-test-run.pl
	
cd '/usr//mysql-test' ; perl mysql-test-run.pl
	
	
Please report any problems at http://mariadb.org/jira
	
	
The latest information about MariaDB is available at http://mariadb.org/.
	
You can find additional information about the MySQL part at:
	
http://dev.mysql.com
	
Consider joining MariaDB's strong and vibrant community:
	
https://mariadb.org/get-involved/
	
	
[....] Stopping MariaDB database server: mysqld[ ok .
	
[....] Starting MariaDB database server: mysqld . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .[FAIL failed!
	
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
	
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
	
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
	
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
	
Welcome to Jeedom installer
	
Jeedom version : V4-stable
	
Web folder : /var/www/html
	
Installation type : standard
	
---------------------------------------------------------------------
	
Commence l'étape 10 installation de jeedom
	
[START INSTALL]
	
****Install jeedom at (2020-06-12 18:13:05)****
	
	
Installation de Jeedom
	
Installation de la base de données...***ERREUR*** SQLSTATE[HY000] [2002] No such file or directory
	
SQLSTATE[HY000] [2002] No such file or directory
	
SQLSTATE[HY000] [2002] No such file or directory
	
SQLSTATE[HY000] [2002] No such file or directory
	
SQLSTATE[HY000] [2002] No such file or directory
	
SQLSTATE[HY000] [2002] No such file or directory
	
SQLSTATE[HY000] [2002] No such file or directory
	
SQLSTATE[HY000] [2002] No such file or directory
	
SQLSTATE[HY000] [2002] No such file or directory
	
SQLSTATE[HY000] [2002] No such file or directory
	
SQLSTATE[HY000] [2002] No such file or directory
	
SQLSTATE[HY000] [2002] No such file or directory
	
SQLSTATE[HY000] [2002] No such file or directory
	
SQLSTATE[HY000] [2002] No such file or directory
	
SQLSTATE[HY000] [2002] No such file or directory
	
SQLSTATE[HY000] [2002] No such file or directory
	
SQLSTATE[HY000] [2002] No such file or directory
	
SQLSTATE[HY000] [2002] No such file or directory
	
SQLSTATE[HY000] [2002] No such file or directory
	
SQLSTATE[HY000] [2002] No such file or directory
SQLSTATE[HY000] [2002] No such file or directory
368 éléments.
Welcome to Jeedom installer
Jeedom version : V4-stable
Web folder : /var/www/html
Installation type : standard
---------------------------------------------------------------------
Commence l'étape 10 installation de jeedom
[START INSTALL]
****Install jeedom at (2020-06-12 18:13:05)****
Installation de Jeedom
Installation de la base de données...***ERREUR*** SQLSTATE[HY000] [2002] No such file or directory
SQLSTATE[HY000] [2002] No such file or directory
SQLSTATE[HY000] [2002] No such file or directory
SQLSTATE[HY000] [2002] No such file or directory
SQLSTATE[HY000] [2002] No such file or directory
SQLSTATE[HY000] [2002] No such file or directory
SQLSTATE[HY000] [2002] No such file or directory
SQLSTATE[HY000] [2002] No such file or directory
SQLSTATE[HY000] [2002] No such file or directory
SQLSTATE[HY000] [2002] No such file or directory
SQLSTATE[HY000] [2002] No such file or directory
SQLSTATE[HY000] [2002] No such file or directory
SQLSTATE[HY000] [2002] No such file or directory
SQLSTATE[HY000] [2002] No such file or directory
SQLSTATE[HY000] [2002] No such file or directory
SQLSTATE[HY000] [2002] No such file or directory
SQLSTATE[HY000] [2002] No such file or directory
SQLSTATE[HY000] [2002] No such file or directory
SQLSTATE[HY000] [2002] No such file or directory
SQLSTATE[HY000] [2002] No such file or directory
SQLSTATE[HY000] [2002] No such file or directory
SQLSTATE[HY000] [2002] No such file or directory
SQLSTATE[HY000] [2002] No such file or directory
SQLSTATE[HY000] [2002] No such file or directory
SQLSTATE[HY000] [2002] No such file or directory
SQLSTATE[HY000] [2002] No such file or directory
SQLSTATE[HY000] [2002] No such file or directory
SQLSTATE[HY000] [2002] No such file or directory
OK
PHP Fatal error:  Uncaught PDOException: SQLSTATE[HY000] [2002] No such file or directory in /var/www/html/core/class/DB.class.php:40
Stack trace:
#0 /var/www/html/core/class/DB.class.php(40): PDO->__construct('mysql:host=loca...', 'jeedom', 'cb462b52d013b5b', Array)
#1 /var/www/html/core/class/DB.class.php(50): DB::initConnection()
#2 /var/www/html/core/class/DB.class.php(82): DB::getConnection()
#3 /var/www/html/core/class/config.class.php(173): DB::Prepare('SELECT `key`,`v...', Array, 1)
#4 /var/www/html/core/class/translate.class.php(34): config::byKeys(Array)
#5 /var/www/html/core/class/translate.class.php(151): translate::getConfig('language', 'fr_FR')
#6 /var/www/html/core/class/translate.class.php(75): translate::getLanguage()
#7 /var/www/html/core/class/translate.class.php(54): translate::exec('{{Chauffage}}', '/var/www/html/c...', false)
#8 /var/www/html/core/class/translate.class.php(165): translate::sentence('Chauffage', '/var/www/html/c...', false)
#9 /var/www/html/core/config/jeedom.config.php(23): __('Chauffage' in /var/www/html/core/class/DB.class.php on line 40
Erreur durant l'installation : SQLSTATE[HY000] [2002] No such file or directoryDétails : Array
(
    [0] => Array
        (
            [file] => /var/www/html/core/class/DB.class.php
            [line] => 40
            [function] => __construct
            [class] => PDO
368 éléments.
SQLSTATE[HY000] [2002] No such file or directory
SQLSTATE[HY000] [2002] No such file or directory
SQLSTATE[HY000] [2002] No such file or directory
SQLSTATE[HY000] [2002] No such file or directory
SQLSTATE[HY000] [2002] No such file or directory
SQLSTATE[HY000] [2002] No such file or directory
SQLSTATE[HY000] [2002] No such file or directory
SQLSTATE[HY000] [2002] No such file or directory
SQLSTATE[HY000] [2002] No such file or directory
OK
PHP Fatal error:  Uncaught PDOException: SQLSTATE[HY000] [2002] No such file or directory in /var/www/html/core/class/DB.class.php:40
Stack trace:
#0 /var/www/html/core/class/DB.class.php(40): PDO->__construct('mysql:host=loca...', 'jeedom', 'cb462b52d013b5b', Array)
#1 /var/www/html/core/class/DB.class.php(50): DB::initConnection()
#2 /var/www/html/core/class/DB.class.php(82): DB::getConnection()
#3 /var/www/html/core/class/config.class.php(173): DB::Prepare('SELECT `key`,`v...', Array, 1)
#4 /var/www/html/core/class/translate.class.php(34): config::byKeys(Array)
#5 /var/www/html/core/class/translate.class.php(151): translate::getConfig('language', 'fr_FR')
#6 /var/www/html/core/class/translate.class.php(75): translate::getLanguage()
#7 /var/www/html/core/class/translate.class.php(54): translate::exec('{{Chauffage}}', '/var/www/html/c...', false)
#8 /var/www/html/core/class/translate.class.php(165): translate::sentence('Chauffage', '/var/www/html/c...', false)
#9 /var/www/html/core/config/jeedom.config.php(23): __('Chauffage' in /var/www/html/core/class/DB.class.php on line 40
Erreur durant l'installation : SQLSTATE[HY000] [2002] No such file or directoryDétails : Array
(
    [0] => Array
        (
            [file] => /var/www/html/core/class/DB.class.php
            [line] => 40
            [function] => __construct
            [class] => PDO
            [type] => ->
            [args] => Array
                (
                    [0] => mysql:host=localhost;port=3306;dbname=jeedom
                    [1] => jeedom
                    [2] => cb462b52d013b5b
                    [3] => Array
                        (
                            [1002] => SET NAMES utf8
                            [12] => 1
                        )
                )
        )
    [1] => Array
        (
            [file] => /var/www/html/core/class/DB.class.php
            [line] => 50
            [function] => initConnection
            [class] => DB
            [type] => ::
            [args] => Array
                (
                )
        )
    [2] => Array
	
	368 éléments.
        )
	
	
    [12] => Array
	
        (
	
            [file] => /var/www/html/install/install.php
	
            [line] => 53
	
            [args] => Array
	
                (
	
                    [0] => /var/www/html/core/php/core.inc.php
	
                )
	
	
            [function] => require_once
	
        )
	
	
)
	
[END INSTALL ERROR]
	
Ne peut installer jeedom - Annulation
	
Welcome to Jeedom installer
	
Jeedom version : V4-stable
	
Web folder : /var/www/html
	
Installation type : standard
	
---------------------------------------------------------------------
	
Commence l'étape 11 post jeedom
	
no crontab for root
	
étape 11 post jeedom réussie
	
Start atd
	
[....] Stopping deferred execution scheduler: atd[ ok .
	
[....] Starting deferred execution scheduler: atd[ ok .
	
Starting mysql
	
[....] Stopping MariaDB database server: mysqld[ ok .
	
[....] Starting MariaDB database server: mysqld . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .[FAIL failed!
	
All init complete
	
Start apache2
	
[....] Starting Apache httpd web server: apache2AH00557: apache2: apr_sockaddr_info_get() failed for jeedom
	
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
	
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
	
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
	
no listening sockets available, shutting down
	
AH00015: Unable to open logs
	
Action 'start' failed.
	
The Apache error log may have more information.
[ ok .

C’est possible oui et la je n’ai pas les competences pour corriger désolé

Bonjour @Loic

Regarde mon tuto

Si vous voulez que je modifie il faut me dire quoi exactement je n’ai malheureusement pas de temps a consacrer a ca

Je n’ai effectivement testé que le mode bridge…
Heureusement que mon Synology refonctionne en mode bridge depuis peu… sinon j’aurai été embêté de ne pas pouvoir utiliser le mode host.
@Didier3L tu penses que tu peux aider Loic?
Je suis prêt à tester si vous avez besoin.

Cela ne fonctionnera correctement qu’avec la création d’un réseau macvlan

Il te suffit de suivre mon tuto

Il est suffisamment clair pour ne pas se tromper

Oui j’ai vu qu’il était très complet et précis.
Je vais sûrement essayer car j’ai un truc bizarre, j’ai recopié la même configuration sur mes 2 instances jeedom, mais sur la nouvelle le plugin n’arrive pas à se connecter à la Gateway Tradfri alors qu’ils partagent la même clef… et pointe sur la même ip.

J’ai peur que ce sit un problème lié à ma seconde installation via container Docker sur Nas Synology en mode bridge…
Il faut peut être passer en mode host ou macvlan…

@Didier3L tu ne voudrais pas packager ce que tu as fait en package Synology ?
Ou voir si on peut modifier l’image du container Jeedom officiel mais je ne pense pas puisqu’il y a des commandes hors container…

C’est ce qui est fait quand tu suis le tuto. Regarde dans image du paquet docker et tu verras l’image créé grâce au Dockerfile

Ensuite quand ton conteneur fonctionne avec Jeedom installé tu peux sauvegarder ton image. Voir également la partie sauvegarde du tuto

Il faut savoir que le paquet docker de Synology est basic en terme de configuration il est impossible de créer des configuration spécifiques.

C’est pour cela qu’il va falloir apprendre à savoir faire avec les outils en ligne de commande

Ok, pas de soucis, je suis habitué pour ma part, mais je pensais à ceux pour qui cela pourrait être une difficulté…
Moi il me faut surtout un peu de temps et de courage pour me lancer :slightly_smiling_face:

Je te tiendrais au courant.
Merci

Dans la procédure est indiqué en pré-requis: Drivers USB jadahl/drivers_6.2/ à installer.
Ils servent à quoi? Pour connecter ensuite des clefs USB Zigbee reconnues par le NAS?
J’ai récupéré le spk sur le site

Fichier récupéré : UsbSerialDrivers_88f6281-6.2_6-4.spk

Mais j’ai l’erreur suivante à l’installation manuel dans le Centre de Paquet:

Est-ce le bon paquet?

Je suis bien en DSM 6.2:
image

De plus j’imagine que l’on peut (doit!) changer les mots de passe définis par défaut dans le docker-compose, ou sont-ils utilisés tels quels par ailleurs?

Les PUID et PGID servent pour le propriétaire du container (et donc des process jeedom et mysql sous(jacents?)
Peut-on mettre le compte admin?
Quel incidence?

N.B. : pour ceux qui n’ont pas de volume1 par défaut sur leur DiskStation, il faut penser à le changer par le bon nom de volume (volume2 par exemple) ou créer un lien symbolique vers volume1 à la racine…

N.B.2 : j’ai suivi toute la procédure (sauf l’installation du driver USB vu que je n’y arrive pas et que je n’ai pas de clef USB connecté à mon NAS pour le moment, j’ai viré les lignes dans le docker-compose), mais lors du lancement du container, j’ai l’erreur suivante:


J’imagine une erreur de syntaxe dans mon fichier init.sh, mais là je ne vois pas car j’ai procédé par copier-coller…
Encoding?

Merci de ton aide

J’ai l’impression que c’est un problème de syntaxe sur la ligne
exec >> $log_file 2>&1
et de shell.

A priori ce script devrait s’interpréter avec bash…
J’ai vérifié j’ai bien l’interpréteur /bin/bash sur mon NAS:
root@DiskStation415:/volume3/docker/jeedom-v4# which bash
/bin/bash

Ne faudrait-il pas écrire
exec >> &> $log_file

Edit 1 : après des copier/coller bizarres, le script est passé en l’état…
Un caractére spécial qui a dû s’incruster… (Un CR LF manquant probablement)
L’installation est en cours, je te tiens au courant…

Edit 2 : l"installation s’est bien passée, le container est démarré, je teste les plugins
Edit 3 : malgré l’utilisation du réseau macvlan, mon Jeedom n’arrive pas à se connecter à la passerelle Tradfri;
Echec de la requête http : http://127.0.0.1:55025/device/operation?id=65537&type=light&operation={« onOff »%3Atrue}&apikey=B0HkQPPjhhZLrTNI4BVadWYk04Ki5mSh Curl error : Failed to connect to 127.0.0.1 port 55025: Connection refused
Bizarre le curl sur la boucle locale…
@Didier3L une idée? Ou c’est normal car pas supporté?
J’ai désactivé mon plugin Ikea en attendant sur cette instance Jeedom

J’ai aussi posté ce soucis dans Problème plugin Ikea - #22 par Superbabesldiers

Bonjour à tous,

Et tout d’abord merci à Didier3L pour ses tutos : ils m’ont permis d’installer dans un premier Jeedom dans un Docker en mode Host, puis récemment sous le réseau macvlan.

Justement à ce sujet, depuis que j’ai changé l’installation de mon jeedom, je n’ai plus accès au broker Mosquitto. Il m’indique qu’il est offline ; or, le protocole zigbee2mqtt dialogue bien avec le broker. Et quand je rebascule vers mon autre jeedom (en mode host), il trouve bien le broker. (Je précise que je désactive l’un quand je suis sur l’autre).

Une idée d’où peut venir mon problème?

Voilà le log : jmqtt.log (44,3 Ko)

D’avance merci.

l’adresse IP 192.168.1.194 est celle de son Syno ?
broker Mosquitto est installé sur ton syno ?

192.168.1.194 est bien l’adresse de mon Syno et le broker Mosquitto est installé dans Docker sur ce même Synology

Alors c’est ça le problème

SYNOLOGY interdit a un conteneur de contacter le NAS sur sa propre adresse IP pour des raisons de sécurité

Regarde la partie Routage de l’adresse IP du sujet

Une fois ton adresse Ip créé tu devras utiliser cette adresse pour joindre ton Broker

Merci pour ta réponse.
J’ai alors trois questions (de débutant) :

  • que signifie « /32 » dans 192.168.1.241/32 ou « /29 » dans 192.168.1.240/29 ?
  • cette ligne « ip route add 192.168.1.240/29 dev macvlan-br0 » permet de router vers l’adresse ip de Jeedom?
  • tu dis :

SYNOLOGY interdit a un conteneur de contacter le NAS sur sa propre adresse IP pour des raisons de sécurité

Alors, je ne comprends pas pourquoi mon ancien Jeedom en mode host, contenu dans un Docker également, arrive à dialoguer avec le broker.
(D’ailleurs, avec Mosquitto (le paquet), le problème est exactement le même.)

Cela permet de définir les plages d’IP Calculateur de Masque IPv4 et IPv6

jeedom vers le nas

Cela marche justement parce que tu es en host. Mais le mode Host est à proscrire pour des raisons de sécurité.
Les droits SUDO ne fonctionnent pas en mode Host à moins de modifier le système en mode dégradé.

https://community.jeedom.com/t/tuto-obsolete-probleme-de-securite-installation-de-jeedom-sur-synology-avec-docker-en-mode-host/5290