From 97308982ef7030cb9532042be341cb6eb5515aab Mon Sep 17 00:00:00 2001 From: andryyy Date: Wed, 12 May 2021 21:38:21 +0200 Subject: [PATCH] [Web] Improve Nginx default error page --- data/web/_status.502.html | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/data/web/_status.502.html b/data/web/_status.502.html index a0f8fb1c..ec6617e4 100644 --- a/data/web/_status.502.html +++ b/data/web/_status.502.html @@ -3,17 +3,22 @@ Preparing - - -

🐄 - we are on our way.

-

502

-

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.
- This is fine, if mailcow was just + +

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.

-
docker-compose logs --tail=200 php-fpm-mailcow
-
Need support? + 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.