1

Topic: Problem with Roundcube after restore

==== Provide required information ====
- iRedMail version and backend (LDAP/MySQL/PGSQL):Mysql
- Linux/BSD distribution name and version:Centos 6.2
- Any related log? Log is helpful for troubleshooting.
====
I am doing some tests in order to deploy  iRedmail in production. During the DR test, I installed a fresh Centos OS and restored from my old Server (db-www-vmail). Everything is working OK except roundcube which throws the following error when trying to login:
DATABASE ERROR: CONNECTION FAILED!
Unable to connect to the database!
Please contact your server-administrator.

The error in /var/log/mailog:

Jun 14 02:01:37 mail roundcube: MDB2 Error: insufficient permissions (-27): _doConnect: [Error message: Access denied for user 'roundcube'@'localhost' (using password: YES)]#012[Native code: 1045]#012[Native message: Access denied for user 'roundcube'@'localhost' (using password: YES)]
Jun 14 02:01:37 mail roundcube: DB Error: _doConnect: [Error message: Access denied for user 'roundcube'@'localhost' (using password: YES)]#012[Native code: 1045]#012[Native message: Access denied for user 'roundcube'@'localhost' (using password: YES)]#012 ** mysqli(mysqli)://roundcube:xxx@127.0.0.1/roundcubemail in /var/www/roundcubemail-0.7.2/program/include/rcube_mdb2.php on line 104 (GET /mail/)

----

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

2

Re: Problem with Roundcube after restore

You have incorrect SQL username/password in /var/www/roundcubemail/config/db.inc.php.

It would be great if you can clearly explain how you restored Roundcube related data. Be sure not to restore only "roundcubemail" database, not "mysql" database.