Installation Gladys Docker Windows avec WLS

Bonjour,

Je suis nouveau et j’ai essayé d’installer Gladys sur mon PC pour faire des tests avec une clé ZWave.
J’ai regardé le tuto très simple Windows/MacOS Docker (plus à jour car Kinematic est obsolète) mais il y a des erreurs et je n’ai rien dans l’URL http://localhost:32768.

Voici la commande que je lance:

docker run -it --name gladys --privileged gladysassistant/gladys

La sortie est la suivante:

Unable to find image 'gladysassistant/gladys:latest' locally
latest: Pulling from gladysassistant/gladys
Digest: sha256:02678a43ec69a362ef5d1136938f9e02b3d78fbfe458bfa263d74bcc4b1c4991
Status: Downloaded newer image for gladysassistant/gladys:latest

> gladys-server@ start:prod /src/server
> cross-env NODE_ENV=production node index.js

2021-05-14T11:57:40+0000 <info> 20210129155044-multi-user.js:23 (Object.up) Multi-user migration: 0 users found
Initialising OpenZWave 1.6.0 binary addon for Node.JS.
        OpenZWave Security API is ENABLED
        ZWave device db    : /usr/local/etc/openzwave
        User settings path : /src/server/services/zwave/node_modules/openzwave-shared/build/Release/../../
        Option Overrides : --Logging false --ConsoleOutput false --SaveConfiguration true
2021-05-14T11:57:40+0000 <info> index.js:19 (Object.start) Starting example service
2021-05-14T11:57:40+0000 <warn> service.start.js:44 (Service.start) Unable to start service zigbee2mqtt PlatformNotCompatible [Error]: SYSTEM_NOT_RUNNING_DOCKER
    at System.getNetworkMode (/src/server/lib/system/system.getNetworkMode.js:13:11)
    at Zigbee2mqttManager.init (/src/server/services/zigbee2mqtt/lib/init.js:18:48)
    at async Object.start (/src/server/services/zigbee2mqtt/index.js:17:5)
    at async Service.start (/src/server/lib/service/service.start.js:33:7)
2021-05-14T11:57:40+0000 <info> index.js:17 (Object.start) Starting eWeLink service
2021-05-14T11:57:40+0000 <info> service.start.js:40 (Service.start) Service ewelink is not configured, so it was not started.
2021-05-14T11:57:40+0000 <info> index.js:18 (Object.start) Starting TP-Link service
2021-05-14T11:57:40+0000 <info> index.js:16 (Object.start) Starting zwave service
2021-05-14T11:57:40+0000 <info> service.start.js:40 (Service.start) Service zwave is not configured, so it was not started.
2021-05-14T11:57:40+0000 <info> index.js:19 (Object.start) Starting Telegram service
2021-05-14T11:57:40+0000 <info> service.start.js:40 (Service.start) Service telegram is not configured, so it was not started.
2021-05-14T11:57:40+0000 <info> index.js:15 (Object.start) Starting Tasmota service
2021-05-14T11:57:40+0000 <info> index.js:15 (Object.start) Starting Bluetooth service
2021-05-14T11:57:40+0000 <error> index.js:15 (process.<anonymous>) unhandledRejection catched: Promise {
  <rejected> Error: EAFNOSUPPORT, Address family not supported by protocol
      at new Hci (/src/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/hci.js:74:18)
      at new NobleBindings (/src/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:25:15)
      at Object.<anonymous> (/src/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:546:18)
      at Module._compile (internal/modules/cjs/loader.js:1063:30)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
      at Module.load (internal/modules/cjs/loader.js:928:32)
      at Function.Module._load (internal/modules/cjs/loader.js:769:14)
      at Module.require (internal/modules/cjs/loader.js:952:19)
      at require (internal/modules/cjs/helpers.js:88: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 (internal/modules/cjs/loader.js:1063:30)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
      at Module.load (internal/modules/cjs/loader.js:928:32)
      at Function.Module._load (internal/modules/cjs/loader.js:769:14)
      at Module.require (internal/modules/cjs/loader.js:952:19)
      at require (internal/modules/cjs/helpers.js:88: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:22)
      at Service.start (/src/server/lib/service/service.start.js:33:21) {
    errno: 97,
    code: 'EAFNOSUPPORT',
    syscall: 'socket'
  }
}
2021-05-14T11:57:40+0000 <error> index.js:16 (process.<anonymous>) Error: EAFNOSUPPORT, Address family not supported by protocol
    at new Hci (/src/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/hci.js:74:18)
    at new NobleBindings (/src/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:25:15)
    at Object.<anonymous> (/src/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:546:18)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88: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 (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88: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:22)
    at Service.start (/src/server/lib/service/service.start.js:33:21) {
  errno: 97,
  code: 'EAFNOSUPPORT',
  syscall: 'socket'
}
2021-05-14T11:57:40+0000 <info> index.js:14 (Object.start) Starting Xiaomi service
2021-05-14T11:57:40+0000 <info> index.js:20 (Object.start) Starting Open Weather service
2021-05-14T11:57:40+0000 <info> service.start.js:40 (Service.start) Service openweather is not configured, so it was not started.
2021-05-14T11:57:40+0000 <info> index.js:13 (Object.start) Starting usb service
2021-05-14T11:57:40+0000 <info> index.js:18 (Object.start) Starting Philips Hue service
2021-05-14T11:57:40+0000 <info> index.js:60 (Object.start) Starting CalDAV service
2021-05-14T11:57:40+0000 <info> index.js:16 (Object.start) Starting MQTT service
2021-05-14T11:57:40+0000 <warn> service.start.js:44 (Service.start) Unable to start service mqtt PlatformNotCompatible [Error]: SYSTEM_NOT_RUNNING_DOCKER
    at System.getNetworkMode (/src/server/lib/system/system.getNetworkMode.js:13:11)
    at MqttHandler.checkDockerNetwork (/src/server/services/mqtt/lib/checkDockerNetwork.js:8:54)
    at MqttHandler.getConfiguration (/src/server/services/mqtt/lib/getConfiguration.js:24:35)
    at async MqttHandler.init (/src/server/services/mqtt/lib/init.js:13:25)
    at async Object.start (/src/server/services/mqtt/index.js:17:5)
    at async Service.start (/src/server/lib/service/service.start.js:33:7)
2021-05-14T11:57:40+0000 <info> index.js:16 (Object.start) Starting RTSP service
2021-05-14T11:57:40+0000 <info> index.js:63 (Server.<anonymous>) Server listening on port 80
^C2021-05-14T11:59:25+0000 <info> index.js:27 (shutdown) SIGINT received.
2021-05-14T11:59:25+0000 <info> index.js:28 (shutdown) Closing database connection.
2021-05-14T11:59:25+0000 <info> index.js:27 (shutdown) SIGINT received.
2021-05-14T11:59:25+0000 <info> index.js:28 (shutdown) Closing database connection.
2021-05-14T11:59:25+0000 <info> index.js:27 (shutdown) SIGINT received.
2021-05-14T11:59:25+0000 <info> index.js:28 (shutdown) Closing database connection.
2021-05-14T11:59:25+0000 <info> index.js:31 (shutdown) Closing server connections.

Merci d’avance

Bon solution est plus simple que je le pensais, je n’est pas configurer le port pour sortir sur 8080 par exemple. J’ai été enduit en erreur par les problème de bluetooth et par le tuto.

docker run -it --rm -p 8080:80 --name gladys --privileged gladysassistant/gl
adys

Il faudrait mettre à jour le tuto.

1 « J'aime »