1 (edited by agodinho 2015-08-31 22:27:18)

Topic: Problem with iRedAdmin on fresh install

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

Hi,

I have just installed iRedMail on a freshly installed FreeBSD 10.2 with latest ports, everything installs fine without errors but when I try to access the iredamin page, it shows the login but after logging in it shows an HTTP 500 Internal Server Error.

The log shows:

[Mon Aug 31 16:24:47.326250 2015] [wsgi:error] [pid 1071] [remote 192.168.200.40:0] Traceback (most recent call last):
[Mon Aug 31 16:24:47.326271 2015] [wsgi:error] [pid 1071] [remote 192.168.200.40:0]   File "/usr/local/lib/python2.7/site-packages/web/application.py", line 239, in process
[Mon Aug 31 16:24:47.326281 2015] [wsgi:error] [pid 1071] [remote 192.168.200.40:0]     return self.handle()
[Mon Aug 31 16:24:47.326290 2015] [wsgi:error] [pid 1071] [remote 192.168.200.40:0]   File "/usr/local/lib/python2.7/site-packages/web/application.py", line 230, in handle
[Mon Aug 31 16:24:47.326294 2015] [wsgi:error] [pid 1071] [remote 192.168.200.40:0]     return self._delegate(fn, self.fvars, args)
[Mon Aug 31 16:24:47.326298 2015] [wsgi:error] [pid 1071] [remote 192.168.200.40:0]   File "/usr/local/lib/python2.7/site-packages/web/application.py", line 420, in _delegate
[Mon Aug 31 16:24:47.326301 2015] [wsgi:error] [pid 1071] [remote 192.168.200.40:0]     return handle_class(cls)
[Mon Aug 31 16:24:47.326305 2015] [wsgi:error] [pid 1071] [remote 192.168.200.40:0]   File "/usr/local/lib/python2.7/site-packages/web/application.py", line 396, in handle_class
[Mon Aug 31 16:24:47.326309 2015] [wsgi:error] [pid 1071] [remote 192.168.200.40:0]     return tocall(*args)
[Mon Aug 31 16:24:47.326312 2015] [wsgi:error] [pid 1071] [remote 192.168.200.40:0]   File "/usr/local/www/iredadmin/controllers/decorators.py", line 11, in proxyfunc
[Mon Aug 31 16:24:47.326316 2015] [wsgi:error] [pid 1071] [remote 192.168.200.40:0]     return func(self, *args, **kw)
[Mon Aug 31 16:24:47.326325 2015] [wsgi:error] [pid 1071] [remote 192.168.200.40:0]   File "/usr/local/www/iredadmin/controllers/mysql/basic.py", line 133, in GET
[Mon Aug 31 16:24:47.326329 2015] [wsgi:error] [pid 1071] [remote 192.168.200.40:0]     newVersionInfo=newVersionInfo,
[Mon Aug 31 16:24:47.326332 2015] [wsgi:error] [pid 1071] [remote 192.168.200.40:0]   File "/usr/local/www/iredadmin/libs/iredbase.py", line 166, in render_template
[Mon Aug 31 16:24:47.326336 2015] [wsgi:error] [pid 1071] [remote 192.168.200.40:0]     return jinja_env.get_template(template_name).render(context)
[Mon Aug 31 16:24:47.326340 2015] [wsgi:error] [pid 1071] [remote 192.168.200.40:0]   File "/usr/local/lib/python2.7/site-packages/jinja2/environment.py", line 989, in render
[Mon Aug 31 16:24:47.326344 2015] [wsgi:error] [pid 1071] [remote 192.168.200.40:0]     return self.environment.handle_exception(exc_info, True)
[Mon Aug 31 16:24:47.326349 2015] [wsgi:error] [pid 1071] [remote 192.168.200.40:0]   File "/usr/local/lib/python2.7/site-packages/jinja2/environment.py", line 754, in handle_exception
[Mon Aug 31 16:24:47.326357 2015] [wsgi:error] [pid 1071] [remote 192.168.200.40:0]     reraise(exc_type, exc_value, tb)
[Mon Aug 31 16:24:47.326373 2015] [wsgi:error] [pid 1071] [remote 192.168.200.40:0]   File "/usr/local/www/iredadmin/libs/../templates/default/macros/general.html", line 795, in template
[Mon Aug 31 16:24:47.326378 2015] [wsgi:error] [pid 1071] [remote 192.168.200.40:0]     {% macro display_per_user_wblist(values=[], htmlInputName, label) -%}
[Mon Aug 31 16:24:47.326382 2015] [wsgi:error] [pid 1071] [remote 192.168.200.40:0] TemplateSyntaxError: non-default argument follows default argument
[Mon Aug 31 16:24:47.326392 2015] [wsgi:error] [pid 1071] [remote 192.168.200.40:0]


The system has installed python 2.7.10 from latest ports, that's one of the differences I can see from a previous working installation which has python 2.7.9_1

Cheers,

Antonio

----

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

2

Re: Problem with iRedAdmin on fresh install

Fixed on Aug 17:
https://bitbucket.org/zhb/iredadmin-ose … 675484c5e0

Open file templates/default/macros/general.html, remove macro `display_per_user_wblist`.

3

Re: Problem with iRedAdmin on fresh install

Thanks.

4

Re: Problem with iRedAdmin on fresh install

Great support. It is working now.