1

Topic: iRedAdmin can't start after removing mysql? (LDAP backend)

==== Required information ====
- iRedMail version: 0.8.7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Linux/BSD distribution name and version: Deb7
- Related log if you're reporting an issue: in line
====

Zhang,

I have apache2 mpm_worker, with mod_wsgi and mod_ldap installed. I am using LDAP backend iRedMail. So, I purged mysql from iRedMail system.

Now when I go to iRedAdmin through web, I get internal 500 error, with the following text:

[Fri Nov 28 18:23:44 2014] [error] [client 24.62.230.8] mod_wsgi (pid=13772): Exception occurred processing WSGI script '/usr/share/apache2/iredadmin/iredadmin.py'.
[Fri Nov 28 18:23:44 2014] [error] [client 24.62.230.8] Traceback (most recent call last):
[Fri Nov 28 18:23:44 2014] [error] [client 24.62.230.8]   File "/usr/share/apache2/iredadmin/iredadmin.py", line 9, in <module>
[Fri Nov 28 18:23:44 2014] [error] [client 24.62.230.8]     from libs import iredbase
[Fri Nov 28 18:23:44 2014] [error] [client 24.62.230.8]   File "/usr/share/apache2/iredadmin/libs/iredbase.py", line 48, in <module>
[Fri Nov 28 18:23:44 2014] [error] [client 24.62.230.8]     pw=settings.iredadmin_db_password,
[Fri Nov 28 18:23:44 2014] [error] [client 24.62.230.8]   File "/usr/lib/python2.7/dist-packages/web/db.py", line 1143, in database
[Fri Nov 28 18:23:44 2014] [error] [client 24.62.230.8]     return _databases[dbn](**params)
[Fri Nov 28 18:23:44 2014] [error] [client 24.62.230.8]   File "/usr/lib/python2.7/dist-packages/web/db.py", line 975, in __init__
[Fri Nov 28 18:23:44 2014] [error] [client 24.62.230.8]     import MySQLdb as db
[Fri Nov 28 18:23:44 2014] [error] [client 24.62.230.8] ImportError: No module named MySQLdb

I have mysql running on other local server. How can I tell iRedAdmin to completely ignore MySQL, OR tell iRedAdmin which mysql server to search for instead? Does iRedAdmin use MySQL for some things, even if I'm using LDAP-backend?

Best,
Sam

----

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

2

Re: iRedAdmin can't start after removing mysql? (LDAP backend)

You can update iRedAdmin config file to specify mysql server address.

iRedAdmin needs SQL database to store some data, e.g. session info, etc.