504 Gateway timeout when logging into RoundCube

Just installed the latest version for the first time on a new DigitalOcean droplet. I can access /admin, and when I go to /mail I get the login screen, but submitting the form results in a “504 Gateway Time-Out” error.

Any ideas?

Anything in the /var/logs/nginx/*

Here’s what happened:

2017/11/07 14:13:49 [error] 7370#0: *232 upstream timed out (110: Connection timed out) while reading response header from upstream, client: xxx.xxx.xxx.xxx, server: box.dlewigoxdq.xyz, request: "POST /mail/?_task=login HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock", host: "box.dlewigoxdq.xyz", referrer: "https://box.dlewigoxdq.xyz/mail/"

Seems pretty general. Any ideas why I’m getting a timeout when trying to log into roundcube? Could this have anything to do with my Let’s Encrypt problem?

You have ufw installed or something?

Thanks for taking the time to respond, Murgero.

root@box:/var/log/nginx# ufw status numbered
Status: active

     To                         Action      From
     --                         ------      ----
[ 1] 22                         ALLOW IN    Anywhere
[ 2] 53                         ALLOW IN    Anywhere
[ 3] 25/tcp                     ALLOW IN    Anywhere
[ 4] 587                        ALLOW IN    Anywhere
[ 5] 993                        ALLOW IN    Anywhere
[ 6] 995                        ALLOW IN    Anywhere
[ 7] 4190/tcp                   ALLOW IN    Anywhere
[ 8] 80                         ALLOW IN    Anywhere
[ 9] 443                        ALLOW IN    Anywhere
[10] 22 (v6)                    ALLOW IN    Anywhere (v6)
[11] 53 (v6)                    ALLOW IN    Anywhere (v6)
[12] 25/tcp (v6)                ALLOW IN    Anywhere (v6)
[13] 587 (v6)                   ALLOW IN    Anywhere (v6)
[14] 993 (v6)                   ALLOW IN    Anywhere (v6)
[15] 995 (v6)                   ALLOW IN    Anywhere (v6)
[16] 4190/tcp (v6)              ALLOW IN    Anywhere (v6)
[17] 80 (v6)                    ALLOW IN    Anywhere (v6)
[18] 443 (v6)                   ALLOW IN    Anywhere (v6)`

In order to troubleshoot, could you make me an email account on your server and send me the credentials in a private message? No root or admin, just email account, I want to replicate the error from my end.

Credentials sent. Thank you again.

Did the email account credentials tell you anything?

I sent you a PM with some details.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.