1 (edited by pappastech 2015-05-04 10:44:12)

Topic: internal server error

==== Required information ====
- iRedMail version: 0.9.0
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Linux/BSD distribution name and version: Centos
- Related log if you're reporting an issue: See below...

[Sun May 03 22:38:12 2015] [error] [client 192.168.5.253] Traceback (most recent call last):
[Sun May 03 22:38:12 2015] [error] [client 192.168.5.253]   File "/usr/lib/python2.6/site-packages/web/application.py", line 239, in process
[Sun May 03 22:38:12 2015] [error] [client 192.168.5.253]     return self.handle()
[Sun May 03 22:38:12 2015] [error] [client 192.168.5.253]   File "/usr/lib/python2.6/site-packages/web/application.py", line 230, in handle
[Sun May 03 22:38:12 2015] [error] [client 192.168.5.253]     return self._delegate(fn, self.fvars, args)
[Sun May 03 22:38:12 2015] [error] [client 192.168.5.253]   File "/usr/lib/python2.6/site-packages/web/application.py", line 420, in _delegate
[Sun May 03 22:38:12 2015] [error] [client 192.168.5.253]     return handle_class(cls)
[Sun May 03 22:38:12 2015] [error] [client 192.168.5.253]   File "/usr/lib/python2.6/site-packages/web/application.py", line 396, in handle_class
[Sun May 03 22:38:12 2015] [error] [client 192.168.5.253]     return tocall(*args)
[Sun May 03 22:38:12 2015] [error] [client 192.168.5.253]   File "/var/www/iredadmin/controllers/decorators.py", line 22, in proxyfunc
[Sun May 03 22:38:12 2015] [error] [client 192.168.5.253]     return func(self, *args, **kw)
[Sun May 03 22:38:12 2015] [error] [client 192.168.5.253]   File "/var/www/iredadmin/controllers/mysql/basic.py", line 246, in GET
[Sun May 03 22:38:12 2015] [error] [client 192.168.5.253]     removeQuarantinedInDays=settings.AMAVISD_REMOVE_QUARANTINED_IN_DAYS,
[Sun May 03 22:38:12 2015] [error] [client 192.168.5.253]   File "/var/www/iredadmin/libs/iredbase.py", line 201, in render_template
[Sun May 03 22:38:12 2015] [error] [client 192.168.5.253]     return jinja_env.get_template(template_name).render(context)
[Sun May 03 22:38:12 2015] [error] [client 192.168.5.253]   File "/usr/lib64/python2.6/site-packages/jinja2/environment.py", line 669, in render
[Sun May 03 22:38:12 2015] [error] [client 192.168.5.253]     return self.environment.handle_exception(exc_info, True)
[Sun May 03 22:38:12 2015] [error] [client 192.168.5.253]   File "/var/www/iredadmin/libs/../templates/default/dashboard.html", line 4, in top-level template code
[Sun May 03 22:38:12 2015] [error] [client 192.168.5.253]     {% from "macros/msgHandlers.html" import successInfo, errorInfo with context %}
[Sun May 03 22:38:12 2015] [error] [client 192.168.5.253]   File "/var/www/iredadmin/libs/../templates/default/layout.html", line 167, in top-level template code
[Sun May 03 22:38:12 2015] [error] [client 192.168.5.253]     {% block main %}{% endblock %}
[Sun May 03 22:38:12 2015] [error] [client 192.168.5.253]   File "/var/www/iredadmin/libs/../templates/default/dashboard.html", line 139, in block "main"
[Sun May 03 22:38:12 2015] [error] [client 192.168.5.253]     <td class="full"><a href="{{ctx.homepath}}/activities/sent/user/{{ s.mail |e }}">{{ s.mail |e |cut_string(45) }}</a></td>
[Sun May 03 22:38:12 2015] [error] [client 192.168.5.253] UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 17: ordinal not in range(128)
====

I just started getting 'internal server error' when trying to access iRedAdmin and the attached log is from the ssl_error_log. I can't access iRedAdmin-Pro and need to get this fixed as soon as possible. Any ideas as to what's going on here? It worked fine the last time I logged into iRedAdmin-Pro and no server changes have been made.

I tried clearing cookies/cache/etc. and still get the same result.

Thanks,
Tom

----

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

A temporary solution: Add below setting in iRedAdmin-Pro config file, then restart Apache or uwsgi (if you're running Nginx) service.

REDIRECT_TO_DOMAIN_LIST_AFTER_LOGIN = True

Looks like some email address contains non-ascii characters, i will try to fix it later.

3

Re: internal server error

Could you help check whether SQL table `amavisd.maddr` contains any email address with non-ascii character? e.g. Germany.