1 (edited by lemopa 2020-01-30 04:38:57)

Topic: Roundcube Connection Time Out

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.0
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: Centos
- 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.
====


Hello

When users access round cube mail sometimes appear gateway timeout error, checking /var/log/nginx/error.log this is the error

Thanks for your help

2020/01/29 15:32:26 [error] 1746#0: *538513 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 190.25.234.146, server: _, request: "POST /mail/?_task=mail&_action=move HTTP/1.1", upstream: "fastcgi://127.0.0.1:9999", host: "mail001.netsas.co", referrer: "https://mail001.netsas.co/mail/?_task=m … mbox=INBOX"
2020/01/29 15:32:26 [error] 1746#0: *538523 upstream timed out (110: Connection timed out) while reading upstream, client: 190.25.234.146, server: _, request: "GET /mail/?_task=mail&_caps=pdf%3D1%2Cflash%3D0%2Ctiff%3D1%2Cwebp%3D0&_uid=22992&_mbox=INBOX&_framed=1&_action=preview HTTP/1.1", upstream: "fastcgi://127.0.0.1:9999", host: "mail001.netsas.co", referrer: "https://mail001.netsas.co/"

----

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

2

Re: Roundcube Connection Time Out

- Is php-fpm service running when this issue happening?
- Is this a busy server with many webmail users?

3

Re: Roundcube Connection Time Out

Only one user is using webmail, php-fpm always have been running. I see mor frequent the error when moving mails to other folders

4

Re: Roundcube Connection Time Out

What's the value of parameter "pm.max_children" in /etc/php-fpm.d/www.conf?

5

Re: Roundcube Connection Time Out

pm = dynamic
pm.max_children = 100
pm.start_servers = 5
pm.min_spare_servers = 5
pm.max_spare_servers = 10
pm.max_requests = 100

This errors appear with service php-fpm status

Feb 05 20:46:28 mail001.netsas.co php-fpm[1163]: [05-Feb-2020 20:46:27] WARNING: [pool inet] child 27911 exited on signal 15 (SIGTERM) ...m start
Feb 05 20:46:28 mail001.netsas.co php-fpm[1163]: [05-Feb-2020 20:46:28] NOTICE: [pool inet] child 28154 started
Feb 05 20:46:31 mail001.netsas.co php-fpm[1163]: [05-Feb-2020 20:46:31] WARNING: [pool inet] child 27924, script '/opt/www/roundcubemai...inating
Feb 05 20:46:31 mail001.netsas.co php-fpm[1163]: [05-Feb-2020 20:46:31] WARNING: [pool inet] child 27924 exited on signal 15 (SIGTERM) ...m start
Feb 05 20:46:31 mail001.netsas.co php-fpm[1163]: [05-Feb-2020 20:46:31] NOTICE: [pool inet] child 28166 started
Feb 05 20:47:08 mail001.netsas.co php-fpm[1163]: [05-Feb-2020 20:47:08] WARNING: [pool inet] child 27854, script '/opt/www/roundcubemai...logging
Feb 05 20:47:08 mail001.netsas.co php-fpm[1163]: [05-Feb-2020 20:47:08] NOTICE: child 27854 stopped for tracing
Feb 05 20:47:08 mail001.netsas.co php-fpm[1163]: [05-Feb-2020 20:47:08] NOTICE: about to trace 27854
Feb 05 20:47:08 mail001.netsas.co php-fpm[1163]: [05-Feb-2020 20:47:08] ERROR: failed to ptrace(PEEKDATA) pid 27854: Input/output error (5)
Feb 05 20:47:08 mail001.netsas.co php-fpm[1163]: [05-Feb-2020 20:47:08] NOTICE: finished trace of 27854

6

Re: Roundcube Connection Time Out

lemopa wrote:

Feb 05 20:47:08 mail001.netsas.co php-fpm[1163]: [05-Feb-2020 20:47:08] ERROR: failed to ptrace(PEEKDATA) pid 27854: Input/output error (5)

What's the "input/output error"? any related log in system log /var/log/messages?