1

Topic: Upgrade 14.04 to 16.04 on iredmail - One problem..

I upgraded my iredmail server from Ubuntu 14.04 to 16.04, and followed the
https://docs.iredmail.org/upgrade.ubunt … 16.04.html document on things to
fix/change to allow iredmail to operate under 16.04. All went well EXCEPT for
Roundcube showing the login screen, but after logging into a valid mail account
I get the dreaded white-screen of death.. Not sure where to go to troubleshoot
this... Help!

Thanks!!

----

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

2

Re: Upgrade 14.04 to 16.04 on iredmail - One problem..

LVDave wrote:

All went well EXCEPT for
Roundcube showing the login screen, but after logging into a valid mail account
I get the dreaded white-screen of death..

Any error in Apache/Nginx/php/Postfix log files?

3 (edited by LVDave 2019-07-02 23:48:02)

Re: Upgrade 14.04 to 16.04 on iredmail - One problem..

ZhangHuangbin wrote:
LVDave wrote:

All went well EXCEPT for
Roundcube showing the login screen, but after logging into a valid mail account
I get the dreaded white-screen of death..

Any error in Apache/Nginx/php/Postfix log files?

The only thing I can find in all of the logs is the following:

In syslog

Jul  2 08:21:59 mail roundcube: PHP Catchable fatal error:  session_regenerate_id(): Failed to create(read) session ID: user (path: /var/lib/php/sessions) in /opt/www/roundcubemail-1.1.3/program/lib/Roundcube/rcube_session.php on line 436

In Apache2/error.log

[Tue Jul 02 08:21:53.325120 2019] [:error] [pid 9176] [client 98.178.236.195:34856] PHP Warning:  Declaration of rcmail::get_instance($env = '') should be compatible with rcube::get_instance($mode = 0, $env = '') in /opt/www/roundcubemail-1.1.3/program/include/rcmail.php on line 30




Thanks
Dave

4

Re: Upgrade 14.04 to 16.04 on iredmail - One problem..

Does directory /var/lib/php/sessions exist with correct owner/group and permission?

5

Re: Upgrade 14.04 to 16.04 on iredmail - One problem..

ZhangHuangbin wrote:

Does directory /var/lib/php/sessions exist with correct owner/group and permission?

Not sure just what those permissions *should* be... Here's a ls -la of what they are, currently...

root@mail:/var/lib/php# ls -la
total 16
drwxr-xr-x  4 root root 4096 Jun 29 12:51 .
drwxr-xr-x 58 root root 4096 Jun 29 13:24 ..
drwxr-xr-x  3 root root 4096 Jun 29 12:57 modules
drwx-wx-wt  2 root root 4096 Jul 12  2017 sessions
root@mail:/var/lib/php#

Thanks!!

6

Re: Upgrade 14.04 to 16.04 on iredmail - One problem..

LVDave wrote:

drwx-wx-wt  2 root root 4096 Jul 12  2017 sessions

Should be owned by root user, group of your web server (www-data) with permission 0770.

7

Re: Upgrade 14.04 to 16.04 on iredmail - One problem..

ZhangHuangbin wrote:
LVDave wrote:

drwx-wx-wt  2 root root 4096 Jul 12  2017 sessions

Should be owned by root user, group of your web server (www-data) with permission 0770.

Fixed those permissions, and after restarting Apache, I still get the following...

Jul  3 09:56:21 mail roundcube: PHP Catchable fatal error:  session_regenerate_id(): Failed to create(read) session ID: user (path: /var/lib/php/sessions) in /opt/www/roundcubemail-1.1.3/program/lib/Roundcube/rcube_session.php on line 436

Thanks

8

Re: Upgrade 14.04 to 16.04 on iredmail - One problem..

- As a testing, set the directory permission to 0777.
- Any error in php-fpm and Nginx log files?

9

Re: Upgrade 14.04 to 16.04 on iredmail - One problem..

ZhangHuangbin wrote:

- As a testing, set the directory permission to 0777.
- Any error in php-fpm and Nginx log files?

I see nothing from php-fpm and the only thing I see in apache is the following:


[Tue Jul 30 10:32:25.016571 2019] [:error] [pid 14754] [client xx.xx.xx.xx:45152] PHP Warning:  Declaration of rcmail::get_instance($env = '') should be compatible with rcube::get_instance($mode = 0, $env = '') in /opt/www/roundcubemail-1.1.3/program/include/rcmail.php on line 30

Since the problem is with Roundcube, I asked over on their forum with the above error and
the first response I got was UPGRADE!! Roundcube 1.1.3 is from 2015, and doesn't do PHP7.X...
Soo.. My next question is: can I upgrade Roundcube with a standalone copy directly FROM
Roundcube?


Thanks

10

Re: Upgrade 14.04 to 16.04 on iredmail - One problem..

You can upgrade Roundcube with this tutorial:
https://github.com/roundcube/roundcubem … stallation