Ok, I’m one step further now. I looked at everything again and realized that I had hardened my VM a long time ago. I changed the umask. I have now set this back to 0022 as described in the documentation. I’m sorry I didn’t notice it sooner.
I downloaded mailcow again from Github and recreated the containers.
I haven’t entered a bind in mailcow.conf and nothing in the NPM under advanced tab at the moment.
If I now want to call mailcow via NPM or https://IP, I see a “Preparing” page with the following text:
`What is happening?
Please do not stop the stack while we are initializing the database or do other preparations.
What is happening? - Nginx cannot connect to an upstream server or other services are not ready yet.
This is fine if mailcow was just installed or updated and can take a few minutes to complete.
Please check the logs or contact support if the error persists.
Quick debugging
Check Nginx and PHP logs:
docker compose logs --tail=200 php-fpm-mailcow nginx-mailcow
Make sure your SQL credentials in mailcow.conf (a link to .env) do fit your initialized SQL volume. If you see an access denied, you might have the wrong mailcow.conf:
source mailcow.conf ; docker compose exec mysql-mailcow mysql -u${DBUSER} -p${DBPASS} ${DBNAME}
In case of a previous failed installation, create a backup of your existing data, followed by removing all volumes and starting over (NEVER do this with a production system, it will remove ALL data):
BACKUP_LOCATION=/tmp/ ./helper-scripts/backup_and_restore.sh backup all
docker compose down --volumes ; docker compose up -d
Make sure your timezone is correct. Use "America/New_York" for example, do not use spaces. Check here for a list.
Click to learn more about getting support.`
With this command:
docker compose logs --tail=200 php-fpm-mailcow nginx-mailcow
I see the following log:
`[root@mail /opt/mailcow-dockerized]# docker compose logs --tail=200 php-fpm-mailcow nginx-mailcow
WARN[0000] /opt/mailcow-dockerized/docker-compose.yml: `version` is obsolete
nginx-mailcow-1 | 2024/05/13 22:01:36 [notice] 1#1: using the "epoll" event method
nginx-mailcow-1 | 2024/05/13 22:01:36 [notice] 1#1: nginx/1.25.5
nginx-mailcow-1 | 2024/05/13 22:01:36 [notice] 1#1: built by gcc 13.2.1 20231014 (Alpine 13.2.1_git20231014)
nginx-mailcow-1 | 2024/05/13 22:01:36 [notice] 1#1: OS: Linux 6.8.0-31-generic
nginx-mailcow-1 | 2024/05/13 22:01:36 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
nginx-mailcow-1 | 2024/05/13 22:01:36 [notice] 1#1: start worker processes
nginx-mailcow-1 | 2024/05/13 22:01:36 [notice] 1#1: start worker process 20
nginx-mailcow-1 | 2024/05/13 22:01:36 [notice] 1#1: start worker process 21
nginx-mailcow-1 | 2024/05/13 22:01:36 [notice] 1#1: start worker process 22
nginx-mailcow-1 | 2024/05/13 22:01:36 [notice] 1#1: start worker process 23
nginx-mailcow-1 | 2024/05/13 22:01:36 [notice] 1#1: start cache manager process 24
nginx-mailcow-1 | 2024/05/13 22:01:36 [notice] 1#1: start cache loader process 25
nginx-mailcow-1 | 2024/05/13 22:02:29 [error] 20#20: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 172.19.0.1, server: MYURL, request: "GET / HTTP/1.1", upstream: "fastcgi://172.22.1.7:9002", host: "MYURL"
nginx-mailcow-1 | 2024/05/13 22:02:29 [error] 20#20: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 172.19.0.1, server: MYURL, request: "GET / HTTP/1.1", upstream: "fastcgi://[fd4d:6169:6c63:6f77::a]:9002", host: "MYURL"
nginx-mailcow-1 | 172.19.0.1 - - [13/May/2024:22:02:29 +0200] "GET / HTTP/1.1" 502 2015 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:125.0) Gecko/20100101 Firefox/125.0"
nginx-mailcow-1 | 2024/05/13 22:02:36 [notice] 25#25: http file cache: /tmp 0.000M, bsize: 4096
nginx-mailcow-1 | 2024/05/13 22:02:36 [notice] 1#1: signal 17 (SIGCHLD) received from 25
nginx-mailcow-1 | 2024/05/13 22:02:36 [notice] 1#1: cache loader process 25 exited with code 0
nginx-mailcow-1 | 2024/05/13 22:02:36 [notice] 1#1: signal 29 (SIGIO) received
nginx-mailcow-1 | 2024/05/13 22:05:30 [error] 22#22: *4 connect() failed (111: Connection refused) while connecting to upstream, client: 172.19.0.1, server: MYURL, request: "GET / HTTP/1.1", upstream: "fastcgi://172.22.1.7:9002", host: "MYURL"
nginx-mailcow-1 | 2024/05/13 22:05:30 [error] 22#22: *4 connect() failed (111: Connection refused) while connecting to upstream, client: 172.19.0.1, server: MYURL, request: "GET / HTTP/1.1", upstream: "fastcgi://[fd4d:6169:6c63:6f77::a]:9002", host: "MYURL"
nginx-mailcow-1 | 172.19.0.1 - - [13/May/2024:22:05:30 +0200] "GET / HTTP/1.1" 502 2015 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:125.0) Gecko/20100101 Firefox/125.0"
nginx-mailcow-1 | 2024/05/13 22:05:42 [error] 21#21: *7 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.73, server: MYURL, request: "GET / HTTP/2.0", upstream: "fastcgi://172.22.1.7:9002", host: "192.168.1.13"
nginx-mailcow-1 | 2024/05/13 22:05:42 [error] 21#21: *7 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.73, server: MYURL, request: "GET / HTTP/2.0", upstream: "fastcgi://[fd4d:6169:6c63:6f77::a]:9002", host: "192.168.1.13"
nginx-mailcow-1 | 192.168.1.73 - - [13/May/2024:22:05:42 +0200] "GET / HTTP/2.0" 502 2015 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:125.0) Gecko/20100101 Firefox/125.0"
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
php-fpm-mailcow-1 | Waiting for SQL...
`
Now what could this be?
I left the mailcow.conf completely standard except for my URL