Topic: Internal server error in iRedAdmin Pro
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.6 MARIADB edition
- Deployed with iRedMail Easy or the downloadable installer? unknown
- Linux/BSD distribution name and version: CentOS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? Yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
I happened to make a change to some alias via an SQL command to make a mass change. Now the iRedAdmin page for user details generates an internal server error. I fixed/returned all the entries to previous but still unable to use the user details at //<webaddress>/iredadmin/profile/user/general/<username>@<domain>
The log file shows the following:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/web/application.py", line 239, in process
return self.handle()
File "/usr/lib/python2.7/site-packages/web/application.py", line 230, in handle
return self._delegate(fn, self.fvars, args)
File "/usr/lib/python2.7/site-packages/web/application.py", line 420, in _delegate
return handle_class(cls)
File "/usr/lib/python2.7/site-packages/web/application.py", line 396, in handle_class
return tocall(*args)
File "/var/www/iredadmin/controllers/sql/user.py", line 409, in GET
msg=web_input.get('msg'),
File "/var/www/iredadmin/libs/iredbase.py", line 185, in render_template
return jinja_env.get_template(template_name).render(context)
File "/usr/lib/python2.7/site-packages/jinja2/environment.py", line 969, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/lib/python2.7/site-packages/jinja2/environment.py", line 742, in handle_exception
reraise(exc_type, exc_value, tb)
File "/var/www/iredadmin/libs/../templates/default/sql/user/profile.html", line 45, in top-level template code
{% from "macros/msgHandlers.html" import userMsgHandler with context %}
File "/var/www/iredadmin/libs/../templates/default/layout.html", line 167, in top-level template code
{% block main %}{% endblock %}
File "/var/www/iredadmin/libs/../templates/default/sql/user/profile.html", line 176, in block "main"
{% if mail in als.goto.replace(' ', '').split(',') %}
UndefinedError: 'None' has no attribute 'replace'
Any ideas what could be wrong?
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.