PatrickvanLier
New Pleskian
short story
Roundcube repeats to stop working after a while. Not sure if the problem lies with IMAP or roundcube itself. restarting apache2 seems to be working workaround.
Long story
I have a Plesk Obsidian 18.0.30 update 2 running on Ubuntu 18.04.5. LTS. about a year ago I migrated from a previous plesk server and all seemed wonderfull.
Out of the blue some customers started complaining that webmail was down. I have RoundCube installed. I found out that if I disabled and re-enabled the webapplication firewall then Roundcube would start working again. I figured it was a bad ruleset update. I hoped it was a one-time-error and let it be.
After a while I got the same problem. Searching the forum I added an exception for the location "/roundcube/" and added a line "SecResponseBodyLimit 546870912", I believe because of an other error but it could have been a suggested solution for this error. Not sure anymore.
When it happened again I turned of WAF completely because my customer were getting very annoyed because they rely on Roundcube.
After a while Roundcube still stopped working. I dove into several logfiles and found some errors that pointed to fpm-cgi. After I issued the command 'service apache2 restart', Roundcube started working again.
Mail keeps working as far as I know. This is a fairly small server with about 20 active domains so it should be able to do it's job easily. It is a VPS hosted at strato.
I was hit with Corona so it has been a fix-and-run situatiion the last time. If just tried to find the errors again in the logfiles. I believe it had somethins to do with fpm but I cannot find those anymore. I did find the following errors in the log /var/log/mail.log.1 from the previous time roundcube stopped working:
Oct 4 00:25:16 h2856220 dovecot: auth: Error: sh: 1: Cannot fork
Oct 4 00:25:16 h2856220 dovecot_authdb_plesk[30299]: Unable to determine mail server type from ``mailmng-server --features''
Oct 4 00:25:16 h2856220 dovecot: auth: Fatal: authdb plesk: initialization failed - unable to detect current mail authentication DB
...
Oct 4 00:33:15 h2856220 dovecot: auth: Error: sh: 1: Cannot fork
Oct 4 00:33:15 h2856220 dovecot_authdb_plesk[30528]: Unable to determine mail server type from ``mailmng-server --features''
Oct 4 00:33:15 h2856220 dovecot: auth: Fatal: authdb plesk: initialization failed - unable to detect current mail authentication DB
Oct 4 00:33:15 h2856220 dovecot: master: Error: service(auth): command startup failed, throttling for 60.000 secs
Oct 4 00:33:15 h2856220 dovecot: imap-login: Disconnected: Auth process broken (disconnected before auth was ready, waited 0 secs): user=<>, rip=X.X.X.X, lip=X.X.X.X, TLS handshaking, session=<DTvW1cuwJ+2Ps1ta>
Oct 4 00:33:27 h2856220 dovecot: imap-login: Warning: Auth process not responding, delayed sending initial response (greeting): user=<>, rip=X.X.X.X, lip=X.X.X.X, TLS, session=<DKaD1suwKO2Ps1ta>
Oct 4 00:33:47 h2856220 dovecot: imap-login: Error: auth-client: conn unix:login (pid=24065,uid=0): Timeout waiting for handshake from auth server. my pid=30531, input bytes=0
Oct 4 00:33:47 h2856220 dovecot: imap-login: Disconnected: Auth process broken (disconnected before auth was ready, waited 30 secs): user=<>, rip=X.X.X.X, lip=X.X.X.X, TLS, session=<DKaD1suwKO2Ps1ta>
Oct 4 00:33:57 h2856220 dovecot: imap-login: Warning: Auth process not responding, delayed sending initial response (greeting): user=<>, rip=X.X.X.X, lip=X.X.X.X, TLS, session=<D7lQ2MuwKe2Ps1ta>
...
Oct 4 15:57:53 h2856220 dovecot: master: Error: service(imap): fork() failed: Resource temporarily unavailable (ulimit -u 62987 reached?)
Oct 4 15:57:53 h2856220 dovecot: master: Error: service(imap): command startup failed, throttling for 2.000 secs
Oct 4 15:57:55 h2856220 dovecot: master: Error: service(imap): fork() failed: Resource temporarily unavailable (ulimit -u 62987 reached?)
Oct 4 15:57:55 h2856220 dovecot: master: Error: service(imap): command startup failed, throttling for 4.000 secs
Oct 4 15:57:59 h2856220 dovecot: master: Error: service(imap): fork() failed: Resource temporarily unavailable (ulimit -u 62987 reached?)
Oct 4 15:57:59 h2856220 dovecot: master: Error: service(imap): command startup failed, throttling for 8.000 secs
Oct 4 15:58:07 h2856220 dovecot: master: Error: service(imap): fork() failed: Resource temporarily unavailable (ulimit -u 62987 reached?)
Oct 4 15:58:07 h2856220 dovecot: master: Error: service(imap): command startup failed, throttling for 16.000 secs
Oct 4 15:58:22 h2856220 dovecot: master: Error: service(imap-login): fork() failed: Resource temporarily unavailable (ulimit -u 62987 reached?)
Oct 4 15:58:22 h2856220 dovecot: master: Error: service(imap-login): command startup failed, throttling for 2.000 secs
Oct 4 15:58:23 h2856220 dovecot: master: Error: service(imap): fork() failed: Resource temporarily unavailable (ulimit -u 62987 reached?)
Oct 4 15:58:23 h2856220 dovecot: master: Error: service(imap): command startup failed, throttling for 32.000 secs
Oct 4 15:58:24 h2856220 dovecot: master: Error: service(imap-login): fork() failed: Resource temporarily unavailable (ulimit -u 62987 reached?)
Oct 4 15:58:24 h2856220 dovecot: master: Error: service(imap-login): command startup failed, throttling for 4.000 secs
Oct 4 15:58:28 h2856220 dovecot: master: Error: service(imap-login): fork() failed: Resource temporarily unavailable (ulimit -u 62987 reached?)
Oct 4 15:58:28 h2856220 dovecot: master: Error: service(imap-login): command startup failed, throttling for 8.000 secs
Oct 4 15:58:36 h2856220 dovecot: master: Error: service(imap-login): fork() failed: Resource temporarily unavailable (ulimit -u 62987 reached?)
Oct 4 15:58:36 h2856220 dovecot: master: Error: service(imap-login): command startup failed, throttling for 16.000 secs
Oct 4 15:58:52 h2856220 dovecot: master: Error: service(imap-login): fork() failed: Resource temporarily unavailable (ulimit -u 62987 reached?)
Oct 4 15:58:52 h2856220 dovecot: master: Error: service(imap-login): command startup failed, throttling for 32.000 secs
Oct 4 15:58:55 h2856220 dovecot: master: Error: service(imap): fork() failed: Resource temporarily unavailable (ulimit -u 62987 reached?)
Oct 4 15:58:55 h2856220 dovecot: master: Error: service(imap): command startup failed, throttling for 60.000 secs
...
Roundcube repeats to stop working after a while. Not sure if the problem lies with IMAP or roundcube itself. restarting apache2 seems to be working workaround.
Long story
I have a Plesk Obsidian 18.0.30 update 2 running on Ubuntu 18.04.5. LTS. about a year ago I migrated from a previous plesk server and all seemed wonderfull.
Out of the blue some customers started complaining that webmail was down. I have RoundCube installed. I found out that if I disabled and re-enabled the webapplication firewall then Roundcube would start working again. I figured it was a bad ruleset update. I hoped it was a one-time-error and let it be.
After a while I got the same problem. Searching the forum I added an exception for the location "/roundcube/" and added a line "SecResponseBodyLimit 546870912", I believe because of an other error but it could have been a suggested solution for this error. Not sure anymore.
When it happened again I turned of WAF completely because my customer were getting very annoyed because they rely on Roundcube.
After a while Roundcube still stopped working. I dove into several logfiles and found some errors that pointed to fpm-cgi. After I issued the command 'service apache2 restart', Roundcube started working again.
Mail keeps working as far as I know. This is a fairly small server with about 20 active domains so it should be able to do it's job easily. It is a VPS hosted at strato.
I was hit with Corona so it has been a fix-and-run situatiion the last time. If just tried to find the errors again in the logfiles. I believe it had somethins to do with fpm but I cannot find those anymore. I did find the following errors in the log /var/log/mail.log.1 from the previous time roundcube stopped working:
Oct 4 00:25:16 h2856220 dovecot: auth: Error: sh: 1: Cannot fork
Oct 4 00:25:16 h2856220 dovecot_authdb_plesk[30299]: Unable to determine mail server type from ``mailmng-server --features''
Oct 4 00:25:16 h2856220 dovecot: auth: Fatal: authdb plesk: initialization failed - unable to detect current mail authentication DB
...
Oct 4 00:33:15 h2856220 dovecot: auth: Error: sh: 1: Cannot fork
Oct 4 00:33:15 h2856220 dovecot_authdb_plesk[30528]: Unable to determine mail server type from ``mailmng-server --features''
Oct 4 00:33:15 h2856220 dovecot: auth: Fatal: authdb plesk: initialization failed - unable to detect current mail authentication DB
Oct 4 00:33:15 h2856220 dovecot: master: Error: service(auth): command startup failed, throttling for 60.000 secs
Oct 4 00:33:15 h2856220 dovecot: imap-login: Disconnected: Auth process broken (disconnected before auth was ready, waited 0 secs): user=<>, rip=X.X.X.X, lip=X.X.X.X, TLS handshaking, session=<DTvW1cuwJ+2Ps1ta>
Oct 4 00:33:27 h2856220 dovecot: imap-login: Warning: Auth process not responding, delayed sending initial response (greeting): user=<>, rip=X.X.X.X, lip=X.X.X.X, TLS, session=<DKaD1suwKO2Ps1ta>
Oct 4 00:33:47 h2856220 dovecot: imap-login: Error: auth-client: conn unix:login (pid=24065,uid=0): Timeout waiting for handshake from auth server. my pid=30531, input bytes=0
Oct 4 00:33:47 h2856220 dovecot: imap-login: Disconnected: Auth process broken (disconnected before auth was ready, waited 30 secs): user=<>, rip=X.X.X.X, lip=X.X.X.X, TLS, session=<DKaD1suwKO2Ps1ta>
Oct 4 00:33:57 h2856220 dovecot: imap-login: Warning: Auth process not responding, delayed sending initial response (greeting): user=<>, rip=X.X.X.X, lip=X.X.X.X, TLS, session=<D7lQ2MuwKe2Ps1ta>
...
Oct 4 15:57:53 h2856220 dovecot: master: Error: service(imap): fork() failed: Resource temporarily unavailable (ulimit -u 62987 reached?)
Oct 4 15:57:53 h2856220 dovecot: master: Error: service(imap): command startup failed, throttling for 2.000 secs
Oct 4 15:57:55 h2856220 dovecot: master: Error: service(imap): fork() failed: Resource temporarily unavailable (ulimit -u 62987 reached?)
Oct 4 15:57:55 h2856220 dovecot: master: Error: service(imap): command startup failed, throttling for 4.000 secs
Oct 4 15:57:59 h2856220 dovecot: master: Error: service(imap): fork() failed: Resource temporarily unavailable (ulimit -u 62987 reached?)
Oct 4 15:57:59 h2856220 dovecot: master: Error: service(imap): command startup failed, throttling for 8.000 secs
Oct 4 15:58:07 h2856220 dovecot: master: Error: service(imap): fork() failed: Resource temporarily unavailable (ulimit -u 62987 reached?)
Oct 4 15:58:07 h2856220 dovecot: master: Error: service(imap): command startup failed, throttling for 16.000 secs
Oct 4 15:58:22 h2856220 dovecot: master: Error: service(imap-login): fork() failed: Resource temporarily unavailable (ulimit -u 62987 reached?)
Oct 4 15:58:22 h2856220 dovecot: master: Error: service(imap-login): command startup failed, throttling for 2.000 secs
Oct 4 15:58:23 h2856220 dovecot: master: Error: service(imap): fork() failed: Resource temporarily unavailable (ulimit -u 62987 reached?)
Oct 4 15:58:23 h2856220 dovecot: master: Error: service(imap): command startup failed, throttling for 32.000 secs
Oct 4 15:58:24 h2856220 dovecot: master: Error: service(imap-login): fork() failed: Resource temporarily unavailable (ulimit -u 62987 reached?)
Oct 4 15:58:24 h2856220 dovecot: master: Error: service(imap-login): command startup failed, throttling for 4.000 secs
Oct 4 15:58:28 h2856220 dovecot: master: Error: service(imap-login): fork() failed: Resource temporarily unavailable (ulimit -u 62987 reached?)
Oct 4 15:58:28 h2856220 dovecot: master: Error: service(imap-login): command startup failed, throttling for 8.000 secs
Oct 4 15:58:36 h2856220 dovecot: master: Error: service(imap-login): fork() failed: Resource temporarily unavailable (ulimit -u 62987 reached?)
Oct 4 15:58:36 h2856220 dovecot: master: Error: service(imap-login): command startup failed, throttling for 16.000 secs
Oct 4 15:58:52 h2856220 dovecot: master: Error: service(imap-login): fork() failed: Resource temporarily unavailable (ulimit -u 62987 reached?)
Oct 4 15:58:52 h2856220 dovecot: master: Error: service(imap-login): command startup failed, throttling for 32.000 secs
Oct 4 15:58:55 h2856220 dovecot: master: Error: service(imap): fork() failed: Resource temporarily unavailable (ulimit -u 62987 reached?)
Oct 4 15:58:55 h2856220 dovecot: master: Error: service(imap): command startup failed, throttling for 60.000 secs
...