1

Topic: internal server error after upgrade to 2.2.0

======== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.3
- Linux/BSD distribution name and version: Centos 6.6
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx):Apache
- Manage mail accounts with iRedAdmin-Pro? Yes
- Related log if you're reporting an issue:
====
Hi,
I have internal server error after upgrade 2.1.3 to 2.2.0
For example on the page:
/iredadmin/system/license
/iredadmin/profile/domain/general/domain.com

ssl_error_log is in an attachment.
Help me please.
Thanks,
Sergey

----

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 after upgrade to 2.2.0

No attachment in your post?

*) Did you upgrade iRedMail to iRedMail-0.9.3? and iRedAPD-1.7.0?
*) Please check your iRedAdmin-Pro config file, does it contain parameters which start with 'iredapd_db_'? like this:

iredapd_enabled = True
iredapd_db_host = '127.0.0.1'
iredapd_db_port = '3306'
iredapd_db_name = 'iredapd'
iredapd_db_user = 'iredapd'
iredapd_db_password = 'password'

3

Re: internal server error after upgrade to 2.2.0

*) Did you upgrade iRedMail to iRedMail-0.9.3? and iRedAPD-1.7.0?  - yes
*) Please check your iRedAdmin-Pro config file, does it contain parameters which start with 'iredapd_db_'? like this:
iredapd_enabled = True
iredapd_db_host = '127.0.0.1'
iredapd_db_port = '3306'
iredapd_db_name = 'iredapd'
iredapd_db_user = 'iredapd'
iredapd_db_password = 'password'
- yes

For example on the page:
/iredadmin/system/license
/iredadmin/profile/domain/general/domain.com
ssl_error_log:

[error] [client ] Traceback (most recent call last):
[error] [client ]   File "/usr/lib/python2.6/site-packages/web/application.py", line 239, in process
[error] [client ]     return self.handle()
[error] [client ]   File "/usr/lib/python2.6/site-packages/web/application.py", line 230, in handle
[error] [client ]     return self._delegate(fn, self.fvars, args)
[error] [client ]   File "/usr/lib/python2.6/site-packages/web/application.py", line 420, in _delegate
[error] [client ]     return handle_class(cls)
[error] [client ]   File "/usr/lib/python2.6/site-packages/web/application.py", line 396, in handle_class
[error] [client ]     return tocall(*args)
[error] [client ]   File "/var/www/iredadmin/controllers/decorators.py", line 37, in proxyfunc
[error] [client ]     return func(self, *args, **kw)
[error] [client ]   File "/var/www/iredadmin/controllers/panel/log.py", line 118, in GET
[error] [client ]     info = iredutils.get_license_info()
[error] [client ] AttributeError: 'module' object has no attribute 'get_license_info'
[error] [client ]
[error] [client ] Traceback (most recent call last):
[error] [client ]   File "/usr/lib/python2.6/site-packages/web/application.py", line 239, in process
[error] [client ]     return self.handle()
[error] [client ]   File "/usr/lib/python2.6/site-packages/web/application.py", line 230, in handle
[error] [client ]     return self._delegate(fn, self.fvars, args)
[error] [client ]   File "/usr/lib/python2.6/site-packages/web/application.py", line 420, in _delegate
[error] [client ]     return handle_class(cls)
[error] [client ]   File "/usr/lib/python2.6/site-packages/web/application.py", line 396, in handle_class
[error] [client ]     return tocall(*args)
[error] [client ]   File "/var/www/iredadmin/libs/sqllib/decorators.py", line 26, in proxyfunc
[error] [client ]     return func(*args, **kw)
[error] [client ]   File "/var/www/iredadmin/controllers/sql/domain.py", line 168, in GET
[error] [client ]     qr = lib_greylist.get_greylist_setting_and_whitelists(account='@' + self.domain)
[error] [client ]   File "/var/www/iredadmin/libs/iredapd/greylist.py", line 9, in get_greylist_setting_and_whitelists
[error] [client ]     gl = Greylisting()
[error] [client ]   File "/var/www/iredadmin/libs/iredapd/__init__.py", line 44, in __init__
[error] [client ]     self.db.supports_multiple_insert = True
[error] [client ] AttributeError: 'Greylisting' object has no attribute 'db'

4

Re: internal server error after upgrade to 2.2.0

Looks like you upgraded iRedAdmin-Pro before iRedMail/iRedAPD. Please follow steps below to fix it:

*) In iRedAdmin-Pro config file, set "policyd_enabled = False".
*) In iRedAdmin-Pro config file, make sure you have below settings:

iredapd_enabled = True
iredapd_db_host = '127.0.0.1'
iredapd_db_port = '3306'
iredapd_db_name = 'iredapd'
iredapd_db_user = 'iredapd'
iredapd_db_password = 'password'

Please make sure you have correct SQL username and password here. Then restart Apache service. It should work as expected.

5

Re: internal server error after upgrade to 2.2.0

Thank you!
I have access to the page:
/iredadmin/profile/domain/general/domain.com
but I don't have access to the page
/iredadmin/system/license
ssl_error_log:

File does not exist: /var/www/html/favicon.ico, referer: https://mx.ingenico.ru/iredadmin/login
Traceback (most recent call last):
   File "/usr/lib/python2.6/site-packages/web/application.py", line 239, in process
    return self.handle()
   File "/usr/lib/python2.6/site-packages/web/application.py", line 230, in handle
    return self._delegate(fn, self.fvars, args)
   File "/usr/lib/python2.6/site-packages/web/application.py", line 420, in _delegate
    return handle_class(cls)
   File "/usr/lib/python2.6/site-packages/web/application.py", line 396, in handle_class
    return tocall(*args)
   File "/var/www/iredadmin/controllers/decorators.py", line 37, in proxyfunc
     return func(self, *args, **kw)
   File "/var/www/iredadmin/controllers/panel/log.py", line 118, in GET
     info = iredutils.get_license_info()
AttributeError: 'module' object has no attribute 'get_license_info'

6

Re: internal server error after upgrade to 2.2.0

A known bug in iRedAdmin-Pro-SQL-2.2.0. I sent you an email with download link of patched version moment ago, please upgrade it by following our tutorial here:
http://www.iredmail.org/docs/migrate.or … admin.html

7

Re: internal server error after upgrade to 2.2.0

Got the same error, I just upgraded from 2.1.3 to 2.2.0 today and I can't reach some URL (https://mail.uman-it.fr/iredadmin/system/license)

Today is also the day where O.9.4 was released, so I'm between 0.9.3 and 0.9.4.
I follow 0.9.3 instruction but I have last iredapd (1.8) and last roundcube (1.1.4) installed.



ZhangHuangbin wrote:

A known bug in iRedAdmin-Pro-SQL-2.2.0. I sent you an email with download link of patched version moment ago, please upgrade it by following our tutorial here:
http://www.iredmail.org/docs/migrate.or … admin.html

8

Re: internal server error after upgrade to 2.2.0

Resolved.

I found URL to ask upgrade link in source code, call it through curl (not available through web, because of error on license page) then I upgraded to 2.3.0

Everything is ok now.

Thanks