Closed darkspirit510 closed 11 months ago
Healthcheck is ´HEALTHCHECK --interval=10s --timeout=20s --retries=5 CMD curl -I 127.0.0.1:${DECONZ_WEB_PORT} || exit 1`
Yes, I saw this in the dockerfile. Any idea what the reason might be?
I would need more logging, why I it would be unhealty. Could check:
docker inspect --format "{{json .State.Health }}" <container name> | jq
docker inspect --format "{{json .State.Health }}" <container name> | jq '.Log[].Output'
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)"
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
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?
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.
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:
usb list:
docker list:
docker compose:
startup log:
docker version:
server: Ubuntu Server 22.04