mailinabox icon indicating copy to clipboard operation
mailinabox copied to clipboard

Webinterface Timeouts caused by too many domains

Open tynie opened this issue 3 years ago • 7 comments

I get reproducible timeouts in the web interface when loading the status or external DNS page. Also when I add a new user or custom DNS Record i get this error:

image

Of course, the creation works despite the timeout but this must be an error. There is already a thread about this in the MIAB forum: https://discourse.mailinabox.email/t/getting-timeouts-vps-too-slow/7455

I think it´s caused by a high number of domains (about 55) and mailboxes (135) managed by my MIAB installation.

tynie avatar Apr 19 '21 14:04 tynie

It might be an nginx proxy timeout that needs to be extended.

jvolkenant avatar Apr 21 '21 23:04 jvolkenant

Here is a discussion at Stack Overflow that seems similar:

https://stackoverflow.com/questions/24453388/nginx-reverse-proxy-causing-504-gateway-timeout

If you take the time to read through the solutions, it seems there is another issue besides proxy timeout (which, BTW, is default 60 seconds) but also there is a keepalive configuration that seems something different.

myfirstnameispaul avatar Apr 22 '21 00:04 myfirstnameispaul

Were you able to fix this issue?

myfirstnameispaul avatar May 04 '21 15:05 myfirstnameispaul

not yet... had no time for further investigation...

tynie avatar May 04 '21 19:05 tynie

image

Meanwhile, this problem also affects the Static Web Hosting page. Doesn't anyone else have this problem?

tynie avatar Mar 04 '22 14:03 tynie

Did you try the above suggested solution?

myfirstnameispaul avatar Mar 04 '22 17:03 myfirstnameispaul

I see the same problem. the Status page is timing out while I can see the management/daemon.py using 100% CPU on the server. Sometimes it succeeds to show the status page. I only have like 20 or so domains + a good list of subdomains.

kimusan avatar Jul 14 '22 11:07 kimusan

#2316 likely has a quick fix for this and will hopefully solve this permanently once resolved.

yeah avatar Oct 17 '23 15:10 yeah