1 (edited by woods 2012-04-24 14:36:24)

Topic: iredadmin internal server error

==== Provide required information to help troubleshoot and get quick answer ====
- iRedMail version: 0.7.4
- Linux/BSD distribution name and version: Ubuntu 10.04 (Turnkey Linux Core)
- Any related log? Log is helpful for troubleshooting.
====

I'm trying to install iRedAdmin Pro latest LDAP version. I can't seem to access the admin gui after install, and get an Internal server error.

The relevant apache error log lines are below:

------------
[Tue Apr 24 16:10:37 2012] [error] Exception KeyError: KeyError(-1216447856,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored
[Tue Apr 24 16:10:37 2012] [error] Exception KeyError: KeyError(-1216447856,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored
[Tue Apr 24 16:10:37 2012] [error] Exception KeyError: KeyError(-1216447856,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored
[Tue Apr 24 16:10:37 2012] [error] Exception KeyError: KeyError(-1216447856,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored
[Tue Apr 24 16:10:37 2012] [error] Exception KeyError: KeyError(-1216447856,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored
[Tue Apr 24 16:10:37 2012] [error] Exception KeyError: KeyError(-1216447856,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored
[Tue Apr 24 16:10:37 2012] [error] Exception KeyError: KeyError(-1216447856,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored
[Tue Apr 24 16:10:38 2012] [notice] caught SIGTERM, shutting down
[Tue Apr 24 16:10:39 2012] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Apr 24 16:10:39 2012] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Apr 24 16:10:39 2012] [notice] Apache/2.2.14 (Ubuntu) mod_ssl/2.2.14 OpenSSL/0.9.8k mod_wsgi/2.8 Python/2.6.5 configured -- resuming normal operations
[Tue Apr 24 16:11:55 2012] [error] Exception KeyError: KeyError(-1216853360,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored
[Tue Apr 24 16:11:56 2012] [error] Exception KeyError: KeyError(-1216853360,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored
[Tue Apr 24 16:11:57 2012] [error] Exception KeyError: KeyError(-1216853360,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored
[Tue Apr 24 16:12:09 2012] [error] Exception KeyError: KeyError(-1216853360,) in <module 'threading' from '/usr/lib/python2.6/threading.pyc'> ignored
[Tue Apr 24 16:12:09 2012] [error] Exception TypeError: TypeError("'NoneType' object is not callable",) in <bound method PooledDB.__del__ of <DBUtils.PooledDB.PooledDB instance at 0x21c79c2c>> ignored
[Tue Apr 24 16:12:10 2012] [error] [client 192.168.xx.yy] mod_wsgi (pid=2921): Target WSGI script '/usr/share/apache2/iredadmin/iredadmin.py' cannot be loaded as Python module.
[Tue Apr 24 16:12:10 2012] [error] [client 192.168.xx.yy] mod_wsgi (pid=2921): Exception occurred processing WSGI script '/usr/share/apache2/iredadmin/iredadmin.py'.
[Tue Apr 24 16:12:10 2012] [error] [client 192.168.xx.yy] Traceback (most recent call last):
[Tue Apr 24 16:12:10 2012] [error] [client 192.168.xx.yy]   File "/usr/share/apache2/iredadmin/iredadmin.py", line 8, in <module>
[Tue Apr 24 16:12:10 2012] [error] [client 192.168.xx.yy]     from libs import iredbase
[Tue Apr 24 16:12:10 2012] [error] [client 192.168.xx.yy]   File "/usr/share/apache2/iredadmin/libs/iredbase.py", line 34, in <module>
[Tue Apr 24 16:12:10 2012] [error] [client 192.168.xx.yy]     webmaster = cfg.general.get('webmaster', 'root')
[Tue Apr 24 16:12:10 2012] [error] [client 192.168.xx.yy]   File "/usr/local/lib/python2.6/dist-packages/web.py-0.36-py2.6.egg/web/utils.py", line 76, in __getattr__
[Tue Apr 24 16:12:10 2012] [error] [client 192.168.xx.yy]     raise AttributeError, k
[Tue Apr 24 16:12:10 2012] [error] [client 192.168.xx.yy] AttributeError: 'general'
----------


I'm thinking this is the most relevant line:

Target WSGI script '/usr/share/apache2/iredadmin/iredadmin.py' cannot be loaded as Python module.

Thanks in advance.

----

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

2

Re: iredadmin internal server error

I've tried reinstalling again following the instructions to upgrade fromt he OpenSource version this time. Then rebooted the server and it seems to have work.

Case close for now.

3

Re: iredadmin internal server error

woods wrote:

[Tue Apr 24 16:12:10 2012] [error] [client 192.168.xx.yy] AttributeError: 'general'

Usually, it's caused by incorrect file permission of settings.ini. It should be owned by user vmail, group vmail, with file permission 0400.