deconz-community / deconz-docker

MIT License
375 stars 34 forks source link

Deconz webservice dies after a few seconds #188

Closed darkspirit510 closed 11 months ago

darkspirit510 commented 1 year ago

Hi all,

I'm trying to deconz on another PC (old server died 😔), both amd64 platform. I simply copied the docker folder, updated user/groups and ran the compose command that worked on the old server, but on my new machine, deconz runs for maybe 10 seconds (I can open the login screen), than it can't be reached anymore. Also, it is reported to be unhealthy. Any idea what might be the reason?

device:

root:docker/ # ls -la /dev/ttyACM0                                                                                                                                                                                                                 [14:49:06]
crw-rw---- 1 root dialout 166, 0 Apr  7 14:08 /dev/ttyACM0

usb list:

root:docker/ # lsusb                                                                                                                                                                                                                               [14:49:10]
[...]
Bus 001 Device 038: ID 1cf1:0030 Dresden Elektronik ZigBee gateway [ConBee II]
[...]

docker list:

docker/ # docker container ls                                                                                                                                                                                                                 [14:37:41]
CONTAINER ID   IMAGE                            COMMAND                  CREATED          STATUS                      PORTS                                                                                                                       NAMES
2a0b859d9652   deconzcommunity/deconz:stable    "/start.sh"              26 minutes ago   Up 26 minutes (unhealthy)   80/tcp, 443/tcp, 5900/tcp, 0.0.0.0:8802->8802/tcp, :::8802->8802/tcp, 6080/tcp, 0.0.0.0:8844->8844/tcp, :::8844->8844/tcp   deconz

docker compose:

  deconz:
    image: deconzcommunity/deconz:stable
    container_name: deconz
    restart: unless-stopped
    volumes:
      - /media/extern/docker/volumes/deCONZ:/opt/deCONZ
    devices:
      - /dev/ttyACM0
    environment:
      - DECONZ_WEB_PORT=8802
      - DECONZ_WS_PORT=8844
      - DEBUG_INFO=1
      - DEBUG_APS=0
      - DEBUG_ZCL=0
      - DEBUG_ZDP=0
      - DEBUG_OTAU=0
      - DECONZ_DEVICE=/dev/ttyACM0
      - TZ=Europe/Berlin
      - DECONZ_UPNP=0
      - DECONZ_VNC_MODE=0
      - DECONZ_START_VERBOSE=0
      - DECONZ_UID=${UID_DECONZ}
      - DECONZ_GID=${GID_DECONZ}
    ports:
      - 8802:8802
      - 8844:8844

startup log:

[deconzcommunity/deconz] Starting deCONZ...
[deconzcommunity/deconz] Current deCONZ version: 2.21.02
[deconzcommunity/deconz] Web UI port: 8802
+ echo [deconzcommunity/deconz] Starting deCONZ...
+ echo [deconzcommunity/deconz] Current deCONZ version: 2.21.02
+ echo [deconzcommunity/deconz] Web UI port: 8802
+ echo [deconzcommunity/deconz] Websockets port: 8844
+ DECONZ_OPTS=--auto-connect=1         --appdata=/opt/deCONZ         --dbg-info=1         --dbg-aps=0         --dbg-zcl=0         --dbg-ddf=0         --dbg-dev=0         --dbg-zdp=0         --dbg-ota=0         --dbg-error=0         --dbg-http=0         --http-port=8802         --ws-port=8844
+ echo [deconzcommunity/deconz] Using options --auto-connect=1 --appdata=/opt/deCONZ --dbg-info=1 --dbg-aps=0 --dbg-zcl=0 --dbg-ddf=0 --dbg-dev=0 --dbg-zdp=0 --dbg-ota=0 --dbg-error=0 --dbg-http=0 --http-port=8802 --ws-port=8844
+ echo [deconzcommunity/deconz] Modifying user and group ID
+ [ 998 != 1000 ]
+ DECONZ_UID=998
[deconzcommunity/deconz] Websockets port: 8844
[deconzcommunity/deconz] Using options --auto-connect=1 --appdata=/opt/deCONZ --dbg-info=1 --dbg-aps=0 --dbg-zcl=0 --dbg-ddf=0 --dbg-dev=0 --dbg-zdp=0 --dbg-ota=0 --dbg-error=0 --dbg-http=0 --http-port=8802 --ws-port=8844
[deconzcommunity/deconz] Modifying user and group ID
+ usermod -o -u 998 deconz
+ [ 998 != 1000 ]
+ DECONZ_GID=998
+ groupmod -o -g 998 deconz
+ echo [deconzcommunity/deconz] Checking device group ID
+ [ /dev/ttyACM0 != 0 ]
+ DEVICE=/dev/ttyACM0
[deconzcommunity/deconz] Checking device group ID
+ stat --printf=%g /dev/ttyACM0
+ DIALOUTGROUPID=20
+ DIALOUTGROUPID=20
+ [ 20 != 20 ]
+ stat -c %A /dev/ttyACM0
+ cut -c 5-7
+ GROUPPERMISSIONS=rw-
+ [ rw- = --- ]
+ [ 0 != 0 ]
+ echo [deconzcommunity/deconz] VNC Disabled
[deconzcommunity/deconz] VNC Disabled
+ DECONZ_OPTS=--auto-connect=1         --appdata=/opt/deCONZ         --dbg-info=1         --dbg-aps=0         --dbg-zcl=0         --dbg-ddf=0         --dbg-dev=0         --dbg-zdp=0         --dbg-ota=0         --dbg-error=0         --dbg-http=0         --http-port=8802         --ws-port=8844 -platform minimal
+ [ /dev/ttyACM0 != 0 ]
+ DECONZ_OPTS=--auto-connect=1         --appdata=/opt/deCONZ         --dbg-info=1         --dbg-aps=0         --dbg-zcl=0         --dbg-ddf=0         --dbg-dev=0         --dbg-zdp=0         --dbg-ota=0         --dbg-error=0         --dbg-http=0         --http-port=8802         --ws-port=8844 -platform minimal --dev=/dev/ttyACM0
+ [ 0 != 1 ]
+ DECONZ_OPTS=--auto-connect=1         --appdata=/opt/deCONZ         --dbg-info=1         --dbg-aps=0         --dbg-zcl=0         --dbg-ddf=0         --dbg-dev=0         --dbg-zdp=0         --dbg-ota=0         --dbg-error=0         --dbg-http=0         --http-port=8802         --ws-port=8844 -platform minimal --dev=/dev/ttyACM0 --upnp=0
+ mkdir -p /opt/deCONZ/otau
+ ln -sfT /opt/deCONZ/otau /home/deconz/otau
+ chown deconz:deconz /home/deconz/otau
+ chown deconz:deconz /opt/deCONZ -R
+ exec gosu deconz /usr/bin/deCONZ --auto-connect=1 --appdata=/opt/deCONZ --dbg-info=1 --dbg-aps=0 --dbg-zcl=0 --dbg-ddf=0 --dbg-dev=0 --dbg-zdp=0 --dbg-ota=0 --dbg-error=0 --dbg-http=0 --http-port=8802 --ws-port=8844 -platform minimal --dev=/dev/ttyACM0 --upnp=0
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-deconz'
libpng warning: iCCP: known incorrect sRGB profile
This plugin does not support propagateSizeHints()
This plugin does not support propagateSizeHints()
16:39:50:539 HTTP Server listen on address 0.0.0.0, port: 8802, root: /usr/share/deCONZ/webapp/
16:39:50:558 /opt/deCONZ/config.ini exists and is writeable
16:39:50:558 /opt/deCONZ/zll.db exists and is writeable
16:39:50:703 COM: /dev/ttyACM0 / serialno: , ConBee II
16:39:50:703 ZCLDB init file /opt/deCONZ/zcldb.txt
16:39:50:851 DDF enabled for Gold status
16:39:51:377 gw run mode: normal
16:39:51:377 GW sd-card image version file does not exist: /opt/deCONZ/gw-version
16:39:51:378 DB sqlite version 3.34.1
16:39:51:379 DB PRAGMA page_count: 86
16:39:51:379 DB PRAGMA page_size: 4096
16:39:51:379 DB PRAGMA freelist_count: 3
16:39:51:379 DB file size 352256 bytes, free pages 3
16:39:51:379 DB PRAGMA user_version: 9
16:39:51:379 DB cleanup
16:39:51:380 DB create temporary views
16:39:51:408 DB skip loading sensor Flur-Dimmschalter 90, handled by DDF Hue dimmer switch
16:39:51:409 DB skip loading sensor Bewegungsmelder 74, handled by DDF Aqara motion sensor RTCGQ11LM
16:39:51:409 DB skip loading sensor Schlafzimmer-Bewegungsmelder 75, handled by DDF Aqara motion sensor RTCGQ11LM
16:39:51:409 DB skip loading sensor Küche-Bewegungsmelder 106, handled by DDF Aqara motion sensor RTCGQ11LM
16:39:51:410 DB skip loading sensor Küche-Bewegungsmelder 89, handled by DDF Aqara motion sensor RTCGQ11LM
16:39:51:410 DB skip loading sensor Multisensor 97, handled by DDF Aqara temp./hum./press. sensor WSDCGQ11LM
16:39:51:410 DB skip loading sensor Arbeitszimmer-Multisensor 96, handled by DDF Aqara temp./hum./press. sensor WSDCGQ11LM
16:39:51:411 DB skip loading sensor Arbeitszimmer-Multisensor 98, handled by DDF Aqara temp./hum./press. sensor WSDCGQ11LM
16:39:51:411 DB skip loading sensor Multisensor 72, handled by DDF Aqara temp./hum./press. sensor WSDCGQ11LM
16:39:51:412 DB skip loading sensor Schlafzimmer-Multisensor 71, handled by DDF Aqara temp./hum./press. sensor WSDCGQ11LM
16:39:51:412 DB skip loading sensor Schlafzimmer-Multisensor 73, handled by DDF Aqara temp./hum./press. sensor WSDCGQ11LM
16:39:51:412 DB skip loading sensor Flur-Multisensor 111, handled by DDF Aqara temp./hum./press. sensor WSDCGQ11LM
16:39:51:413 DB skip loading sensor Flur-Multisensor 110, handled by DDF Aqara temp./hum./press. sensor WSDCGQ11LM
16:39:51:413 DB skip loading sensor Flur-Multisensor 112, handled by DDF Aqara temp./hum./press. sensor WSDCGQ11LM
16:39:51:414 DB skip loading sensor Multisensor 65, handled by DDF Aqara temp./hum./press. sensor WSDCGQ11LM
16:39:51:414 DB skip loading sensor Balkon-Multisensor 64, handled by DDF Aqara temp./hum./press. sensor WSDCGQ11LM
16:39:51:414 DB skip loading sensor Balkon-Multisensor 66, handled by DDF Aqara temp./hum./press. sensor WSDCGQ11LM
16:39:51:415 DB skip loading sensor Küche-Fernbedienung-Arbeitsplatt 91, handled by DDF TRADFRI remote control E1810
16:39:51:415 DB skip loading sensor Küche-Multisensor 114, handled by DDF Aqara temp./hum./press. sensor WSDCGQ11LM
16:39:51:416 DB skip loading sensor Küche-Multisensor 113, handled by DDF Aqara temp./hum./press. sensor WSDCGQ11LM
16:39:51:416 DB skip loading sensor Küche-Multisensor 115, handled by DDF Aqara temp./hum./press. sensor WSDCGQ11LM
16:39:51:416 DB skip loading sensor Bewegungsmelder 58, handled by DDF Aqara motion sensor RTCGQ11LM
16:39:51:417 DB skip loading sensor Wohnzimmer-Bewegungsmelder 59, handled by DDF Aqara motion sensor RTCGQ11LM
16:39:51:417 DB skip loading sensor Multisensor 84, handled by DDF Aqara temp./hum./press. sensor WSDCGQ11LM
16:39:51:418 DB skip loading sensor Badezimmer-Multisensor 83, handled by DDF Aqara temp./hum./press. sensor WSDCGQ11LM
16:39:51:418 DB skip loading sensor Badezimmer-Multisensor 85, handled by DDF Aqara temp./hum./press. sensor WSDCGQ11LM
16:39:51:419 DB skip loading sensor Scanner-Fernbedienung 67, handled by DDF TRADFRI remote control E1810
16:39:51:419 DB skip loading sensor Bewegungsmelder 94, handled by DDF Aqara motion sensor RTCGQ11LM
16:39:51:419 DB skip loading sensor Arbeitszimmer-Bewegungsmelder 95, handled by DDF Aqara motion sensor RTCGQ11LM
16:39:51:420 DB skip loading sensor Presence 81 81, handled by DDF Aqara motion sensor RTCGQ11LM
16:39:51:420 DB skip loading sensor Badezimmer-Bewegungsmelder 80, handled by DDF Aqara motion sensor RTCGQ11LM
16:39:51:420 DB skip loading sensor Dachboden-Multisensor 103, handled by DDF Aqara temp./hum./press. sensor WSDCGQ11LM
16:39:51:421 DB skip loading sensor Multisensor 102, handled by DDF Aqara temp./hum./press. sensor WSDCGQ11LM
16:39:51:421 DB skip loading sensor Dachboden-Multisensor 104, handled by DDF Aqara temp./hum./press. sensor WSDCGQ11LM
16:39:51:422 DB skip loading sensor Wohnzimmer-Multisensor 61, handled by DDF Aqara temp./hum./press. sensor WSDCGQ11LM
16:39:51:422 DB skip loading sensor Multisensor 60, handled by DDF Aqara temp./hum./press. sensor WSDCGQ11LM
16:39:51:422 DB skip loading sensor Wohnzimmer-Multisensor 62, handled by DDF Aqara temp./hum./press. sensor WSDCGQ11LM
16:39:51:423 DB skip loading sensor Bewegungsmelder 99, handled by DDF Aqara motion sensor RTCGQ11LM
16:39:51:423 DB skip loading sensor Flur-Bewegungsmelder 100, handled by DDF Aqara motion sensor RTCGQ11LM
16:39:51:425 Started websocket server on 0.0.0.0, port: 8844
16:39:51:427 [INFO] - Found file containing button maps. Parsing data...
16:39:51:441 [INFO] - Button maps loaded.
16:39:51:442 found node plugin: libde_rest_plugin.so - REST API Plugin
16:39:51:443 found node plugin: libde_signal_plugin.so - Signal Monitor Plugin
16:39:51:454 found node plugin: libstd_otau_plugin.so - STD OTAU Plugin
16:39:51:675 LightNode 1: Configuration tool 1 added
16:39:51:698 LightNode 9: Schreibtisch added
16:39:51:701 SensorNode 92 set node 0x00158d0002337a57
16:39:51:704 LightNode 19: Arbeitsplatte added
16:39:51:705 SensorNode 125 set node 0x680ae2fffe3a87e5
16:39:51:706 SensorNode 76 set node 0x00158d0002882ea5
16:39:51:709 SensorNode 54 set node 0x00158d000309bc6b
16:39:51:710 SensorNode 78 set node 0x00158d0002337cd2
16:39:51:712 SensorNode 43 set node 0x00158d000312f7f8
16:39:51:714 LightNode 16: BZ-Deckenlampe added
16:39:51:716 LightNode 15: Ann-Kathrine added
16:39:51:718 SensorNode 56 set node 0x00158d000312f745
16:39:51:719 SensorNode 82 set node 0x00158d000309bc0b
16:39:51:721 DB SELECT manufacturername FROM nodes WHERE mac LIKE '00:12:4b:00:1f:b4:df:11%' COLLATE NOCASE: GLEDOPTO
16:39:51:722 LightNode 6: Regalbeleuchtung added
16:39:51:739 DB SELECT manufacturername FROM nodes WHERE mac LIKE '00:12:4b:00:1f:b4:df:11%' COLLATE NOCASE: GLEDOPTO
16:39:51:739 DB SELECT manufacturername FROM nodes WHERE mac LIKE '00:12:4b:00:1f:b4:df:11%' COLLATE NOCASE: GLEDOPTO
16:39:51:742 LightNode 23: Deckenlampe added
16:39:51:744 SensorNode 124 set node 0x680ae2fffe34d966
16:39:51:748 DB SELECT manufacturername FROM nodes WHERE mac LIKE '01:12:4b:00:1b:ae:8d:af%' COLLATE NOCASE: SZ
16:39:51:749 LightNode 2: LED-Spots added
16:39:51:765 SensorNode 63 set node 0x00158d0003121476
16:39:51:768 LightNode 12: AZ-RegalHinten added
16:39:51:769 SensorNode 123 set node 0x680ae2fffe25e2ef
16:39:51:770 SensorNode 88 set node 0x14b457fffec8d961
16:39:51:775 SensorNode 68 set node 0x00158d0003120d6a
16:39:51:777 LightNode 25: AZ-Deckenlampe added
16:39:51:780 SensorNode 87 set node 0x14b457fffe8088ea
16:39:51:781 SensorNode 57 set node 0x00158d0002f923fb
16:39:51:783 SensorNode 77 set node 0x00158d0002337d4b
16:39:51:786 LightNode 22: FL-LEDs added
16:39:51:787 SensorNode 70 set node 0x00158d000312f748
16:39:51:789 SensorNode 93 set node 0x00158d000312fd00
16:39:51:790 SensorNode 79 set node 0x00158d000309be5c
16:39:51:794 LightNode 11: AZ-RegalLinks added
16:39:51:797 SensorNode 69 set node 0x00158d000312fdbd
16:39:51:799 SensorNode 44 set node 0x00158d000312f73b
16:39:51:801 SensorNode 50 set node 0x00158d000312f785
16:39:51:804 LightNode 10: Deckenlampe added
16:39:51:807 LightNode 17: Sascha added
16:39:51:810 DB SELECT manufacturername FROM nodes WHERE mac LIKE '00:12:4b:00:1f:b5:f9:f0%' COLLATE NOCASE: GLEDOPTO
16:39:51:811 LightNode 3: Regal added
16:39:51:828 DB SELECT manufacturername FROM nodes WHERE mac LIKE '00:12:4b:00:1f:b5:f9:f0%' COLLATE NOCASE: GLEDOPTO
16:39:51:828 DB SELECT manufacturername FROM nodes WHERE mac LIKE '00:12:4b:00:1f:b5:f9:f0%' COLLATE NOCASE: GLEDOPTO
16:39:51:830 SensorNode 101 set node 0x00158d000312fbfc
16:39:51:832 SensorNode 105 set node 0x00158d000312f741
16:39:51:834 LightNode 24: Deckenlampe added
16:39:51:898 DEV no DDF for 0x00158D000312F741, modelId: lumi.sensor_magnet.aq2
16:39:51:898 DEV create on-the-fly DDF for 0x00158D000312F741
16:39:51:898 DEV no DDF for 0x14B457FFFE8088EA, modelId: TRADFRI on/off switch
16:39:51:898 DEV create on-the-fly DDF for 0x14B457FFFE8088EA
16:39:51:899 DEV found DDF for 0x14B457FFFEC8D961, path: 
16:39:51:899 DEV no DDF for 0x00158D0002337D4B, modelId: lumi.sensor_switch.aq2
16:39:51:899 DEV create on-the-fly DDF for 0x00158D0002337D4B
16:39:51:899 DEV no DDF for 0x680AE2FFFE3A87E5, modelId: TRADFRI SHORTCUT Button
16:39:51:899 DEV create on-the-fly DDF for 0x680AE2FFFE3A87E5
16:39:51:900 DEV found DDF for 0x680AE2FFFE25E2EF, path: 
16:39:51:900 DEV found DDF for 0x00158D0002337A57, path: 
16:39:51:900 DEV found DDF for 0x680AE2FFFE34D966, path: 
16:39:51:900 DEV found DDF for 0x00158D000312F785, path: 
16:39:51:900 DEV found DDF for 0x00158D000312FBFC, path: 
16:39:51:900 DEV found DDF for 0x00158D000312F748, path: 
16:39:51:900 DEV found DDF for 0x00158D000312FDBD, path: 
16:39:51:900 DEV found DDF for 0x00158D000312FD00, path: 
16:39:51:900 DEV found DDF for 0x00158D0002337CD2, path: 
16:39:51:900 DEV found DDF for 0x00158D000309BC6B, path: 
16:39:51:900 DEV found DDF for 0x00158D0003121476, path: 
16:39:51:900 DEV found DDF for 0x00158D000312F7F8, path: 
16:39:51:900 DEV found DDF for 0x00158D000312F73B, path: 
16:39:51:900 DEV found DDF for 0x00158D000309BC0B, path: 
16:39:51:900 DEV found DDF for 0x00158D0003120D6A, path: 
16:39:51:913 dlg action: Read binding table
16:39:51:923 DEV found DDF for 0x00158D0002F923FB, path: 
16:39:51:923 DEV no DDF for 0x00158D0002882EA5, modelId: lumi.sensor_wleak.aq1
16:39:51:923 DEV create on-the-fly DDF for 0x00158D0002882EA5
16:39:51:924 DEV found DDF for 0x00158D000309BE5C, path: 
16:39:51:924 DEV found DDF for 0x00158D000312F745, path: 
16:39:51:924 DEV found DDF for 0x90FD9FFFFED31FC6, path: /usr/share/deCONZ/devices/ikea/e14_ws_opal_400lm_light.json
16:39:51:924 DEV no DDF for 0x000B57FFFE89738B, modelId: TRADFRI bulb GU10 W 400lm
16:39:51:924 DEV create on-the-fly DDF for 0x000B57FFFE89738B
16:39:51:928 DEV found DDF for 0x00178801040B9B92, path: /usr/share/deCONZ/devices/philips/rwl02_dimmer_switch.json
16:39:51:928 DEV no DDF for 0x00178801036CDAC5, modelId: LCT015
16:39:51:928 DEV create on-the-fly DDF for 0x00178801036CDAC5
16:39:51:928 DEV found DDF for 0x00178801036F9980, path: 
16:39:51:928 DEV no DDF for 0x00124B001FB4DF11, modelId: GL-C-006
16:39:51:928 DEV create on-the-fly DDF for 0x00124B001FB4DF11
16:39:51:933 DEV found DDF for 0x00158D00034CCF85, path: /usr/share/deCONZ/devices/xiaomi/xiaomi_rtcgqq11lm_presence_sensor.json
16:39:51:933 DEV no DDF for 0x90FD9FFFFEDAD3AD, modelId: FLOALT panel WS 30x30
16:39:51:933 DEV create on-the-fly DDF for 0x90FD9FFFFEDAD3AD
16:39:51:940 DEV found DDF for 0x00158D000257F806, path: /usr/share/deCONZ/devices/xiaomi/xiaomi_rtcgqq11lm_presence_sensor.json
16:39:51:947 DEV found DDF for 0x00158D00030AC8C1, path: /usr/share/deCONZ/devices/xiaomi/xiaomi_wsdcgq11lm_temp_hum_press_sensor.json
16:39:51:954 DEV found DDF for 0x00158D0002F2F14D, path: /usr/share/deCONZ/devices/xiaomi/xiaomi_wsdcgq11lm_temp_hum_press_sensor.json
16:39:51:954 DEV no DDF for 0x01124B001BAE8DAF, modelId: Lamp_01
16:39:51:954 DEV create on-the-fly DDF for 0x01124B001BAE8DAF
16:39:51:954 DEV no DDF for 0x90FD9FFFFED44429, modelId: TRADFRI bulb E27 WS opal 980lm
16:39:51:954 DEV create on-the-fly DDF for 0x90FD9FFFFED44429
16:39:51:961 DEV found DDF for 0x00158D00025D8371, path: /usr/share/deCONZ/devices/xiaomi/xiaomi_wsdcgq11lm_temp_hum_press_sensor.json
16:39:51:967 DEV found DDF for 0x00158D0002F2F1A9, path: /usr/share/deCONZ/devices/xiaomi/xiaomi_wsdcgq11lm_temp_hum_press_sensor.json
16:39:51:970 DEV found DDF for 0x90FD9FFFFEDCDF5D, path: /usr/share/deCONZ/devices/ikea/tradfri_remote_control.json
16:39:51:970 DEV found DDF for 0xD0CF5EFFFEC17ABB, path: 
16:39:51:975 DEV found DDF for 0x00158D0002F2F2AA, path: /usr/share/deCONZ/devices/xiaomi/xiaomi_wsdcgq11lm_temp_hum_press_sensor.json
16:39:51:980 DEV found DDF for 0x00158D00036BBD21, path: /usr/share/deCONZ/devices/xiaomi/xiaomi_rtcgqq11lm_presence_sensor.json
16:39:51:980 DEV found DDF for 0x000B57FFFE98795A, path: 
16:39:51:986 DEV found DDF for 0x00158D0002F2F2B2, path: /usr/share/deCONZ/devices/xiaomi/xiaomi_wsdcgq11lm_temp_hum_press_sensor.json
16:39:51:986 DEV no DDF for 0x90FD9FFFFE4D68FF, modelId: TRADFRI bulb E27 WS clear 950lm
16:39:51:986 DEV create on-the-fly DDF for 0x90FD9FFFFE4D68FF
16:39:51:989 DEV found DDF for 0xD0CF5EFFFE1F28BB, path: /usr/share/deCONZ/devices/ikea/tradfri_remote_control.json
16:39:51:993 DEV found DDF for 0x00158D00034CDF99, path: /usr/share/deCONZ/devices/xiaomi/xiaomi_rtcgqq11lm_presence_sensor.json
16:39:51:997 DEV found DDF for 0x00158D00036B6168, path: /usr/share/deCONZ/devices/xiaomi/xiaomi_rtcgqq11lm_presence_sensor.json
16:39:51:997 DEV no DDF for 0x0017880108D7FBD8, modelId: LCL001
16:39:51:997 DEV create on-the-fly DDF for 0x0017880108D7FBD8
16:39:51:004 DEV found DDF for 0x00158D00025D83C1, path: /usr/share/deCONZ/devices/xiaomi/xiaomi_wsdcgq11lm_temp_hum_press_sensor.json
16:39:51:005 DEV found DDF for 0x00178801036FA2AA, path: 
16:39:52:011 DEV found DDF for 0x00158D00030ACB20, path: /usr/share/deCONZ/devices/xiaomi/xiaomi_wsdcgq11lm_temp_hum_press_sensor.json
16:39:52:011 DEV no DDF for 0x00124B001FB5F9F0, modelId: GL-C-009
16:39:52:011 DEV create on-the-fly DDF for 0x00124B001FB5F9F0
16:39:52:016 DEV found DDF for 0x00158D00034CCB1B, path: /usr/share/deCONZ/devices/xiaomi/xiaomi_rtcgqq11lm_presence_sensor.json
16:39:52:016 DEV found DDF for 0x000D6FFFFE7A3652, path: 
16:39:52:992 COM: /dev/ttyACM0 / serialno: , ConBee II
16:39:53:460 New websocket 192.168.178.22:32890 (state: 3) 
16:39:55:245 Device firmware version 0x26720700 ConBee II
16:39:55:253 unlocked max nodes: 512
16:39:55:260 Device protocol version: 0x010E
16:39:55:356 Current channel 15
16:39:55:385 CTRL ANT_CTRL 0x03
16:39:55:389 CTRL ZDP_RESPONSE handler 0x0001
16:39:56:015 ZCL attribute report 0x00158D0002337CD2 for cluster: 0x0000, ep: 0x01, frame control: 0x1C, mfcode: 0x115F 
16:39:56:015 0x00158D0002337CD2 extract Xiaomi special attribute 0xFF01
16:39:56:015    01 battery 3035 (0x0BDB)
16:39:56:015    03 Device temperature 19 °C
16:39:56:015    04 unknown 17320 (0x43A8)
16:39:56:015    05 RSSI dB (?) 14 (0x000E)
16:39:56:015    06 LQI (?) 4294967296 (0x0100000000)
16:39:56:015    0a Parent NWK 57564 (0xE0DC)
16:39:56:027 ZCL attribute report 0x00178801040B9B92 for cluster: 0x0001, ep: 0x02, frame control: 0x08, mfcode: 0x0000 
16:39:56:047 ZCL attribute report 0x90FD9FFFFED31FC6 for cluster: 0x0300, ep: 0x01, frame control: 0x08, mfcode: 0x0000 
16:39:56:180 GW update firmware found: /usr/share/deCONZ/firmware/deCONZ_ConBeeII_0x26720700.bin.GCF
16:39:56:180 GW firmware version is up to date: 0x26720700
16:39:56:348 Announced to internet https://phoscon.de/discover

docker version:

docker version                                                                                                                                                                                                                      [14:50:38]
Client: Docker Engine - Community
 Version:           23.0.3
 API version:       1.42
 Go version:        go1.19.7
 Git commit:        3e7cbfd
 Built:             Tue Apr  4 22:05:48 2023
 OS/Arch:           linux/amd64
 Context:           default

Server: Docker Engine - Community
 Engine:
  Version:          23.0.3
  API version:      1.42 (minimum version 1.12)
  Go version:       go1.19.7
  Git commit:       59118bf
  Built:            Tue Apr  4 22:05:48 2023
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.20
  GitCommit:        2806fc1057397dbaeefbea0e4e17bddfbd388f38
 runc:
  Version:          1.1.5
  GitCommit:        v1.1.5-0-gf19387a
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

server: Ubuntu Server 22.04

phdelodder commented 1 year ago

Healthcheck is ´HEALTHCHECK --interval=10s --timeout=20s --retries=5 CMD curl -I 127.0.0.1:${DECONZ_WEB_PORT} || exit 1`

darkspirit510 commented 1 year ago

Yes, I saw this in the dockerfile. Any idea what the reason might be?

phdelodder commented 1 year ago

I would need more logging, why I it would be unhealty. Could check:

darkspirit510 commented 1 year ago

Sorry for the late reply, tough week 😅 Here are the logs. Oh, and before you ask: I'm currently using the conbee stick on an old raspberry pi without any issues, so it's (probably) not a hardware issue.

After docker container ls reports deconz to be unhealthy:

docker inspect --format "{{json .State.Health }}" deconz | jq

{
  "Status": "unhealthy",
  "FailingStreak": 6,
  "Log": [
    {
      "Start": "2023-04-25T18:55:56.25944064Z",
      "End": "2023-04-25T18:56:16.450219557Z",
      "ExitCode": -1,
      "Output": "Health check exceeded timeout (20s)"
    },
    {
      "Start": "2023-04-25T18:56:26.459216301Z",
      "End": "2023-04-25T18:56:46.619759758Z",
      "ExitCode": -1,
      "Output": "Health check exceeded timeout (20s)"
    },
    {
      "Start": "2023-04-25T18:56:56.640152099Z",
      "End": "2023-04-25T18:57:16.779105449Z",
      "ExitCode": -1,
      "Output": "Health check exceeded timeout (20s)"
    },
    {
      "Start": "2023-04-25T18:57:26.793467963Z",
      "End": "2023-04-25T18:57:46.96183912Z",
      "ExitCode": -1,
      "Output": "Health check exceeded timeout (20s)"
    },
    {
      "Start": "2023-04-25T18:57:56.975435714Z",
      "End": "2023-04-25T18:58:17.107438842Z",
      "ExitCode": -1,
      "Output": "Health check exceeded timeout (20s)"
    }
  ]
}

docker inspect --format "{{json .State.Health }}" deconz | jq '.Log[].Output'

"Health check exceeded timeout (20s)"
"Health check exceeded timeout (20s)"
"Health check exceeded timeout (20s)"
"Health check exceeded timeout (20s)"
"Health check exceeded timeout (20s)"

Now restart container:

docker inspect --format "{{json .State.Health }}" deconz | jq

{
  "Status": "healthy",
  "FailingStreak": 1,
  "Log": [
    {
      "Start": "2023-04-25T18:59:57.694007398Z",
      "End": "2023-04-25T19:00:19.854360546Z",
      "ExitCode": -1,
      "Output": "Health check exceeded timeout (20s)"
    },
    {
      "Start": "2023-04-25T19:00:29.863580543Z",
      "End": "2023-04-25T19:00:50.021121275Z",
      "ExitCode": -1,
      "Output": "Health check exceeded timeout (20s)"
    },
    {
      "Start": "2023-04-25T19:01:03.5816583Z",
      "End": "2023-04-25T19:01:03.770644324Z",
      "ExitCode": 0,
      "Output": "  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n                                 Dload  Upload   Total   Spent    Left  Speed\n\r  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0\r  0 30172    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0\nHTTP/1.1 200 OK\r\nETag: 1ZgbKIiS0m00N8gI/IMK7Q==\r\nContent-Type: text/html; charset=utf-8\r\nContent-Length:30172\r\nCache-Control: max-age=300\r\nKeep-Alive: timeout=6\r\nLast-Modified:Fri, 31 Mar 2023 16:01:07 G3T\r\n\r\n"
    },
    {
      "Start": "2023-04-25T19:01:13.779277834Z",
      "End": "2023-04-25T19:01:13.944057362Z",
      "ExitCode": 0,
      "Output": "  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n                                 Dload  Upload   Total   Spent    Left  Speed\n\r  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0\r  0 30172    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0\nHTTP/1.1 200 OK\r\nETag: 1ZgbKIiS0m00N8gI/IMK7Q==\r\nContent-Type: text/html; charset=utf-8\r\nContent-Length:30172\r\nCache-Control: max-age=300\r\nKeep-Alive: timeout=6\r\nLast-Modified:Fri, 31 Mar 2023 16:01:07 G3T\r\n\r\n"
    },
    {
      "Start": "2023-04-25T19:01:23.952016242Z",
      "End": "2023-04-25T19:01:44.139185262Z",
      "ExitCode": -1,
      "Output": "Health check exceeded timeout (20s)"
    }
  ]
}

docker inspect --format "{{json .State.Health }}" deconz | jq '.Log[].Output'

"Health check exceeded timeout (20s)"
"  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n                                 Dload  Upload   Total   Spent    Left  Speed\n\r  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0\r  0 30172    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0\nHTTP/1.1 200 OK\r\nETag: 1ZgbKIiS0m00N8gI/IMK7Q==\r\nContent-Type: text/html; charset=utf-8\r\nContent-Length:30172\r\nCache-Control: max-age=300\r\nKeep-Alive: timeout=6\r\nLast-Modified:Fri, 31 Mar 2023 16:01:07 G3T\r\n\r\n"
"  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n                                 Dload  Upload   Total   Spent    Left  Speed\n\r  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0\r  0 30172    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0\nHTTP/1.1 200 OK\r\nETag: 1ZgbKIiS0m00N8gI/IMK7Q==\r\nContent-Type: text/html; charset=utf-8\r\nContent-Length:30172\r\nCache-Control: max-age=300\r\nKeep-Alive: timeout=6\r\nLast-Modified:Fri, 31 Mar 2023 16:01:07 G3T\r\n\r\n"
"Health check exceeded timeout (20s)"
"Health check exceeded timeout (20s)"
ONL commented 1 year ago

I had the same problem when running on port 8001 and 8002. This combination worked for years using the old marthoc/deconz-image. After upgrading to deconz-community/deconz, it stopped working. Even reverting back to the marthoc/deconz image did not work. Removing the -e DECONZ_WEB_PORT und -e DECONZ_WS_PORT declarations and mapping the default ports 80 and 443 solved the issue for me.

worked for years but stopped working

podman run --name=deconz --rm -v /etc/localtime:/etc/localtime:ro -v /opt/deconz:/opt/deCONZ -p 8001:8001 -p 8002:8002 --device=/dev/ttyACM0 -e DECONZ_WEB_PORT=8001 -e DECONZ_WS_PORT=8002 -e TZ=Europe/Berlin marthoc/deconz:armhf

works:

podman run --name=deconz --rm --privileged -v /etc/localtime:/etc/localtime:ro -v /opt/deconz:/opt/deCONZ -p 80:80 -p 443:443 --device=/dev/ttyACM0 -e TZ=Europe/Berlin -e DECONZ_DEVICE=/dev/ttyACM0 docker.io/deconzcommunity/deconz:stable
senilio commented 11 months ago

Unable to replicate this issue. Are both of you podman users?

Does anything change if you set DECONZ_UID=0 and DECONZ_GID=0 ?

What if you run privileged when using the 8000+ ports?

senilio commented 11 months ago

I'm placing my bets on issues with your specific setups, be it podman or something else. Not sure what else can be done, but feel free to mess around with running your own health checks in your compose files.