I’ve just noticed that my mailcow server isn’t working and that I get a 503 error when I go to the site.
Here’s the list of containers:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
2e252bef4170 mcuadros/ofelia:latest "/usr/bin/ofelia dae…" 4 minutes ago Up 4 minutes mailcowdockerized-ofelia-mailcow-1
f1f3c927f2f1 nginx:mainline-alpine "/docker-entrypoint.…" 4 minutes ago Restarting (1) 28 seconds ago mailcowdockerized-nginx-mailcow-1
d7bf9c0d6cfc mailcow/dovecot:2.2 "/docker-entrypoint.…" 4 minutes ago Up 4 minutes 0.0.0.0:110->110/tcp, :::110->110/tcp, 0.0.0.0:143->143/tcp, :::143->143/tcp, 0.0.0.0:993->993/tcp, :::993->993/tcp, 0.0.0.0:995->995/tcp, :::995->995/tcp, 0.0.0.0:4190->4190/tcp, :::4190->4190/tcp, 127.0.0.1:19991->12345/tcp mailcowdockerized-dovecot-mailcow-1
bcbf97dd6675 mailcow/phpfpm:1.91 "/docker-entrypoint.…" 4 minutes ago Up 4 minutes 9000/tcp mailcowdockerized-php-fpm-mailcow-1
2531b446f9cc mailcow/solr:1.8.3 "docker-entrypoint.s…" 4 minutes ago Up 4 minutes 127.0.0.1:18983->8983/tcp mailcowdockerized-solr-mailcow-1
c3e8ee4bd684 redis:7-alpine "docker-entrypoint.s…" 4 minutes ago Up 4 minutes 127.0.0.1:7654->6379/tcp mailcowdockerized-redis-mailcow-1
d5334ccc8dfc mariadb:10.5 "docker-entrypoint.s…" 4 minutes ago Restarting (1) 37 seconds ago mailcowdockerized-mysql-mailcow-1
fd0aad699c35 mailcow/sogo:1.127 "/docker-entrypoint.…" 4 minutes ago Up 4 minutes mailcowdockerized-sogo-mailcow-1
7c69eb45dde3 mailcow/unbound:1.23 "/docker-entrypoint.…" 4 minutes ago Restarting (0) 57 seconds ago mailcowdockerized-unbound-mailcow-1
410e019be23e mailcow/dockerapi:2.09 "/bin/sh /app/docker…" 4 minutes ago Up 4 minutes mailcowdockerized-dockerapi-mailcow-1
62f9e7ff50a7 mailcow/netfilter:1.59 "/bin/sh -c /app/doc…" 4 minutes ago Up 4 minutes mailcowdockerized-netfilter-mailcow-1
eb2018345c52 memcached:alpine "docker-entrypoint.s…" 4 minutes ago Up 4 minutes 11211/tcp mailcowdockerized-memcached-mailcow-1
a114363d368a mailcow/olefy:1.13 "python3 -u /app/ole…" 4 minutes ago Up 4 minutes mailcowdockerized-olefy-mailcow-1
Here are the unbound logs
Setting console permissions...
Receiving anchor key...
Receiving root hints...
######################################################################## 100.0%
setup in directory /etc/unbound
removing artifacts
Setup success. Certificates created. Enable in unbound.conf file to use
2024-11-11 16:12:57,853 INFO Set uid to user 0 succeeded
2024-11-11 16:12:57,856 INFO supervisord started with pid 1
2024-11-11 16:12:58,861 INFO spawned: 'processes' with pid 16
2024-11-11 16:12:58,865 INFO spawned: 'syslog-ng' with pid 17
2024-11-11 16:12:58,869 INFO spawned: 'unbound' with pid 18
2024-11-11 16:12:58,871 INFO spawned: 'unbound-healthcheck' with pid 19
[1731341578] unbound[18:0] error: Could not open /etc/unbound/unbound.conf: Permission denied
[1731341578] unbound[18:0] fatal error: Could not read config file: /etc/unbound/unbound.conf. Maybe try unbound -dd, it stays on the commandline to see more errors, or unbound-checkconf
2024-11-11 16:12:58,876 WARN exited: unbound (exit status 1; not expected)
Nov 11 16:12:58 7c69eb45dde3 syslog-ng[17]: syslog-ng starting up; version='4.7.1'
2024-11-11 16:12:59,894 INFO success: processes entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-11-11 16:12:59,894 INFO success: syslog-ng entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-11-11 16:12:59,897 INFO spawned: 'unbound' with pid 23
2024-11-11 16:12:59,897 INFO success: unbound-healthcheck entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
[1731341579] unbound[23:0] error: Could not open /etc/unbound/unbound.conf: Permission denied
[1731341579] unbound[23:0] fatal error: Could not read config file: /etc/unbound/unbound.conf. Maybe try unbound -dd, it stays on the commandline to see more errors, or unbound-checkconf
2024-11-11 16:12:59,909 WARN exited: unbound (exit status 1; not expected)
2024-11-11 16:13:01,914 INFO spawned: 'unbound' with pid 25
[1731341581] unbound[25:0] error: Could not open /etc/unbound/unbound.conf: Permission denied
[1731341581] unbound[25:0] fatal error: Could not read config file: /etc/unbound/unbound.conf. Maybe try unbound -dd, it stays on the commandline to see more errors, or unbound-checkconf
2024-11-11 16:13:01,929 WARN exited: unbound (exit status 1; not expected)
2024-11-11 16:13:04,936 INFO spawned: 'unbound' with pid 32
2024-11-11 16:13:04: Healthcheck: DNS Resolution Failed on attempt 1 for fuzzy.mailcow.email! Trying again...
[1731341584] unbound[32:0] error: Could not open /etc/unbound/unbound.conf: Permission denied
[1731341584] unbound[32:0] fatal error: Could not read config file: /etc/unbound/unbound.conf. Maybe try unbound -dd, it stays on the commandline to see more errors, or unbound-checkconf
2024-11-11 16:13:04,945 WARN exited: unbound (exit status 1; not expected)
2024-11-11 16:13:04: Healthcheck: DNS Resolution Failed on attempt 2 for fuzzy.mailcow.email! Trying again...
2024-11-11 16:13:04,973 INFO gave up: unbound entered FATAL state, too many start retries too quickly
2024-11-11 16:13:05: Healthcheck: DNS Resolution Failed on attempt 3 for fuzzy.mailcow.email! Trying again...
2024-11-11 16:13:05: Healthcheck: DNS Resolution not possible after 3 attempts for fuzzy.mailcow.email... Gave up!
2024-11-11 16:13:05,008 WARN received SIGQUIT indicating exit request
2024-11-11 16:13:05,008 INFO waiting for processes, syslog-ng, unbound-healthcheck to die
2024-11-11 16:13:05,009 WARN stopped: unbound-healthcheck (terminated by SIGTERM)
Nov 11 16:13:05 7c69eb45dde3 syslog-ng[17]: syslog-ng shutting down; version='4.7.1'
2024-11-11 16:13:05,114 INFO stopped: syslog-ng (exit status 0)
2024-11-11 16:13:05,114 INFO reaped unknown pid 45 (exit status 9)
2024-11-11 16:13:05,115 WARN stopped: processes (terminated by SIGTERM)
Here are mariadb’s logs
2024-11-11 16:16:25+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.5.26+maria~ubu2004 started.
2024-11-11 16:16:25+00:00 [ERROR] [Entrypoint]: mysqld failed while attempting to check config
command was: mysqld --verbose --help
mysqld: Can't read dir of '/etc/mysql/conf.d/' (Errcode: 13 "Permission denied")
Fatal error in defaults handling. Program aborted
And those of nginx
2024/11/11 16:17:42 [emerg] 15#15: host not found in upstream "rspamd" in /etc/nginx/conf.d/includes/site-defaults.conf:111
nginx: [emerg] host not found in upstream "rspamd" in /etc/nginx/conf.d/includes/site-defaults.conf:111
nginx: configuration file /etc/nginx/nginx.conf test failed
I tried to run update.sh
but it didn’t fix the problem and before it happened it worked fine and I hadn’t changed anything in my VPS configuration.
My config:
OS: Fedora Linux 40 (Cloud Edition)
Docker: Docker version 27.3.0, build e85edf8
Host: OVH (France)
Domain: mail.sagbot.com