1

Topic: iredadmin.py cannot be loaded after upgrade from 1.7.0 to 1.8.1

==== Required information ====
- iRedMail version: 0.8.6
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mysql
- Linux/BSD distribution name and version:  Ubuntu 12.04.1
- Related log if you're reporting an issue:
[Thu Feb 06 17:25:49 2014] [error] [client 1.X.X.X] mod_wsgi (pid=1911): Target WSGI script '/web/iredadmin/iredadmin.py' cannot be loaded as Python module.
[Thu Feb 06 17:25:49 2014] [error] [client 1.X.X.X] mod_wsgi (pid=1911): Exception occurred processing WSGI script '/web/iredadmin/iredadmin.py'.
[Thu Feb 06 17:25:49 2014] [error] [client 1.X.X.X] Traceback (most recent call last):
[Thu Feb 06 17:25:49 2014] [error] [client 1.X.X.X]   File "/web/iredadmin/iredadmin.py", line 8, in <module>
[Thu Feb 06 17:25:49 2014] [error] [client 1.X.X.X]     from libs import iredbase
[Thu Feb 06 17:25:49 2014] [error] [client 1.X.X.X]   File "/web/iredadmin/libs/iredbase.py", line 16, in <module>
[Thu Feb 06 17:25:49 2014] [error] [client 1.X.X.X]     import iredutils
[Thu Feb 06 17:25:49 2014] [error] [client 1.X.X.X]   File "/web/iredadmin/libs/iredutils.py", line 15, in <module>
[Thu Feb 06 17:25:49 2014] [error] [client 1.X.X.X]     import settings
[Thu Feb 06 17:25:49 2014] [error] [client 1.X.X.X]   File "/web/iredadmin/settings.py", line 62, in <module>
[Thu Feb 06 17:25:49 2014] [error] [client 1.X.X.X]     policyd_enabled = true
[Thu Feb 06 17:25:49 2014] [error] [client 1.X.X.X] NameError: name 'true' is not defined
====

Good afternoon, I've just upgraded from 1.7.0 to 1.8.1 and I'm getting a 500 error in apache with the above error in the logs. I've rebooted the server, all the settings in settings.py appear to have copied over fine from the .ini file and here are my permissions

dr-xr-xr-x 18 iredadmin iredadmin 4.0K Feb  6 14:00 i18n
-r-xr-xr-x  1 iredadmin iredadmin  550 Feb  6 14:00 EULA
dr-xr-xr-x  2 iredadmin iredadmin 4.0K Feb  6 14:00 tools
dr-xr-xr-x  3 iredadmin iredadmin 4.0K Feb  6 14:00 templates
dr-xr-xr-x  4 iredadmin iredadmin 4.0K Feb  6 14:00 static
-r-xr-xr-x  1 iredadmin iredadmin 3.8K Feb  6 14:00 settings.py.mysql.sample
-r-xr-xr-x  1 iredadmin iredadmin  416 Feb  6 14:00 README
-r-xr-xr-x  1 iredadmin iredadmin  384 Feb  6 14:00 iredadmin.py
dr-xr-xr-x  3 iredadmin iredadmin 4.0K Feb  6 14:00 docs
dr-xr-xr-x  7 iredadmin iredadmin 4.0K Feb  6 14:00 controllers
-r-xr-xr-x  1 iredadmin iredadmin  18K Feb  6 14:00 ChangeLog.mysql
-r-xr-xr-x  1 iredadmin iredadmin   36 Feb  6 14:00 AUTHORS
-r-xr-xr-x  1 iredadmin www-data  1.4K Feb  6 16:44 settings.pyc
dr-xr-xr-x  7 iredadmin iredadmin 4.0K Feb  6 16:44 libs
-r--------  1 iredadmin iredadmin 4.0K Feb  6 17:24 settings.py


So at the moment, I'm a bit stumped as to the issue. Can anyone point me in the right direction.

----

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

2

Re: iredadmin.py cannot be loaded after upgrade from 1.7.0 to 1.8.1

In iRedAdmin-Pro config file 'settings.py', please set "policyd_enabled = True" instead of "policyd_enabled = true". Then restart Apache service and try again.

3

Re: iredadmin.py cannot be loaded after upgrade from 1.7.0 to 1.8.1

Excellent, that's done the job thanks very muc