1 (edited by FredZ 2009-11-05 10:20:08)

Topic: Error after adding a user.

I have just done a fresh install of IRM for testing on a second server. The first server I didn't install LDAP/iRedMailAdmin.

All went well untill I added a user. Now I get an internal server error when I go to the user page.

error.log

[Thu Nov 05 15:06:19 2009] [notice] caught SIGTERM, shutting down
[Thu Nov 05 15:08:52 2009] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Thu Nov 05 15:08:53 2009] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Thu Nov 05 15:08:54 2009] [notice] Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_wsgi/2.5 Python/2.5.2 configured -- resuming normal operations
[Thu Nov 05 15:10:23 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
[Thu Nov 05 15:10:23 2009] [error]   __version__ = __import__('pkg_resources') \\
[Thu Nov 05 15:10:26 2009] [error] [client 192.168.0.140] File does not exist: /var/www/favicon.ico
[Thu Nov 05 15:10:29 2009] [error] [client 192.168.0.140] File does not exist: /var/www/favicon.ico
[Thu Nov 05 15:11:01 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
[Thu Nov 05 15:11:01 2009] [error]   __version__ = __import__('pkg_resources') \\
[Thu Nov 05 15:11:06 2009] [error] [client 192.168.0.140] Traceback (most recent call last):, referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:06 2009] [error] [client 192.168.0.140]   File "/var/lib/python-support/python2.5/web/application.py", line 242, in process, referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:06 2009] [error] [client 192.168.0.140]     return self.handle(), referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:06 2009] [error] [client 192.168.0.140]   File "/var/lib/python-support/python2.5/web/application.py", line 233, in handle, referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:06 2009] [error] [client 192.168.0.140]     return self._delegate(fn, self.fvars, args), referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:06 2009] [error] [client 192.168.0.140]   File "/var/lib/python-support/python2.5/web/application.py", line 412, in _delegate, referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:06 2009] [error] [client 192.168.0.140]     return handle_class(cls), referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:06 2009] [error] [client 192.168.0.140]   File "/var/lib/python-support/python2.5/web/application.py", line 387, in handle_class, referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:06 2009] [error] [client 192.168.0.140]     return tocall(*args), referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:06 2009] [error] [client 192.168.0.140]   File "/usr/share/apache2/iredadmin/controllers/ldap/base.py", line 44, in proxyfunc, referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:06 2009] [error] [client 192.168.0.140]     return func(self, *args, **kw), referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:06 2009] [error] [client 192.168.0.140]   File "/usr/share/apache2/iredadmin/controllers/ldap/user.py", line 79, in GET, referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:06 2009] [error] [client 192.168.0.140]     msg=i.get('msg'),, referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:06 2009] [error] [client 192.168.0.140]   File "/var/lib/python-support/python2.5/jinja2/environment.py", line 669, in render, referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:06 2009] [error] [client 192.168.0.140]     return self.environment.handle_exception(exc_info, True), referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:06 2009] [error] [client 192.168.0.140]   File "/usr/share/apache2/iredadmin/libs/..//templates/default/ldap/users.html", line 29, in top-level template code, referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:06 2009] [error] [client 192.168.0.140]     {% from "msgHandlers.html" import userMsgHandler with context %}, referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:06 2009] [error] [client 192.168.0.140]   File "/usr/share/apache2/iredadmin/libs/..//templates/default/ldap/layout.html", line 82, in top-level template code, referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:06 2009] [error] [client 192.168.0.140]     {% block main %}{% endblock main %}, referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:06 2009] [error] [client 192.168.0.140]   File "/usr/share/apache2/iredadmin/libs/..//templates/default/ldap/users.html", line 104, in block "main", referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:06 2009] [error] [client 192.168.0.140]     <td>{% if entries.get('mailQuota', ['0'])[0] == '0' %}{{ _('Unlimited') }}{% else %}{{ entries.get('mailQuota', ['0'])[0] |filesizeformat }} {% endif %}</td>, referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:06 2009] [error] [client 192.168.0.140]   File "/usr/share/apache2/iredadmin/libs/iredutils.py", line 52, in filesizeformat, referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:06 2009] [error] [client 192.168.0.140]     return "%d Bytes" % (bytes, bytes != 1 and 's' or ''), referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:06 2009] [error] [client 192.168.0.140] TypeError: not all arguments converted during string formatting, referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:06 2009] [error] [client 192.168.0.140] , referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:09 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
[Thu Nov 05 15:11:09 2009] [error]   __version__ = __import__('pkg_resources') \\
[Thu Nov 05 15:11:14 2009] [error] [client 192.168.0.140] Traceback (most recent call last):, referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:14 2009] [error] [client 192.168.0.140]   File "/var/lib/python-support/python2.5/web/application.py", line 242, in process, referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:14 2009] [error] [client 192.168.0.140]     return self.handle(), referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:14 2009] [error] [client 192.168.0.140]   File "/var/lib/python-support/python2.5/web/application.py", line 233, in handle, referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:14 2009] [error] [client 192.168.0.140]     return self._delegate(fn, self.fvars, args), referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:14 2009] [error] [client 192.168.0.140]   File "/var/lib/python-support/python2.5/web/application.py", line 412, in _delegate, referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:14 2009] [error] [client 192.168.0.140]     return handle_class(cls), referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:14 2009] [error] [client 192.168.0.140]   File "/var/lib/python-support/python2.5/web/application.py", line 387, in handle_class, referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:14 2009] [error] [client 192.168.0.140]     return tocall(*args), referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:14 2009] [error] [client 192.168.0.140]   File "/usr/share/apache2/iredadmin/controllers/ldap/base.py", line 44, in proxyfunc, referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:14 2009] [error] [client 192.168.0.140]     return func(self, *args, **kw), referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:14 2009] [error] [client 192.168.0.140]   File "/usr/share/apache2/iredadmin/controllers/ldap/user.py", line 79, in GET, referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:14 2009] [error] [client 192.168.0.140]     msg=i.get('msg'),, referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:14 2009] [error] [client 192.168.0.140]   File "/var/lib/python-support/python2.5/jinja2/environment.py", line 669, in render, referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:14 2009] [error] [client 192.168.0.140]     return self.environment.handle_exception(exc_info, True), referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:14 2009] [error] [client 192.168.0.140]   File "/usr/share/apache2/iredadmin/libs/..//templates/default/ldap/users.html", line 29, in top-level template code, referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:14 2009] [error] [client 192.168.0.140]     {% from "msgHandlers.html" import userMsgHandler with context %}, referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:14 2009] [error] [client 192.168.0.140]   File "/usr/share/apache2/iredadmin/libs/..//templates/default/ldap/layout.html", line 82, in top-level template code, referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:14 2009] [error] [client 192.168.0.140]     {% block main %}{% endblock main %}, referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:14 2009] [error] [client 192.168.0.140]   File "/usr/share/apache2/iredadmin/libs/..//templates/default/ldap/users.html", line 104, in block "main", referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:14 2009] [error] [client 192.168.0.140]     <td>{% if entries.get('mailQuota', ['0'])[0] == '0' %}{{ _('Unlimited') }}{% else %}{{ entries.get('mailQuota', ['0'])[0] |filesizeformat }} {% endif %}</td>, referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:14 2009] [error] [client 192.168.0.140]   File "/usr/share/apache2/iredadmin/libs/iredutils.py", line 52, in filesizeformat, referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:14 2009] [error] [client 192.168.0.140]     return "%d Bytes" % (bytes, bytes != 1 and 's' or ''), referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:14 2009] [error] [client 192.168.0.140] TypeError: not all arguments converted during string formatting, referer: https://mail0.corpcomp.co.nz/iredadmin/domains
[Thu Nov 05 15:11:14 2009] [error] [client 192.168.0.140] , referer: https://mail0.corpcomp.co.nz/iredadmin/domains

comments

Fred

2

Re: Error after adding a user.

Which version of iRedAdmin do you use? 0.1.1 open source edition?

3

Re: Error after adding a user.

ZhangHuangbin wrote:

Which version of iRedAdmin do you use? 0.1.1 open source edition?

Sorry, forgot to mention that.

The dashboard shows 0.1.1

It is the version installed when you install iRedMail-0.5.1.tar.bz2 with the get_all.sh and iRedMail.sh scripts.
Installation is on Debian 5.0.3 (Lenny)

When I go to the Domains panel it shows 2 users for the domain but I get an internal server error when I attempt to view them.

Regards

Fred

4

Re: Error after adding a user.

It works for me here on RHEL/CentOS 5.x. I will test it on Debian 5.x later. Thanks for your report. smile

5

Re: Error after adding a user.

Hi, FredZ.

I found the bug and patch is ready:
http://www.iredmail.org/forum/topic398- … erted.html

Thanks for your report. smile

6

Re: Error after adding a user.

ZhangHuangbin wrote:

Hi, FredZ.

I found the bug and patch is ready:
http://www.iredmail.org/forum/topic398- … erted.html

Thanks for your report. smile

Wow, I certainly can't complain about the support for this product.

I ran the patch as described and the output is not as shown.

mail0:/usr/share/apache2/iredadmin# patch --dry-run -p1 < iredadmin-v011-20091105-01.patch
patching file libs/iredutils.py

patching file libs/__init__.py does not apear in the output so I have not continued with the patch is stated.

Regards

Fred

7

Re: Error after adding a user.

FredZ wrote:

mail0:/usr/share/apache2/iredadmin# patch --dry-run -p1 < iredadmin-v011-20091105-01.patch
patching file libs/iredutils.py

Your output is correct. My mistake in the announcement.

Fixed in the announcement.

Sorry again.