Roundcube file not found

Description

Roundcube login page works just fine, but upon a successful login a 404 page is shown ( FILE NOT FOUND The requested resource was not found!). Refreshing the page doesn’t fix it, neither reinstalling the package itself.

Thought of it being a skin issue, but that is not defined/overwritten in the config so doesn’t apply.

Environment

ApisCP version:
[root@web5 roundcube]# cpcmd misc:cp-version
revision: e10fcbc17eedca9d8e3f2da549e19cc7b781e8e2
timestamp: 1783621327
ver_maj: 3
ver_min: 2
ver_patch: 48
ver_pre: 72-ge10fcbc17
dirty: false
debug: false

Operating System:
[root@web5 roundcube]# uname -r
7.1.3-1.el8.elrepo.x86_64

Additional Information

[root@web5 roundcube]# tail -f /var/lib/roundcube/logs/errors.log
[24-Jan-2023 14:07:21 America/New_York] PHP Deprecated:  Return type of zipdownload_mbox_filter::filter($in, $out, &$consumed, $closing) should either be compatible with php_user_filter::filter($in, $out, &$consumed, bool $closing): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/roundcube/plugins/zipdownload/zipdownload.php on line 405
[24-Jan-2023 14:07:21 America/New_York] PHP Deprecated:  preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/html/roundcube/program/lib/Roundcube/bootstrap.php on line 329
[24-Jan-2023 14:07:33 America/New_York] PHP Deprecated:  Return type of zipdownload_mbox_filter::filter($in, $out, &$consumed, $closing) should either be compatible with php_user_filter::filter($in, $out, &$consumed, bool $closing): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/roundcube/plugins/zipdownload/zipdownload.php on line 405
[24-Jan-2023 14:07:33 America/New_York] PHP Deprecated:  preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/html/roundcube/program/lib/Roundcube/bootstrap.php on line 329[13-Jul-2026 11:59:18 +0200]: <0a2dadb7> PHP Error: Error loading template for mail in /var/www/html/roundcube/program/include/rcmail_output_html.php on line 804 (GET /roundcube/?_task=mail&_token=1)
[13-Jul-2026 12:22:55 +0200]: <ae4ddjo6> PHP Error: Error loading template for mail in /var/www/html/roundcube/program/include/rcmail_output_html.php on line 804 (GET /roundcube/?_task=mail&_token=1&_token=2)

[root@web5 roundcube]# ls -la /var/www/html/roundcube/skins/elastic/templates/
total 148
drwxr-xr-x 3 root root  4096 Jul 13 11:59 .
drwxr-xr-x 7 root root   183 Jul 13 11:59 ..
-rw-r--r-- 1 root root   606 Feb  8 10:33 about.html
-rw-r--r-- 1 root root 10421 Feb  8 10:33 addressbook.html
-rw-r--r-- 1 root root  4055 Feb  8 10:33 bounce.html
-rw-r--r-- 1 root root 17577 Feb  8 10:33 compose.html
-rw-r--r-- 1 root root  1236 Feb  8 10:33 contactedit.html
-rw-r--r-- 1 root root   879 Feb  8 10:33 contact.html
-rw-r--r-- 1 root root   425 Feb  8 10:33 contactimport.html
-rw-r--r-- 1 root root   777 Feb  8 10:33 contactprint.html
-rw-r--r-- 1 root root   347 Feb  8 10:33 contactsearch.html
-rw-r--r-- 1 root root   222 Feb  8 10:33 dialog.html
-rw-r--r-- 1 root root   660 Feb  8 10:33 error.html
-rw-r--r-- 1 root root   378 Feb  8 10:33 folderedit.html
-rw-r--r-- 1 root root  3139 Feb  8 10:33 folders.html
-rw-r--r-- 1 root root  2157 Feb  8 10:33 identities.html
-rw-r--r-- 1 root root   442 Feb  8 10:33 identityedit.html
drwxr-xr-x 2 root root   129 Jul 13 11:59 includes
-rw-r--r-- 1 root root  1159 Feb  8 10:33 login.html
-rw-r--r-- 1 root root 13119 Feb  8 10:33 mail.html
-rw-r--r-- 1 root root  4619 Feb  8 10:33 message.html
-rw-r--r-- 1 root root  6988 Feb  8 10:33 messagepart.html
-rw-r--r-- 1 root root   987 Feb  8 10:33 messageprint.html
-rw-r--r-- 1 root root   573 Feb  8 10:33 plugin.html
-rw-r--r-- 1 root root   443 Feb  8 10:33 responseedit.html
-rw-r--r-- 1 root root  2024 Feb  8 10:33 responses.html
-rw-r--r-- 1 root root   394 Feb  8 10:33 settingsedit.html
-rw-r--r-- 1 root root  1273 Feb  8 10:33 settings.html

lgtm. Cannot reproduce with information as provided. See attached screeengrab.

# rpm -q roundcubemail
roundcubemail-1.6.13-1.apnscp.noarch
# uname -r
4.18.0-553.137.1.el8_10.x86_64

You may consider uninstalling and reinstalling Roundcube.

rm -rf /var/www/html/roundcube
dnf reinstall -y roundcubemail
upcp -sbf mail/webmail-roundcube
2 Likes

This did the trick, login works fine now! :+1:

1 Like

I had the same problem last month, and the same fix fixed it. The problem resurfaced with a particular user, and the same fix fixed it again. I say all this just to provide some context in case it’s helpful: I think that the issue may be related to alternative skins that used to be part of Roundcube and were deprecated a couple minor versions ago. The user who recently had a problem was using the classic skin, which is no longer included as part of the install. When I deleted and reinstalled, that theme is no longer available. The user is now using the single included theme (elastic) rather than classic, but at least it works.