1

Topic: After ports update iredadmin give internal server error

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.2
- Linux/BSD distribution name and version: FreeBSD 9.3-RELEASE-p22
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache 22
- Manage mail accounts with iRedAdmin-Pro? No.
- Related log if you're reporting an issue:

tail -f /var/log/httpd-error.log

[Mon Aug 17 14:43:01 2015] [error] [client ] Traceback (most recent call last):
[Mon Aug 17 14:43:01 2015] [error] [client ]   File "/usr/local/lib/python2.7/site-packages/web/application.py", line 239, in process
[Mon Aug 17 14:43:01 2015] [error] [client ]     return self.handle()
[Mon Aug 17 14:43:01 2015] [error] [client ]   File "/usr/local/lib/python2.7/site-packages/web/application.py", line 230, in handle
[Mon Aug 17 14:43:01 2015] [error] [client ]     return self._delegate(fn, self.fvars, args)
[Mon Aug 17 14:43:01 2015] [error] [client ]   File "/usr/local/lib/python2.7/site-packages/web/application.py", line 420, in _delegate
[Mon Aug 17 14:43:01 2015] [error] [client ]     return handle_class(cls)
[Mon Aug 17 14:43:01 2015] [error] [client ]   File "/usr/local/lib/python2.7/site-packages/web/application.py", line 396, in handle_class
[Mon Aug 17 14:43:01 2015] [error] [client ]     return tocall(*args)
[Mon Aug 17 14:43:01 2015] [error] [client ]   File "/usr/local/www/iredadmin/controllers/decorators.py", line 11, in proxyfunc
[Mon Aug 17 14:43:01 2015] [error] [client ]     return func(self, *args, **kw)
[Mon Aug 17 14:43:01 2015] [error] [client ]   File "/usr/local/www/iredadmin/controllers/mysql/user.py", line 37, in GET
[Mon Aug 17 14:43:01 2015] [error] [client ]     msg=web.input().get('msg', None),
[Mon Aug 17 14:43:01 2015] [error] [client ]   File "/usr/local/www/iredadmin/libs/iredbase.py", line 166, in render_template
[Mon Aug 17 14:43:01 2015] [error] [client ]     return jinja_env.get_template(template_name).render(context)
[Mon Aug 17 14:43:01 2015] [error] [client ]   File "/usr/local/lib/python2.7/site-packages/jinja2/environment.py", line 989, in render
[Mon Aug 17 14:43:01 2015] [error] [client ]     return self.environment.handle_exception(exc_info, True)
[Mon Aug 17 14:43:01 2015] [error] [client ]   File "/usr/local/lib/python2.7/site-packages/jinja2/environment.py", line 754, in handle_exception
[Mon Aug 17 14:43:01 2015] [error] [client ]     reraise(exc_type, exc_value, tb)
[Mon Aug 17 14:43:01 2015] [error] [client ]   File "/usr/local/www/iredadmin/libs/../templates/default/macros/general.html", line 795, in template
[Mon Aug 17 14:43:01 2015] [error] [client ]     {% macro display_per_user_wblist(values=[], htmlInputName, label) -%}
[Mon Aug 17 14:43:01 2015] [error] [client ] TemplateSyntaxError: non-default argument follows default argument
[Mon Aug 17 14:43:01 2015] [error] [client ]

====

After ports update iredadmin give internal server error. I can't find what is the reason of this error. I can't login iredadmin. I tried restart iredapd, apache22 and mysql server. Nothing change.

Best regards.
Hasan

----

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

2

Re: After ports update iredadmin give internal server error

Please open file '/usr/local/www/iredadmin/templates/default/macros/general.html', find this line:

{% macro display_per_user_wblist(values=[], htmlInputName, label) -%}

Remove '=[]', save and try again.

{% macro display_per_user_wblist(values, htmlInputName, label) -%}

== UPDATE ==
Fixed in iRedAdmin (open source edition), this fix will be available in next iRedMail release.
https://bitbucket.org/zhb/iredadmin-ose … 675484c5e0

3

Re: After ports update iredadmin give internal server error

Hi

Thanks for the quick reply. Problem solved.

Best Regards.

Hasan