Hello,
today after installing mailcow I have a problem with PHP.
It doesn’t start and there is a problem with launching the website.
mail_php-fpm-mailcow_1 standard_init_linux.go:228: exec user process caused: exec format error, user process caused: exec format error, standard_init_linux.go:228: exec user process caused: exec format error
`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, remove all volumes and start over (NEVER do this with a production system, it will remove ALL data):
docker-compose down -v ; 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.
`
Creating mail_sogo-mailcow_1 ... done
Creating mail_olefy-mailcow_1 ... done
Creating mail_unbound-mailcow_1 ... done
Creating mail_watchdog-mailcow_1 ... done
Creating mail_memcached-mailcow_1 ... done
Creating mail_clamd-mailcow_1 ... done
Creating mail_redis-mailcow_1 ... done
Creating mail_solr-mailcow_1 ... done
Creating mail_dockerapi-mailcow_1 ... done
Creating mail_mysql-mailcow_1 ... done
Creating mail_php-fpm-mailcow_1 ... done
Creating mail_nginx-mailcow_1 ... done
Creating mail_dovecot-mailcow_1 ... done
Creating mail_postfix-mailcow_1 ... done
Creating mail_acme-mailcow_1 ... done
Creating mail_rspamd-mailcow_1 ... done
Creating mail_ofelia-mailcow_1 ... done
Creating mail_netfilter-mailcow_1 ... done
Creating mail_ipv6nat-mailcow_1 ... done
root@OMV:/srv/dev-disk-by-uuid-d5052d7c-24ae-4281-a0cb-147993c5d9b0/dane/mailu/mailcow-dockerized# docker-compose logs --tail=200 php-fpm-mailcow nginx-mailcow
Attaching to mail_nginx-mailcow_1, mail_php-fpm-mailcow_1
nginx-mailcow_1 | 2021/11/17 15:22:28 [emerg] 16#16: host not found in upstream "rspamd" in /etc/nginx/conf.d/includes/site-defaults.conf:111
nginx-mailcow_1 | nginx: [emerg] host not found in upstream "rspamd" in /etc/nginx/conf.d/includes/site-defaults.conf:111
nginx-mailcow_1 | nginx: configuration file /etc/nginx/nginx.conf test failed
nginx-mailcow_1 | 2021/11/17 15:22:46 [emerg] 15#15: host not found in upstream "phpfpm" in /etc/nginx/conf.d/dynmaps.conf:13
nginx-mailcow_1 | nginx: [emerg] host not found in upstream "phpfpm" in /etc/nginx/conf.d/dynmaps.conf:13
nginx-mailcow_1 | nginx: configuration file /etc/nginx/nginx.conf test failed
nginx-mailcow_1 | 2021/11/17 15:23:12 [notice] 1#1: using the "epoll" event method
nginx-mailcow_1 | 2021/11/17 15:23:12 [notice] 1#1: nginx/1.21.4
nginx-mailcow_1 | 2021/11/17 15:23:12 [notice] 1#1: built by gcc 10.3.1 20210424 (Alpine 10.3.1_git20210424)
nginx-mailcow_1 | 2021/11/17 15:23:12 [notice] 1#1: OS: Linux 5.10.63-v7l+
nginx-mailcow_1 | 2021/11/17 15:23:12 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
nginx-mailcow_1 | 2021/11/17 15:23:12 [notice] 1#1: start worker processes
nginx-mailcow_1 | 2021/11/17 15:23:12 [notice] 1#1: start worker process 20
nginx-mailcow_1 | 2021/11/17 15:23:12 [notice] 1#1: start worker process 21
nginx-mailcow_1 | 2021/11/17 15:23:12 [notice] 1#1: start worker process 22
nginx-mailcow_1 | 2021/11/17 15:23:12 [notice] 1#1: start worker process 23
nginx-mailcow_1 | 2021/11/17 15:23:12 [notice] 1#1: start cache manager process 24
nginx-mailcow_1 | 2021/11/17 15:23:12 [notice] 1#1: start cache loader process 25
nginx-mailcow_1 | 2021/11/17 15:24:15 [notice] 25#25: http file cache: /tmp 0.000M, bsize: 4096
nginx-mailcow_1 | 2021/11/17 15:24:15 [notice] 1#1: signal 17 (SIGCHLD) received from 25
nginx-mailcow_1 | 2021/11/17 15:24:15 [notice] 1#1: cache loader process 25 exited with code 0
nginx-mailcow_1 | 2021/11/17 15:24:15 [notice] 1#1: signal 29 (SIGIO) received
nginx-mailcow_1 | 2021/11/17 15:48:22 [error] 20#20: *1 connect() failed (113: Host is unreachable) while connecting to upstream, client: 192.168.1.25, server: mail.cezz.pl, request: "GET / HTTP/1.1", upstream: "fastcgi://172.22.1.10:9002", host: "192.168.1.16:86"
nginx-mailcow_1 | 2021/11/17 15:48:25 [error] 20#20: *1 connect() failed (113: Host is unreachable) while connecting to upstream, client: 192.168.1.25, server: mail.cezz.pl, request: "GET / HTTP/1.1", upstream: "fastcgi://[fd4d:6169:6c63:6f77::e]:9002", host: "192.168.1.16:86"
nginx-mailcow_1 | 192.168.1.25 - - [17/Nov/2021:15:48:25 +0100] "GET / HTTP/1.1" 502 1888 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36 OPR/80.0.4170.63"
nginx-mailcow_1 | 192.168.1.25 - - [17/Nov/2021:15:48:26 +0100] "GET /favicon.ico HTTP/1.1" 404 178 "http://192.168.1.16:86/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36 OPR/80.0.4170.63"
php-fpm-mailcow_1 | standard_init_linux.go:228: exec user process caused: exec format error
php-fpm-mailcow_1 | standard_init_linux.go:228: exec user process caused: exec format error
php-fpm-mailcow_1 | standard_init_linux.go:228: exec user process caused: exec format error
php-fpm-mailcow_1 | standard_init_linux.go:228: exec user process caused: exec format error
php-fpm-mailcow_1 | standard_init_linux.go:228: exec user process caused: exec format error
php-fpm-mailcow_1 | standard_init_linux.go:228: exec user process caused: exec format error
php-fpm-mailcow_1 | standard_init_linux.go:228: exec user process caused: exec format error
php-fpm-mailcow_1 | standard_init_linux.go:228: exec user process caused: exec format error
php-fpm-mailcow_1 | standard_init_linux.go:228: exec user process caused: exec format error
php-fpm-mailcow_1 | standard_init_linux.go:228: exec user process caused: exec format error
php-fpm-mailcow_1 | standard_init_linux.go:228: exec user process caused: exec format error
php-fpm-mailcow_1 | standard_init_linux.go:228: exec user process caused: exec format error
php-fpm-mailcow_1 | standard_init_linux.go:228: exec user process caused: exec format error
php-fpm-mailcow_1 | standard_init_linux.go:228: exec user process caused: exec format error
php-fpm-mailcow_1 | standard_init_linux.go:228: exec user process caused: exec format error
php-fpm-mailcow_1 | standard_init_linux.go:228: exec user process caused: exec format error
php-fpm-mailcow_1 | standard_init_linux.go:228: exec user process caused: exec format error