Closed turbotimon closed 5 months ago
redis: image: 'docker.dragonflydb.io/dragonflydb/dragonfly' entrypoint:
I20240404 10:54:28.045588 1 init.cc:70] dragonfly running in opt mode. I20240404 10:54:28.045682 1 dfly_main.cc:641] Starting dragonfly df-v1.16.0-8bd35754de9ae49908369961634dad0b7fbea878
Dragonfly does not crash here. Based on the logs it shuts down in an orderly fashion. Seems that the healthcheck in docker got screwed up. Probably this PR: https://github.com/dragonflydb/dragonfly/pull/2659 I am checking
It is because the healthcheck script uses the last entry port (returned by netstart -tuln
) to check the health of the dragonfly process. @turbotimon could you please run netstat -tuln
on the container and share the output here?
You can set the HEALTHCHECK_PORT
env to your dragonfly port (6379 by default) in the container the fix the issue.
Sorry about this. The workaround is to add environment: HEALTHCHECK_PORT: 6379
like this:
version: '3.8'
services:
dragonfly:
image: 'docker.dragonflydb.io/dragonflydb/dragonfly:v1.16.0'
restart: unless-stopped
environment:
HEALTHCHECK_PORT: 6379
ulimits:
memlock: -1
ports:
- "6379:6379"
we will release a patch for this next week. If you want to help us please fix tools/docker/healthcheck.sh
script, specifically,
netstat -tuln | grep -oE ':[0-9]+' | grep -oE '[0-9]+' | tail -n 1
returns the wrong port
we will release a patch for this next week. If you want to help us please fix tools/docker/healthcheck.sh script, specifically, netstat -tuln | grep -oE ':[0-9]+' | grep -oE '[0-9]+' | tail -n 1 returns the wrong port
It doesn't always return the wrong port. For me it passed locally. Depends on last entry returned by netstat
(don't know how it sorts the list; may be by last activity/establishment order)
@Abhra303 Thank! And sorry, i was away for the weekend. Do you still need this (as it should be fixed now)?
turbotimon could you please run netstat -tuln on the container and share the output here?
@turbotimon it will be released in v1.16.1
Describe the bug After updating (freshly pulling) the latest image (v1.16.0), docker container crashes (during start) with the following log.
The workaround was pinning the image back to v1.15.1, then it starts normal again Not sure if related to #2739
To Reproduce Start docker compose with this config
Expected behavior Container won't crash
Environment (please complete the following information):