Demon KO: Connection refused


Informations Jeedom

Core : 4.4.8.1 (V4-stable)
DNS Jeedom : non

Plugin : Eufy
Version : 2024-06-22 19:59:33 (stable)
Statut Démon : Stoppé - (2024-07-04 14:55:05)

Bonjour,

J’ai crée un compte dédié pour jeedom depuis l’app
Pas de double authent
Mes caméras sont les S340 (celles avec panneaux solaires)

J’ai installé le plugin Docker management :

+ echo '*******************Begin of package installation******************'
*******************Begin of package installation******************
+ touch /tmp/jeedom_install_in_progress_docker2
+ echo 1
+ echo 2
+ sudo chmod +x /var/www/html/core/class/../../plugins/docker2/resources/pre-install.sh
+ sudo /var/www/html/core/class/../../plugins/docker2/resources/pre-install.sh
Docker arch found : arm64
Hit:1 http://security.debian.org/debian-security bullseye-security InRelease
Hit:2 http://deb.debian.org/debian bullseye InRelease
Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
Hit:4 http://archive.raspberrypi.org/debian bullseye InRelease
Hit:5 https://deb.nodesource.com/node_18.x nodistro InRelease
Hit:6 https://download.docker.com/linux/debian bullseye InRelease
Reading package lists...
+ echo 3
+ sudo killall apt apt-get unattended-upgr
apt: no process found
apt-get: no process found
+ sudo rm /var/lib/apt/lists/lock
+ sudo rm /var/cache/apt/archives/lock
+ sudo rm /var/lib/dpkg/lock /var/lib/dpkg/lock-frontend
+ sudo sudo dpkg --configure -a --force-confdef
+ sudo apt update
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Hit:1 http://security.debian.org/debian-security bullseye-security InRelease
Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease
Hit:3 http://deb.debian.org/debian bullseye InRelease
Hit:4 http://deb.debian.org/debian bullseye-updates InRelease
Hit:5 https://download.docker.com/linux/debian bullseye InRelease
Hit:6 https://deb.nodesource.com/node_18.x nodistro InRelease
Reading package lists...
Building dependency tree...
Reading state information...
All packages are up to date.
+ echo 4
+ sudo apt install -o Dpkg::Options::=--force-confdef -y apt-transport-https
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
apt-transport-https is already the newest version (2.2.4).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
+ echo 5
+ sudo apt install -o Dpkg::Options::=--force-confdef -y ca-certificates
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
ca-certificates is already the newest version (20210119).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
+ echo 6
+ sudo apt install -o Dpkg::Options::=--force-confdef -y curl
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
curl is already the newest version (7.74.0-1.3+deb11u12).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
+ echo 7
+ sudo apt install -o Dpkg::Options::=--force-confdef -y gnupg
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
gnupg is already the newest version (2.2.27-2+deb11u2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
+ echo 8
+ sudo apt install -o Dpkg::Options::=--force-confdef -y lsb-release
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
lsb-release is already the newest version (11.1.0).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
+ echo 9
+ sudo apt install -o Dpkg::Options::=--force-confdef -y docker-ce
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
docker-ce is already the newest version (5:27.0.3-1~debian.11~bullseye).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
+ echo 10
+ sudo apt install -o Dpkg::Options::=--force-confdef -y docker-ce-cli
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
docker-ce-cli is already the newest version (5:27.0.3-1~debian.11~bullseye).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
+ echo 11
+ sudo apt install -o Dpkg::Options::=--force-confdef -y containerd.io
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
containerd.io is already the newest version (1.7.18-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
+ echo 12
+ sudo chmod +x /var/www/html/core/class/../../plugins/docker2/resources/post-install.sh
+ sudo /var/www/html/core/class/../../plugins/docker2/resources/post-install.sh
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  1 22.8M    1  318k    0     0   226k      0  0:01:43  0:00:01  0:01:42  322k
  5 22.8M    5 1326k    0     0   550k      0  0:00:42  0:00:02  0:00:40  666k
  8 22.8M    8 2062k    0     0   605k      0  0:00:38  0:00:03  0:00:35  691k
 11 22.8M   11 2766k    0     0   627k      0  0:00:37  0:00:04  0:00:33  694k
 16 22.8M   16 3742k    0     0   691k      0  0:00:33  0:00:05  0:00:28  750k
 20 22.8M   20 4798k    0     0   748k      0  0:00:31  0:00:06  0:00:25  895k
 23 22.8M   23 5438k    0     0   734k      0  0:00:31  0:00:07  0:00:24  823k
 28 22.8M   28 6622k    0     0   787k      0  0:00:29  0:00:08  0:00:21  911k
 34 22.8M   34 7994k    0     0   849k      0  0:00:27  0:00:09  0:00:18 1045k
 38 22.8M   38 8906k    0     0   855k      0  0:00:27  0:00:10  0:00:17 1032k
 41 22.8M   41 9742k    0     0   853k      0  0:00:27  0:00:11  0:00:16  989k
 46 22.8M   46 10.6M    0     0   849k      0  0:00:27  0:00:12  0:00:15 1007k
 49 22.8M   49 11.2M    0     0   859k      0  0:00:27  0:00:13  0:00:14  979k
 53 22.8M   53 12.0M    0     0   858k      0  0:00:27  0:00:14  0:00:13  874k
 56 22.8M   56 12.9M    0     0   863k      0  0:00:27  0:00:15  0:00:12  879k
 61 22.8M   61 14.0M    0     0   878k      0  0:00:26  0:00:16  0:00:10  934k
 66 22.8M   66 15.2M    0     0   894k      0  0:00:26  0:00:17  0:00:09 1017k
 71 22.8M   71 16.2M    0     0   904k      0  0:00:25  0:00:18  0:00:07 1027k
 75 22.8M   75 17.1M    0     0   905k      0  0:00:25  0:00:19  0:00:06 1042k
 79 22.8M   79 18.0M    0     0   907k      0  0:00:25  0:00:20  0:00:05 1042k
 83 22.8M   83 19.1M    0     0   915k      0  0:00:25  0:00:21  0:00:04 1036k
 85 22.8M   85 19.5M    0     0   893k      0  0:00:26  0:00:22  0:00:04  893k
 90 22.8M   90 20.6M    0     0   901k      0  0:00:25  0:00:23  0:00:02  889k
 93 22.8M   93 21.3M    0     0   864k      0  0:00:27  0:00:25  0:00:02  727k
 93 22.8M   93 21.3M    0     0   836k      0  0:00:27  0:00:26  0:00:01  584k
100 22.8M  100 22.8M    0     0   889k      0  0:00:26  0:00:26 --:--:--  773k
+ echo 13
+ php /var/www/html/core/class/../php/jeecli.php plugin dependancy_end docker2
+ echo 14
+ rm /tmp/jeedom_install_in_progress_docker2
+ echo '*******************End of package installation******************'
*******************End of package installation******************

J’ai ensuite installé le plugin Eufy en renseignant le compte que j’ai spécialement créé pour l’occasion

J’ai 2 Not OK en rouge

Et « installer eufy » et « demarrer eufy » sont donc non fonctionnels :frowning:
Extrait de mes essais :

[2024-07-04 14:42:15] eufy.INFO: Début de l'opération install_container [] []
[2024-07-04 14:42:16] eufy.DEBUG: container id:  [] []
[2024-07-04 14:45:06] eufy.ERROR: Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consécutivement [] []
[2024-07-04 14:45:07] eufy.DEBUG: >>> Checking container 127.0.0.1:3000  [] []
[2024-07-04 14:45:07] eufy.DEBUG: Container 127.0.0.1:3000  is not responding :( [] []
[2024-07-04 14:45:07] eufy.ERROR: Container Eufy non démarré [] []
[2024-07-04 14:46:14] eufy.DEBUG: >>> Checking container 127.0.0.1:3000  [] []
[2024-07-04 14:46:14] eufy.DEBUG: Container 127.0.0.1:3000  is not responding :( [] []
[2024-07-04 14:46:14] eufy.DEBUG: eufy-security-ws image version:  [] []
[2024-07-04 14:46:15] eufy.DEBUG: eufy-security-ws service online:  [] []
[2024-07-04 14:46:15] eufy.DEBUG: isListening:  [] []
[2024-07-04 14:46:15] eufy.DEBUG: isOnline:  [] []
[2024-07-04 14:46:29] eufy.DEBUG: >>> Checking container 127.0.0.1:3000  [] []
[2024-07-04 14:46:29] eufy.DEBUG: Container 127.0.0.1:3000  is not responding :( [] []
[2024-07-04 14:46:29] eufy.DEBUG: eufy-security-ws image version:  [] []
[2024-07-04 14:46:29] eufy.DEBUG: eufy-security-ws service online:  [] []
[2024-07-04 14:46:29] eufy.DEBUG: isListening:  [] []
[2024-07-04 14:46:29] eufy.DEBUG: isOnline:  [] []
[2024-07-04 14:50:05] eufy.ERROR: Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consécutivement [] []
[2024-07-04 14:50:06] eufy.DEBUG: >>> Checking container 127.0.0.1:3000  [] []
[2024-07-04 14:50:06] eufy.DEBUG: Container 127.0.0.1:3000  is not responding :( [] []
[2024-07-04 14:50:06] eufy.ERROR: Container Eufy non démarré [] []
[2024-07-04 14:55:05] eufy.ERROR: Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consécutivement [] []
[2024-07-04 14:55:06] eufy.DEBUG: >>> Checking container 127.0.0.1:3000  [] []
[2024-07-04 14:55:06] eufy.DEBUG: Container 127.0.0.1:3000  is not responding :( [] []
[2024-07-04 14:55:06] eufy.ERROR: Container Eufy non démarré [] []
[2024-07-04 14:56:45] eufy.DEBUG: Task 'installContainer' executed now [] []
[2024-07-04 14:56:45] eufy.DEBUG: isListening:  [] []
[2024-07-04 14:56:45] eufy.DEBUG: isOnline:  [] []
[2024-07-04 14:56:45] eufy.INFO: Début de l'opération install_container [] []
[2024-07-04 14:56:45] eufy.DEBUG: container id:  [] []
[2024-07-04 15:00:08] eufy.ERROR: Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consécutivement [] []
[2024-07-04 15:00:09] eufy.DEBUG: >>> Checking container 127.0.0.1:3000  [] []
[2024-07-04 15:00:09] eufy.DEBUG: Container 127.0.0.1:3000  is not responding :( [] []
[2024-07-04 15:00:09] eufy.ERROR: Container Eufy non démarré [] []

Au cas où un docker info

Client: Docker Engine - Community
 Version:    27.0.3
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.15.1
    Path:     /usr/libexec/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.28.1
    Path:     /usr/libexec/docker/cli-plugins/docker-compose

Server:
ERROR: permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.46/info": dial unix /var/run/docker.sock: connect: permission denied
errors pretty printing info

Et les commandes mentionnées dans l’aide :

python3 resources/test_eufy.py
Traceback (most recent call last):
  File "/var/www/html/plugins/eufy/resources/test_eufy.py", line 20, in <module>
    ws = create_connection("ws://" + url)
  File "/usr/local/lib/python3.9/dist-packages/websocket/_core.py", line 646, in create_connection
    websock.connect(url, **options)
  File "/usr/local/lib/python3.9/dist-packages/websocket/_core.py", line 256, in connect
    self.sock, addrs = connect(
  File "/usr/local/lib/python3.9/dist-packages/websocket/_http.py", line 145, in connect
    sock = _open_socket(addrinfo_list, options.sockopt, options.timeout)
  File "/usr/local/lib/python3.9/dist-packages/websocket/_http.py", line 232, in _open_socket
    raise err
  File "/usr/local/lib/python3.9/dist-packages/websocket/_http.py", line 209, in _open_socket
    sock.connect(address)
ConnectionRefusedError: [Errno 111] Connection refused

Merci pour votre aide :pray:

Bonjour
Avez vous vérifié que le 2ième compte fonctionne bien avec l’application eufy sur votre mobile ?

Bonjour, absolument, le 2eme compte fonctionne bien

Bonsoir
Merci de lire la doc:
L’installation du container se fait via le bouton installer pas par le plugin docker management

Bonsoir. pourquoi dites vous cela ?
je n’ai pas créé d’equipemement docker dans le plugin docker management
j’ai simplement installé le plugin comme mentionné dans la doc

Normalement le plugin docker management installe docker
Pour verifier:

sudo docker compose
[EDIT] j’etais sur mon tel je viens de relire tout le thread.
Je vois que tu as installé docker mais est-il fonctionnel?
Quelle version de debian? merci de me mettre toute la log de la commande docker info mais avec root ou via sudo

Si docker est bien installé tu peux essayer l’install du container en ligne de commande après avoir cliqué sur le bouton installer (ca génère entre autres le fichier docker-compose.yml dans eufy/data/store):

su -
cd /var/www/html/plugins/eufy
resources/eufy install

Bonjour,

Alors pour commencer : je suis sur debian 11.10 (cf page santé ci dessus)

Et voici les logs en root :

root@jeedom202406:/var/www/html/plugins/eufy# docker info
Client: Docker Engine - Community
 Version:    27.0.3
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.15.1
    Path:     /usr/libexec/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.28.1
    Path:     /usr/libexec/docker/cli-plugins/docker-compose

Server:
 Containers: 0
  Running: 0
  Paused: 0
  Stopped: 0
 Images: 1
 Server Version: 27.0.3
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: ae71819c4f5e67bb4d5ae76a6b735f29cc25774e
 runc version: v1.1.13-0-g58aa920
 init version: de40ad0
 Security Options:
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 6.1.21-v8+
 Operating System: Debian GNU/Linux 11 (bullseye)
 OSType: linux
 Architecture: aarch64
 CPUs: 4
 Total Memory: 3.704GiB
 Name: jeedom202406
 ID: eea941c3-b7e1-4991-9b41-9a2bb850866a
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: No memory limit support
WARNING: No swap limit support

Ok ca a l’air bon.
Comme ca sans logs je ne vois pas. Pourrais-tu vérifier si le fichier docker-compose.yml a bien été généré et essayer l’install en ligne de commande ? Cf ma réponse précédente

Bonjour, je suis passé en Debian 11.10 (comme toi) et mon démon est NOK, as-tu pu résoudre ton problème ?

Bonjour

J’ai fait des changements dans l’installer.
vérifies si le le plugin docker compose est installé:

sudo su -
docker compose version

sinon voir ici:

si c’est bon vérifies si l’image est installée:

docker images

Au top =) toujours aussi rapide

Résultat ? Ca fonctionne ou pas?

Bonjour, je rentre de vacances, je vais regarder tout cela de plus pres :slight_smile:

Alors j’obtiens ça :

root@jeedom202406:~# docker compose version
Docker Compose version v2.28.1
root@jeedom202406:~# docker images
REPOSITORY                TAG       IMAGE ID       CREATED        SIZE
bropat/eufy-security-ws   latest    19188dd333f1   5 months ago   174MB

Je suis surpris du « created 5 months ago » ?!

Quoi qu’il en soit, quand je vais dans le plugin eufy ensuite, je remplis les infos
image

Et dès que je clique sur TESTER tout disparait :
image

Et les logs :

[2024-08-06 20:15:33] eufy.DEBUG: >>> Checking container : [] []
[2024-08-06 20:15:33] eufy.DEBUG: Container : is not responding :( [] []
[2024-08-06 20:15:33] eufy.DEBUG: eufy-security-ws image version:  [] []
[2024-08-06 20:15:34] eufy.DEBUG: eufy-security-ws service online:  [] []
[2024-08-06 20:15:34] eufy.DEBUG: isListening:  [] []
[2024-08-06 20:15:34] eufy.DEBUG: isOnline:  [] []

Ok tu as l’image mais l’as tu démarrée?
Bouton ad hoc ou ligne de commande :

su -
cd /var/www/html/plugins/eufy/resources
./eufy status
./eufy start