1

Topic: iRedadmin CentOS 5: internal server error

Hi all,

I have a strange issue to get iRedadmin run on iRedMail 0.6.1 based on a CentOS 5.5 vserver.
The installation an all other component did work well, expect iRedadmin I get the following errors:

==> /var/log/httpd/ssl_error_log <==
[Sat Dec 25 23:53:07 2010] [error] [client 84.58.34.75] Traceback (most recent call last):
[Sat Dec 25 23:53:07 2010] [error] [client 84.58.34.75]   File "/usr/lib/python2.4/site-packages/web/application.py", line 241, in process
[Sat Dec 25 23:53:07 2010] [error] [client 84.58.34.75]     return self.handle()
[Sat Dec 25 23:53:07 2010] [error] [client 84.58.34.75]   File "/usr/lib/python2.4/site-packages/web/application.py", line 232, in handle
[Sat Dec 25 23:53:07 2010] [error] [client 84.58.34.75]     return self._delegate(fn, self.fvars, args)
[Sat Dec 25 23:53:07 2010] [error] [client 84.58.34.75]   File "/usr/lib/python2.4/site-packages/web/application.py", line 411, in _delegate
[Sat Dec 25 23:53:07 2010] [error] [client 84.58.34.75]     return handle_class(cls)
[Sat Dec 25 23:53:07 2010] [error] [client 84.58.34.75]   File "/usr/lib/python2.4/site-packages/web/application.py", line 386, in handle_class
[Sat Dec 25 23:53:07 2010] [error] [client 84.58.34.75]     return tocall(*args)
[Sat Dec 25 23:53:07 2010] [error] [client 84.58.34.75]   File "/var/www/iredadmin/controllers/ldap/basic.py", line 48, in GET
[Sat Dec 25 23:53:07 2010] [error] [client 84.58.34.75]     msg=i.get('msg'),
[Sat Dec 25 23:53:07 2010] [error] [client 84.58.34.75]   File "/usr/lib/python2.4/site-packages/jinja2/environment.py", line 669, in render
[Sat Dec 25 23:53:07 2010] [error] [client 84.58.34.75]     return self.environment.handle_exception(exc_info, True)
[Sat Dec 25 23:53:07 2010] [error] [client 84.58.34.75]   File "/var/www/iredadmin/libs/../templates/default/ldap/login.html", line 30, in top-level template code
[Sat Dec 25 23:53:07 2010] [error] [client 84.58.34.75]     {% from "msgHandlers.html" import loginMsgHandler with context %}
[Sat Dec 25 23:53:07 2010] [error] [client 84.58.34.75]   File "/var/www/iredadmin/libs/../templates/default/ldap/layout.html", line 29, in top-level template code
[Sat Dec 25 23:53:07 2010] [error] [client 84.58.34.75]     <title>{% block title %}{%endblock%}</title>
[Sat Dec 25 23:53:07 2010] [error] [client 84.58.34.75]   File "/var/www/iredadmin/libs/../templates/default/ldap/login.html", line 32, in block "title"
[Sat Dec 25 23:53:07 2010] [error] [client 84.58.34.75]     {% block title %}{{ _('Login to manage your mail domains & users') |title }}{% endblock %}
[Sat Dec 25 23:53:07 2010] [error] [client 84.58.34.75]   File "/usr/lib/python2.4/site-packages/jinja2/filters.py", line 136, in do_title
[Sat Dec 25 23:53:07 2010] [error] [client 84.58.34.75]     return soft_unicode(s).title()
[Sat Dec 25 23:53:07 2010] [error] [client 84.58.34.75] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 17: ordinal not in range(128)
[Sat Dec 25 23:53:07 2010] [error] [client 84.58.34.75]

I found something similar in google, but these looks like some coding issues, I don't understand.
http://www.mail-archive.com/pocoo-libs@ … 00440.html

Can anybody help me to fix this issue?

Best regards
Philipp

----

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

2

Re: iRedadmin CentOS 5: internal server error

This is a known issue: incorrect translation.

You can change 'lang = ' to 'en_US' in /var/www/iredadmin/settings.ini, restart apache, and it should work.

3

Re: iRedadmin CentOS 5: internal server error

No, this didn't work. I get the same error.
Is there an other way to look deeper into this?

4

Re: iRedadmin CentOS 5: internal server error

Did you restart apache? If so, try to append '?lang=en_US' in the URL to force it to use English. e.g.

Old: http://your_server.com/iredadmin/login
New: http://your_server.com/iredadmin/login?lang=en_US

Old: http://your_server.com/iredadmin/dashboard
New: http://your_server.com/iredadmin/dashboard?lang=en_US

5

Re: iRedadmin CentOS 5: internal server error

Yes, I did restart the apache.
The link trick login?lang=en_US, but it is not very useful cause I have to add it every time a new site comes up.

6

Re: iRedadmin CentOS 5: internal server error

Did you change "language" in admin profile page? If so, changing it again. smile

7

Re: iRedadmin CentOS 5: internal server error

That works.

Thanks for your help.