1 (edited by lethalp1mp 2015-01-27 11:33:09)

Topic: Upgraded to iRedAdmin-Pro-1.9.1: Internal Server Error

======== Required information ====
- iRedMail version: 0.9.0
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: CentOS 5.11
- Related log if you're reporting an issue:
====
Getting Internal Server Error after login. Login page displays correctly if not logged in.

[Mon Jan 26 19:00:26 2015] [error] [client x.x.x.x] Traceback (most recent call last):
[Mon Jan 26 19:00:26 2015] [error] [client x.x.x.x]   File "/usr/lib/python2.4/site-packages/web/application.py", line 236, in process
[Mon Jan 26 19:00:26 2015] [error] [client x.x.x.x]     return self.handle()
[Mon Jan 26 19:00:26 2015] [error] [client x.x.x.x]   File "/usr/lib/python2.4/site-packages/web/application.py", line 227, in handle
[Mon Jan 26 19:00:26 2015] [error] [client x.x.x.x]     return self._delegate(fn, self.fvars, args)
[Mon Jan 26 19:00:26 2015] [error] [client x.x.x.x]   File "/usr/lib/python2.4/site-packages/web/application.py", line 409, in _delegate
[Mon Jan 26 19:00:26 2015] [error] [client x.x.x.x]     return handle_class(cls)
[Mon Jan 26 19:00:26 2015] [error] [client x.x.x.x]   File "/usr/lib/python2.4/site-packages/web/application.py", line 384, in handle_class
[Mon Jan 26 19:00:26 2015] [error] [client x.x.x.x]     return tocall(*args)
[Mon Jan 26 19:00:26 2015] [error] [client x.x.x.x]   File "/var/www/iredadmin/controllers/decorators.py", line 22, in proxyfunc
[Mon Jan 26 19:00:26 2015] [error] [client x.x.x.x]     return func(self, *args, **kw)
[Mon Jan 26 19:00:26 2015] [error] [client x.x.x.x]   File "/var/www/iredadmin/controllers/mysql/basic.py", line 246, in GET
[Mon Jan 26 19:00:26 2015] [error] [client x.x.x.x]     removeQuarantinedInDays=settings.AMAVISD_REMOVE_QUARANTINED_IN_DAYS,
[Mon Jan 26 19:00:26 2015] [error] [client x.x.x.x]   File "/var/www/iredadmin/libs/iredbase.py", line 201, in render_template
[Mon Jan 26 19:00:26 2015] [error] [client x.x.x.x]     return jinja_env.get_template(template_name).render(context)
[Mon Jan 26 19:00:26 2015] [error] [client x.x.x.x]   File "/usr/lib/python2.4/site-packages/jinja2/environment.py", line 669, in render
[Mon Jan 26 19:00:26 2015] [error] [client x.x.x.x]     return self.environment.handle_exception(exc_info, True)
[Mon Jan 26 19:00:26 2015] [error] [client x.x.x.x]   File "/var/www/iredadmin/libs/../templates/default/dashboard.html", line 4, in top-level template code
[Mon Jan 26 19:00:26 2015] [error] [client x.x.x.x]     {% from "macros/msgHandlers.html" import successInfo, errorInfo with context %}
[Mon Jan 26 19:00:26 2015] [error] [client x.x.x.x]   File "/var/www/iredadmin/libs/../templates/default/layout.html", line 33, in top-level template code
[Mon Jan 26 19:00:26 2015] [error] [client x.x.x.x]     {% if backend in ['ldap', 'mysql', 'pgsql'] %}
[Mon Jan 26 19:00:26 2015] [error] [client x.x.x.x]   File "/var/www/iredadmin/libs/../templates/default/macros/general.html", line 307, in template
[Mon Jan 26 19:00:26 2015] [error] [client x.x.x.x]     {% set token = csrf_token() %}
[Mon Jan 26 19:00:26 2015] [error] [client x.x.x.x]   File "/var/www/iredadmin/libs/iredbase.py", line 134, in csrf_token
[Mon Jan 26 19:00:26 2015] [error] [client x.x.x.x]     if not 'csrf_token' in session:
[Mon Jan 26 19:00:26 2015] [error] [client x.x.x.x]   File "/usr/lib/python2.4/site-packages/web/utils.py", line 1199, in __getitem__
[Mon Jan 26 19:00:26 2015] [error] [client x.x.x.x]     return self.__dict__[key]
[Mon Jan 26 19:00:26 2015] [error] [client x.x.x.x] KeyError: 0

----

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

2

Re: Upgraded to iRedAdmin-Pro-1.9.1: Internal Server Error

No obvious error message in pasted log, cannot tell why it occurs.
Does it work if you restart web service (Apache or uwsgi service if you're running Nginx) and MySQL server? If it doesn't work, is it possible to let me login to your server for further debug?

3

Re: Upgraded to iRedAdmin-Pro-1.9.1: Internal Server Error

ZhangHuangbin wrote:

No obvious error message in pasted log, cannot tell why it occurs.
Does it work if you restart web service (Apache or uwsgi service if you're running Nginx) and MySQL server? If it doesn't work, is it possible to let me login to your server for further debug?

This is the only output I receive when I try to login. Apache and MySQL both have been restarted. How can I send login information to you? Thanks!

4

Re: Upgraded to iRedAdmin-Pro-1.9.1: Internal Server Error

Did you upgrade from an very old iRedAdmin-Pro release? Please try to delete all records in SQL table "iredadmin.sessions", then try to login to iRedAdmin-Pro again. If it still doesn't work, please contact me directly: zhb _at_ iredmail.org.

5

Re: Upgraded to iRedAdmin-Pro-1.9.1: Internal Server Error

ZhangHuangbin wrote:

Did you upgrade from an very old iRedAdmin-Pro release? Please try to delete all records in SQL table "iredadmin.sessions", then try to login to iRedAdmin-Pro again. If it still doesn't work, please contact me directly: zhb _at_ iredmail.org.

Clearing iredadmin.sessions was one of the first things I tried. I emptied it again and same error. Email sent. Thanks!

6

Re: Upgraded to iRedAdmin-Pro-1.9.1: Internal Server Error

Fixed. Caused by old web.py package (0.35), updated to 0.37 fixed this issue.