Topic: Every now and then roundcube stops loading
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.6.5
- Deployed with iRedMail Easy or the downloadable installer? installer
- Linux/BSD distribution name and version: Ubuntu 20.04
- 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.
====
Hi, I have a problem with iredmail's webmailer, but I'm not sure if it's roundcube itself, dovecot or php.
The problem is (at least for me) reconstructable, and cannot be limited to individual mailboxes, but affects all mailboxes, regardless of whether they contain 1000 mails or only 10.
If you perform actions in the roundcube, such as reading e-mails, then a new imap and a new imap-login process is executed for each mail called up in dovecot.
If you now click from mail to mail, it will happen at some point that the mail no longer loads in a fraction of a second, but the gray bar with "loading" is displayed at the bottom right of the roundcube all the time.
In the meantime, the php-fpm slow log recognizes this and displays the following in the log:
[12-Jul-2024 09:45:41] [pool www] pid 262614
script_filename = /opt/www/roundcubemail/index.php
[0x00007fc091013ce0] fgets() /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_imap_generic.php:212
[0x00007fc091013c40] readLine() /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_imap_generic.php:332
[0x00007fc091013b50] readReply() /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_imap_generic.php:780
[0x00007fc0910139c0] authenticate() /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_imap_generic.php:991
[0x00007fc0910138c0] connect() /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_imap.php:172
[0x00007fc091013790] connect() /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_imap.php:248
[0x00007fc091013720] check_connection() /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_imap.php:1890
[0x00007fc091013660] get_message_headers() /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_imap.php:1935
[0x00007fc091013560] get_message() /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_message.php:106
[0x00007fc091013470] __construct() /opt/www/roundcubemail-1.3.0/program/actions/mail/show.php:63
[0x00007fc091013300] run() /opt/www/roundcubemail-1.3.0/program/include/rcmail.php:282
[0x00007fc0910131d0] action_handler() /opt/www/roundcubemail-1.3.0/index.php:278
In the /var/log/mail.log I see the following:
Jul 12 09:46:08 mailserver roundcube: <ppds2t3c> IMAP Error: Login failed for postmaster@example.org against 127.0.0.1 from *myip*. AUTHENTICATE LOGIN: in /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_imap.php on line 211 (GET /mail/?_task=mail&_caps=pdf%3D1%2Cflash%3D0%2Ctiff%3D0%2Cwebp%3D1%2Cpgpmime%3D0&_uid=135&_mbox=INBOX&_framed=1&_action=preview)
Debugging becomes more difficult here, because fail2ban is triggered by the alleged failed logins (I don't log in myself, the roundcube process does this for every mail called up).
No errors are displayed in the php-fpm.log, except for the slow-log messages.
Roundcube is on version 1.6.7, I upgraded from 1.6.2 (or 1.6.3, not really sure), but that didn't fix it.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.