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.