1

Topic: internal server error

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.2
- Linux/BSD distribution name and version: FreeBSD 10.1
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx):Nginx
- Manage mail accounts with iRedAdmin-Pro?
- Related log if you're reporting an issue: no errors in nginx logs
====
After loging in in /iredadmin/ I get white page with error: internal server error
The url stops at /iredadmin/dashboard/checknew
Found that topik http://www.iredmail.org/forum/topic6998 … d-087.html , but can't get figure out, the python commands worked out.
How to find the problem and fix that?

----

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

2

Re: internal server error

Any error message in /var/log/uwsgi*.log?

3

Re: internal server error

Here is the message I get when try to log in.

Python version: 2.7.10 (default, Jul  5 2015, 10:29:10)  [GCC 4.2.1 Compatible FreeBSD Clang 3.3 (tags/RELEASE_33/final 183502)]
Python main interpreter initialized at 0x8028850c0
python threads support enabled
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 72752 bytes (71 KB) for 1 cores
*** Operational MODE: single process ***
*** no app loaded. going in full dynamic mode ***
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI worker 1 (and the only) (pid: 1220, cores: 1)
WSGI app 0 (mountpoint='192.168.190.190:444|/iredadmin') ready in 1 seconds on interpreter 0x8028850c0 pid: 1220
192.168.190.190:444 [pid: 1220|app: 0|req: 1/1] 192.168.2.120 () {52 vars in 889 bytes} [Tue Sep  8 12:26:34 2015] GET /iredadmin => generated 4821 bytes in 1068 msecs (HTTP/1.1 200) 1 headers in 111 bytes (2 switches on core 0)
192.168.190.190:444 [pid: 1220|app: 0|req: 2/2] 192.168.2.120 () {62 vars in 1183 bytes} [Tue Sep  8 12:26:43 2015] POST /iredadmin/login => generated 0 bytes in 463 msecs (HTTP/1.1 303) 3 headers in 209 bytes (2 switches on core 0)
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/web/application.py", line 239, in process
    return self.handle()
  File "/usr/local/lib/python2.7/site-packages/web/application.py", line 230, in handle
    return self._delegate(fn, self.fvars, args)
  File "/usr/local/lib/python2.7/site-packages/web/application.py", line 420, in _delegate
    return handle_class(cls)
  File "/usr/local/lib/python2.7/site-packages/web/application.py", line 396, in handle_class
    return tocall(*args)
  File "/usr/local/www/iRedAdmin-0.4.2/controllers/decorators.py", line 11, in proxyfunc
    return func(self, *args, **kw)
  File "/usr/local/www/iRedAdmin-0.4.2/controllers/mysql/basic.py", line 133, in GET
    newVersionInfo=newVersionInfo,
  File "/usr/local/www/iRedAdmin-0.4.2/libs/iredbase.py", line 166, in render_template
    return jinja_env.get_template(template_name).render(context)
  File "/usr/local/lib/python2.7/site-packages/jinja2/environment.py", line 989, in render
    return self.environment.handle_exception(exc_info, True)
  File "/usr/local/lib/python2.7/site-packages/jinja2/environment.py", line 754, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/www/iRedAdmin-0.4.2/libs/../templates/default/macros/general.html", line 795, in template
    {% macro display_per_user_wblist(values=[], htmlInputName, label) -%}
TemplateSyntaxError: non-default argument follows default argument

192.168.190.190:444 [pid: 1220|app: 0|req: 3/3] 192.168.2.120 () {56 vars in 1060 bytes} [Tue Sep  8 12:26:43 2015] GET /iredadmin/dashboard/checknew => generated 21 bytes in 360 msecs (HTTP/1.1 500) 2 headers in 155 bytes (2 switches on core 0)

4

Re: internal server error

It's fixed on Aug 17. You can find patch here:
https://bitbucket.org/zhb/iredadmin-ose … 675484c5e0

Just open file /usr/local/www/iRedAdmin-0.4.2/templates/default/macros/general.html, remove the last macro "display_per_user_wblist".