Closed mritzmann closed 2 years ago
The image mailcow/clamd:1.52
seems to have a predefined healthcheck, but the old image does not.
$ docker inspect mailcow_clamd-mailcow_1 | grep Healthcheck -A7
"Healthcheck": {
"Test": [
"CMD-SHELL",
"\"clamdcheck.sh\""
],
"StartPeriod": 360000000000
},
"Image": "mailcow/clamd:1.52",
But the predefined healthcheck makes no sense if SKIP_CLAMD
is set to y
.
Guess we would have to override the predefined HEALTHCHECK
in the Dockerfile with a own script.
SKIP_CLAMD=n
: Execute clamdcheck.sh
SKIP_CLAMD=y
: exit 0
Should I create a pull request for this?
I cannot reproduce that.
In all my testing machines :(
Why are you changing to much of the code files? E.G update.sh? As i see you have docker-compose v 1.25.0 which is the oldest one i´ve ever saw. Maybe you should start with updating that to 1.29.0 first?
Why are you changing to much of the code files? E.G update.sh?
The issue template requires a diff with origin/master
. The most changes you see are changes that are currently in the master
and have not yet been released (no release tag). See: https://github.com/mailcow/mailcow-dockerized/compare/2022-06...5d14baa43a433638dc9500866039eea1546ed926 (diff between latest release and master)
Maybe you should start with updating that to 1.29.0 first?
Same with docker-compose
1.29.2 and docker compose
.
$ docker-compose --version
docker-compose version 1.29.2, build 5becea4c
$ docker-compose ps | grep clamd
mailcowdockerized_clamd-mailcow_1 /sbin/tini -g -- /clamd.sh Up (health: starting) 3310/tcp, 7357/tcp
And after 6m (predefined HEALTHCHECK
timeout of the image used as base for mailcow/clamd:1.52
):
$ docker-compose ps | grep clamd
mailcowdockerized_clamd-mailcow_1 /sbin/tini -g -- /clamd.sh Up (unhealthy) 3310/tcp, 7357/tcp
I cannot reproduce that.
Have you tested it with SKIP_CLAMD=y
? The problem only exists if mailcow/clamd:1.52
is used and clamd is disabled.
Ah yes now i see that.
You can create a pull request on that yes, but please on the staging branch :)
Thanks
See #4634
Fixed in latest Release https://github.com/mailcow/mailcow-dockerized/releases/tag/2022-07
Contribution guidelines
I've found a bug and checked that ...
Description
The simplest way to monitor Docker services is to check if all containers are running/healthy.
However, since the new Mailcow update, i think there seems to be a bug here.
mailcow/clamd:1.52
mailcow/clamd:1.51
After the last update, the Docker Compose service
clamd-mailcow
isunhealthy
.Otherwise, the image works as intended for me (I have clamd disabled).
Logs
Steps to reproduce
The easiest way to reproduce that is the following docker-compose file.
Before update / working state:
docker-compose.yml
docker-compose up -d
docker-compose ps
After update / non working state:
docker-compose.yml
docker-compose up -d
docker-compose ps
System information
docker version
)docker-compose version
)git describe --tags `git rev-list --tags --max-count=1`
)Output of
git diff origin/master
, any other changes to the code? If so, please post them:All third-party firewalls and custom iptables rules are unsupported. Please check the Docker docs about how to use Docker with your own ruleset. Nevertheless, iptabels output can help us to help you: iptables -L -vn:
ip6tables -L -vn:
iptables -L -vn -t nat:
ip6tables -L -vn -t nat:
DNS problems? Please run
docker exec -it $(docker ps -qf name=acme-mailcow) dig +short stackoverflow.com @172.22.1.254
(set the IP accordingly, if you changed the internal mailcow network) and post the output: