1

Topic: Unknow Problem with iRedMail 0.6.0

Hi!

First of all I highly appreciate your gorgoues work, many thanks for making setting up a mailserver that easy!

Anyway: I tried to set up the newest version of iRedMail today and encounterd an very intresting and for me unclear error when trying to contact the admin-panel:

<type 'exceptions.UnicodeDecodeError'> at /
'ascii' codec can't decode byte 0xc3 in position 17: ordinal not in range(128)
Python     /usr/lib/python2.5/site-packages/Jinja2-2.5-py2.5.egg/jinja2/utils.py in soft_unicode, line 803
Web     GET https://xxx/iredadmin/

I'm running a fresh Debian Lenny and did follow the installation instructions. Thanks in advance for the help, and keep up your good work!

----

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

2

Re: Unknow Problem with iRedMail 0.6.0

Which version of iRedMail & iRedAdmin do you use?

3

Re: Unknow Problem with iRedMail 0.6.0

Hi !

From a new install of iRedMail 0.6.0 no error but only access to rouncube. No phpmyadmin, no postfixadmin, no phpLDAPAdmin.

What's wrong?

Thanks

4

Re: Unknow Problem with iRedMail 0.6.0

odaraujo wrote:

Hi !

From a new install of iRedMail 0.6.0 no error but only access to rouncube. No phpmyadmin, no postfixadmin, no phpLDAPAdmin.

What's wrong?

Thanks

Please ask your questions in a new forum topic, not in other's.

5

Re: Unknow Problem with iRedMail 0.6.0

I downloaded the iRedMail-0.6.0.tar.bz2 as i already mentioned in the topic. And about iRedAdmin, i thought it would be included in the package. I noticed that the install-script downloaded iRedAdmin-0.1.3.tar.bz2 into the installation folder. /usr/share/apache2/iredadmin also points to /usr/share/apache2/iRedAdmin-0.1.3, so i guess its following numbers:

0.6.0 for iRedMail and
0.1.3 for iRedAdmin
?

6

Re: Unknow Problem with iRedMail 0.6.0

igot2b wrote:

0.1.3 for iRedAdmin

Yes.

7

Re: Unknow Problem with iRedMail 0.6.0

So I'm supposed to wait, no?
Or can I give you some more helpful informations?

8

Re: Unknow Problem with iRedMail 0.6.0

Set 'debug = True' in iRedAdmin config file: settings.ini, and then visit the same page, copy the error message here.

9

Re: Unknow Problem with iRedMail 0.6.0

the first part, with a yellow background underneath is what i already posted. here again:

<type 'exceptions.UnicodeDecodeError'> at /
'ascii' codec can't decode byte 0xc3 in position 17: ordinal not in range(128)
Python     /usr/lib/python2.5/site-packages/Jinja2-2.5-py2.5.egg/jinja2/utils.py in soft_unicode, line 803
Web     GET https://***/iredadmin/

the second part is a bit long... also i changed the domain name to ***.**.** and the ip-adress to ***.***.**.***, hope that's okay.

Traceback (innermost first)

    * /usr/lib/python2.5/site-packages/Jinja2-2.5-py2.5.egg/jinja2/utils.py in soft_unicode
       796. )
       797.
       798. def soft_unicode(s):
       799. """Make a string unicode if it isn't already. That way a markup
       800. string is not converted back to unicode.
       801. """
       802. if not isinstance(s, unicode):
       803. s = unicode(s) ...
       804. return s
       805.
       806.
       807. # partials
       808. try:
       809. from functools import partial
      ▶ Local vars
      Variable    Value
      s    
      'Anmeldung zur Dom\xc3\xa4nen und Benutzer Verwaltung'
    * /usr/lib/python2.5/site-packages/Jinja2-2.5-py2.5.egg/jinja2/filters.py in do_title
       135. return soft_unicode(s).capitalize()
       136.
       137.
       138. def do_title(s):
       139. """Return a titlecased version of the value. I.e. words will start with
       140. uppercase letters, all remaining characters are lowercase.
       141. """
       142. return soft_unicode(s).title() ...
       143.
       144.
       145. def do_dictsort(value, case_sensitive=False, by='key'):
       146. """Sort a dict and yield (key, value) pairs. Because python dicts are
       147. unsorted you may want to use this function to order them by either
       148. key or value:
      ▶ Local vars
      Variable    Value
      s    
      'Anmeldung zur Dom\xc3\xa4nen und Benutzer Verwaltung'
    * /usr/share/apache2/iredadmin/libs/../templates/default/ldap/login.html in block "title"
        24. @languagemaps language maps
        25. #}
        26.
        27. {% extends "layout.html" %}
        28.
        29. {% from "msgHandlers.html" import loginMsgHandler with context %}
        30.
        31. {% block title %}{{ _('Login to manage your mail domains & users') |title }}{% endblock %} ...
        32. {% block js %}{% endblock %}
        33. {% block js_tablesorter %}{% endblock %}
        34. {% block jquery_docoment_ready %}{% endblock jquery_docoment_ready %}
        35.
        36. {% block extraHeader %}
        37. {# Override default css style, center the login page. #}
      ▶ Local vars
      Variable    Value
      _    
      <function ired_gettext at 0x86d9994>
      ctx    
      <Storage {'status': '200 OK', 'realhome': u'https://mail.***.**.**/iredadmin', 'homedomain': u'https://mail.***.**.**', 'protocol': u'https', 'app_stack': [<web.application.application instance at 0x86aac6c>], 'ip': u'***.***.**.***', 'fullpath': u'/', 'headers': [], 'host': u'mail.***.**.**', 'environ': {'mod_wsgi.reload_mechanism': '0', 'mod_wsgi.listener_port': '443', 'mod_wsgi.listener_host': '', 'SERVER_SOFTWARE': 'Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_wsgi/2.5 Python/2.5.2', 'SCRIPT_NAME': '/iredadmin', 'SERVER_SIGNATURE': '<address>Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_wsgi/2.5 Python/2.5.2 Server at mail.***.**.** Port 443</address>\n', 'REQUEST_METHOD': 'GET', 'HTTP_KEEP_ALIVE': '300', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.1.9) Gecko/20100315 Firefox/3.5.9', 'HTTP_CONNECTION': 'keep-alive', 'SERVER_NAME': 'mail.***.**.**', 'REMOTE_ADDR': '***.***.**.***', 'wsgi.url_scheme': 'https', 'PATH_TRANSLATED': '/var/www/index.html', 'SERVER_PORT': '443', 'wsgi.multiprocess': True, 'SERVER_ADDR': '217.116.184.89', 'DOCUMENT_ROOT': '/var/www/', 'mod_wsgi.process_group': '', 'SCRIPT_FILENAME': '/usr/share/apache2/iredadmin/iredadmin.py', 'SERVER_ADMIN': 'webmaster@localhost', 'wsgi.input': <mod_wsgi.Input object at 0x8693598>, 'HTTP_HOST': 'mail.***.**.**', 'HTTPS': '1', 'wsgi.multithread': False, 'mod_wsgi.callable_object': 'application', 'REQUEST_URI': '/iredadmin', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'GATEWAY_INTERFACE': 'CGI/1.1', 'wsgi.run_once': False, 'wsgi.errors': <mod_wsgi.Log object at 0x88274b8>, 'REMOTE_PORT': '49904', 'HTTP_ACCEPT_LANGUAGE': 'de-de,de;q=0.8,en-us;q=0.5,en;q=0.3', 'mod_wsgi.version': (2, 5), 'mod_wsgi.application_group': 'mail.***.**.**|/iredadmin', 'mod_wsgi.script_reloading': '1', 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x842b4a0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'PATH_INFO': '/'}, 'env': {'mod_wsgi.reload_mechanism': '0', 'mod_wsgi.listener_port': '443', 'mod_wsgi.listener_host': '', 'SERVER_SOFTWARE': 'Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_wsgi/2.5 Python/2.5.2', 'SCRIPT_NAME': '/iredadmin', 'SERVER_SIGNATURE': '<address>Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_wsgi/2.5 Python/2.5.2 Server at mail.***.**.** Port 443</address>\n', 'REQUEST_METHOD': 'GET', 'HTTP_KEEP_ALIVE': '300', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.1.9) Gecko/20100315 Firefox/3.5.9', 'HTTP_CONNECTION': 'keep-alive', 'SERVER_NAME': 'mail.***.**.**', 'REMOTE_ADDR': '***.***.**.***', 'wsgi.url_scheme': 'https', 'PATH_TRANSLATED': '/var/www/index.html', 'SERVER_PORT': '443', 'wsgi.multiprocess': True, 'SERVER_ADDR': '217.116.184.89', 'DOCUMENT_ROOT': '/var/www/', 'mod_wsgi.process_group': '', 'SCRIPT_FILENAME': '/usr/share/apache2/iredadmin/iredadmin.py', 'SERVER_ADMIN': 'webmaster@localhost', 'wsgi.input': <mod_wsgi.Input object at 0x8693598>, 'HTTP_HOST': 'mail.***.**.**', 'HTTPS': '1', 'wsgi.multithread': False, 'mod_wsgi.callable_object': 'application', 'REQUEST_URI': '/iredadmin', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'GATEWAY_INTERFACE': 'CGI/1.1', 'wsgi.run_once': False, 'wsgi.errors': <mod_wsgi.Log object at 0x88274b8>, 'REMOTE_PORT': '49904', 'HTTP_ACCEPT_LANGUAGE': 'de-de,de;q=0.8,en-us;q=0.5,en;q=0.3', 'mod_wsgi.version': (2, 5), 'mod_wsgi.application_group': 'mail.***.**.**|/iredadmin', 'mod_wsgi.script_reloading': '1', 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x842b4a0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'PATH_INFO': '/'}, 'home': u'https://mail.***.**.**/iredadmin', 'homepath': u'/iredadmin', 'output': u'', 'path': u'/', 'query': u'', 'method': u'GET', 'lang': 'de_DE'}>
      cycler    
      <class 'jinja2.utils.Cycler'>
      dict    
      <function <lambda> at 0x882c8ec>
      joiner    
      <class 'jinja2.utils.Joiner'>
      languagemaps    
      {'de_DE': u'Deutsch (Deutsch)', 'en_US': u'English (US)', 'es_ES': u'Espa\xf1ol', 'fr_FR': u'Fran\xe7ais', 'hu_HU': u'Hungarian', 'pl_PL': u'Polski', 'pt_BR': u'Portuguese (Brazilian)', 'vi_VN': u'Vietnamese', 'zh_CN': u'\u7b80\u4f53\u4e2d\u6587'}
      lipsum    
      <function generate_lorem_ipsum at 0x881910c>
      loginMsgHandler    
      <Macro 'loginMsgHandler'>
      msg    
      None
      range    
      <type 'xrange'>
      session    
      <Storage {'username': None, 'lang': 'de_DE', 'pagesizelimit': 30, 'ip': u'***.***.**.***', 'failedTimes': 0, 'logged': False, 'webmaster': 'www@***.**.**', 'session_id': '852e6b14d76fc4339002bffc323196eacbc261fd'}>
      skin    
      'default'
    * /usr/share/apache2/iredadmin/libs/../templates/default/ldap/layout.html in top-level template code
        21. #}
        22.
        23. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        24. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
        25. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
        26. <head>
        27. <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
        28. <title>{% block title %}{%endblock%}</title> ...
        29.
        30. {# CSS #}
        31. <link rel="stylesheet" type="text/css" media="screen" href="{{ctx.homepath}}/static/{{skin}}/css/iredadmin.css" />
        32. <link rel="stylesheet" type="text/css" media="screen" href="{{ctx.homepath}}/static/{{skin}}/css/iredadmin_cs.css" />
        33. <!--[if lte IE 6]>
        34. <link rel="stylesheet" type="text/css" href="{{ctx.homepath}}/static/{{skin}}/css/ie6.css" />
      ▶ Local vars
      Variable    Value
      _    
      <function ired_gettext at 0x86d9994>
      ctx    
      <Storage {'status': '200 OK', 'realhome': u'https://mail.***.**.**/iredadmin', 'homedomain': u'https://mail.***.**.**', 'protocol': u'https', 'app_stack': [<web.application.application instance at 0x86aac6c>], 'ip': u'***.***.**.***', 'fullpath': u'/', 'headers': [], 'host': u'mail.***.**.**', 'environ': {'mod_wsgi.reload_mechanism': '0', 'mod_wsgi.listener_port': '443', 'mod_wsgi.listener_host': '', 'SERVER_SOFTWARE': 'Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_wsgi/2.5 Python/2.5.2', 'SCRIPT_NAME': '/iredadmin', 'SERVER_SIGNATURE': '<address>Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_wsgi/2.5 Python/2.5.2 Server at mail.***.**.** Port 443</address>\n', 'REQUEST_METHOD': 'GET', 'HTTP_KEEP_ALIVE': '300', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.1.9) Gecko/20100315 Firefox/3.5.9', 'HTTP_CONNECTION': 'keep-alive', 'SERVER_NAME': 'mail.***.**.**', 'REMOTE_ADDR': '***.***.**.***', 'wsgi.url_scheme': 'https', 'PATH_TRANSLATED': '/var/www/index.html', 'SERVER_PORT': '443', 'wsgi.multiprocess': True, 'SERVER_ADDR': '217.116.184.89', 'DOCUMENT_ROOT': '/var/www/', 'mod_wsgi.process_group': '', 'SCRIPT_FILENAME': '/usr/share/apache2/iredadmin/iredadmin.py', 'SERVER_ADMIN': 'webmaster@localhost', 'wsgi.input': <mod_wsgi.Input object at 0x8693598>, 'HTTP_HOST': 'mail.***.**.**', 'HTTPS': '1', 'wsgi.multithread': False, 'mod_wsgi.callable_object': 'application', 'REQUEST_URI': '/iredadmin', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'GATEWAY_INTERFACE': 'CGI/1.1', 'wsgi.run_once': False, 'wsgi.errors': <mod_wsgi.Log object at 0x88274b8>, 'REMOTE_PORT': '49904', 'HTTP_ACCEPT_LANGUAGE': 'de-de,de;q=0.8,en-us;q=0.5,en;q=0.3', 'mod_wsgi.version': (2, 5), 'mod_wsgi.application_group': 'mail.***.**.**|/iredadmin', 'mod_wsgi.script_reloading': '1', 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x842b4a0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'PATH_INFO': '/'}, 'env': {'mod_wsgi.reload_mechanism': '0', 'mod_wsgi.listener_port': '443', 'mod_wsgi.listener_host': '', 'SERVER_SOFTWARE': 'Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_wsgi/2.5 Python/2.5.2', 'SCRIPT_NAME': '/iredadmin', 'SERVER_SIGNATURE': '<address>Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_wsgi/2.5 Python/2.5.2 Server at mail.***.**.** Port 443</address>\n', 'REQUEST_METHOD': 'GET', 'HTTP_KEEP_ALIVE': '300', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.1.9) Gecko/20100315 Firefox/3.5.9', 'HTTP_CONNECTION': 'keep-alive', 'SERVER_NAME': 'mail.***.**.**', 'REMOTE_ADDR': '***.***.**.***', 'wsgi.url_scheme': 'https', 'PATH_TRANSLATED': '/var/www/index.html', 'SERVER_PORT': '443', 'wsgi.multiprocess': True, 'SERVER_ADDR': '217.116.184.89', 'DOCUMENT_ROOT': '/var/www/', 'mod_wsgi.process_group': '', 'SCRIPT_FILENAME': '/usr/share/apache2/iredadmin/iredadmin.py', 'SERVER_ADMIN': 'webmaster@localhost', 'wsgi.input': <mod_wsgi.Input object at 0x8693598>, 'HTTP_HOST': 'mail.***.**.**', 'HTTPS': '1', 'wsgi.multithread': False, 'mod_wsgi.callable_object': 'application', 'REQUEST_URI': '/iredadmin', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'GATEWAY_INTERFACE': 'CGI/1.1', 'wsgi.run_once': False, 'wsgi.errors': <mod_wsgi.Log object at 0x88274b8>, 'REMOTE_PORT': '49904', 'HTTP_ACCEPT_LANGUAGE': 'de-de,de;q=0.8,en-us;q=0.5,en;q=0.3', 'mod_wsgi.version': (2, 5), 'mod_wsgi.application_group': 'mail.***.**.**|/iredadmin', 'mod_wsgi.script_reloading': '1', 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x842b4a0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'PATH_INFO': '/'}, 'home': u'https://mail.***.**.**/iredadmin', 'homepath': u'/iredadmin', 'output': u'', 'path': u'/', 'query': u'', 'method': u'GET', 'lang': 'de_DE'}>
      cycler    
      <class 'jinja2.utils.Cycler'>
      dict    
      <function <lambda> at 0x882c8ec>
      joiner    
      <class 'jinja2.utils.Joiner'>
      languagemaps    
      {'de_DE': u'Deutsch (Deutsch)', 'en_US': u'English (US)', 'es_ES': u'Espa\xf1ol', 'fr_FR': u'Fran\xe7ais', 'hu_HU': u'Hungarian', 'pl_PL': u'Polski', 'pt_BR': u'Portuguese (Brazilian)', 'vi_VN': u'Vietnamese', 'zh_CN': u'\u7b80\u4f53\u4e2d\u6587'}
      lipsum    
      <function generate_lorem_ipsum at 0x881910c>
      loginMsgHandler    
      <Macro 'loginMsgHandler'>
      msg    
      None
      range    
      <type 'xrange'>
      session    
      <Storage {'username': None, 'lang': 'de_DE', 'pagesizelimit': 30, 'ip': u'***.***.**.***', 'failedTimes': 0, 'logged': False, 'webmaster': 'www@***.**.**', 'session_id': '852e6b14d76fc4339002bffc323196eacbc261fd'}>
      skin    
      'default'
    * /usr/share/apache2/iredadmin/libs/../templates/default/ldap/login.html in top-level template code
        22.
        23. {#
        24. @languagemaps language maps
        25. #}
        26.
        27. {% extends "layout.html" %}
        28.
        29. {% from "msgHandlers.html" import loginMsgHandler with context %} ...
        30.
        31. {% block title %}{{ _('Login to manage your mail domains & users') |title }}{% endblock %}
        32. {% block js %}{% endblock %}
        33. {% block js_tablesorter %}{% endblock %}
        34. {% block jquery_docoment_ready %}{% endblock jquery_docoment_ready %}
        35.
      ▶ Local vars
      Variable    Value
      _    
      <function ired_gettext at 0x86d9994>
      ctx    
      <Storage {'status': '200 OK', 'realhome': u'https://mail.***.**.**/iredadmin', 'homedomain': u'https://mail.***.**.**', 'protocol': u'https', 'app_stack': [<web.application.application instance at 0x86aac6c>], 'ip': u'***.***.**.***', 'fullpath': u'/', 'headers': [], 'host': u'mail.***.**.**', 'environ': {'mod_wsgi.reload_mechanism': '0', 'mod_wsgi.listener_port': '443', 'mod_wsgi.listener_host': '', 'SERVER_SOFTWARE': 'Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_wsgi/2.5 Python/2.5.2', 'SCRIPT_NAME': '/iredadmin', 'SERVER_SIGNATURE': '<address>Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_wsgi/2.5 Python/2.5.2 Server at mail.***.**.** Port 443</address>\n', 'REQUEST_METHOD': 'GET', 'HTTP_KEEP_ALIVE': '300', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.1.9) Gecko/20100315 Firefox/3.5.9', 'HTTP_CONNECTION': 'keep-alive', 'SERVER_NAME': 'mail.***.**.**', 'REMOTE_ADDR': '***.***.**.***', 'wsgi.url_scheme': 'https', 'PATH_TRANSLATED': '/var/www/index.html', 'SERVER_PORT': '443', 'wsgi.multiprocess': True, 'SERVER_ADDR': '217.116.184.89', 'DOCUMENT_ROOT': '/var/www/', 'mod_wsgi.process_group': '', 'SCRIPT_FILENAME': '/usr/share/apache2/iredadmin/iredadmin.py', 'SERVER_ADMIN': 'webmaster@localhost', 'wsgi.input': <mod_wsgi.Input object at 0x8693598>, 'HTTP_HOST': 'mail.***.**.**', 'HTTPS': '1', 'wsgi.multithread': False, 'mod_wsgi.callable_object': 'application', 'REQUEST_URI': '/iredadmin', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'GATEWAY_INTERFACE': 'CGI/1.1', 'wsgi.run_once': False, 'wsgi.errors': <mod_wsgi.Log object at 0x88274b8>, 'REMOTE_PORT': '49904', 'HTTP_ACCEPT_LANGUAGE': 'de-de,de;q=0.8,en-us;q=0.5,en;q=0.3', 'mod_wsgi.version': (2, 5), 'mod_wsgi.application_group': 'mail.***.**.**|/iredadmin', 'mod_wsgi.script_reloading': '1', 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x842b4a0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'PATH_INFO': '/'}, 'env': {'mod_wsgi.reload_mechanism': '0', 'mod_wsgi.listener_port': '443', 'mod_wsgi.listener_host': '', 'SERVER_SOFTWARE': 'Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_wsgi/2.5 Python/2.5.2', 'SCRIPT_NAME': '/iredadmin', 'SERVER_SIGNATURE': '<address>Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_wsgi/2.5 Python/2.5.2 Server at mail.***.**.** Port 443</address>\n', 'REQUEST_METHOD': 'GET', 'HTTP_KEEP_ALIVE': '300', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.1.9) Gecko/20100315 Firefox/3.5.9', 'HTTP_CONNECTION': 'keep-alive', 'SERVER_NAME': 'mail.***.**.**', 'REMOTE_ADDR': '***.***.**.***', 'wsgi.url_scheme': 'https', 'PATH_TRANSLATED': '/var/www/index.html', 'SERVER_PORT': '443', 'wsgi.multiprocess': True, 'SERVER_ADDR': '217.116.184.89', 'DOCUMENT_ROOT': '/var/www/', 'mod_wsgi.process_group': '', 'SCRIPT_FILENAME': '/usr/share/apache2/iredadmin/iredadmin.py', 'SERVER_ADMIN': 'webmaster@localhost', 'wsgi.input': <mod_wsgi.Input object at 0x8693598>, 'HTTP_HOST': 'mail.***.**.**', 'HTTPS': '1', 'wsgi.multithread': False, 'mod_wsgi.callable_object': 'application', 'REQUEST_URI': '/iredadmin', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'GATEWAY_INTERFACE': 'CGI/1.1', 'wsgi.run_once': False, 'wsgi.errors': <mod_wsgi.Log object at 0x88274b8>, 'REMOTE_PORT': '49904', 'HTTP_ACCEPT_LANGUAGE': 'de-de,de;q=0.8,en-us;q=0.5,en;q=0.3', 'mod_wsgi.version': (2, 5), 'mod_wsgi.application_group': 'mail.***.**.**|/iredadmin', 'mod_wsgi.script_reloading': '1', 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x842b4a0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'PATH_INFO': '/'}, 'home': u'https://mail.***.**.**/iredadmin', 'homepath': u'/iredadmin', 'output': u'', 'path': u'/', 'query': u'', 'method': u'GET', 'lang': 'de_DE'}>
      cycler    
      <class 'jinja2.utils.Cycler'>
      dict    
      <function <lambda> at 0x882c8ec>
      joiner    
      <class 'jinja2.utils.Joiner'>
      languagemaps    
      {'de_DE': u'Deutsch (Deutsch)', 'en_US': u'English (US)', 'es_ES': u'Espa\xf1ol', 'fr_FR': u'Fran\xe7ais', 'hu_HU': u'Hungarian', 'pl_PL': u'Polski', 'pt_BR': u'Portuguese (Brazilian)', 'vi_VN': u'Vietnamese', 'zh_CN': u'\u7b80\u4f53\u4e2d\u6587'}
      lipsum    
      <function generate_lorem_ipsum at 0x881910c>
      loginMsgHandler    
      <Macro 'loginMsgHandler'>
      msg    
      None
      range    
      <type 'xrange'>
      session    
      <Storage {'username': None, 'lang': 'de_DE', 'pagesizelimit': 30, 'ip': u'***.***.**.***', 'failedTimes': 0, 'logged': False, 'webmaster': 'www@***.**.**', 'session_id': '852e6b14d76fc4339002bffc323196eacbc261fd'}>
      skin    
      'default'
    * /usr/lib/python2.5/site-packages/Jinja2-2.5-py2.5.egg/jinja2/environment.py in render
       883. This will return the rendered template as unicode string.
       884. """
       885. vars = dict(*args, **kwargs)
       886. try:
       887. return concat(self.root_render_func(self.new_context(vars)))
       888. except:
       889. exc_info = sys.exc_info()
       890. return self.environment.handle_exception(exc_info, True) ...
       891.
       892. def stream(self, *args, **kwargs):
       893. """Works exactly like :meth:`generate` but returns a
       894. :class:`TemplateStream`.
       895. """
       896. return TemplateStream(self.generate(*args, **kwargs))
      ▶ Local vars
      Variable    Value
      args    
      ()
      exc_info    
      (<type 'exceptions.UnicodeDecodeError'>, UnicodeDecodeError('ascii', 'Anmeldung zur Dom\xc3\xa4nen und Benutzer Verwaltung', 17, 18, 'ordinal not in range(128)'), <traceback object at 0x897c4dc>)
      kwargs    
      {'languagemaps': {'de_DE': u'Deutsch (Deutsch)', 'en_US': u'English (US)', 'es_ES': u'Espa\xf1ol', 'fr_FR': u'Fran\xe7ais', 'hu_HU': u'Hungarian', 'pl_PL': u'Polski', 'pt_BR': u'Portuguese (Brazilian)', 'vi_VN': u'Vietnamese', 'zh_CN': u'\u7b80\u4f53\u4e2d\u6587'}, 'msg': None}
      self    
      <Template 'login.html'>
      vars    
      {'languagemaps': {'de_DE': u'Deutsch (Deutsch)', 'en_US': u'English (US)', 'es_ES': u'Espa\xf1ol', 'fr_FR': u'Fran\xe7ais', 'hu_HU': u'Hungarian', 'pl_PL': u'Polski', 'pt_BR': u'Portuguese (Brazilian)', 'vi_VN': u'Vietnamese', 'zh_CN': u'\u7b80\u4f53\u4e2d\u6587'}, 'msg': None}
    * /usr/share/apache2/iredadmin/controllers/ldap/basic.py in GET
        40. web.seeother('/dashboard')
        41. else:
        42. i = web.input()
        43.
        44. # Show login page.
        45. return render.login(
        46. languagemaps=adminLib.getLanguageMaps(),
        47. msg=i.get('msg'), ...
        48. )
        49.
        50. def POST(self):
        51. # Get username, password.
        52. i = web.input()
        53.
      ▶ Local vars
      Variable    Value
      i    
      <Storage {}>
      self    
      <controllers.ldap.basic.login instance at 0x89005cc>
    * /usr/lib/python2.5/site-packages/web.py-0.34-py2.5.egg/web/application.py in handle_class
       382. def handle_class(cls):
       383. meth = web.ctx.method
       384. if meth == 'HEAD' and not hasattr(cls, meth):
       385. meth = 'GET'
       386. if not hasattr(cls, meth):
       387. raise web.nomethod(cls)
       388. tocall = getattr(cls(), meth)
       389. return tocall(*args) ...
       390.
       391. def is_class(o): return isinstance(o, (types.ClassType, type))
       392.
       393. if f is None:
       394. raise web.notfound()
       395. elif isinstance(f, application):
      ▶ Local vars
      Variable    Value
      args    
      []
      cls    
      <class controllers.ldap.basic.login at 0x89512fc>
      meth    
      u'GET'
      tocall    
      <bound method login.GET of <controllers.ldap.basic.login instance at 0x89005cc>>
    * /usr/lib/python2.5/site-packages/web.py-0.34-py2.5.egg/web/application.py in _delegate
       407. elif '.' in f:
       408. x = f.split('.')
       409. mod, cls = '.'.join(x[:-1]), x[-1]
       410. mod = __import__(mod, globals(), locals(), [""])
       411. cls = getattr(mod, cls)
       412. else:
       413. cls = fvars[f]
       414. return handle_class(cls) ...
       415. elif hasattr(f, '__call__'):
       416. return f()
       417. else:
       418. return web.notfound()
       419.
       420. def _match(self, mapping, value):
      ▶ Local vars
      Variable    Value
      args    
      []
      cls    
      <class controllers.ldap.basic.login at 0x89512fc>
      f    
      u'controllers.ldap.basic.login'
      fvars    
      [could not display: <TemplateNotFound: __repr__.html>]
      handle_class    
      <function handle_class at 0x889ce2c>
      is_class    
      <function is_class at 0x889cdf4>
      mod    
      <module 'controllers.ldap.basic' from '/usr/share/apache2/iredadmin/controllers/ldap/basic.py'>
      self    
      <web.application.application instance at 0x86aac6c>
      x    
      [u'controllers', u'ldap', u'basic', u'login']
    * /usr/lib/python2.5/site-packages/web.py-0.34-py2.5.egg/web/application.py in handle
       225.
       226. def browser(self):
       227. import browser
       228. return browser.AppBrowser(self)
       229.
       230. def handle(self):
       231. fn, args = self._match(self.mapping, web.ctx.path)
       232. return self._delegate(fn, self.fvars, args) ...
       233.
       234. def handle_with_processors(self):
       235. def process(processors):
       236. try:
       237. if processors:
       238. p, processors = processors[0], processors[1:]
      ▶ Local vars
      Variable    Value
      args    
      []
      fn    
      u'controllers.ldap.basic.login'
      self    
      <web.application.application instance at 0x86aac6c>
    * /usr/lib/python2.5/site-packages/web.py-0.34-py2.5.egg/web/application.py in process
       234. def handle_with_processors(self):
       235. def process(processors):
       236. try:
       237. if processors:
       238. p, processors = processors[0], processors[1:]
       239. return p(lambda: process(processors))
       240. else:
       241. return self.handle() ...
       242. except web.HTTPError:
       243. raise
       244. except (KeyboardInterrupt, SystemExit):
       245. raise
       246. except:
       247. print >> web.debug, traceback.format_exc()
      ▶ Local vars
      Variable    Value
      process    
      <function process at 0x888f7d4>
      processors    
      []
      self    
      <web.application.application instance at 0x86aac6c>

Request information
INPUT

No data.
COOKIES

No data.
META
Variable    Value
app_stack    
[<web.application.application instance at 0x86aac6c>]
fullpath    
u'/'
headers    
[]
home    
u'https://mail.***.**.**/iredadmin'
homedomain    
u'https://mail.***.**.**'
homepath    
u'/iredadmin'
host    
u'mail.***.**.**'
ip    
u'***.***.**.***'
lang    
'de_DE'
method    
u'GET'
output    
u''
path    
u'/'
protocol    
u'https'
query    
u''
realhome    
u'https://mail.***.**.**/iredadmin'
status    
'200 OK'
ENVIRONMENT
Variable    Value
DOCUMENT_ROOT    
'/var/www/'
GATEWAY_INTERFACE    
'CGI/1.1'
HTTPS    
'1'
HTTP_ACCEPT    
'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
HTTP_ACCEPT_CHARSET    
'ISO-8859-1,utf-8;q=0.7,*;q=0.7'
HTTP_ACCEPT_ENCODING    
'gzip,deflate'
HTTP_ACCEPT_LANGUAGE    
'de-de,de;q=0.8,en-us;q=0.5,en;q=0.3'
HTTP_CONNECTION    
'keep-alive'
HTTP_HOST    
'mail.***.**.**'
HTTP_KEEP_ALIVE    
'300'
HTTP_USER_AGENT    
'Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.1.9) Gecko/20100315 Firefox/3.5.9'
PATH    
'/usr/local/bin:/usr/bin:/bin'
PATH_INFO    
'/'
PATH_TRANSLATED    
'/var/www/index.html'
QUERY_STRING    
''
REMOTE_ADDR    
'***.***.**.***'
REMOTE_PORT    
'49904'
REQUEST_METHOD    
'GET'
REQUEST_URI    
'/iredadmin'
SCRIPT_FILENAME    
'/usr/share/apache2/iredadmin/iredadmin.py'
SCRIPT_NAME    
'/iredadmin'
SERVER_ADDR    
'217.116.184.89'
SERVER_ADMIN    
'webmaster@localhost'
SERVER_NAME    
'mail.***.**.**'
SERVER_PORT    
'443'
SERVER_PROTOCOL    
'HTTP/1.1'
SERVER_SIGNATURE    
'<address>Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_wsgi/2.5 Python/2.5.2 Server at mail.***.**.** Port 443</address>\n'
SERVER_SOFTWARE    
'Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_wsgi/2.5 Python/2.5.2'
mod_wsgi.application_group    
'mail.***.**.**|/iredadmin'
mod_wsgi.callable_object    
'application'
mod_wsgi.listener_host    
''
mod_wsgi.listener_port    
'443'
mod_wsgi.process_group    
''
mod_wsgi.reload_mechanism    
'0'
mod_wsgi.script_reloading    
'1'
mod_wsgi.version    
(2, 5)
wsgi.errors    
<mod_wsgi.Log object at 0x88274b8>
wsgi.file_wrapper    
<built-in method file_wrapper of mod_wsgi.Adapter object at 0x842b4a0>
wsgi.input    
<mod_wsgi.Input object at 0x8693598>
wsgi.multiprocess    
True
wsgi.multithread    
False
wsgi.run_once    
False
wsgi.url_scheme    
'https'
wsgi.version    
(1, 0)

You're seeing this error because you have web.config.debug set to True. Set that to False if you don't to see this.

10

Re: Unknow Problem with iRedMail 0.6.0

You use German language, right?

'lang': 'de_DE'

You can try to set 'lang = en_US' in settings.ini, and then restart web server, if this change fixes this issue, that must be caused by incorrect de_DE translation.

11

Re: Unknow Problem with iRedMail 0.6.0

Your suggestion worked. Will this bug (?) be patched anytime soon or should i get used to the english interface? Very nice that it's working anyway, and a big thank you for your help!

12

Re: Unknow Problem with iRedMail 0.6.0

You can fix it by correct the de_DE translation. otherwise you have to use English interface.

13 (edited by Rolling 2010-10-26 22:30:41)

Re: Unknow Problem with iRedMail 0.6.0

I have a similar problem, but the fix change language and restart apache doesnt work for me.

My facts:

iredmail 0.6.1
admin 0.1.3
debian 5.0 minimal (fresh install)

Maybe its got to do with the mysqlmodule error in the first line...

Edit: It seems to be that apache doesnt get the "en_US"... In debugmode i can still see "'Anmeldung zur Dom\xc3\xa4nen und Benutzer Verwaltung'" in Local vars

Now got a dirty trick:
If i move the Folder de_DE in i18n to de_DE_Backup and copy the content of en_US to de_DE it works fine... There must be something wrong with the transition of language...

Post's attachments

errorlog.txt 3.5 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.