1 (edited by manunauta 2012-10-14 18:27:01)

Topic: Internal server error

==== Required information ====
- iRedMail version: iRedMail-0.8.3
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: Ubuntu Server 12.04
- Related log if you're reporting an issue: /var/log/apache2/error.log


I've just installed the latest version of iRedMail (0.8.3) and iRedAdmin-Pro-MySQL (1.5.1) in a clean installation of Ubuntu 12.04.
When I try edit a domain profile, I get this error:
'internal server error'

and Apache error log shows these lines:

[Sun Oct 14 12:10:17 2012] [error] [client] Traceback (most recent call last):
[Sun Oct 14 12:10:17 2012] [error] [client]   File "/usr/lib/pymodules/python2.7/web/application.py", line 242, in process
[Sun Oct 14 12:10:17 2012] [error] [client]     return self.handle()
[Sun Oct 14 12:10:17 2012] [error] [client]   File "/usr/lib/pymodules/python2.7/web/application.py", line 233, in handle
[Sun Oct 14 12:10:17 2012] [error] [client]     return self._delegate(fn, self.fvars, args)
[Sun Oct 14 12:10:17 2012] [error] [client]   File "/usr/lib/pymodules/python2.7/web/application.py", line 415, in _delegate
[Sun Oct 14 12:10:17 2012] [error] [client]     return handle_class(cls)
[Sun Oct 14 12:10:17 2012] [error] [client]   File "/usr/lib/pymodules/python2.7/web/application.py", line 390, in handle_class
[Sun Oct 14 12:10:17 2012] [error] [client]     return tocall(*args)
[Sun Oct 14 12:10:17 2012] [error] [client]   File "/usr/share/apache2/iredadmin/controllers/decorators.py", line 11, in proxyfunc
[Sun Oct 14 12:10:17 2012] [error] [client]     return func(self, *args, **kw)
[Sun Oct 14 12:10:17 2012] [error] [client]   File "/usr/share/apache2/iredadmin/controllers/mysql/domain.py", line 142, in GET
[Sun Oct 14 12:10:17 2012] [error] [client]     throttleLib = throttle.Throttle()
[Sun Oct 14 12:10:17 2012] [error] [client] TypeError: __init__() should return None
[Sun Oct 14 12:10:17 2012] [error] [client]

How can I solve this problem?
Thanks in advance.

PS: The same problem when I try add a new domain


Re: Internal server error

I cannot reproduce this issue. Could you please try below step to help troubleshoot:

- Open iRedAdmin-Pro config file, /usr/share/apache2/iredadmin/settings.ini.
- Update parameter "webmaster =" with your email address. For example:

webmaster = user@domain.com

- Update parameter "mail_error_to_webmaster =" to True:

mail_error_to_webmaster = True

- Restart Apache web server.
- Re-perform the operations which raises "internal server error". iRedAdmin will mail you a HTML file with detailed message about this error.
- Forward this email (with HTML file) to "support @iredmail.org". I will check it and let you know why it happened.

You can update "mail_error_to_webmaster =" to False after you got the HTML file, and restart Apache.


Re: Internal server error

I cannot find the root cause with this HTML file. sorry.
i guess you don't have correct Policyd settings in your iRedAdmin config file, settings.ini. Could you verify them again?

Policyd settings in settings.ini looks like below:

enabled = True
host =
port = 3306
db = policyd
user = policyd
passwd = passwd

Please make sure you have correct SQL related settings. e.g. username, password.