1 (edited by robynhub 2022-05-24 23:36:21)

Topic: Internal Server Error - Iredadmin [SOLVED]

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):  0.9.9 OPENLDAP edition.
- Deployed with iRedMail Easy or the downloadable installer? Installer
- Linux/BSD distribution name and version:  Debian 9.13
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): NGINX
- Manage mail accounts with iRedAdmin-Pro? YES
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

When I go to page https://mail.XXX.it/iredadmin/profile/d … omain.fake I get error 500 internal server error.

The traceback on /var/log/messages says:

May 24 17:16:54 mail iredadmin: Traceback (most recent call last):
012  File "/usr/local/lib/python3.5/dist-packages/web/application.py", line 280, in process
012    return self.handle()
012  File "/usr/local/lib/python3.5/dist-packages/web/application.py", line 271, in handle
012    return self._delegate(fn, self.fvars, args)
012  File "/usr/local/lib/python3.5/dist-packages/web/application.py", line 517, in _delegate
012    return handle_class(cls)
012  File "/usr/local/lib/python3.5/dist-packages/web/application.py", line 495, in handle_class
012    return tocall(*args)
012  File "/opt/www/iRedAdmin-Pro-LDAP-5.2/libs/ldaplib/decorators.py", line 32, in proxyfunc
012    return func(*args, **kw)
012  File "/opt/www/iRedAdmin-Pro-LDAP-5.2/controllers/ldap/domain.py", line 301, in GET
012    msg=form.get('msg', None),
012  File "/opt/www/iRedAdmin-Pro-LDAP-5.2/libs/iredbase.py", line 178, in render_template
012    return jinja_env.get_template(template_name).render(kwargs)
012  File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 989, in render
012    return self.environment.handle_exception(exc_info, True)
012  File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 754, in handle_exception
012    reraise(exc_type, exc_value, tb)
012  File "/usr/lib/python3/dist-packages/jinja2/_compat.py", line 37, in reraise
012    raise value.with_traceback(tb)
012  File "/opt/www/iRedAdmin-Pro-LDAP-5.2/libs/../templates/default/ldap/domain/profile.html", line 124, in top-level template code
012    {% set disabled_user_preferences = accountSetting.get('disabledUserPreference', []) %}
012  File "/opt/www/iRedAdmin-Pro-LDAP-5.2/libs/../templates/default/layout.html", line 209, in top-level template code
012    {% block main %}{% endblock %}
012  File "/opt/www/iRedAdmin-Pro-LDAP-5.2/libs/../templates/default/ldap/domain/profile.html", line 419, in block "main"
012    {{ display_throttle_setting(account='@' + cur_domain,
012  File "/opt/www/iRedAdmin-Pro-LDAP-5.2/libs/../templates/default/macros/iredapd.html", line 382, in template
012    value="{% if setting.max_rcpts > 0 %}{{ setting.max_rcpts |e }}{% endif %}"
012jinja2.exceptions.UndefinedError: 'web.utils.Storage object' has no attribute 'max_rcpts'
012
012Traceback (most recent call last):
012  File "/usr/local/lib/python3.5/dist-packages/web/application.py", line 280, in process
012    return self.handle()
012  File "/usr/local/lib/python3.5/dist-packages/web/application.py", line 271, in handle
012    return self._delegate(fn, self.fvars, args)
012  File "/usr/local/lib/python3.5/dist-packages/web/application.py", line 517, in _delegate
012    return handle_class(cls)
012  File "/usr/local/lib/python3.5/dist-packages/web/application.py", line 495, in handle_class
012    return tocall(*args)
012  File "/opt/www/iRedAdmin-Pro-LDAP-5.2/libs/ldaplib/decorators.py", line 32, in proxyfunc
012    return func(*args, **kw)
012  File "/opt/www/iRedAdmin-Pro-LDAP-5.2/controllers/ldap/domain.py", line 301, in GET
012    msg=form.get('msg', None),
012  File "/opt/www/iRedAdmin-Pro-LDAP-5.2/libs/iredbase.py", line 178, in render_template
012    return jinja_env.get_template(template_name).render(kwargs)
012  File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 989, in render
012    return self.environment.handle_exception(exc_info, True)
012  File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 754, in handle_exception
012    reraise(exc_type, exc_value, tb)
012  File "/usr/lib/python3/dist-packages/jinja2/_compat.py", line 37, in reraise
012    raise value.with_traceback(tb)
012  File "/opt/www/iRedAdmin-Pro-LDAP-5.2/libs/../templates/default/ldap/domain/profile.html", line 124, in top-level template code
012    {% set disabled_user_preferences = accountSetting.get('disabledUserPreference', []) %}
012  File "/opt/www/iRedAdmin-Pro-LDAP-5.2/libs/../templates/default/layout.html", line 209, in top-level template code
012    {% block main %}{% endblock %}
012  File "/opt/www/iRedAdmin-Pro-LDAP-5.2/libs/../templates/default/ldap/domain/profile.html


What I should do?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team.

2

Re: Internal Server Error - Iredadmin [SOLVED]

Was the old version of iRedAPD. After the upgrade all work again.

Ty anyway.