1

Topic: 504 Gateway Time-out iredadmin

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

Login screen getting open but when we login to the iredadmin control panel it is giving gatway time-out error please check attach screen shot for ref.

logs details:

2020/01/14 11:23:01 [error] 3153#3153: *23 upstream timed out (110: Connection timed out) while reading response header from upstream, client: x.x.x.x, server: _, request: "GET /iredadmin/dashboard?checknew HTTP/1.1", upstream: "uwsgi://127.0.0.1:7791",  host: "server_hostname", referrer: "https://server_hostname/iredadmin"

Post's attachments

ired.PNG
ired.PNG 7.66 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

----

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

2

Re: 504 Gateway Time-out iredadmin

Does restarting "iredadmin" service fix this issue?

3

Re: 504 Gateway Time-out iredadmin

This issue was resolved by tuning MySQL using mysqltuner.pl

Makes a huge difference.

Rajesh

4

Re: 504 Gateway Time-out iredadmin

What’s the mysql issue?

5

Re: 504 Gateway Time-out iredadmin

nothing at all.

the default settings had very low innodb_buffer_pool_size of around 122 mb which did not match to our large volume.

got some detailed explanations from here too
https://www.liquidweb.com/kb/mysql-perf … irectives/

used mysqltuner.pl  and changed the settings as follows
innodb_buffer_pool_size=8G
innodb_buffer_pool_instances=8
innodb_read_io_threads=4
innodb_write_io_threads=4
innodb_log_file_size=1G

rajesh

6

Re: 504 Gateway Time-out iredadmin

Thanks for sharing. smile