1

Topic: iredadmin-pro 500 error

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

Hi Zhang,

today https://ourhost/iredadmin shows 500 internal error and the ssl error log is:

[Tue Sep 25 18:08:31 2012] [error] [client 192.168.8.44] 0.0 (1): SELECT * FROM sessions WHERE session_id='efe7...'
[Tue Sep 25 18:08:31 2012] [error] [client 192.168.8.44] 0.0 (2): SELECT * FROM sessions WHERE session_id='efe7...'
[Tue Sep 25 18:08:31 2012] [error] [client 192.168.8.44] 0.0 (3): UPDATE sessions SET atime = '2012-09-25T18:08:31.742671' WHERE session_id='efe7...'
[Tue Sep 25 18:08:31 2012] [error] [client 192.168.8.44] Traceback (most recent call last):
[Tue Sep 25 18:08:31 2012] [error] [client 192.168.8.44]   File "/usr/lib/python2.6/site-packages/web/application.py", line 237, in process
[Tue Sep 25 18:08:31 2012] [error] [client 192.168.8.44]     return self.handle()
[Tue Sep 25 18:08:31 2012] [error] [client 192.168.8.44]   File "/usr/lib/python2.6/site-packages/web/application.py", line 228, in handle
[Tue Sep 25 18:08:31 2012] [error] [client 192.168.8.44]     return self._delegate(fn, self.fvars, args)
[Tue Sep 25 18:08:31 2012] [error] [client 192.168.8.44]   File "/usr/lib/python2.6/site-packages/web/application.py", line 405, in _delegate
[Tue Sep 25 18:08:31 2012] [error] [client 192.168.8.44]     mod = __import__(mod, None, None, [''])
[Tue Sep 25 18:08:31 2012] [error] [client 192.168.8.44]   File "/var/www/iredadmin/controllers/mysql/basic.py", line 64
[Tue Sep 25 18:08:31 2012] [error] [client 192.168.8.44]     raise web.seeother('/domains')
[Tue Sep 25 18:08:31 2012] [error] [client 192.168.8.44]    ^
[Tue Sep 25 18:08:31 2012] [error] [client 192.168.8.44] IndentationError: unexpected indent
[Tue Sep 25 18:08:31 2012] [error] [client 192.168.8.44]
[Tue Sep 25 18:08:31 2012] [error] [client 192.168.8.44] 0.0 (4): SELECT * FROM sessions WHERE session_id='efe7...'
[Tue Sep 25 18:08:31 2012] [error] [client 192.168.8.44] 0.0 (5): UPDATE sessions SET data = 'KGRw...\\nOTIu...\\nbG9...\\naW9u...\\nMTEK...\\nbicK...\\nSTAK...\\nLg==\\n' WHERE session_id='efe7...'

any idea for the cause?  Thanks!

----

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

2

Re: iredadmin-pro 500 error

Hi Zhang,

Sorry, I have fixed the issue which due to an extra space before a statement in /var/www/iredadmin/controllers/mysql/basic.py
thanks.