1

Topic: Errors after upgrade to iRedAdmin-Pro-SQL-2.2.0

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.3
- Linux/BSD distribution name and version: Ubuntu 14.04.3 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? Yes - iRedAdmin-Pro-SQL-2.2.0
- Related log if you're reporting an issue:
====

Hello Zhang,
i have 2 errors after upgrading to  iRedAdmin-Pro-SQL-2.2.0

1. Error on License Info Page
     - License Info Page show only a blank page with "internal server error"

2. On the user activities page (Sent Mails - Received Mails - Quarantined Mails)
     - No paging possible
     - "Delete selected" does not work
     - The rest of the functions i could not check but I think these are also broken

Regards,
Robert

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Errors after upgrade to iRedAdmin-Pro-SQL-2.2.0

1) Bug in the latest iRedAdmin-Pro. Here's patch to fix it:

--- a/controllers/panel/log.py    Mon Dec 14 23:01:13 2015 +0800
+++ b/controllers/panel/log.py    Tue Dec 15 09:28:31 2015 +0800
@@ -3,9 +3,8 @@
 import web
 import settings
 from libs import __id__, __url_license_terms__
-from libs import iredutils
 from controllers import decorators
-from libs.panel import LOG_EVENTS, log as loglib
+from libs.panel import LOG_EVENTS, log as loglib, get_license_info
 
 session = web.config.get('_session')
 
@@ -115,7 +114,7 @@
 class License(object):
     @decorators.require_global_admin
     def GET(self):
-        info = iredutils.get_license_info()
+        info = get_license_info()
 
         if info[0] is True:
             if version < info[1].get('latestversion'):

If you download it late yesterday, you won't be bothered coz we already fixed it.

2) I will try to reproduce this issue and come back with a fix.

Thanks very much for the feedback, and sorry about this trouble.

3

Re: Errors after upgrade to iRedAdmin-Pro-SQL-2.2.0

RKD318 wrote:

2. On the user activities page (Sent Mails - Received Mails - Quarantined Mails)
     - No paging possible
     - "Delete selected" does not work
     - The rest of the functions i could not check but I think these are also broken

Dear Robert,

I cannot reproduce these issues. Paging on all 3 pages (Sent Mails, Received Mails, Quarantined Mails) work for me, "Delete selected" works too.

4

Re: Errors after upgrade to iRedAdmin-Pro-SQL-2.2.0

Hi Zhang,


Yes. The global page (paging and all other stuff) works!

But not with selected user-email..

please try this url on your side
/iredadmin/activities/received/user/xxx@iredmail.org/page/2


---------------------------------------------------------------------------------
Bugfix for License Info Page works!
Thank you! :-)
---------------------------------------------------------------------------------

Regards,
Robert

5

Re: Errors after upgrade to iRedAdmin-Pro-SQL-2.2.0

RKD318 wrote:

But not with selected user-email..
please try this url on your side
/iredadmin/activities/received/user/xxx@iredmail.org/page/2

OK, i misunderstood your issue. Will come back later.

6

Re: Errors after upgrade to iRedAdmin-Pro-SQL-2.2.0

Hello Zhang,
could you reproduce the issue?

Regards,
Robert

7

Re: Errors after upgrade to iRedAdmin-Pro-SQL-2.2.0

Dear Robert,

I cannot reproduce this issue. Paging, Delete selected, both work for me. Could you please restart Apache and try again?

8

Re: Errors after upgrade to iRedAdmin-Pro-SQL-2.2.0

Hello Zhang,
unfortunately same error after restart. (Apache and complete server restart).

Please send me the latest version again.
I'll install iRedAdmin-Pro-SQL-2.2.0 from scratch.

Regards,
Robert

9

Re: Errors after upgrade to iRedAdmin-Pro-SQL-2.2.0

Hi Zhang,
i made a rollback to 2.1.3.

- requested update email.
- download the new version
- delete the 2.2.0 directory
- new install iRedAdmin-Pro-SQL 2.2.0

and...

No more problems with the new installation.
Everything works as expected :-)

Nevertheless, many thanks for your help

Please close this tread

Best regards,
Robert

And many many thanks for removing cluebringer!