1

Topic: Adding a new user

Hi,

I started testing iredmail, added a new user, then restarted my server, since that I could not add a new user, when I select "add new user" my browser says "internal server error"

iredmail 0.8.5
MySQL backend
Ubuntu 12.04

My apache log:

==> apache2/error.log <==
[Thu Aug 29 13:50:39 2013] [error] [client 10.48.16.29] Traceback (most recent call last):
[Thu Aug 29 13:50:39 2013] [error] [client 10.48.16.29]   File "/usr/lib/pymodules/python2.7/web/application.py", line 242, in process
[Thu Aug 29 13:50:39 2013] [error] [client 10.48.16.29]     return self.handle()
[Thu Aug 29 13:50:39 2013] [error] [client 10.48.16.29]   File "/usr/lib/pymodules/python2.7/web/application.py", line 233, in handle
[Thu Aug 29 13:50:39 2013] [error] [client 10.48.16.29]     return self._delegate(fn, self.fvars, args)
[Thu Aug 29 13:50:39 2013] [error] [client 10.48.16.29]   File "/usr/lib/pymodules/python2.7/web/application.py", line 415, in _delegate
[Thu Aug 29 13:50:39 2013] [error] [client 10.48.16.29]     return handle_class(cls)
[Thu Aug 29 13:50:39 2013] [error] [client 10.48.16.29]   File "/usr/lib/pymodules/python2.7/web/application.py", line 390, in handle_class
[Thu Aug 29 13:50:39 2013] [error] [client 10.48.16.29]     return tocall(*args)
[Thu Aug 29 13:50:39 2013] [error] [client 10.48.16.29]   File "/usr/share/apache2/iredadmin/controllers/decorators.py", line 11, in proxyfunc
[Thu Aug 29 13:50:39 2013] [error] [client 10.48.16.29]     return func(self, *args, **kw)
[Thu Aug 29 13:50:39 2013] [error] [client 10.48.16.29]   File "/usr/share/apache2/iredadmin/controllers/mysql/user.py", line 189, in GET
[Thu Aug 29 13:50:39 2013] [error] [client 10.48.16.29]     msg=i.get('msg'),
[Thu Aug 29 13:50:39 2013] [error] [client 10.48.16.29]   File "/usr/share/apache2/iredadmin/libs/iredbase.py", line 168, in render_template
[Thu Aug 29 13:50:39 2013] [error] [client 10.48.16.29]     return jinja_env.get_template(template_name).render(context)
[Thu Aug 29 13:50:39 2013] [error] [client 10.48.16.29]   File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 894, in render
[Thu Aug 29 13:50:39 2013] [error] [client 10.48.16.29]     return self.environment.handle_exception(exc_info, True)
[Thu Aug 29 13:50:39 2013] [error] [client 10.48.16.29]   File "/usr/share/apache2/iredadmin/libs/../templates/default/mysql/user/create.html", line 11, in top-level template code
[Thu Aug 29 13:50:39 2013] [error] [client 10.48.16.29]     {% from "macros/msgHandlers.html" import userMsgHandler with context %}
[Thu Aug 29 13:50:39 2013] [error] [client 10.48.16.29]   File "/usr/share/apache2/iredadmin/libs/../templates/default/layout.html", line 7, in top-level template code
[Thu Aug 29 13:50:39 2013] [error] [client 10.48.16.29]     <title>{% block title %}{%endblock%}</title>
[Thu Aug 29 13:50:39 2013] [error] [client 10.48.16.29]   File "/usr/share/apache2/iredadmin/libs/../templates/default/mysql/user/create.html", line 13, in block "title"
[Thu Aug 29 13:50:39 2013] [error] [client 10.48.16.29]     {% block title %}{{ _('Add user under domain: %s') |format(cur_domain) }}{% endblock title %}
[Thu Aug 29 13:50:39 2013] [error] [client 10.48.16.29]   File "/usr/lib/python2.7/dist-packages/jinja2/filters.py", line 503, in do_format
[Thu Aug 29 13:50:39 2013] [error] [client 10.48.16.29]     return soft_unicode(value) % (kwargs or args)
[Thu Aug 29 13:50:39 2013] [error] [client 10.48.16.29] TypeError: not all arguments converted during string formatting
[Thu Aug 29 13:50:39 2013] [error] [client 10.48.16.29]


Thanks, Robert

----

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

2

Re: Adding a new user

It might be caused by incorrect language translation, which language do you use in iRedAdmin? Please try to set it to English (en_US) in iRedAdmin config file (settings.ini), restart Apache web server and try again.

Also, which edition of iRedAdmin are you running? open source edition or iRedAdmin-Pro?

3

Re: Adding a new user

Hi,

I switched back to english language, that solved the problem.

iredadmin opensource 0.2.2

Thanks, Robert