1

Topic: Cant add new domain

Hello.

First my config:
Debian 5.0.3 (lenny)
kernel 2.6.28.7
iRedMail-0.5.1
iRedAdmin 0.1.1

The problem:
When i try add new domain from panel (Domains -> Create new mail domain) i get the following error:
"internal server error"
Apache logs:

[Mon Dec 21 07:59:57 2009] [error] /var/lib/python-support/python2.5/jinja2/__init__.py:31: UserWarning: Module _mysql was already imported from /var/lib/python-support/python2.5/_mysql.so, but /var/lib/python-support/python2.5 is being added to sys.path
[Mon Dec 21 07:59:57 2009] [error]   __version__ = __import__('pkg_resources') \\
[Mon Dec 21 07:59:57 2009] [error] [client 87.234.23.111] Traceback (most recent call last):, referer: https://mail.mydomain.com/iredadmin/create/domain
[Mon Dec 21 07:59:57 2009] [error] [client 87.234.23.111]   File "/var/lib/python-support/python2.5/web/application.py", line 242, in process, referer: https://mail.mydomain.com/iredadmin/create/domain
[Mon Dec 21 07:59:57 2009] [error] [client 87.234.23.111]     return self.handle(), referer: https://mail.mydomain.com/iredadmin/create/domain
[Mon Dec 21 07:59:57 2009] [error] [client 87.234.23.111]   File "/var/lib/python-support/python2.5/web/application.py", line 233, in handle, referer: https://mail.mydomain.com/iredadmin/create/domain
[Mon Dec 21 07:59:57 2009] [error] [client 87.234.23.111]     return self._delegate(fn, self.fvars, args), referer: https://mail.mydomain.com/iredadmin/create/domain
[Mon Dec 21 07:59:57 2009] [error] [client 87.234.23.111]   File "/var/lib/python-support/python2.5/web/application.py", line 412, in _delegate, referer: https://mail.mydomain.com/iredadmin/create/domain
[Mon Dec 21 07:59:57 2009] [error] [client 87.234.23.111]     return handle_class(cls), referer: https://mail.mydomain.com/iredadmin/create/domain
[Mon Dec 21 07:59:57 2009] [error] [client 87.234.23.111]   File "/var/lib/python-support/python2.5/web/application.py", line 387, in handle_class, referer: https://mail.mydomain.com/iredadmin/create/domain
[Mon Dec 21 07:59:57 2009] [error] [client 87.234.23.111]     return tocall(*args), referer: https://mail.mydomain.com/iredadmin/create/domain
[Mon Dec 21 07:59:57 2009] [error] [client 87.234.23.111]   File "/usr/share/apache2/iredadmin/controllers/ldap/base.py", line 53, in proxyfunc, referer: https://mail.mydomain.com/iredadmin/create/domain
[Mon Dec 21 07:59:57 2009] [error] [client 87.234.23.111]     return func(self, *args, **kw), referer: https://mail.mydomain.com/iredadmin/create/domain
[Mon Dec 21 07:59:57 2009] [error] [client 87.234.23.111]   File "/usr/share/apache2/iredadmin/controllers/ldap/base.py", line 44, in proxyfunc, referer: https://mail.mydomain.com/iredadmin/create/domain
[Mon Dec 21 07:59:57 2009] [error] [client 87.234.23.111]     return func(self, *args, **kw), referer: https://mail.mydomain.com/iredadmin/create/domain
[Mon Dec 21 07:59:57 2009] [error] [client 87.234.23.111]   File "/usr/share/apache2/iredadmin/controllers/ldap/domain.py", line 140, in POST, referer: https://mail.mydomain.com/iredadmin/create/domain
[Mon Dec 21 07:59:57 2009] [error] [client 87.234.23.111]     i = web.input(), referer: https://mail.mydomain.com/iredadmin/create/domain
[Mon Dec 21 07:59:57 2009] [error] [client 87.234.23.111]   File "/var/lib/python-support/python2.5/web/webapi.py", line 265, in input, referer: https://mail.mydomain.com/iredadmin/create/domain
[Mon Dec 21 07:59:57 2009] [error] [client 87.234.23.111]     return storify(out, *requireds, **defaults), referer: https://mail.mydomain.com/iredadmin/create/domain
[Mon Dec 21 07:59:57 2009] [error] [client 87.234.23.111]   File "/var/lib/python-support/python2.5/web/utils.py", line 145, in storify, referer: https://mail.mydomain.com/iredadmin/create/domain
[Mon Dec 21 07:59:57 2009] [error] [client 87.234.23.111]     value = getvalue(value), referer: https://mail.mydomain.com/iredadmin/create/domain 
[Mon Dec 21 07:59:57 2009] [error] [client 87.234.23.111]   File "/var/lib/python-support/python2.5/web/utils.py", line 132, in getvalue, referer: https://mail.mydomain.com/iredadmin/create/domain
[Mon Dec 21 07:59:57 2009] [error] [client 87.234.23.111]     return unicodify(x.value), referer: https://mail.mydomain.com/iredadmin/create/domain
[Mon Dec 21 07:59:57 2009] [error] [client 87.234.23.111]   File "/var/lib/python-support/python2.5/web/utils.py", line 127, in unicodify, referer: https://mail.mydomain.com/iredadmin/create/domain
[Mon Dec 21 07:59:57 2009] [error] [client 87.234.23.111]     if _unicode and isinstance(s, str): return safeunicode(s), referer: https://mail.mydomain.com/iredadmin/create/domain
[Mon Dec 21 07:59:57 2009] [error] [client 87.234.23.111]   File "/var/lib/python-support/python2.5/web/utils.py", line 235, in safeunicode, referer: https://mail.mydomain.com/iredadmin/create/domain
[Mon Dec 21 07:59:57 2009] [error] [client 87.234.23.111]     return obj.decode(encoding), referer: https://mail.mydomain.com/iredadmin/create/domain 
[Mon Dec 21 07:59:57 2009] [error] [client 87.234.23.111]   File "/usr/lib/python2.5/encodings/utf_8.py", line 16, in decode, referer: https://mail.mydomain.com/iredadmin/create/domain
[Mon Dec 21 07:59:57 2009] [error] [client 87.234.23.111]     return codecs.utf_8_decode(input, errors, True), referer: https://mail.mydomain.com/iredadmin/create/domain
[Mon Dec 21 07:59:57 2009] [error] [client 87.234.23.111] UnicodeDecodeError: 'utf8' codec can't decode bytes in position 3-5: invalid data, referer: https://mail.mydomain.com/iredadmin/create/domain
[Mon Dec 21 07:59:57 2009] [error] [client 87.234.23.111] , referer: https://mail.mydomain.com/iredadmin/create/domain

I added a new domain some days ago and i didnt get any problem. I dont remember any upgrade by my way.

Have you got any idea ?

Thanks and regards.

2

Re: Cant add new domain

[Mon Dec 21 07:59:57 2009] [error] [client 87.234.23.111] UnicodeDecodeError: 'utf8' codec can't decode bytes in position 3-5: invalid data, referer: https://mail.mydomain.com/iredadmin/create/domain

It seems you input some non-ascii characters in domain name, right?

3

Re: Cant add new domain

ZhangHuangbin wrote:

It seems you input some non-ascii characters in domain name, right?

You are right.
I put "María" in the Company/Organization field.
Now without spanish accent it work fine.
With utf8 dont can use spanish accents ?

4

Re: Cant add new domain

Sysdebian wrote:

I put "María" in the Company/Organization field.
Now without spanish accent it work fine.

It works with Chinese characters (utf8, multi-bytes), but i didn't test Spanish before. sad

5

Re: Cant add new domain

Hi there,
Before I start, I am a total newbie to iredmail, so please be patient with me smile
I've got the same Error in my Apache error.log
I don't know much about Charset's, ascii and so on.
Is it possible that the error occures because of the Standard-Domain I entered in the Setup-Assistant (x7o.de)?
Is there a workaround for that problem?

greetings from germany

6

Re: Cant add new domain

The root cause is, German transation is not fully and correctly translated.

Please change 'lang' to 'en_US' in iRedAdmin config file 'settings.ini', logout via click 'Logout' link in up-right corner, restart apache and it should work.

If it doesn't work, you can remove directory 'i18n/de_DE/' in iRedAdmin directly.

7

Re: Cant add new domain

I had to rename the directory!
Thank you for your help!