1 (edited by raystrach 2021-04-01 09:42:58)

Topic: Server Error Problem with Roundcube

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.3.2
- Deployed with iRedMail Easy or the downloadable installer? downloadable
- Linux/BSD distribution name and version: centos 8
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mysql
- Web server (Apache or Nginx):nginx
- Manage mail accounts with iRedAdmin-Pro? no
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

after installing iredmail i am getting an error when trying to view emails in roundcube:

Server Error! (Internal Server Error)

i am fine in viewing emails in sogo and all is well when accessing emails via email client.

roundcube is identifying the correct number of unread emails in the relevant folder (the correct number appears top left) but no emails are listed. sending emails is fine.

i have not made any changes to the rc config and the only problems that appear in the logs are a few php warnings about empty variables. i have searched for a number of hours trying to find clues about the problem's origins but to no avail. i guess it is possible i could have missed a log somewhere.

i guess the empty variable warnings could be the cause of the problems but i am doubtful.

i have done quite a few of these installations on centos 6 and 7 and never had an issue that could not be solved and have a well documented process that i go through to get the result i want, so this problem is out of left field.

i scrapped my first installation in centos 8 because of the issue as i though i may have stuffed up along the way, but the same problem is still there second time around after being super careful i followed the correct procedure.

has anyone else experienced this?

cheers

rs

2

Re: Server Error Problem with Roundcube

Any related error in /var/log/maillog and /var/log/nginx/*.log?

----

Buy me a cup of coffee ($5) to support iRedMail:

buy me a cup of coffee

3

Re: Server Error Problem with Roundcube

thanks for your reply...

here is a representative sample of the warnings i mentioned in maillog:

Apr  1 03:03:40 mailer roundcube[61576]: PHP Warning:  Undefined variable $proto in /opt/www/roundcubemail-1.4.9/program/lib/Roundcube/rcube_db.php on line 1220
Apr  1 03:03:40 mailer roundcube[61576]: PHP Warning:  Undefined array key "managesieve" in /opt/www/roundcubemail-1.4.9/program/lib/Roundcube/rcube_plugin_api.php on line 176
Apr  1 03:03:40 mailer roundcube[61576]: PHP Warning:  Undefined array key "password" in /opt/www/roundcubemail-1.4.9/program/lib/Roundcube/rcube_plugin_api.php on line 176
Apr  1 03:03:40 mailer roundcube[61576]: PHP Warning:  Undefined array key "zipdownload" in /opt/www/roundcubemail-1.4.9/program/lib/Roundcube/rcube_plugin_api.php on line 176
Apr  1 03:03:40 mailer roundcube[61576]: PHP Warning:  Undefined array key "filesystem_attachments" in /opt/www/roundcubemail-1.4.9/program/lib/Roundcube/rcube_plugin_api.php on line 176
Apr  1 03:03:40 mailer roundcube[61576]: PHP Warning:  Undefined array key "jqueryui" in /opt/www/roundcubemail-1.4.9/program/lib/Roundcube/rcube_plugin_api.php on line 176
Apr  1 03:03:40 mailer roundcube[61576]: PHP Warning:  Undefined variable $add in /opt/www/roundcubemail-1.4.9/program/lib/Roundcube/rcube_db.php on line 935
Apr  1 03:03:40 mailer roundcube[61576]: PHP Warning:  Undefined array key "w" in /opt/www/roundcubemail-1.4.9/program/lib/Roundcube/rcube_db.php on line 131
Apr  1 03:03:40 mailer roundcube[61576]: PHP Warning:  Undefined array key "socket" in /opt/www/roundcubemail-1.4.9/program/lib/Roundcube/db/mysql.php on line 100
Apr  1 03:03:40 mailer roundcube[61576]: PHP Warning:  Uninitialized string offset 78 in /opt/www/roundcubemail-1.4.9/program/lib/Roundcube/rcube_db.php on line 437
Apr  1 03:03:40 mailer roundcube[61576]: PHP Warning:  Uninitialized string offset 41 in /opt/www/roundcubemail-1.4.9/program/lib/Roundcube/rcube_db.php on line 437
Apr  1 03:03:40 mailer roundcube[61576]: PHP Warning:  Undefined array key "skin" in /opt/www/roundcubemail-1.4.9/program/lib/Roundcube/rcube_config.php on line 458
Apr  1 03:03:40 mailer roundcube[61576]: PHP Warning:  Undefined array key "_task" in /opt/www/roundcubemail-1.4.9/program/include/rcmail.php on line 865
Apr  1 03:03:40 mailer roundcube[61576]: PHP Warning:  Undefined array key "REDIRECT_SCRIPT_URL" in /opt/www/roundcubemail-1.4.9/program/include/rcmail.php on line 880
Apr  1 03:03:40 mailer roundcube[61576]: PHP Warning:  Undefined array key "managesieve" in /opt/www/roundcubemail-1.4.9/program/lib/Roundcube/rcube_plugin_api.php on line 99
Apr  1 03:03:40 mailer roundcube[61576]: PHP Warning:  Undefined variable $rcmail_config in /opt/www/roundcubemail-1.4.9/program/lib/Roundcube/rcube_config.php on line 323
Apr  1 03:03:40 mailer roundcube[61576]: PHP Warning:  Undefined array key "password" in /opt/www/roundcubemail-1.4.9/program/lib/Roundcube/rcube_plugin_api.php on line 99

there are no errors or warnings in access.log
in error.log there are a few warnings related to the above all similar or the same as the one below:

2021/03/31 20:25:50 [error] 838#0: *9717 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "env" in /opt/www/roundcubemail-1.4.9/index.php on line 43PHP message: PHP Warning:  Undefined variable $rcmail_config in /opt/www/roundcubemail-1.4.9/program/lib/Roundcube/rcube_config.php on line 323PHP message: PHP Warning:  Undefined variable $rcmail_config in /opt/www/roundcubemail-1.4.9/program/lib/Roundcube/rcube_config.php on line 323PHP message: PHP Warning:  Undefined array key 2 in /opt/www/roundcubemail-1.4.9/program/lib/Roundcube/rcube_charset.php on line 223PHP message: PHP Warning:  Undefined array key "UTF-8" in /opt/www/roundcubemail-1.4.9/program/lib/Roundcube/rcube_charset.php on line 340PHP message: PHP Warning:  Undefined array key "UTF7-IMAP" in /opt/www/roundcubemail-1.4.9/program/lib/Roundcube/rcube_charset.php on line 341PHP message: PHP Warning:  Undefined array key "UTF-8" in /opt/www/roundcubemail-1.4.9/program/lib/Roundcube/rcube_charset.php on line 340PHP message: PHP Warning:  Undefined array key "UTF7-IMAP" in /opt/www/roundcubemail-1.4.9/program/lib/Roundcube/rcube_charset.php on line 341PHP message: PHP Warning:  Undefined array key "UTF-8" in /opt/www/roundcubemail-1.4.9/program/lib/Roundcube/rcube_charset.php on line 340PHP message: PHP Warning:  Undefined array key "UTF7-IMAP" in /opt/www/roundcubemail-1.4.9/program/lib/Roundcube/rcube_charset.php on line 341PHP message: PHP Warning:  Undefined array key "UTF-8" in /opt/www/roundcubemail-1.4.9/program/lib/Roundcube/rcube_charset.php on line 340PHP message: PHP Warning:  Undefined array key "UTF7-IMAP" in /opt/www/roundcubemail-1.4.9/program/lib/Roundcube/rcube_charset.php on line 341" while reading response header from upstream, client: 149.135.50.214, server: _, request: "POST /mail/?_task=mail&_action=refresh HTTP/2.0", upstream: "fastcgi://127.0.0.1:9999", host: "mygosh.org", referrer: "https://mygosh.org/mail/?_task=mail&_mbox=INBOX"

(there are a few errors caused by illegal access attempts as well)

i guess that the $rcmail_config var should be available from the start of the script seeing that is the config variable

4

Re: Server Error Problem with Roundcube

I think there's something wrong in your Roundcube config file /opt/www/roundcubemail/config/config.inc.php, please double check.

----

Buy me a cup of coffee ($5) to support iRedMail:

buy me a cup of coffee

5

Re: Server Error Problem with Roundcube

i have done some more investigation into this over the weekend.

turns out  (and i should have looked earlier) that the current version of roundcube is not compatible with php 8.

i have tried using a later beta  version of rc but still had problems although the php errors that were generated were minimal.

i had checked the config file prior to posting this question and it seemed fine (i had not made any changes at that point). since, i have tried a previously saved version of the file but the results were identical.

also, i made some changes from maildir to sdbox in the storage format(i have used this set up multiple times and i have it well documented), so i will also recheck there to make sure i got all those settings right

fortunately this was a test installation. i will reinstall everything using php 7 and see what happens.


i will report back

6

Re: Server Error Problem with Roundcube

right...
i went over everything again and found that in my toing and froing of different solutions/patches i must have misconfigured at least the symlink to the new beta version and possibly the dovecot-mysql.conf file at some point(s)

i reviewed the dovecot-mysql.conf file first and found that there was a small error in the file as i have a slightly different naming convention to the standard iredmail setup. i don't think that this was causing the problem as exactly the same errors were occurring after making the change and restarting dovecot.

i then restarted installing the roundcubemail-1.5-beta version and setting up the symlink to roundcubemail.

although i restarted nginx, it still didn't work, but then i rebooted the server and hey presto - it worked!

moral of the story - don't use roundcube 1.49 with php8

i read somewhere where v1.5 will come out of beta in the next month or two although officially no date has been set for release

thanks for your help

7

Re: Server Error Problem with Roundcube

Thanks for sharing. smile

----

Buy me a cup of coffee ($5) to support iRedMail:

buy me a cup of coffee