1 (edited by darth_wells 2020-05-28 02:26:45)

Topic: UWSGI PROBLEM, ERROR 504 Gateway Time-out

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):   1.2 MARIADB edition
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version: Debian
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  mysql
- Web server (Apache or Nginx):  nginx
- Manage mail accounts with iRedAdmin-Pro?  yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

2020/05/27 13:15:11 [error] 9254#9254: *6 connect() failed (111: Connection refused) while connecting to upstream, client: 10.1.1.131, server: _, request: "GET /iredadmin/ HTTP/1.1", upstream: "uwsgi://127.0.0.1:7791", host: "nm2.abgnetwork.net"
2020/05/27 13:15:11 [error] 9254#9254: *6 connect() failed (111: Connection refused) while connecting to upstream, client: 10.1.1.131, server: _, request: "GET /iredadmin/ HTTP/1.1", upstream: "uwsgi://127.0.0.1:7791", host: "nm2.abgnetwork.net"
2020/05/27 13:15:11 [error] 9254#9254: *6 connect() failed (111: Connection refused) while connecting to upstream, client: 10.1.1.131, server: _, request: "GET /iredadmin/ HTTP/1.1", upstream: "uwsgi://127.0.0.1:7791", host: "nm2.abgnetwork.net"
2020/05/27 13:15:11 [error] 9254#9254: *6 connect() failed (111: Connection refused) while connecting to upstream, client: 10.1.1.131, server: _, request: "GET /iredadmin/ HTTP/1.1", upstream: "uwsgi://127.0.0.1:7791", host: "nm2.abgnetwork.net"
2020/05/27 13:15:11 [error] 9254#9254: *6 connect() failed (111: Connection refused) while connecting to upstream, client: 10.1.1.131, server: _, request: "GET /iredadmin/ HTTP/1.1", upstream: "uwsgi://127.0.0.1:7791", host: "nm2.abgnetwork.net"
2020/05/27 13:15:12 [error] 9254#9254: *6 connect() failed (111: Connection refused) while connecting to upstream, client: 10.1.1.131, server: _, request: "GET /iredadmin/ HTTP/1.1", upstream: "uwsgi://127.0.0.1:7791", host: "nm2.abgnetwork.net"
2020/05/27 13:15:12 [error] 9254#9254: *6 connect() failed (111: Connection refused) while connecting to upstream, client: 10.1.1.131, server: _, request: "GET /iredadmin/ HTTP/1.1", upstream: "uwsgi://127.0.0.1:7791", host: "nm2.abgnetwork.net"
2020/05/27 13:15:12 [error] 9254#9254: *6 connect() failed (111: Connection refused) while connecting to upstream, client: 10.1.1.131, server: _, request: "GET /iredadmin/ HTTP/1.1", upstream: "uwsgi://127.0.0.1:7791", host: "nm2.abgnetwork.net"
2020/05/27 13:15:12 [error] 9254#9254: *6 connect() failed (111: Connection refused) while connecting to upstream, client: 10.1.1.131, server: _, request: "GET /iredadmin/ HTTP/1.1", upstream: "uwsgi://127.0.0.1:7791", host: "nm2.abgnetwork.net"
2020/05/27 13:15:12 [error] 9254#9254: *6 connect() failed (111: Connection refused) while connecting to upstream, client: 10.1.1.131, server: _, request: "GET /iredadmin/ HTTP/1.1", upstream: "uwsgi://127.0.0.1:7791", host: "nm2.abgnetwork.net"
2020/05/27 13:15:12 [error] 9254#9254: *6 connect() failed (111: Connection refused) while connecting to upstream, client: 10.1.1.131, server: _, request: "GET /iredadmin/ HTTP/1.1", upstream: "uwsgi://127.0.0.1:7791", host: "nm2.abgnetwork.net"
2020/05/27 13:15:13 [error] 9254#9254: *6 connect() failed (111: Connection refused) while connecting to upstream, client: 10.1.1.131, server: _, request: "GET /iredadmin/ HTTP/1.1", upstream: "uwsgi://127.0.0.1:7791", host: "nm2.abgnetwork.net"
2020/05/27 13:15:13 [error] 9254#9254: *6 connect() failed (111: Connection refused) while connecting to upstream, client: 10.1.1.131, server: _, request: "GET /iredadmin/ HTTP/1.1", upstream: "uwsgi://127.0.0.1:7791", host: "nm2.abgnetwork.net"
2020/05/27 13:15:13 [error] 9254#9254: *6 connect() failed (111: Connection refused) while connecting to upstream, client: 10.1.1.131, server: _, request: "GET /iredadmin/ HTTP/1.1", upstream: "uwsgi://127.0.0.1:7791", host: "nm2.abgnetwork.net"
2020/05/27 13:15:13 [error] 9254#9254: *6 connect() failed (111: Connection refused) while connecting to upstream, client: 10.1.1.131, server: _, request: "GET /iredadmin/ HTTP/1.1", upstream: "uwsgi://127.0.0.1:7791", host: "nm2.abgnetwork.net"
2020/05/27 13:15:13 [error] 9254#9254: *6 connect() failed (111: Connection refused) while connecting to upstream, client: 10.1.1.131, server: _, request: "GET /iredadmin/ HTTP/1.1", upstream: "uwsgi://127.0.0.1:7791", host: "nm2.abgnetwork.net"
2020/05/27 13:15:13 [error] 9254#9254: *6 connect() failed (111: Connection refused) while connecting to upstream, client: 10.1.1.131, server: _, request: "GET /iredadmin/ HTTP/1.1", upstream: "uwsgi://127.0.0.1:7791", host: "nm2.abgnetwork.net"
2020/05/27 13:20:14 [error] 837#837: *101 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 10.1.1.131, server: _, request: "GET /iredadmin/dashboard?checknew HTTP/1.1", upstream: "uwsgi://127.0.0.1:7791", host: "nm2.abgnetwork.net", referrer: "https://nm2.abgnetwork.net/iredadmin/"

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: UWSGI PROBLEM, ERROR 504 Gateway Time-out

I commented out two lines in clean_amavisd_db.py

if (not settings.amavsd_enable_logging) or (not settings.amavisd_enable_quarantine):
sys.exit("Amavisd is not enabled. SKIP.")

i was able to run cleaning tool

I rebooted server and was able to get in after about 5 - 10 minutes.

------

3

Re: UWSGI PROBLEM, ERROR 504 Gateway Time-out

darth_wells wrote:

I commented out two lines in clean_amavisd_db.py

Sorry about this trouble. This is a known issue and will be fixed in upcoming iRedAdmin-Pro release.