Topic: internal server error on non-english
Hi,
just installed iRedMail 0.6.1 on a clean Debian Lenny system.
Several issues popped up: If the mysql server is pre-installed (in my case a left over from former installation tests) installation of postfix-policyd fails. Make sure you have *no* mysql root password set. (The installer seems to expect no passwords and sets it later).
My major problem is:
If I select german as language, either during installation or later on the iredadmin web-ui, any http request ends with an "internal server error".
Apache log says
[Sun Nov 28 17:01:22 2010] [error] [client 1.2.3.4] File "/var/lib/python-support/python2.5/web/application.py", line 242, in process
[Sun Nov 28 17:01:22 2010] [error] [client 1.2.3.4] return self.handle()
[Sun Nov 28 17:01:22 2010] [error] [client 1.2.3.4] File "/var/lib/python-support/python2.5/web/application.py", line 233, in handle
[Sun Nov 28 17:01:22 2010] [error] [client 1.2.3.4] return self._delegate(fn, self.fvars, args)
[Sun Nov 28 17:01:22 2010] [error] [client 1.2.3.4] File "/var/lib/python-support/python2.5/web/application.py", line 412, in _delegate
[Sun Nov 28 17:01:22 2010] [error] [client 1.2.3.4] return handle_class(cls)
[Sun Nov 28 17:01:22 2010] [error] [client 1.2.3.4] File "/var/lib/python-support/python2.5/web/application.py", line 387, in handle_class
[Sun Nov 28 17:01:22 2010] [error] [client 1.2.3.4] return tocall(*args)
[Sun Nov 28 17:01:22 2010] [error] [client 1.2.3.4] File "/usr/share/apache2/iredadmin/controllers/base.py", line 48, in proxyfunc
[Sun Nov 28 17:01:22 2010] [error] [client 1.2.3.4] return func(self, *args, **kw)
[Sun Nov 28 17:01:22 2010] [error] [client 1.2.3.4] File "/usr/share/apache2/iredadmin/controllers/ldap/admin.py", line 127, in GET
[Sun Nov 28 17:01:22 2010] [error] [client 1.2.3.4] msg=i.get('msg', None),
[Sun Nov 28 17:01:22 2010] [error] [client 1.2.3.4] File "/var/lib/python-support/python2.5/jinja2/environment.py", line 705, in render
[Sun Nov 28 17:01:22 2010] [error] [client 1.2.3.4] return self.environment.handle_exception(exc_info, True)
[Sun Nov 28 17:01:22 2010] [error] [client 1.2.3.4] File "/usr/share/apache2/iredadmin/libs/../templates/default/ldap/admin_profile.html", line 49, in top-level template code
[Sun Nov 28 17:01:22 2010] [error] [client 1.2.3.4] {% if session.get('domainGlobalAdmin') == 'yes' %}
[Sun Nov 28 17:01:22 2010] [error] [client 1.2.3.4] File "/usr/share/apache2/iredadmin/libs/../templates/default/ldap/layout.html", line 29, in top-level template code
[Sun Nov 28 17:01:22 2010] [error] [client 1.2.3.4] <title>{% block title %}{%endblock%}</title>
[Sun Nov 28 17:01:22 2010] [error] [client 1.2.3.4] File "/usr/share/apache2/iredadmin/libs/../templates/default/ldap/admin_profile.html", line 41, in block "title"
[Sun Nov 28 17:01:22 2010] [error] [client 1.2.3.4] {% block title %}{{ _('Edit admin profile') }}{% endblock %}
[Sun Nov 28 17:01:22 2010] [error] [client 1.2.3.4] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 21: ordinal not in range(128)
I could track this down to some unicode/utf-8 "problem" within python/jinja and the hint to utf-8-en/decode your strings, but couldn't find a way to fix it without going down to the python source.
Additinal hint: Trying to set the template's file encoding to something else did indeed remove the internal server error, but rendered the template useless.
Any hints?
TIA!
1x
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.