Test de connexion KO pour Eufy

Bonjour !

J’ai parcouru les forums et bidouillé pendant tout ce long weekend et j’en arrive à la conclusion que je n’y arriverai pas tout seul…

J’ai donc suivi pas à pas le guide d’installation du plufin Eufy, dock manager ainsi que le container ont bien été téléchargés et installés.

La connexion au container est bien OK, mais je bloque totallement sur la connexion au cloud Eufy.
J’ai créé un nouveau compte utilisateur dédié, j’ai bien indiqué le modèle du téléphone que j’utilise sur l’application Eufy, mais rien n’y fait !

Alors je viens vous demander de l’aide car j’aimerais vraiment pouvoir activer et désactiver mes caméras en fonction de l’état de l’alarme.

Voici ma page santé :

Ma configuration du plugin Eufy :

Le log du container :

2024-11-11T12:09:04.951780721Z       accept: 'application/json',
2024-11-11T12:09:04.951798722Z       'accept-encoding': 'gzip, deflate, br'
2024-11-11T12:09:04.951816722Z     },
2024-11-11T12:09:04.951833723Z     methodRewriting: false,
2024-11-11T12:09:04.951851723Z     dnsLookupIpVersion: undefined,
2024-11-11T12:09:04.951869724Z     parseJson: [Function: parse],
2024-11-11T12:09:04.951887725Z     stringifyJson: [Function: stringify],
2024-11-11T12:09:04.951905725Z     retry: {
2024-11-11T12:09:04.951922726Z       limit: 1,
2024-11-11T12:09:04.951940726Z       methods: [ 'GET' ],
2024-11-11T12:09:04.951957727Z       statusCodes: [
2024-11-11T12:09:04.951975727Z         408, 413, 429, 500,
2024-11-11T12:09:04.951993728Z         502, 503, 504, 521,
2024-11-11T12:09:04.952012728Z         522, 524
2024-11-11T12:09:04.952030729Z       ],
2024-11-11T12:09:04.952048729Z       errorCodes: [
2024-11-11T12:09:04.952066730Z         'ETIMEDOUT',
2024-11-11T12:09:04.952084730Z         'ECONNRESET',
2024-11-11T12:09:04.952102731Z         'EADDRINUSE',
2024-11-11T12:09:04.952119732Z         'ECONNREFUSED',
2024-11-11T12:09:04.952137732Z         'EPIPE',
2024-11-11T12:09:04.952154733Z         'ENOTFOUND',
2024-11-11T12:09:04.952172733Z         'ENETUNREACH',
2024-11-11T12:09:04.952190734Z         'EAI_AGAIN'
2024-11-11T12:09:04.952208734Z       ],
2024-11-11T12:09:04.952226735Z       maxRetryAfter: undefined,
2024-11-11T12:09:04.952245735Z       calculateDelay: [Function: calculateDelay],
2024-11-11T12:09:04.952263736Z       backoffLimit: Infinity,
2024-11-11T12:09:04.952335738Z       noise: 100
2024-11-11T12:09:04.952357739Z     },
2024-11-11T12:09:04.952375739Z     localAddress: undefined,
2024-11-11T12:09:04.952393740Z     method: 'GET',
2024-11-11T12:09:04.952411740Z     createConnection: undefined,
2024-11-11T12:09:04.952429741Z     cacheOptions: {
2024-11-11T12:09:04.952447741Z       shared: undefined,
2024-11-11T12:09:04.952465742Z       cacheHeuristic: undefined,
2024-11-11T12:09:04.952482742Z       immutableMinTimeToLive: undefined,
2024-11-11T12:09:04.952500743Z       ignoreCargoCult: undefined
2024-11-11T12:09:04.952518744Z     },
2024-11-11T12:09:04.952538744Z     https: {
2024-11-11T12:09:04.952556745Z       alpnProtocols: undefined,
2024-11-11T12:09:04.952574745Z       rejectUnauthorized: undefined,
2024-11-11T12:09:04.952592746Z       checkServerIdentity: undefined,
2024-11-11T12:09:04.952609746Z       certificateAuthority: undefined,
2024-11-11T12:09:04.952627747Z       key: undefined,
2024-11-11T12:09:04.952645747Z       certificate: undefined,
2024-11-11T12:09:04.952663748Z       passphrase: undefined,
2024-11-11T12:09:04.952681748Z       pfx: undefined,
2024-11-11T12:09:04.952699749Z       ciphers: undefined,
2024-11-11T12:09:04.952717750Z       honorCipherOrder: undefined,
2024-11-11T12:09:04.952735750Z       minVersion: undefined,
2024-11-11T12:09:04.952753751Z       maxVersion: undefined,
2024-11-11T12:09:04.952771751Z       signatureAlgorithms: undefined,
2024-11-11T12:09:04.952789752Z       tlsSessionLifetime: undefined,
2024-11-11T12:09:04.952807752Z       dhparam: undefined,
2024-11-11T12:09:04.952825753Z       ecdhCurve: undefined,
2024-11-11T12:09:04.952843753Z       certificateRevocationLists: undefined
2024-11-11T12:09:04.952861754Z     },
2024-11-11T12:09:04.952878754Z     encoding: undefined,
2024-11-11T12:09:04.952896755Z     resolveBodyOnly: false,
2024-11-11T12:09:04.952913755Z     isStream: false,
2024-11-11T12:09:04.952933756Z     responseType: 'json',
2024-11-11T12:09:04.952952757Z     url: URL {
2024-11-11T12:09:04.952975757Z       href: 'https://extend.eufylife.com/domain/FR',
2024-11-11T12:09:04.952994758Z       origin: 'https://extend.eufylife.com',
2024-11-11T12:09:04.953012758Z       protocol: 'https:',
2024-11-11T12:09:04.953030759Z       username: '',
2024-11-11T12:09:04.953048760Z       password: '',
2024-11-11T12:09:04.953066760Z       host: 'extend.eufylife.com',
2024-11-11T12:09:04.953091761Z       hostname: 'extend.eufylife.com',
2024-11-11T12:09:04.953159763Z       port: '',
2024-11-11T12:09:04.953181764Z       pathname: '/domain/FR',
2024-11-11T12:09:04.953199764Z       search: '',
2024-11-11T12:09:04.953218765Z       searchParams: URLSearchParams {},
2024-11-11T12:09:04.953236765Z       hash: ''
2024-11-11T12:09:04.953254766Z     },
2024-11-11T12:09:04.953271766Z     pagination: {
2024-11-11T12:09:04.953289767Z       transform: [Function: transform],
2024-11-11T12:09:04.953307767Z       paginate: [Function: paginate],
2024-11-11T12:09:04.953325768Z       filter: [Function: filter],
2024-11-11T12:09:04.953342768Z       shouldContinue: [Function: shouldContinue],
2024-11-11T12:09:04.953504773Z       countLimit: Infinity,
2024-11-11T12:09:04.953537774Z       backoff: 0,
2024-11-11T12:09:04.953555775Z       requestLimit: 10000,
2024-11-11T12:09:04.953573775Z       stackAllItems: false
2024-11-11T12:09:04.953591776Z     },
2024-11-11T12:09:04.953609776Z     setHost: true,
2024-11-11T12:09:04.953639777Z     maxHeaderSize: undefined,
2024-11-11T12:09:04.953675778Z     signal: undefined,
2024-11-11T12:09:04.953693779Z     enableUnixSockets: false
2024-11-11T12:09:04.953712779Z   },
2024-11-11T12:09:04.953729780Z   [cause]: Error: getaddrinfo EAI_AGAIN extend.eufylife.com
2024-11-11T12:09:04.953748781Z       at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26) {
2024-11-11T12:09:04.953765781Z     errno: -3001,
2024-11-11T12:09:04.953783782Z     code: 'EAI_AGAIN',
2024-11-11T12:09:04.953800782Z     syscall: 'getaddrinfo',
2024-11-11T12:09:04.953818783Z     hostname: 'extend.eufylife.com'
2024-11-11T12:09:04.953835783Z   }
2024-11-11T12:09:04.953852784Z }
2024-11-11T12:09:07.987189084Z SECURITY WARNING: Reverting CVE-2023-46809: Marvin attack on PKCS#1 padding

Le log du plufin Eufy :

[2024-11-11 13:10:11] 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-11-11 13:10:12] DEBUG  : debian OS version: 10
[2024-11-11 13:10:12] DEBUG  : Py executable: /usr/bin/python3
[2024-11-11 13:10:12] DEBUG  : >>> Checking container 127.0.0.1:3000
[2024-11-11 13:10:12] DEBUG  : Container 127.0.0.1:3000 is listening
[2024-11-11 13:10:13] DEBUG  : debian OS version: 10
[2024-11-11 13:10:13] DEBUG  : Py executable: /usr/bin/python3
[2024-11-11 13:10:13] DEBUG  : eufy-security-ws image version:
[2024-11-11 13:10:13] DEBUG  : debian OS version: 10
[2024-11-11 13:10:13] DEBUG  : Py executable: /usr/bin/python3
[2024-11-11 13:10:14] DEBUG  : eufy-security-ws service online:
[2024-11-11 13:10:14] ERROR  : Container Eufy non connecté au Cloud
[2024-11-11 13:15:09] 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-11-11 13:15:10] DEBUG  : debian OS version: 10
[2024-11-11 13:15:10] DEBUG  : Py executable: /usr/bin/python3
[2024-11-11 13:15:10] DEBUG  : >>> Checking container 127.0.0.1:3000
[2024-11-11 13:15:10] DEBUG  : Container 127.0.0.1:3000 is listening
[2024-11-11 13:15:11] DEBUG  : debian OS version: 10
[2024-11-11 13:15:11] DEBUG  : Py executable: /usr/bin/python3
[2024-11-11 13:15:11] DEBUG  : eufy-security-ws image version:
[2024-11-11 13:15:11] DEBUG  : debian OS version: 10
[2024-11-11 13:15:11] DEBUG  : Py executable: /usr/bin/python3
[2024-11-11 13:15:12] DEBUG  : eufy-security-ws service online:
[2024-11-11 13:15:12] ERROR  : Container Eufy non connecté au Cloud

Le test_eufy.py :

root@Jeedom:/var/www/html/plugins/eufy/resources# python3 test_eufy.py
Traceback (most recent call last):
  File "test_eufy.py", line 20, in <module>
    ws = create_connection("ws://" + url)
  File "/usr/local/lib/python3.7/dist-packages/websocket/_core.py", line 608, in create_connection
    websock.connect(url, **options)
  File "/usr/local/lib/python3.7/dist-packages/websocket/_core.py", line 253, in connect
    self.handshake_response = handshake(self.sock, url, *addrs, **options)
  File "/usr/local/lib/python3.7/dist-packages/websocket/_handshake.py", line 57, in handshake
    status, resp = _get_resp_headers(sock)
  File "/usr/local/lib/python3.7/dist-packages/websocket/_handshake.py", line 143, in _get_resp_headers
    status, resp_headers, status_message = read_headers(sock)
  File "/usr/local/lib/python3.7/dist-packages/websocket/_http.py", line 312, in read_headers
    line = recv_line(sock)
  File "/usr/local/lib/python3.7/dist-packages/websocket/_socket.py", line 131, in recv_line
    c = recv(sock, 1)
  File "/usr/local/lib/python3.7/dist-packages/websocket/_socket.py", line 108, in recv
    bytes_ = _recv()
  File "/usr/local/lib/python3.7/dist-packages/websocket/_socket.py", line 87, in _recv
    return sock.recv(bufsize)
ConnectionResetError: [Errno 104] Connection reset by peer

Log eufy.py :

root@Jeedom:/var/www/html/plugins/eufy/resources# ./eufy status
eufy action: status options:
image:  bropat/eufy-security-ws latest fb92c3882d91 6 weeks ago 164MB
container:  3b257ac05fbc

Log eufy start :

root@Jeedom:/var/www/html/plugins/eufy/resources# ./eufy start
eufy action: start options:
starting image bropat/eufy-security-ws
[+] Running 1/0
 ✔ Container eufy  Running

Si il manque des logs, je les ajouterai !

Bonne journée !

Bonjour
Version du plugin? Merci de mettre un screenshot de l’ecran de config

Voici les config du plugin Eufy et Docker management, en espérant qu’il s’agit bien de ce que tu souhaitais?


Ca n’est pas normal tu devrais avoir le no de version affiché ici.

Comment as-tu démarré ton container? Si tu n’as pas utilisé les boutons du plugin-eufy et que tu es passé par plugin-docker2 il te faut partir du fichier docker-compose généré dans eufy/data.
Attention dans ce dernier cas tout changement de parametrage (login, passwd, tel…) nécessite de repartir du nouveau fichier généré.

Si tu ne t’en sors pas partages moi le résultat de ces commandes:

sudo su -
cd /var/www/html/plugins/eufy/resources
./eufy test
./eufy logs > /tmp/eufy_server.log

Voilà les logs
C’est très long et en boucle, je n’ai même accès à l’intégralité de la commande ./eufy logs > /tmp/eufy_server.log

root@Jeedom:/var/www/html/plugins/eufy/resources# ./eufy test
eufy action: test options:defined,
test du container: 3f63c3142726 options:
Traceback (most recent call last):
  File "/var/www/html/plugins/eufy/resources/../resources/test_eufy.py", line 20, in <module>
    ws = create_connection("ws://" + url)
  File "/usr/local/lib/python3.7/dist-packages/websocket/_core.py", line 608, in create_connection
    websock.connect(url, **options)
  File "/usr/local/lib/python3.7/dist-packages/websocket/_core.py", line 250, in connect
    options.pop('socket', None))
  File "/usr/local/lib/python3.7/dist-packages/websocket/_http.py", line 130, in connect
    sock = _open_socket(addrinfo_list, options.sockopt, options.timeout)
  File "/usr/local/lib/python3.7/dist-packages/websocket/_http.py", line 205, in _open_socket
    raise errype: 'json',
  File "/usr/local/lib/python3.7/dist-packages/websocket/_http.py", line 185, in _open_socket
    sock.connect(address)nd.eufylife.com/domain/FR',
ConnectionRefusedError: [Errno 111] Connection refused
root@Jeedom:/var/www/html/plugins/eufy/resources#
    
   
}
Unable to start driver RequestError: getaddrinfo EAI_AGAIN extend.eufylife.com
    at ClientRequest.<anonymous> (file:///usr/src/app/node_modules/got/dist/source/core/index.js:667:107)
    at Object.onceWrapper (node:events:634:26)
    at ClientRequest.emit (node:events:531:35)
    at ClientRequest.emit (node:domain:488:12)
    at emitErrorEvent (node:_http_client:108:11)
    at TLSSocket.socketErrorListener (node:_http_client:511:5)
    at TLSSocket.emit (node:events:519:28)
    at TLSSocket.emit (node:domain:488:12)
    at emitErrorNT (node:internal/streams/destroy:169:8)
    at emitErrorCloseNT (node:internal/streams/destroy:128:3)
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26) {
  input: undefined,
  code: 'EAI_AGAIN',
  timings: {
    start: 1731348639903,
    socket: 1731348639907,
    lookup: 1731348644911,
    connect: undefined,
    secureConnect: undefined,
    upload: undefined,
    response: undefined,
    end: undefined,
    error: 1731348644911,
    abort: undefined,
    phases: {
      wait: 4,
      dns: 5004,
      tcp: undefined,
      tls: undefined,
      request: undefined,
      firstByte: undefined,
      download: undefined,
      total: 5008
    }
  },
  options: {
    request: undefined,
    agent: { http: undefined, https: undefined, http2: undefined },
    h2session: undefined,
    decompress: true,
    timeout: {
      connect: undefined,
      lookup: undefined,
      read: undefined,
      request: undefined,
      response: undefined,
      secureConnect: undefined,
      send: undefined,
      socket: undefined
    },
    prefixUrl: '',
    body: undefined,
    form: undefined,
    json: undefined,
    cookieJar: undefined,
    ignoreInvalidCookies: false,
    searchParams: undefined,
    dnsLookup: undefined,
    dnsCache: undefined,
    context: {},
    hooks: {
      init: [],
      beforeRequest: [],
      beforeError: [],
      beforeRedirect: [],
      beforeRetry: [],
      afterResponse: []
    },
    followRedirect: true,
    maxRedirects: 10,
    cache: undefined,
    throwHttpErrors: true,
    username: '',
    password: '',
    http2: false,
    allowGetBody: false,
    headers: {
      'user-agent': 'got (https://github.com/sindresorhus/got)',
      accept: 'application/json',
      'accept-encoding': 'gzip, deflate, br'
    },
    methodRewriting: false,
    dnsLookupIpVersion: undefined,
    parseJson: [Function: parse],
    stringifyJson: [Function: stringify],
    retry: {
      limit: 1,
      methods: [ 'GET' ],
      statusCodes: [
        408, 413, 429, 500,
        502, 503, 504, 521,
        522, 524
      ],
      errorCodes: [
        'ETIMEDOUT',
        'ECONNRESET',
        'EADDRINUSE',
        'ECONNREFUSED',
        'EPIPE',
        'ENOTFOUND',
        'ENETUNREACH',
        'EAI_AGAIN'
      ],
      maxRetryAfter: undefined,
      calculateDelay: [Function: calculateDelay],
      backoffLimit: Infinity,
      noise: 100
    },
    localAddress: undefined,
    method: 'GET',
    createConnection: undefined,
    cacheOptions: {
      shared: undefined,
      cacheHeuristic: undefined,
      immutableMinTimeToLive: undefined,
      ignoreCargoCult: undefined
    },
    https: {
      alpnProtocols: undefined,
      rejectUnauthorized: undefined,
      checkServerIdentity: undefined,
      certificateAuthority: undefined,
      key: undefined,
      certificate: undefined,
      passphrase: undefined,
      pfx: undefined,
      ciphers: undefined,
      honorCipherOrder: undefined,
      minVersion: undefined,
      maxVersion: undefined,
      signatureAlgorithms: undefined,
      tlsSessionLifetime: undefined,
      dhparam: undefined,
      ecdhCurve: undefined,
      certificateRevocationLists: undefined
    },
    encoding: undefined,
    resolveBodyOnly: false,
    isStream: false,
    responseType: 'json',
    url: URL {
      href: 'https://extend.eufylife.com/domain/FR',
      origin: 'https://extend.eufylife.com',
      protocol: 'https:',
      username: '',
      password: '',
      host: 'extend.eufylife.com',
      hostname: 'extend.eufylife.com',
      port: '',
      pathname: '/domain/FR',
      search: '',
      searchParams: URLSearchParams {},
      hash: ''
    },
    pagination: {
      transform: [Function: transform],
      paginate: [Function: paginate],
      filter: [Function: filter],
      shouldContinue: [Function: shouldContinue],
      countLimit: Infinity,
      backoff: 0,
      requestLimit: 10000,
      stackAllItems: false
    },
    setHost: true,
    maxHeaderSize: undefined,
    signal: undefined,
    enableUnixSockets: false
  },
  [cause]: Error: getaddrinfo EAI_AGAIN extend.eufylife.com
      at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26) {
    errno: -3001,
    code: 'EAI_AGAIN',
    syscall: 'getaddrinfo',
    hostname: 'extend.eufylife.com'
  }
}
Unable to start driver RequestError: getaddrinfo EAI_AGAIN extend.eufylife.com
    at ClientRequest.<anonymous> (file:///usr/src/app/node_modules/got/dist/source/core/index.js:667:107)
    at Object.onceWrapper (node:events:634:26)
    at ClientRequest.emit (node:events:531:35)
    at ClientRequest.emit (node:domain:488:12)
    at emitErrorEvent (node:_http_client:108:11)
    at TLSSocket.socketErrorListener (node:_http_client:511:5)
    at TLSSocket.emit (node:events:519:28)
    at TLSSocket.emit (node:domain:488:12)
    at emitErrorNT (node:internal/streams/destroy:169:8)
    at emitErrorCloseNT (node:internal/streams/destroy:128:3)
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26) {
  input: undefined,
  code: 'EAI_AGAIN',
  timings: {
    start: 1731348656843,
    socket: 1731348656846,
    lookup: 1731348661856,
    connect: undefined,
    secureConnect: undefined,
    upload: undefined,
    response: undefined,
    end: undefined,
    error: 1731348661856,
    abort: undefined,
    phases: {
      wait: 3,
      dns: 5010,
      tcp: undefined,
      tls: undefined,
      request: undefined,
      firstByte: undefined,
      download: undefined,
      total: 5013
    }
  },
  options: {
    request: undefined,
    agent: { http: undefined, https: undefined, http2: undefined },
    h2session: undefined,
    decompress: true,
    timeout: {
      connect: undefined,
      lookup: undefined,
      read: undefined,
      request: undefined,
      response: undefined,
      secureConnect: undefined,
      send: undefined,
      socket: undefined
    },
    prefixUrl: '',
    body: undefined,
    form: undefined,
    json: undefined,
    cookieJar: undefined,
    ignoreInvalidCookies: false,
    searchParams: undefined,
    dnsLookup: undefined,
    dnsCache: undefined,
    context: {},
    hooks: {
      init: [],
      beforeRequest: [],
      beforeError: [],
      beforeRedirect: [],
      beforeRetry: [],
      afterResponse: []
    },
    followRedirect: true,
    maxRedirects: 10,
    cache: undefined,
    throwHttpErrors: true,
    username: '',
    password: '',
    http2: false,
    allowGetBody: false,
    headers: {
      'user-agent': 'got (https://github.com/sindresorhus/got)',
      accept: 'application/json',
      'accept-encoding': 'gzip, deflate, br'
    },
    methodRewriting: false,
    dnsLookupIpVersion: undefined,
    parseJson: [Function: parse],
    stringifyJson: [Function: stringify],
    retry: {
      limit: 1,
      methods: [ 'GET' ],
      statusCodes: [
        408, 413, 429, 500,
        502, 503, 504, 521,
        522, 524
      ],
      errorCodes: [
        'ETIMEDOUT',
        'ECONNRESET',
        'EADDRINUSE',
        'ECONNREFUSED',
        'EPIPE',
        'ENOTFOUND',
        'ENETUNREACH',
        'EAI_AGAIN'
      ],
      maxRetryAfter: undefined,
      calculateDelay: [Function: calculateDelay],
      backoffLimit: Infinity,
      noise: 100
    },
    localAddress: undefined,
    method: 'GET',
    createConnection: undefined,
    cacheOptions: {
      shared: undefined,
      cacheHeuristic: undefined,
      immutableMinTimeToLive: undefined,
      ignoreCargoCult: undefined
    },
    https: {
      alpnProtocols: undefined,
      rejectUnauthorized: undefined,
      checkServerIdentity: undefined,
      certificateAuthority: undefined,
      key: undefined,
      certificate: undefined,
      passphrase: undefined,
      pfx: undefined,
      ciphers: undefined,
      honorCipherOrder: undefined,
      minVersion: undefined,
      maxVersion: undefined,
      signatureAlgorithms: undefined,
      tlsSessionLifetime: undefined,
      dhparam: undefined,
      ecdhCurve: undefined,
      certificateRevocationLists: undefined
    },
    encoding: undefined,
    resolveBodyOnly: false,
    isStream: false,
    responseType: 'json',
    url: URL {
      href: 'https://extend.eufylife.com/domain/FR',
      origin: 'https://extend.eufylife.com',
      protocol: 'https:',
      username: '',
      password: '',
      host: 'extend.eufylife.com',
      hostname: 'extend.eufylife.com',
      port: '',
      pathname: '/domain/FR',
      search: '',
      searchParams: URLSearchParams {},
      hash: ''
    },
    pagination: {
      transform: [Function: transform],
      paginate: [Function: paginate],
      filter: [Function: filter],
      shouldContinue: [Function: shouldContinue],
      countLimit: Infinity,
      backoff: 0,
      requestLimit: 10000,
      stackAllItems: false
    },
    setHost: true,
    maxHeaderSize: undefined,
    signal: undefined,
    enableUnixSockets: false
  },
  [cause]: Error: getaddrinfo EAI_AGAIN extend.eufylife.com
      at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26) {
    errno: -3001,
    code: 'EAI_AGAIN',
    syscall: 'getaddrinfo',
    hostname: 'extend.eufylife.com'
  }
}
root@Jeedom:/var/www/html/plugins/eufy/resources#

Ca se precise ton container est mal parametré ou il ecoute sur le mauvais port. Tu n’as pas repondu a ma question: comment l’as tu demarré?

Tu bloques a la connexion au container donc avant l’authent sur le cloud Eufy.
Donnes moi l’output de eufy info et eufy status

Qu’entends tu par « comment as tu démarré ton container » ?
Je l’ai lancé via la page de configuration du plugin Eufy.
Après avoir mis à jour la config, je click sur le bouton « Redémarrer ».

Est ce que je procède bien ?

Voici les 2 logs :

root@Jeedom:/var/www/html/plugins/eufy/resources# ./eufy info
eufy action: info options:
79be018ef999   bropat/eufy-security-ws:latest   "docker-entrypoint.s…"   20 hours ago   Exited (0) 20 hours ago
    eufy
root@Jeedom:/var/www/html/plugins/eufy/resources# ./eufy status
eufy action: status options:
image:  bropat/eufy-security-ws latest fb92c3882d91 6 weeks ago 164MB
container:  79be018ef999

Et voici le log du plugin Eufy lorsque je click sur « Redémarrer »
(lors de l’installation du plugin, j’ai bien suivi le guide et j’ai installé le container en cliquant sur « Installer »

[2024-11-13 19:05:29] DEBUG  : images installées: fb92c3882d91
[2024-11-13 19:05:29] DEBUG  : container actif: 79be018ef999
[2024-11-13 19:05:29] DEBUG  : hardware arch: aarch64
[2024-11-13 19:05:29] DEBUG  : docker rm -f 79be018ef999
[2024-11-13 19:05:34] DEBUG  : >>> Checking container 127.0.0.1:3000
[2024-11-13 19:05:34] DEBUG  : Container 127.0.0.1:3000 is not responding :(
[2024-11-13 19:05:34] DEBUG  : debian OS version: 10
[2024-11-13 19:05:34] DEBUG  : Py executable: /usr/bin/python3
[2024-11-13 19:05:35] DEBUG  : eufy-security-ws image version:
[2024-11-13 19:05:35] DEBUG  : debian OS version: 10
[2024-11-13 19:05:35] DEBUG  : Py executable: /usr/bin/python3
[2024-11-13 19:05:35] DEBUG  : eufy-security-ws service online:
[2024-11-13 19:05:35] INFO  : >>> Fin de l'opération stop du service Eufy
[2024-11-13 19:05:35] INFO  : >>> Début de l'opération start du service Eufy
[2024-11-13 19:05:36] DEBUG  : images installées: fb92c3882d91
[2024-11-13 19:05:36] DEBUG  : container actif:
[2024-11-13 19:05:36] DEBUG  : hardware arch: aarch64
[2024-11-13 19:05:36] DEBUG  : Mise à jour du fichier yaml /var/www/html/plugins/eufy/data/docker-compose.yml
[2024-11-13 19:05:36] DEBUG  : DOCKER_DEFAULT_PLATFORM=linux/arm64 docker compose -f /var/www/html/plugins/eufy/data/docker-compose.yml up -d
Container eufy  Creating
Container eufy  Created
Container eufy  Starting
Container eufy  Started
[2024-11-13 19:05:52] DEBUG  : container id:
[2024-11-13 19:05:55] DEBUG  : >>> Checking container 127.0.0.1:3000
[2024-11-13 19:05:55] DEBUG  : Container 127.0.0.1:3000 is listening
[2024-11-13 19:05:55] DEBUG  : debian OS version: 10
[2024-11-13 19:05:55] DEBUG  : Py executable: /usr/bin/python3
[2024-11-13 19:05:56] DEBUG  : eufy-security-ws image version:
[2024-11-13 19:05:56] DEBUG  : debian OS version: 10
[2024-11-13 19:05:56] DEBUG  : Py executable: /usr/bin/python3
[2024-11-13 19:05:57] DEBUG  : eufy-security-ws service online:
[2024-11-13 19:05:57] INFO  : >>> Fin de l'opération start du service Eufy

Salut

Tu m’as mis le doute en parlant du plugin-docker2
oui tu as suivi la methode la + simple ceci dit je vois plus haut que ton container n’est pas actif:

Exited (0) 20 hours ago

Soit il s’est planté soit tu l’as arrêté.
C’est contradictoire de tes logs de démarrage du service à 19h05:

[2024-11-13 19:05:55] DEBUG  : Container 127.0.0.1:3000 is listening

Aurais-tu un autre service qui utilise deja le port 3000?
Pourrais-tu me partager data/docker-compose.yml après avoir anonymisé login/passwd?

Voici docker-compose :

services:
  eufy-security-ws:
    container_name: eufy
    image: bropat/eufy-security-ws:latest
#    network_mode: host
    privileged: true
    restart: unless-stopped
    environment:
      - TRUSTED_DEVICE_NAME=iPhone 15 Pro Max
      - USERNAME=xxx@gmail.com
      - PASSWORD=xxx
      - COUNTRY=FR
      - LANGUAGE=fr
    volumes:
      - /var/www/html/plugins/eufy/data/store:/data
    ports:
      - 3000:3000 # port for websocket interface
    healthcheck:
      test: 'cat /var/www/html/plugins/eufy/data/store/persistent.json | awk "/cloud_token/{ print $$0 }" || exit 1'
      interval: 1m
      timeout: 1s
      start_period: 5s
      retries: 3

Je n’ai pas d’autre plugin utilisant le port 3000

verifies quand même quand le container est arrêté:

netstat -a|grep 3000|grep LISTEN

d’après les logs de ton container tu as un problème de DNS:

getaddrinfo EAI_AGAIN extend.eufylife.com

que donne:
nslookup extend.eufylife.com
ping www.google.fr
?

et tu peux aussi faire le test de l’interieur du container pour comprendre le problème (remplaces l’id du container par le tien):

docker exec -it 1d8fd126e6cc /bin/sh
/usr/src/app # ping www.google.fr

ton fichier yml est bon.
j’arrive à mon niveau d’incompétence coté réseau…
essaies de décommenter la ligne network_mode: host dans le fichier yml et redémarres via eufy restart. Le plugin n’a rien à voir la dedans, testes avec eufy test (n’utilise pas les boutons du plugin car ils vont écraser tes modifs)

Rien ne se passe avec la commande netstat -a|grep 3000|grep LISTEN

Et pas de soucis de connexion apparemment :

root@Jeedom:~# nslookup extend.eufylife.com
Server:         192.168.0.1
Address:        192.168.0.1#53

Non-authoritative answer:
extend.eufylife.com     canonical name = security-apisix-prod-89063967.us-east-2.elb.amazonaws.com.
Name:   security-apisix-prod-89063967.us-east-2.elb.amazonaws.com
Address: 3.140.68.40
Name:   security-apisix-prod-89063967.us-east-2.elb.amazonaws.com
Address: 3.132.105.55
Name:   security-apisix-prod-89063967.us-east-2.elb.amazonaws.com
Address: 3.135.47.196
Name:   security-apisix-prod-89063967.us-east-2.elb.amazonaws.com
Address: 18.216.46.69
Name:   security-apisix-prod-89063967.us-east-2.elb.amazonaws.com
Address: 3.20.133.165
Name:   security-apisix-prod-89063967.us-east-2.elb.amazonaws.com
Address: 3.133.198.48
Name:   security-apisix-prod-89063967.us-east-2.elb.amazonaws.com
Address: 3.136.171.4
Name:   security-apisix-prod-89063967.us-east-2.elb.amazonaws.com
Address: 18.190.132.40
root@Jeedom:~# ping www.google.fr
PING www.google.fr (142.250.179.67) 56(84) bytes of data.
64 bytes from par21s19-in-f3.1e100.net (142.250.179.67): icmp_seq=1 ttl=116 time=13.7 ms
64 bytes from par21s19-in-f3.1e100.net (142.250.179.67): icmp_seq=2 ttl=116 time=14.4 ms
64 bytes from par21s19-in-f3.1e100.net (142.250.179.67): icmp_seq=3 ttl=116 time=14.1 ms
64 bytes from par21s19-in-f3.1e100.net (142.250.179.67): icmp_seq=4 ttl=116 time=13.9 ms
64 bytes from par21s19-in-f3.1e100.net (142.250.179.67): icmp_seq=5 ttl=116 time=14.2 ms
64 bytes from par21s19-in-f3.1e100.net (142.250.179.67): icmp_seq=6 ttl=116 time=14.0 ms
64 bytes from par21s19-in-f3.1e100.net (142.250.179.67): icmp_seq=7 ttl=116 time=14.1 ms
64 bytes from par21s19-in-f3.1e100.net (142.250.179.67): icmp_seq=8 ttl=116 time=14.1 ms
64 bytes from par21s19-in-f3.1e100.net (142.250.179.67): icmp_seq=9 ttl=116 time=14.3 ms
64 bytes from par21s19-in-f3.1e100.net (142.250.179.67): icmp_seq=10 ttl=116 time=14.1 ms
64 bytes from par21s19-in-f3.1e100.net (142.250.179.67): icmp_seq=11 ttl=116 time=14.0 ms
64 bytes from par21s19-in-f3.1e100.net (142.250.179.67): icmp_seq=12 ttl=116 time=14.1 ms
64 bytes from par21s19-in-f3.1e100.net (142.250.179.67): icmp_seq=13 ttl=116 time=15.1 ms
64 bytes from par21s19-in-f3.1e100.net (142.250.179.67): icmp_seq=14 ttl=116 time=13.8 ms
 64 bytes from par21s19-in-f3.1e100.net (142.250.179.67): icmp_seq=15 ttl=116 time=15.1 ms

64 bytes from par21s19-in-f3.1e100.net (142.250.179.67): icmp_seq=16 ttl=116 time=14.2 ms
64 bytes from par21s19-in-f3.1e100.net (142.250.179.67): icmp_seq=17 ttl=116 time=14.7 ms
64 bytes from par21s19-in-f3.1e100.net (142.250.179.67): icmp_seq=18 ttl=116 time=14.2 ms
64 bytes from par21s19-in-f3.1e100.net (142.250.179.67): icmp_seq=19 ttl=116 time=15.9 ms
^[64 bytes from par21s19-in-f3.1e100.net (142.250.179.67): icmp_seq=20 ttl=116 time=14.0 ms
64 bytes from par21s19-in-f3.1e100.net (142.250.179.67): icmp_seq=21 ttl=116 time=14.1 ms
64 bytes from par21s19-in-f3.1e100.net (142.250.179.67): icmp_seq=22 ttl=116 time=14.4 ms
64 bytes from par21s19-in-f3.1e100.net (142.250.179.67): icmp_seq=23 ttl=116 time=14.0 ms
64 bytes from par21s19-in-f3.1e100.net (142.250.179.67): icmp_seq=24 ttl=116 time=14.0 ms
64 bytes from par21s19-in-f3.1e100.net (142.250.179.67): icmp_seq=25 ttl=116 time=14.1 ms
64 bytes from par21s19-in-f3.1e100.net (142.250.179.67): icmp_seq=26 ttl=116 time=13.7 ms
^C
  www.google.fr ping statistics 
26 packets transmitted, 26 received, 0% packet loss, time 55ms
rtt min/avg/max/mdev = 13.704/14.245/15.851/0.474 ms

Par contre concernant le container, je l’ai redémarré via le plugin Eufy, j’ai bien vérifié qu’il soit en statut "running’ dans le plugin Docker management, et je n’ai que ça avec la dernière commande

root@Jeedom:/var/www/html/plugins/eufy/resources# docker exec -it 389c3905468f /bin/sh
/usr/src/app # root@Jeedom:/var/www/html/plugins/eufy/resources#

ok donc ton réseau Jeedom a l’air bon. reste a voir celui du container qui apparament pose pb.

le # ca n’est pas un commentaire ca fait partie du prompt
une fois que tu as le prompt:
/usr/src/app #

testes ping et nslookup
Sinon as tu essayé de modifier le fichier yml comme indiqué plus haut??

Résultat :

/usr/src/app # root@Jeedom:~# docker exec -it 389c3905468f /bin/sh
/usr/src/app # ping www.google.fr
ping: bad address 'www.google.fr'

Donc si je comprends bien, c’est mon container qui n’a pas de connexion…

Demain je vais aller demander de l’aider sur le forum du plugin Docker management, je te remercie énormement pour tout le temps que tu as pris et pour toi aide !

Oui c’est presque ca:
apparament c’est le service de résolution de noms (DNS) qui pose problème.
Pour vérifier tu peux essayer de pinger un site par son ip ex 216.58.214.163 pour google

Encore une fois c’est un problème systeme rien a voir avec jeedom.
Attention tu es en debian10 donc plus supporté…je ne sais pas si ca a un rapport ou pas

Je te conseille d’essayer de changer la config reseau de ton container comme je te l’ai suggéré plus haut (docker-compose.yml)

Tiens moi au courant

Qu’entends tu par « changer la config réseau » ?
Cette ligne ? :

network_mode: host

oui cf mon message précédent