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
====

Hi,

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

How can I solve this problem?
Thanks in advance.

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

----

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

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.

3

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:

[policyd]
enabled = True
host = 127.0.0.1
port = 3306
db = policyd
user = policyd
passwd = passwd

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