Image Node 18 : Tests intégration Bluetooth

J’ai un nut mini en bluetooth si tu veux que je teste.
Que dois-je faire ?

Si je fais ça, c’est bon ?

docker run -d \
--log-opt max-size=10m \
--restart=always \
--privileged \
--network=host \
--name gladys-test-bluetooth \
-e NODE_ENV=production \
-e SERVER_PORT=8001 \
-e TZ=Europe/Paris \
-e SQLITE_FILE_PATH=/var/lib/gladysassistant/gladys-production.db \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /var/lib/gladysassistant_test_bluetooth:/var/lib/gladysassistant \
-v /dev:/dev \
-v /run/udev:/run/udev:ro \
VonOx/Gladys:ble-deps

J’utilise mon rpi sur lequel il y a Gladys d’installé.
Je n’ai aucune instance en test

yes c’est bon ! Tiens nous au courant, si c’est bon chez toi je déploie ça :slight_smile:

bonjour @pierre-gilles
Je viens de lancer la commande de Gaetan

docker run -d \
--log-opt max-size=10m \
--restart=always \
--privileged \
--network=host \
--name gladys-test-bluetooth \
-e NODE_ENV=production \
-e SERVER_PORT=8001 \
-e TZ=Europe/Paris \
-e SQLITE_FILE_PATH=/var/lib/gladysassistant/gladys-production.db \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /var/lib/gladysassistant_test_bluetooth:/var/lib/gladysassistant \
-v /dev:/dev \
-v /run/udev:/run/udev:ro \
VonOx/Gladys:ble-deps

mais ça ne passe pas , j’ai ce retour

docker: invalid reference format: repository name must be lowercase.
See 'docker run --help'.

peux tu m’aider a tester

L’image Docker n’était pas bonne dans la commande, c’est:

Donc ce qui fait:

docker run -d \
--log-opt max-size=10m \
--restart=always \
--privileged \
--network=host \
--name gladys-test-bluetooth \
-e NODE_ENV=production \
-e SERVER_PORT=8001 \
-e TZ=Europe/Paris \
-e SQLITE_FILE_PATH=/var/lib/gladysassistant/gladys-production.db \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /var/lib/gladysassistant_test_bluetooth:/var/lib/gladysassistant \
-v /dev:/dev \
-v /run/udev:/run/udev:ro \
vonox/gladys:bluetooth

ça fonctionne maintenant merci , des que j’ai testé je te fait un retour

1 « J'aime »

j’ai testé sur mon compte gladys plus, mais j’ai toujours l’erreur bluetooth :


Voici les logs :

Require stack:
- /src/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/hci.js
- /src/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/bindings.js
- /src/server/services/bluetooth/node_modules/@abandonware/noble/lib/resolve-bindings.js
- /src/server/services/bluetooth/node_modules/@abandonware/noble/index.js
- /src/server/services/bluetooth/lib/commands/bluetooth.start.js
- /src/server/services/bluetooth/lib/index.js
- /src/server/services/bluetooth/index.js
- /src/server/services/index.js
- /src/server/lib/index.js
- /src/server/index.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
    at Function.Module._load (node:internal/modules/cjs/loader:841:27)
    at Module.require (node:internal/modules/cjs/loader:1061:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object.<anonymous> (/src/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/hci.js:6:28)
    at Module._compile (node:internal/modules/cjs/loader:1159:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
    at Module.load (node:internal/modules/cjs/loader:1037:32)
    at Function.Module._load (node:internal/modules/cjs/loader:878:12)
    at Module.require (node:internal/modules/cjs/loader:1061:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object.<anonymous> (/src/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:7:13)
    at Module._compile (node:internal/modules/cjs/loader:1159:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
    at Module.load (node:internal/modules/cjs/loader:1037:32)
    at Function.Module._load (node:internal/modules/cjs/loader:878:12)
    at Module.require (node:internal/modules/cjs/loader:1061:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at module.exports (/src/server/services/bluetooth/node_modules/@abandonware/noble/lib/resolve-bindings.js:13:12)
    at Object.<anonymous> (/src/server/services/bluetooth/node_modules/@abandonware/noble/index.js:2:49)
    at Module._compile (node:internal/modules/cjs/loader:1159:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
    at Module.load (node:internal/modules/cjs/loader:1037:32)
    at Function.Module._load (node:internal/modules/cjs/loader:878:12)
    at Module.require (node:internal/modules/cjs/loader:1061:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at BluetoothManager.start (/src/server/services/bluetooth/lib/commands/bluetooth.start.js:16:20)
    at Object.start (/src/server/services/bluetooth/index.js:16:28)
    at Service.start (/src/server/lib/service/service.start.js:33:21)
    at start (/src/server/api/controllers/service.controller.js:22:21) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/src/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/hci.js',
    '/src/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/bindings.js',
    '/src/server/services/bluetooth/node_modules/@abandonware/noble/lib/resolve-bindings.js',
    '/src/server/services/bluetooth/node_modules/@abandonware/noble/index.js',
    '/src/server/services/bluetooth/lib/commands/bluetooth.start.js',
    '/src/server/services/bluetooth/lib/index.js',
    '/src/server/services/bluetooth/index.js',
    '/src/server/services/index.js',
    '/src/server/lib/index.js',
    '/src/server/index.js'
  ]
}
2022-12-12T09:35:50+0100 <info> index.js:15 (Object.start) Starting Bluetooth service
2022-12-12T09:35:50+0100 <warn> service.start.js:44 (Service.start) Unable to start service bluetooth Error: Cannot find module '@abandonware/bluetooth-hci-socket'
Require stack:
- /src/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/hci.js
- /src/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/bindings.js
- /src/server/services/bluetooth/node_modules/@abandonware/noble/lib/resolve-bindings.js
- /src/server/services/bluetooth/node_modules/@abandonware/noble/index.js
- /src/server/services/bluetooth/lib/commands/bluetooth.start.js
- /src/server/services/bluetooth/lib/index.js
- /src/server/services/bluetooth/index.js
- /src/server/services/index.js
- /src/server/lib/index.js
- /src/server/index.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
    at Function.Module._load (node:internal/modules/cjs/loader:841:27)
    at Module.require (node:internal/modules/cjs/loader:1061:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object.<anonymous> (/src/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/hci.js:6:28)
    at Module._compile (node:internal/modules/cjs/loader:1159:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
    at Module.load (node:internal/modules/cjs/loader:1037:32)
    at Function.Module._load (node:internal/modules/cjs/loader:878:12)
    at Module.require (node:internal/modules/cjs/loader:1061:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object.<anonymous> (/src/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:7:13)
    at Module._compile (node:internal/modules/cjs/loader:1159:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
    at Module.load (node:internal/modules/cjs/loader:1037:32)
    at Function.Module._load (node:internal/modules/cjs/loader:878:12)
    at Module.require (node:internal/modules/cjs/loader:1061:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at module.exports (/src/server/services/bluetooth/node_modules/@abandonware/noble/lib/resolve-bindings.js:13:12)
    at Object.<anonymous> (/src/server/services/bluetooth/node_modules/@abandonware/noble/index.js:2:49)
    at Module._compile (node:internal/modules/cjs/loader:1159:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
    at Module.load (node:internal/modules/cjs/loader:1037:32)
    at Function.Module._load (node:internal/modules/cjs/loader:878:12)
    at Module.require (node:internal/modules/cjs/loader:1061:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at BluetoothManager.start (/src/server/services/bluetooth/lib/commands/bluetooth.start.js:16:20)
    at Object.start (/src/server/services/bluetooth/index.js:16:28)
    at Service.start (/src/server/lib/service/service.start.js:33:21)
    at start (/src/server/api/controllers/service.controller.js:22:21) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/src/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/hci.js',
    '/src/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/bindings.js',
    '/src/server/services/bluetooth/node_modules/@abandonware/noble/lib/resolve-bindings.js',
    '/src/server/services/bluetooth/node_modules/@abandonware/noble/index.js',
    '/src/server/services/bluetooth/lib/commands/bluetooth.start.js',
    '/src/server/services/bluetooth/lib/index.js',
    '/src/server/services/bluetooth/index.js',
    '/src/server/services/index.js',
    '/src/server/lib/index.js',
    '/src/server/index.js'
  ]
}
2022-12-12T09:35:50+0100 <info> index.js:15 (Object.start) Starting Bluetooth service
2022-12-12T09:35:50+0100 <warn> service.start.js:44 (Service.start) Unable to start service bluetooth Error: Cannot find module '@abandonware/bluetooth-hci-socket'
Require stack:
- /src/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/hci.js
- /src/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/bindings.js
- /src/server/services/bluetooth/node_modules/@abandonware/noble/lib/resolve-bindings.js
- /src/server/services/bluetooth/node_modules/@abandonware/noble/index.js
- /src/server/services/bluetooth/lib/commands/bluetooth.start.js
- /src/server/services/bluetooth/lib/index.js
- /src/server/services/bluetooth/index.js
- /src/server/services/index.js
- /src/server/lib/index.js
- /src/server/index.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
    at Function.Module._load (node:internal/modules/cjs/loader:841:27)
    at Module.require (node:internal/modules/cjs/loader:1061:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object.<anonymous> (/src/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/hci.js:6:28)
    at Module._compile (node:internal/modules/cjs/loader:1159:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
    at Module.load (node:internal/modules/cjs/loader:1037:32)
    at Function.Module._load (node:internal/modules/cjs/loader:878:12)
    at Module.require (node:internal/modules/cjs/loader:1061:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object.<anonymous> (/src/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:7:13)
    at Module._compile (node:internal/modules/cjs/loader:1159:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
    at Module.load (node:internal/modules/cjs/loader:1037:32)
    at Function.Module._load (node:internal/modules/cjs/loader:878:12)
    at Module.require (node:internal/modules/cjs/loader:1061:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at module.exports (/src/server/services/bluetooth/node_modules/@abandonware/noble/lib/resolve-bindings.js:13:12)
    at Object.<anonymous> (/src/server/services/bluetooth/node_modules/@abandonware/noble/index.js:2:49)
    at Module._compile (node:internal/modules/cjs/loader:1159:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
    at Module.load (node:internal/modules/cjs/loader:1037:32)
    at Function.Module._load (node:internal/modules/cjs/loader:878:12)
    at Module.require (node:internal/modules/cjs/loader:1061:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at BluetoothManager.start (/src/server/services/bluetooth/lib/commands/bluetooth.start.js:16:20)
    at Object.start (/src/server/services/bluetooth/index.js:16:28)
    at Service.start (/src/server/lib/service/service.start.js:33:21)
    at start (/src/server/api/controllers/service.controller.js:22:21) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/src/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/hci.js',
    '/src/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/bindings.js',
    '/src/server/services/bluetooth/node_modules/@abandonware/noble/lib/resolve-bindings.js',
    '/src/server/services/bluetooth/node_modules/@abandonware/noble/index.js',
    '/src/server/services/bluetooth/lib/commands/bluetooth.start.js',
    '/src/server/services/bluetooth/lib/index.js',
    '/src/server/services/bluetooth/index.js',
    '/src/server/services/index.js',
    '/src/server/lib/index.js',
    '/src/server/index.js'
  ]
}
2022-12-12T09:35:50+0100 <info> index.js:15 (Object.start) Starting Bluetooth service
2022-12-12T09:35:50+0100 <warn> service.start.js:44 (Service.start) Unable to start service bluetooth Error: Cannot find module '@abandonware/bluetooth-hci-socket'
Require stack:
- /src/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/hci.js
- /src/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/bindings.js
- /src/server/services/bluetooth/node_modules/@abandonware/noble/lib/resolve-bindings.js
- /src/server/services/bluetooth/node_modules/@abandonware/noble/index.js
- /src/server/services/bluetooth/lib/commands/bluetooth.start.js
- /src/server/services/bluetooth/lib/index.js
- /src/server/services/bluetooth/index.js
- /src/server/services/index.js
- /src/server/lib/index.js
- /src/server/index.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
    at Function.Module._load (node:internal/modules/cjs/loader:841:27)
    at Module.require (node:internal/modules/cjs/loader:1061:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object.<anonymous> (/src/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/hci.js:6:28)
    at Module._compile (node:internal/modules/cjs/loader:1159:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
    at Module.load (node:internal/modules/cjs/loader:1037:32)
    at Function.Module._load (node:internal/modules/cjs/loader:878:12)
    at Module.require (node:internal/modules/cjs/loader:1061:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object.<anonymous> (/src/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:7:13)
    at Module._compile (node:internal/modules/cjs/loader:1159:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
    at Module.load (node:internal/modules/cjs/loader:1037:32)
    at Function.Module._load (node:internal/modules/cjs/loader:878:12)
    at Module.require (node:internal/modules/cjs/loader:1061:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at module.exports (/src/server/services/bluetooth/node_modules/@abandonware/noble/lib/resolve-bindings.js:13:12)
    at Object.<anonymous> (/src/server/services/bluetooth/node_modules/@abandonware/noble/index.js:2:49)
    at Module._compile (node:internal/modules/cjs/loader:1159:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
    at Module.load (node:internal/modules/cjs/loader:1037:32)
    at Function.Module._load (node:internal/modules/cjs/loader:878:12)
    at Module.require (node:internal/modules/cjs/loader:1061:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at BluetoothManager.start (/src/server/services/bluetooth/lib/commands/bluetooth.start.js:16:20)
    at Object.start (/src/server/services/bluetooth/index.js:16:28)
    at Service.start (/src/server/lib/service/service.start.js:33:21)
    at start (/src/server/api/controllers/service.controller.js:22:21) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/src/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/hci.js',
    '/src/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/bindings.js',
    '/src/server/services/bluetooth/node_modules/@abandonware/noble/lib/resolve-bindings.js',
    '/src/server/services/bluetooth/node_modules/@abandonware/noble/index.js',
    '/src/server/services/bluetooth/lib/commands/bluetooth.start.js',
    '/src/server/services/bluetooth/lib/index.js',
    '/src/server/services/bluetooth/index.js',
    '/src/server/services/index.js',
    '/src/server/lib/index.js',
    '/src/server/index.js'
  ]
}
2022-12-12T09:35:50+0100 <info> index.js:15 (Object.start) Starting Bluetooth service
2022-12-12T09:35:50+0100 <warn> service.start.js:44 (Service.start) Unable to start service bluetooth Error: Cannot find module '@abandonware/bluetooth-hci-socket'
Require stack:
- /src/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/hci.js
- /src/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/bindings.js
- /src/server/services/bluetooth/node_modules/@abandonware/noble/lib/resolve-bindings.js
- /src/server/services/bluetooth/node_modules/@abandonware/noble/index.js
- /src/server/services/bluetooth/lib/commands/bluetooth.start.js
- /src/server/services/bluetooth/lib/index.js
- /src/server/services/bluetooth/index.js
- /src/server/services/index.js
- /src/server/lib/index.js
- /src/server/index.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
    at Function.Module._load (node:internal/modules/cjs/loader:841:27)
    at Module.require (node:internal/modules/cjs/loader:1061:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object.<anonymous> (/src/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/hci.js:6:28)
    at Module._compile (node:internal/modules/cjs/loader:1159:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
    at Module.load (node:internal/modules/cjs/loader:1037:32)
    at Function.Module._load (node:internal/modules/cjs/loader:878:12)
    at Module.require (node:internal/modules/cjs/loader:1061:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object.<anonymous> (/src/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:7:13)
    at Module._compile (node:internal/modules/cjs/loader:1159:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
    at Module.load (node:internal/modules/cjs/loader:1037:32)
    at Function.Module._load (node:internal/modules/cjs/loader:878:12)
    at Module.require (node:internal/modules/cjs/loader:1061:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at module.exports (/src/server/services/bluetooth/node_modules/@abandonware/noble/lib/resolve-bindings.js:13:12)
    at Object.<anonymous> (/src/server/services/bluetooth/node_modules/@abandonware/noble/index.js:2:49)
    at Module._compile (node:internal/modules/cjs/loader:1159:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
    at Module.load (node:internal/modules/cjs/loader:1037:32)
    at Function.Module._load (node:internal/modules/cjs/loader:878:12)
    at Module.require (node:internal/modules/cjs/loader:1061:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at BluetoothManager.start (/src/server/services/bluetooth/lib/commands/bluetooth.start.js:16:20)
    at Object.start (/src/server/services/bluetooth/index.js:16:28)
    at Service.start (/src/server/lib/service/service.start.js:33:21)
    at start (/src/server/api/controllers/service.controller.js:22:21) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/src/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/hci.js',
    '/src/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/bindings.js',
    '/src/server/services/bluetooth/node_modules/@abandonware/noble/lib/resolve-bindings.js',
    '/src/server/services/bluetooth/node_modules/@abandonware/noble/index.js',
    '/src/server/services/bluetooth/lib/commands/bluetooth.start.js',
    '/src/server/services/bluetooth/lib/index.js',
    '/src/server/services/bluetooth/index.js',
    '/src/server/services/index.js',
    '/src/server/lib/index.js',
    '/src/server/index.js'
  ]
}

j’ai tous les containers demarrés a part Node Red qui reboot je vais le stopper

pi@gladys:~ $ docker ps
CONTAINER ID   IMAGE                       COMMAND                  CREATED          STATUS                                    PORTS      NAMES
05987e09fdbb   eclipse-mosquitto:2         "/docker-entrypoint.…"   22 minutes ago   Up 9 minutes                                         eclipse-mosquitto
baf32bf09b1a   vonox/gladys:bluetooth      "docker-entrypoint.s…"   22 minutes ago   Up 9 minutes                                         gladys-test-bluetooth
662d9e143110   gladysassistant/gladys:v4   "docker-entrypoint.s…"   2 days ago       Up 9 minutes                                         gladys
8e73185294de   koenkk/zigbee2mqtt:latest   "docker-entrypoint.s…"   5 days ago       Up 24 seconds                                        gladys-z2m-zigbee2mqtt
0f495c088d6e   eclipse-mosquitto:2         "/docker-entrypoint.…"   5 days ago       Up 9 minutes                                         gladys-z2m-mqtt
9c1382849337   nodered/node-red            "./entrypoint.sh"        5 days ago       Restarting (139) Less than a second ago              node_red
62b37583c049   containrrr/watchtower       "/watchtower --clean…"   5 days ago       Up 9 minutes                              8080/tcp   watchtower
pi@gladys:~ $

Euh attention, tu as fais quoi ? ^^

Tu n’as pas fais ça ? :

j’ai vu ton message apres, j’ ai lancé directement sur mon instance par putty puis j’ai redemarrer le Pi , je crois que j’ai été trop vite. J’espere que ce n’est pas destructeur, mais s’il faut tout reinstaller pas de soucis je commence a etre bien rodé

@Psoy @gaetanb76 J’ai séparé cette discussion dans un autre sujet pour pas embêter tout le monde :slight_smile:

@Psoy peux-tu être plus précis, qu’entend tu par " j’ ai lancé directement sur mon instance par putty puis j’ai redemarrer le Pi" ? Décris étape par étape ce que tu as fais :slight_smile:

Sur putty j’ai lancer la commande de Vonox, tout c’est bien deloyés
j’ai fait un docker ps, j’ai vu que les containers se lançaient, putty m’a rendu la main
donc j’ai rebooté le RPI.
redemarrage,tous les containers se sont installés et j’ai ouvert gladys comme d’habitude,
gladys s’est ouvert , avec tous mes devices, dashboard comme d’habitude
a partir de la je t’ai copié les logs et les copies d’ecran
je n’ai pas fais de restauration de Gladys

Aaah ok!

Tu regarde le mauvais container à mon avis.

Relis la commande que tu as exécuté, Gladys « de test » doit tourner sur le port 8001

( cf: -e SERVER_PORT=8001 \ )

Et le container s’appelle gladys-test-bluetooth donc pour voir les logs c’est:

docker logs gladys-test-bluetooth

est ce qu’il y a des infos confidentiels dans les logs ?, je demande ça, car comme je ne maitise pas je vais tous copier

Normalement non! Au pire je te dirais et tu retireras

Est-ce que le bluetooth fonctionne déjà ?

J’ai donc créé un compte local.
Le service Bluetooth est bien démarré.
Il voit bien des appareils.
Mon nut n’est pas vu… Tant pis.

voici les log

pi@gladys:~ $ docker logs  gladys-test-bluetooth

> start:prod
> cross-env NODE_ENV=production node index.js

2022-12-12T09:20:52+0100 <info> 20210129155044-multi-user.js:23 (Object.up) Multi-user migration: 0 users found
2022-12-12T09:20:53+0100 <info> job.purge.js:17 (Job.purge) Deleting all background jobs created before = Mon Dec 05 2022 09:20:53 GMT+0100 (Central European Standard Time)
2022-12-12T09:21:00+0100 <info> index.js:14 (Object.start) starting Alexa service
2022-12-12T09:21:00+0100 <info> index.js:21 (Object.start) Starting example service
2022-12-12T09:21:00+0100 <info> index.js:20 (Object.start) Starting Open Weather service
2022-12-12T09:21:00+0100 <info> service.start.js:40 (Service.start) Service openweather is not configured, so it was not started.
2022-12-12T09:21:00+0100 <info> index.js:88 (Object.start) Starting CalDAV service
2022-12-12T09:21:00+0100 <info> index.js:16 (Object.start) starting Broadlink service
2022-12-12T09:21:01+0100 <info> broadlink.addPeripheral.js:29 (BroadlinkHandler.addPeripheral) Broadlink discovers new peripheral: 75a863770f78
2022-12-12T09:21:01+0100 <info> index.js:18 (Object.start) Starting HomeKit service
2022-12-12T09:21:01+0100 <info> index.js:14 (Object.start) starting GoogleActions service
2022-12-12T09:21:02+0100 <info> init.js:31 (Zigbee2mqttManager.init) Zigbee2mqtt USB dongle not attached
2022-12-12T09:21:02+0100 <info> index.js:18 (Object.start) Starting TP-Link service
2022-12-12T09:21:02+0100 <info> index.js:17 (Object.start) Starting eWeLink service
2022-12-12T09:21:02+0100 <info> service.start.js:40 (Service.start) Service ewelink is not configured, so it was not started.
2022-12-12T09:21:02+0100 <info> index.js:15 (Object.start) Starting Bluetooth service
2022-12-12T09:21:02+0100 <info> bluetooth.initPresenceScanner.js:18 (BluetoothManager.initPresenceScanner) Bluetooth configuration: starting presence scanner
2022-12-12T09:21:02+0100 <info> bluetooth.initPresenceScanner.js:13 (BluetoothManager.initPresenceScanner) Bluetooth configuration: stopping presence scanner
2022-12-12T09:21:02+0100 <info> bluetooth.initPresenceScanner.js:18 (BluetoothManager.initPresenceScanner) Bluetooth configuration: starting presence scanner
2022-12-12T09:21:03+0100 <info> index.js:15 (Object.start) Starting Tasmota service
2022-12-12T09:21:03+0100 <info> index.js:14 (Object.start) Starting Xiaomi service
2022-12-12T09:21:03+0100 <info> index.js:13 (Object.start) Starting usb service
2022-12-12T09:21:03+0100 <info> index.js:19 (Object.start) Starting Telegram service
2022-12-12T09:21:03+0100 <info> service.start.js:40 (Service.start) Service telegram is not configured, so it was not started.
2022-12-12T09:21:03+0100 <info> index.js:16 (Object.start) Starting RTSP service
2022-12-12T09:21:03+0100 <info> index.js:18 (Object.start) Starting Philips Hue service
2022-12-12T09:21:03+0100 <info> index.js:16 (Object.start) Starting MQTT service
2022-12-12T09:21:03+0100 <info> updateContainer.js:13 (MqttHandler.updateContainer) MQTT: checking for required changes...
2022-12-12T09:21:03+0100 <info> updateContainer.js:18 (MqttHandler.updateContainer) MQTT: update to mosquitto v2 required...
2022-12-12T09:21:03+0100 <info> installContainer.js:19 (MqttHandler.installContainer) MQTT broker is being installed as Docker container...
2022-12-12T09:21:03+0100 <info> installContainer.js:23 (MqttHandler.installContainer) Check Gladys network...
2022-12-12T09:21:03+0100 <info> installContainer.js:29 (MqttHandler.installContainer) Pulling eclipse-mosquitto:2 image...
2022-12-12T09:21:04+0100 <info> installContainer.js:33 (MqttHandler.installContainer) Preparing broker environment...
2022-12-12T09:21:04+0100 <info> installContainer.js:37 (MqttHandler.installContainer) Creating container...
2022-12-12T09:21:05+0100 <info> installContainer.js:45 (MqttHandler.installContainer) MQTT broker successfully installed as Docker container
2022-12-12T09:21:05+0100 <info> updateContainer.js:39 (MqttHandler.updateContainer) MQTT: update to mosquitto v2 done
2022-12-12T09:21:05+0100 <info> service.start.js:40 (Service.start) Service mqtt is not configured, so it was not started.
2022-12-12T09:21:05+0100 <info> index.js:17 (Object.start) Starting Ecowatt service
2022-12-12T09:21:05+0100 <info> device.calculateAggregate.js:38 (DeviceManager.calculateAggregate) Calculating aggregates device feature state for interval hourly
2022-12-12T09:21:06+0100 <info> index.js:63 (Server.<anonymous>) Server listening on port 8001
2022-12-12T09:21:10+0100 <info> device.calculateAggregate.js:105 (ChildProcess.<anonymous>) device.calculateAggregate: Finishing processing for interval hourly
2022-12-12T09:21:10+0100 <info> device.calculateAggregate.js:38 (DeviceManager.calculateAggregate) Calculating aggregates device feature state for interval daily
2022-12-12T09:21:13+0100 <info> device.calculateAggregate.js:105 (ChildProcess.<anonymous>) device.calculateAggregate: Finishing processing for interval daily
2022-12-12T09:21:14+0100 <info> device.calculateAggregate.js:38 (DeviceManager.calculateAggregate) Calculating aggregates device feature state for interval monthly
2022-12-12T09:21:18+0100 <info> device.calculateAggregate.js:105 (ChildProcess.<anonymous>) device.calculateAggregate: Finishing processing for interval monthly
2022-12-12T09:22:00+0100 <info> scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Mon, 12 Dec 2022 08:22:00 GMT
2022-12-12T09:23:00+0100 <info> scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Mon, 12 Dec 2022 08:23:00 GMT
2022-12-12T09:24:00+0100 <info> scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Mon, 12 Dec 2022 08:24:00 GMT
2022-12-12T09:25:00+0100 <info> scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Mon, 12 Dec 2022 08:25:00 GMT
2022-12-12T09:26:00+0100 <info> scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Mon, 12 Dec 2022 08:26:00 GMT
2022-12-12T09:27:00+0100 <info> scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Mon, 12 Dec 2022 08:27:00 GMT
2022-12-12T09:28:00+0100 <info> scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Mon, 12 Dec 2022 08:28:00 GMT
2022-12-12T09:29:00+0100 <info> scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Mon, 12 Dec 2022 08:29:00 GMT
2022-12-12T09:30:00+0100 <info> scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Mon, 12 Dec 2022 08:30:00 GMT
2022-12-12T09:31:00+0100 <info> scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Mon, 12 Dec 2022 08:31:00 GMT
2022-12-12T09:32:00+0100 <info> scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Mon, 12 Dec 2022 08:32:00 GMT
2022-12-12T09:32:40+0100 <info> index.js:25 (shutdown) SIGTERM received.
2022-12-12T09:32:40+0100 <info> index.js:31 (shutdown) Closing database connection.

> start:prod
> cross-env NODE_ENV=production node index.js

2022-12-12T09:34:51+0100 <info> job.purge.js:17 (Job.purge) Deleting all background jobs created before = Mon Dec 05 2022 09:34:51 GMT+0100 (Central European Standard Time)
2022-12-12T09:35:05+0100 <info> index.js:88 (Object.start) Starting CalDAV service
2022-12-12T09:35:05+0100 <info> index.js:17 (Object.start) Starting eWeLink service
2022-12-12T09:35:05+0100 <info> service.start.js:40 (Service.start) Service ewelink is not configured, so it was not started.
2022-12-12T09:35:05+0100 <info> index.js:21 (Object.start) Starting example service
2022-12-12T09:35:06+0100 <info> index.js:14 (Object.start) starting Alexa service
2022-12-12T09:35:06+0100 <info> index.js:15 (Object.start) Starting Bluetooth service
2022-12-12T09:35:07+0100 <info> bluetooth.initPresenceScanner.js:18 (BluetoothManager.initPresenceScanner) Bluetooth configuration: starting presence scanner
2022-12-12T09:35:07+0100 <info> index.js:16 (Object.start) starting Broadlink service
2022-12-12T09:35:08+0100 <info> broadlink.addPeripheral.js:29 (BroadlinkHandler.addPeripheral) Broadlink discovers new peripheral: 75a863770f78
2022-12-12T09:35:08+0100 <info> index.js:18 (Object.start) Starting HomeKit service
2022-12-12T09:35:08+0100 <info> index.js:14 (Object.start) starting GoogleActions service
2022-12-12T09:35:08+0100 <info> init.js:31 (Zigbee2mqttManager.init) Zigbee2mqtt USB dongle not attached
2022-12-12T09:35:08+0100 <info> index.js:18 (Object.start) Starting TP-Link service
2022-12-12T09:35:08+0100 <info> index.js:15 (Object.start) Starting Tasmota service
2022-12-12T09:35:08+0100 <info> index.js:14 (Object.start) Starting Xiaomi service
2022-12-12T09:35:09+0100 <info> index.js:13 (Object.start) Starting usb service
2022-12-12T09:35:09+0100 <info> index.js:19 (Object.start) Starting Telegram service
2022-12-12T09:35:09+0100 <info> service.start.js:40 (Service.start) Service telegram is not configured, so it was not started.
2022-12-12T09:35:09+0100 <info> index.js:16 (Object.start) Starting RTSP service
2022-12-12T09:35:09+0100 <info> index.js:18 (Object.start) Starting Philips Hue service
2022-12-12T09:35:09+0100 <info> index.js:16 (Object.start) Starting MQTT service
2022-12-12T09:35:09+0100 <info> updateContainer.js:13 (MqttHandler.updateContainer) MQTT: checking for required changes...
2022-12-12T09:35:09+0100 <info> service.start.js:40 (Service.start) Service mqtt is not configured, so it was not started.
2022-12-12T09:35:09+0100 <info> index.js:17 (Object.start) Starting Ecowatt service
2022-12-12T09:35:09+0100 <info> index.js:20 (Object.start) Starting Open Weather service
2022-12-12T09:35:09+0100 <info> service.start.js:40 (Service.start) Service openweather is not configured, so it was not started.
2022-12-12T09:35:09+0100 <info> device.calculateAggregate.js:38 (DeviceManager.calculateAggregate) Calculating aggregates device feature state for interval hourly
2022-12-12T09:35:10+0100 <info> index.js:63 (Server.<anonymous>) Server listening on port 8001
2022-12-12T09:35:17+0100 <info> device.calculateAggregate.js:105 (ChildProcess.<anonymous>) device.calculateAggregate: Finishing processing for interval hourly
2022-12-12T09:35:17+0100 <info> device.calculateAggregate.js:38 (DeviceManager.calculateAggregate) Calculating aggregates device feature state for interval daily
2022-12-12T09:35:23+0100 <info> device.calculateAggregate.js:105 (ChildProcess.<anonymous>) device.calculateAggregate: Finishing processing for interval daily
2022-12-12T09:35:23+0100 <info> device.calculateAggregate.js:38 (DeviceManager.calculateAggregate) Calculating aggregates device feature state for interval monthly
2022-12-12T09:35:30+0100 <info> device.calculateAggregate.js:105 (ChildProcess.<anonymous>) device.calculateAggregate: Finishing processing for interval monthly
2022-12-12T09:36:00+0100 <info> scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Mon, 12 Dec 2022 08:36:00 GMT
2022-12-12T09:37:00+0100 <info> scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Mon, 12 Dec 2022 08:37:00 GMT
2022-12-12T09:38:00+0100 <info> scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Mon, 12 Dec 2022 08:38:00 GMT
2022-12-12T09:39:00+0100 <info> scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Mon, 12 Dec 2022 08:39:00 GMT
2022-12-12T09:40:00+0100 <info> scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Mon, 12 Dec 2022 08:40:00 GMT
2022-12-12T09:41:00+0100 <info> scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Mon, 12 Dec 2022 08:41:00 GMT
2022-12-12T09:42:00+0100 <info> scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Mon, 12 Dec 2022 08:42:00 GMT
2022-12-12T09:43:00+0100 <info> scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Mon, 12 Dec 2022 08:43:00 GMT
2022-12-12T09:44:00+0100 <info> scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Mon, 12 Dec 2022 08:44:00 GMT
2022-12-12T09:45:00+0100 <info> scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Mon, 12 Dec 2022 08:45:00 GMT
2022-12-12T09:46:00+0100 <info> scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Mon, 12 Dec 2022 08:46:00 GMT
2022-12-12T09:47:00+0100 <info> scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Mon, 12 Dec 2022 08:47:00 GMT
2022-12-12T09:48:00+0100 <info> scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Mon, 12 Dec 2022 08:48:00 GMT
2022-12-12T09:49:00+0100 <info> scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Mon, 12 Dec 2022 08:49:00 GMT
2022-12-12T09:50:00+0100 <info> scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Mon, 12 Dec 2022 08:50:00 GMT
2022-12-12T09:51:00+0100 <info> scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Mon, 12 Dec 2022 08:51:00 GMT
2022-12-12T09:52:00+0100 <info> scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Mon, 12 Dec 2022 08:52:00 GMT
2022-12-12T09:53:00+0100 <info> scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Mon, 12 Dec 2022 08:53:00 GMT
2022-12-12T09:54:00+0100 <info> scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Mon, 12 Dec 2022 08:54:00 GMT
2022-12-12T09:55:00+0100 <info> scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Mon, 12 Dec 2022 08:55:00 GMT
2022-12-12T09:56:00+0100 <info> scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Mon, 12 Dec 2022 08:56:00 GMT
2022-12-12T09:57:00+0100 <info> scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Mon, 12 Dec 2022 08:57:00 GMT
2022-12-12T09:58:00+0100 <info> scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Mon, 12 Dec 2022 08:58:00 GMT
2022-12-12T09:59:00+0100 <info> scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Mon, 12 Dec 2022 08:59:00 GMT
2022-12-12T10:00:00+0100 <info> scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Mon, 12 Dec 2022 09:00:00 GMT
2022-12-12T10:01:00+0100 <info> scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Mon, 12 Dec 2022 09:01:00 GMT
2022-12-12T10:02:00+0100 <info> scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Mon, 12 Dec 2022 09:02:00 GMT
2022-12-12T10:03:00+0100 <info> scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Mon, 12 Dec 2022 09:03:00 GMT
2022-12-12T10:04:00+0100 <info> scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Mon, 12 Dec 2022 09:04:00 GMT
2022-12-12T10:05:00+0100 <info> scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Mon, 12 Dec 2022 09:05:00 GMT
2022-12-12T10:06:00+0100 <info> scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Mon, 12 Dec 2022 09:06:00 GMT
2022-12-12T10:07:00+0100 <info> scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Mon, 12 Dec 2022 09:07:00 GMT
pi@gladys:~ $

je crois donc que gladys ne voit pas ce containers, car j’ai toujours cette erreur dans le service

Parfait! Donc ça résout bien le soucis :slight_smile:

Je ne vois aucunes erreurs dans les logs que tu as fourni, et le service Bluetooth a l’air de fonctionner !

@pierre-gilles je pense que le message le plus important était ici ^^’

Effectivement dans les logs j’ai vu qe le Bluetooth a bien demarré . Ce que je veux dire c’est que mon instance Gladys tourne comme avant sans tenir compte du nouveau containers bluetooth, je ne doute pas que ce soit a cause des mes manips. Dans l’intégration bluetooth j’ai toujours le même message : Le module Bluetooth n'est pas disponible, merci de vérifier qu'il est bien activé.

Je pense que tu n’as pas saisis.
Tu as installer via la commande de vonox une instance de gladys qui tente de corrigé le bluetooth.
Tu n’as pas installer un container only bluetooth…

Dans un premier temps, Il va falloir attendre des retours pour check que le container fix bien le soucis puis ton instance principal de gladys recevra la correction dans un second temps.

Tu parles de quelle instance, celle de test que tu viens d’installer ou celle « Officielle » que tu utilises tous les jours ?
Les 2 ne sont pas liées…