1 (edited by carlosdias98 2015-11-23 21:19:49)

Topic: IredAdmin - internal server error

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

[Mon Nov 23 11:16:38 2015] [error] [client 186.193.x.8] Traceback (most recent call last):
[Mon Nov 23 11:16:38 2015] [error] [client 186.193.x.8]   File "/usr/local/lib/python2.7/site-packages/web/application.py", line 239, in process
[Mon Nov 23 11:16:38 2015] [error] [client 186.193.x.8]     return self.handle()
[Mon Nov 23 11:16:38 2015] [error] [client 186.193.x.8]   File "/usr/local/lib/python2.7/site-packages/web/application.py", line 230, in handle
[Mon Nov 23 11:16:38 2015] [error] [client 186.193.x.8]     return self._delegate(fn, self.fvars, args)
[Mon Nov 23 11:16:38 2015] [error] [client 186.193.x.8]   File "/usr/local/lib/python2.7/site-packages/web/application.py", line 420, in _delegate
[Mon Nov 23 11:16:38 2015] [error] [client 186.193.x.8]     return handle_class(cls)
[Mon Nov 23 11:16:38 2015] [error] [client 186.193.x.8]   File "/usr/local/lib/python2.7/site-packages/web/application.py", line 396, in handle_class
[Mon Nov 23 11:16:38 2015] [error] [client 186.193.x.8]     return tocall(*args)
[Mon Nov 23 11:16:38 2015] [error] [client 186.193.x.8]   File "/usr/local/www/iredadmin/controllers/decorators.py", line 22, in proxyfunc
[Mon Nov 23 11:16:38 2015] [error] [client 186.193.x.8]     return func(self, *args, **kw)
[Mon Nov 23 11:16:38 2015] [error] [client 186.193.x.8]   File "/usr/local/www/iredadmin/controllers/sql/basic.py", line 245, in GET
[Mon Nov 23 11:16:38 2015] [error] [client 186.193.x.8]     removeQuarantinedInDays=settings.AMAVISD_REMOVE_QUARANTINED_IN_DAYS,
[Mon Nov 23 11:16:38 2015] [error] [client 186.193.x.8]   File "/usr/local/www/iredadmin/libs/iredbase.py", line 196, in render_template
[Mon Nov 23 11:16:38 2015] [error] [client 186.193.x.8]     return jinja_env.get_template(template_name).render(context)
[Mon Nov 23 11:16:38 2015] [error] [client 186.193.x.8]   File "/usr/local/lib/python2.7/site-packages/jinja2/environment.py", line 989, in render
[Mon Nov 23 11:16:38 2015] [error] [client 186.193.x.8]     return self.environment.handle_exception(exc_info, True)
[Mon Nov 23 11:16:38 2015] [error] [client 186.193.x.8]   File "/usr/local/lib/python2.7/site-packages/jinja2/environment.py", line 754, in handle_exception
[Mon Nov 23 11:16:38 2015] [error] [client 186.193.x.8]     reraise(exc_type, exc_value, tb)
[Mon Nov 23 11:16:38 2015] [error] [client 186.193.x.8]   File "/usr/local/www/iredadmin/libs/../templates/default/macros/general.html", line 1218, in template
[Mon Nov 23 11:16:38 2015] [error] [client 186.193.x.8]     {% macro display_per_account_wblist(values=[], htmlInputName, label) -%}
[Mon Nov 23 11:16:38 2015] [error] [client 186.193.x.8] TemplateSyntaxError: non-default argument follows default argument

====


Hello,

i have a problem to access IredAdmin. Occurring an error: "Internet Server Error"

What can I do ?

I have many customers in this server.  Please i need fastly feedback.

Thanks for return.

Best Regards.

Carlos Eduardo Dias
3AX Internet Provider

Post's attachments

Error.jpg 60.17 kb, file has never been downloaded. 

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

----

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

2

Re: IredAdmin - internal server error

Any error message in /var/log/httpd-error.log?

3

Re: IredAdmin - internal server error

Yes.

[Mon Nov 23 11:16:38 2015] [error] [client 186.193.x.8] Traceback (most recent call last):
[Mon Nov 23 11:16:38 2015] [error] [client 186.193.x.8]   File "/usr/local/lib/python2.7/site-packages/web/application.py", line 239, in process
[Mon Nov 23 11:16:38 2015] [error] [client 186.193.x.8]     return self.handle()
[Mon Nov 23 11:16:38 2015] [error] [client 186.193.x.8]   File "/usr/local/lib/python2.7/site-packages/web/application.py", line 230, in handle
[Mon Nov 23 11:16:38 2015] [error] [client 186.193.x.8]     return self._delegate(fn, self.fvars, args)
[Mon Nov 23 11:16:38 2015] [error] [client 186.193.x.8]   File "/usr/local/lib/python2.7/site-packages/web/application.py", line 420, in _delegate
[Mon Nov 23 11:16:38 2015] [error] [client 186.193.x.8]     return handle_class(cls)
[Mon Nov 23 11:16:38 2015] [error] [client 186.193.x.8]   File "/usr/local/lib/python2.7/site-packages/web/application.py", line 396, in handle_class
[Mon Nov 23 11:16:38 2015] [error] [client 186.193.x.8]     return tocall(*args)
[Mon Nov 23 11:16:38 2015] [error] [client 186.193.x.8]   File "/usr/local/www/iredadmin/controllers/decorators.py", line 22, in proxyfunc
[Mon Nov 23 11:16:38 2015] [error] [client 186.193.x.8]     return func(self, *args, **kw)
[Mon Nov 23 11:16:38 2015] [error] [client 186.193.x.8]   File "/usr/local/www/iredadmin/controllers/sql/basic.py", line 245, in GET
[Mon Nov 23 11:16:38 2015] [error] [client 186.193.x.8]     removeQuarantinedInDays=settings.AMAVISD_REMOVE_QUARANTINED_IN_DAYS,
[Mon Nov 23 11:16:38 2015] [error] [client 186.193.x.8]   File "/usr/local/www/iredadmin/libs/iredbase.py", line 196, in render_template
[Mon Nov 23 11:16:38 2015] [error] [client 186.193.x.8]     return jinja_env.get_template(template_name).render(context)
[Mon Nov 23 11:16:38 2015] [error] [client 186.193.x.8]   File "/usr/local/lib/python2.7/site-packages/jinja2/environment.py", line 989, in render
[Mon Nov 23 11:16:38 2015] [error] [client 186.193.x.8]     return self.environment.handle_exception(exc_info, True)
[Mon Nov 23 11:16:38 2015] [error] [client 186.193.x.8]   File "/usr/local/lib/python2.7/site-packages/jinja2/environment.py", line 754, in handle_exception
[Mon Nov 23 11:16:38 2015] [error] [client 186.193.x.8]     reraise(exc_type, exc_value, tb)
[Mon Nov 23 11:16:38 2015] [error] [client 186.193.x.8]   File "/usr/local/www/iredadmin/libs/../templates/default/macros/general.html", line 1218, in template
[Mon Nov 23 11:16:38 2015] [error] [client 186.193.x.8]     {% macro display_per_account_wblist(values=[], htmlInputName, label) -%}
[Mon Nov 23 11:16:38 2015] [error] [client 186.193.x.8] TemplateSyntaxError: non-default argument follows default argument

4

Re: IredAdmin - internal server error

[Mon Nov 23 11:22:39 2015] [error] [client 186.193.x.8] Timeout when reading response headers from daemon process 'iredadmin': /usr/local/www/iredadmin/iredadmin.py

5

Re: IredAdmin - internal server error

A known bug and fixed in new iRedAdmin. You can fix it by following below steps:

*) Open file /usr/local/www/iredadmin/templates/default/macros/general.html, find below line:

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

*) Remove '=[]', save your change.

That's it.

6

Re: IredAdmin - internal server error

Zhang,

Thank you so much!

Very fast solution!

Best Regards.

Carlos Eduardo Dias

7

Re: IredAdmin - internal server error

Enjoy and help spread iRedMail project is possible. smile