1

Topic: iRedAdminPro break after upgrade 5.3 -> 5.4.1

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.6.1 OPENLDAP edition
- Deployed with iRedMail Easy or the downloadable installer? My own installation
- Linux/BSD distribution name and version: Debian
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? Yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hello,

After upgrade from iRedAdminPro 5.3 to iRedAdminPro 5.4.1, the log error message come :

iredadmin: Traceback (most recent call last):
iredadmin:   File "iredadmin.py", line 8, in <module>
iredadmin:     from libs import iredbase
iredadmin:   File "/opt/www/iRedAdmin-Pro-LDAP-5.4.1/libs/iredbase.py", line 5, in <module>
iredadmin:     import web
iredadmin:   File "/opt/www/iRedAdmin-Pro-LDAP-5.4.1/web/__init__.py", line 4, in <module>
iredadmin:     from . import (  # noqa: F401
iredadmin:   File "/opt/www/iRedAdmin-Pro-LDAP-5.4.1/web/db.py", line 757
iredadmin:     f"{round(b - a, 2)} ({self.ctx.dbq_count}): {str(sql_query)}",
iredadmin:                                                                 ^
iredadmin: SyntaxError: invalid syntax
iredadmin: unable to load app 0 (mountpoint='') (callable not found or import error)

On the web side, the message "Internal Server error" is present.

For the moment i rollback to 5.3.

Regards

----

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

2

Re: iRedAdminPro break after upgrade 5.3 -> 5.4.1

B3x wrote:

- Linux/BSD distribution name and version: Debian

Which Debian release are you running? 10 or 11?

3

Re: iRedAdminPro break after upgrade 5.3 -> 5.4.1

ZhangHuangbin wrote:
B3x wrote:

- Linux/BSD distribution name and version: Debian

Which Debian release are you running? 10 or 11?

Hum my mistake, Debian 9. The upgrade to a fresh release is in the pipe.

4

Re: iRedAdminPro break after upgrade 5.3 -> 5.4.1

Better upgrade to Debian 10 or even 11 shortly. 9 was dead after July 6, 2020. Even its LTS support ended on June 30, 2022, which is 6 months ago.

Note: "Debian LTS is not handled by the Debian Security team, but by a separate group of volunteers and companies interested in making it a success." https://wiki.debian.org/LTS