1

Topic: WSGI error

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.3
- Linux/BSD distribution name and version: Debian 8
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mysql
- Web server (Apache or Nginx): apache2
- Manage mail accounts with iRedAdmin-Pro? yes
- Related log if you're reporting an issue:
====

[Tue May 31 00:30:29.742092 2016] [wsgi:error] [pid 14654] [client xx] mod_wsgi (pid=14654): Target WSGI script '/usr/share/apache2/iredadmin/iredadmin.py' cannot be loaded as Python module.
[Tue May 31 00:30:29.742123 2016] [wsgi:error] [pid 14654] [client xx] mod_wsgi (pid=14654): Exception occurred processing WSGI script '/usr/share/apache2/iredadmin/iredadmin.py'.
[Tue May 31 00:30:29.742143 2016] [wsgi:error] [pid 14654] [client xx] Traceback (most recent call last):
[Tue May 31 00:30:29.742162 2016] [wsgi:error] [pid 14654] [client xx]   File "/usr/share/apache2/iredadmin/iredadmin.py", line 8, in <module>
[Tue May 31 00:30:29.742217 2016] [wsgi:error] [pid 14654] [client xx]     from libs import iredbase
[Tue May 31 00:30:29.742230 2016] [wsgi:error] [pid 14654] [client xx]   File "/usr/share/apache2/iredadmin/libs/iredbase.py", line 16, in <module>
[Tue May 31 00:30:29.742308 2016] [wsgi:error] [pid 14654] [client xx]     import iredutils
[Tue May 31 00:30:29.742322 2016] [wsgi:error] [pid 14654] [client xx]   File "/usr/share/apache2/iredadmin/libs/iredutils.py", line 14, in <module>
[Tue May 31 00:30:29.742449 2016] [wsgi:error] [pid 14654] [client xx]     import settings
[Tue May 31 00:30:29.742470 2016] [wsgi:error] [pid 14654] [client xx] ImportError: No module named settings

-r-xr-xr-x  1 iredadmin iredadmin    36 May 30 23:47 AUTHORS
-r-xr-xr-x  1 iredadmin iredadmin 29755 May 30 23:47 ChangeLog.sql
dr-xr-xr-x  7 iredadmin iredadmin  4096 Sep 20  2015 controllers
dr-xr-xr-x  4 iredadmin iredadmin  4096 Sep 20  2015 docs
-r-xr-xr-x  1 iredadmin iredadmin   550 May 30 23:47 EULA
dr-xr-xr-x 19 iredadmin iredadmin  4096 Sep 20  2015 i18n
-r-xr-xr-x  1 iredadmin iredadmin   384 May 30 23:47 iredadmin.py
dr-xr-xr-x  7 iredadmin iredadmin  4096 May 30 23:47 libs
-r-xr-xr-x  1 iredadmin iredadmin   724 May 30 23:47 README
-rwx------  1 iredadmin iredadmin  4039 May 30 23:47 settings.py
-r-xr-xr-x  1 iredadmin iredadmin  4430 May 30 23:47 settings.py.mysql.sample
-r-xr-xr-x  1 iredadmin iredadmin  4412 May 30 23:47 settings.py.pgsql.sample
dr-xr-xr-x  4 iredadmin iredadmin  4096 Sep 20  2015 static
dr-xr-xr-x  3 iredadmin iredadmin  4096 Sep 20  2015 templates
dr-xr-xr-x  2 iredadmin iredadmin  4096 May 30 23:47 tools

I've got the following error, google search point to this being a settings.py permission error but my permissions are fine. Need an idea of where to look for what's wrong. It started doing it when I upgraded to 0.9.3 and failed to download the newest admin-pro before I started. Could this be tied to version issues?

----

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

2

Re: WSGI error

Does command below fix this issue?

a2enconf iredadmin
service apache2 restart