1

Topic: Trouble moving iRedAdmin Pro to new server

======== 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 1.8.0
- Manage mail accounts with iRedAdmin-Pro? Yes (1.8.2)
- Related log if you're reporting an issue: Below
====

I've successfully migrated my iRedMail install to a new server, but the last piece, iRedAdmin Pro, is being stubborn. After logging in (yes, login page works), my browser just shows "Internal server error" - here is relevant uwsgi log. (Hostname censored)

*** Starting uWSGI 2.0.11.1 (64bit) on [Mon Oct  5 02:47:33 2015] ***
compiled with version: 4.2.1 Compatible FreeBSD Clang 3.4.1 (tags/RELEASE_34/dot1-final 208032) on 30 September 2015 20:23:19
os: FreeBSD-10.1-RELEASE FreeBSD 10.1-RELEASE #0 r274401: Tue Nov 11 21:02:49 UTC 2014     root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC
nodename: mail.xxxxxx.ca
machine: amd64
clock source: unix
detected number of CPU cores: 1
current working directory: /
writing pidfile to /var/run/uwsgi-iredadmin.pid
detected binary path: /usr/local/bin/uwsgi
!!! no internal routing support, rebuild with pcre support !!!
*** WARNING: you are running uWSGI without its master process manager ***
your processes number limit is 6670
your memory page size is 4096 bytes
detected max file descriptor number: 58284
VirtualHosting mode enabled.
lock engine: POSIX semaphores
thunder lock: disabled (you can enable it with --thunder-lock)
uwsgi socket 0 bound to UNIX address /var/run/uwsgi_iredadmin.socket fd 3
uwsgi socket 1 bound to UNIX address /tmp/uwsgi-iredadmin.sock fd 4
setgid() to 2001
setuid() to 2001
Python version: 2.7.10 (default, Sep 30 2015, 19:44:52)  [GCC 4.2.1 Compatible FreeBSD Clang 3.4.1 (tags/RELEASE_34/dot1-final 208032)]
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: 35541, cores: 1)
WSGI app 0 (mountpoint='mail.xxxxxx.ca|/iredadmin') ready in 1 seconds on interpreter 0x8028850c0 pid: 35541
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 "controllers/decorators.py", line 22, in proxyfunc
  File "controllers/mysql/basic.py", line 245, in GET
  File "libs/iredbase.py", line 199, in render_template
  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/libs/../templates/default/macros/general.html", line 1170, in template
    {% macro display_per_user_wblist(values=[], htmlInputName, label) -%}
TemplateSyntaxError: non-default argument follows default argument

mail.xxxxxx.ca [pid: 35541|app: 0|req: 1/1] 24.87.45.146 () {52 vars in 1025 bytes} [Mon Oct  5 02:47:38 2015] GET /iredadmin/dashboard => generated 21 bytes in 678 msecs (HTTP/1.1 500) 2 headers in 165 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 "controllers/decorators.py", line 22, in proxyfunc
  File "controllers/mysql/basic.py", line 245, in GET
  File "libs/iredbase.py", line 199, in render_template
  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/libs/../templates/default/macros/general.html", line 1170, in template
    {% macro display_per_user_wblist(values=[], htmlInputName, label) -%}
TemplateSyntaxError: non-default argument follows default argument

Mon Oct  5 02:47:47 2015 - uwsgi_response_writev_headers_and_body_do(): Broken pipe [core/writer.c line 296] during GET /iredadmin/dashboard (24.87.45.146)
IOError: write error
mail.xxxxxx.ca [pid: 35541|app: 0|req: 2/2] 24.87.45.146 () {52 vars in 1025 bytes} [Mon Oct  5 02:47:47 2015] GET /iredadmin/dashboard => generated 0 bytes in 568 msecs (HTTP/1.1 500) 2 headers in 0 bytes (0 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 "controllers/decorators.py", line 22, in proxyfunc
  File "controllers/mysql/basic.py", line 245, in GET
  File "libs/iredbase.py", line 199, in render_template
  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/libs/../templates/default/macros/general.html", line 1170, in template
    {% macro display_per_user_wblist(values=[], htmlInputName, label) -%}
TemplateSyntaxError: non-default argument follows default argument

mail.xxxxxx.ca [pid: 35541|app: 0|req: 3/3] 24.87.45.146 () {50 vars in 994 bytes} [Mon Oct  5 02:47:47 2015] GET /iredadmin/dashboard => generated 21 bytes in 436 msecs (HTTP/1.1 500) 2 headers in 165 bytes (2 switches on core 0)

If it makes a difference, I'm on the 5-user edition of iRedAdmin Pro which I understand is not offered anymore, so I can't upgrade to the latest version.

Any help appreciated, I'm not a Python person.

Thanks!

----

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

2

Re: Trouble moving iRedAdmin Pro to new server

Find line below in file /usr/local/www/iredadmin/templates/defaults/macros/general.html:

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

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

3 (edited by hdco 2015-10-05 11:14:10)

Re: Trouble moving iRedAdmin Pro to new server

That fixed it, thanks!

Are tiered licenses for iRedAdmin Pro coming back, or just unlimited now?

4

Re: Trouble moving iRedAdmin Pro to new server

hdco wrote:

Are tiered licenses for iRedAdmin Pro coming back, or just unlimited now?

Excuse me, what do you mean "tiered license"? Or you mean the 10-user edition? if so, no, it won't come back. sorry.