Topic: 504 Gateway Timeout when using Webmail
- iRedMail version: 2023122901
- Deployed with: iRedMail Easy
- Linux/BSD distribution name and version: Debian / Buster 10
- Store mail accounts in which backend: MySQL
- Web server: Nginx
- Manage mail accounts with iRedAdmin-Pro: Yes
====
Since the previous update, we have been getting a gateway timeout when using Webmail. I've applied the latest update hoping it would resolve the issue but still happening.
I'm seeing the following error in the nginx logs right as the web page times out.
----
upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.41.40, server: _, request: "POST /?_task=login HTTP/2.0", upstream: "fastcgi://127.0.0.1:9001", host: "{{dns}}", referrer: "https://{{dns}}/"
----
This is happening for all email accounts, including a brand new test email account I just created.
I can see (usint netstat -an) that 127.0.0.1:9001 is listening and using wget I get a connection:
----
tcp 0 0 127.0.0.1:9001 0.0.0.0:* LISTEN
----
wget 127.0.0.1:9001
--2024-01-02 10:13:15-- http://127.0.0.1:9001/
Connecting to 127.0.0.1:9001... connected.
HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers.
----
Any ideas on where I look need to resolve this issue ?
Thanks
Kent.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.