1

Topic: Internal Server Error

Hello,

After upgrading iRedAdmin-Ldap-1.3 to 1.5, I get "Internal Server Error". Apache error log shows:

[Sat May 28 11:51:34 2011] [error] [client 78.56.155.116] mod_wsgi (pid=32727): Target WSGI script '/var/www/iredadmin/iredadmin.py' cannot be loaded as Python module.
[Sat May 28 11:51:34 2011] [error] [client 78.56.155.116] mod_wsgi (pid=32727): Exception occurred processing WSGI script '/var/www/iredadmin/iredadmin.py'.
[Sat May 28 11:51:34 2011] [error] [client 78.56.155.116] Traceback (most recent call last):
[Sat May 28 11:51:34 2011] [error] [client 78.56.155.116]   File "/var/www/iredadmin/iredadmin.py", line 8, in ?
[Sat May 28 11:51:34 2011] [error] [client 78.56.155.116]     from libs import iredbase
[Sat May 28 11:51:34 2011] [error] [client 78.56.155.116]   File "/var/www/iredadmin/libs/iredbase.py", line 34, in ?
[Sat May 28 11:51:34 2011] [error] [client 78.56.155.116]     webmaster = cfg.general.get('webmaster', 'root')
[Sat May 28 11:51:34 2011] [error] [client 78.56.155.116]   File "/usr/lib/python2.4/site-packages/web.py-0.34-py2.4.egg/web/utils.py", line 71, in __getattr__
[Sat May 28 11:51:34 2011] [error] [client 78.56.155.116]     raise AttributeError, k
[Sat May 28 11:51:34 2011] [error] [client 78.56.155.116] AttributeError: 'general'

----

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

2

Re: Internal Server Error

dammit wrote:

[Sat May 28 11:51:34 2011] [error] [client 78.56.155.116] AttributeError: 'general'

It's a file permission error. iRedAdmin config file "/var/www/iredadmin/settings.ini" must be owned by user "iredadmin" and group "iredadmin", file permission must be 0400.