1 (edited by massu0310 2023-05-02 12:17:10)

Topic: Internal Server Error after upgrading to 5.3 (from 5.2)

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.6.1
- Deployed with iRedMail Easy or the downloadable installer? downloadable
- Linux/BSD distribution name and version: Ubuntu 16.04.6 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- 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.
====

Hi, upgraded iRedAdmin-Pro to 5.3 (from 5.2)
And now I cannot access the admin page, just shows "Internal Server Error"


syslog trace shows below:
May  2 10:37:36 ip-172-31-1-83 iredadmin: Traceback (most recent call last):
May  2 10:37:36 ip-172-31-1-83 iredadmin:   File "/opt/www/iRedAdmin-Pro-SQL-5.3/iredadmin.py", line 8, in <module>
May  2 10:37:36 ip-172-31-1-83 iredadmin:     from libs import iredbase
May  2 10:37:36 ip-172-31-1-83 iredadmin:   File "/opt/www/iRedAdmin-Pro-SQL-5.3/libs/iredbase.py", line 5, in <module>
May  2 10:37:36 ip-172-31-1-83 iredadmin:     import web
May  2 10:37:36 ip-172-31-1-83 iredadmin:   File "/opt/www/iRedAdmin-Pro-SQL-5.3/web/__init__.py", line 4, in <module>
May  2 10:37:36 ip-172-31-1-83 iredadmin:     from . import (  # noqa: F401
May  2 10:37:36 ip-172-31-1-83 iredadmin:   File "/opt/www/iRedAdmin-Pro-SQL-5.3/web/db.py", line 757
May  2 10:37:36 ip-172-31-1-83 iredadmin:     f"{round(b - a, 2)} ({self.ctx.dbq_count}): {str(sql_query)}",
May  2 10:37:36 ip-172-31-1-83 iredadmin:                                                                 ^
May  2 10:37:36 ip-172-31-1-83 iredadmin: SyntaxError: invalid syntax
May  2 10:37:36 ip-172-31-1-83 iredadmin: unable to load app 0 (mountpoint='<expunged>|/iredadmin') (callable not found or import error)
May  2 10:37:36 ip-172-31-1-83 iredadmin: --- no python application found, check your startup logs for errors ---
May  2 10:37:36 ip-172-31-1-83 iredadmin: [211.193.16.6] GET /iredadmin 500 104 "-"





Any idea on how to fix this error?

----

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 upgrading to 5.3 (from 5.2)

22.04 LTS (recommend), 20.04 LTS

16.04:
3.5.1-3

22.04:
3.10.6-1

You update iredmail and iredadmin but keep on useing a system which is 2 revisions behind support.

3

Re: Internal Server Error after upgrading to 5.3 (from 5.2)

Cthulhu wrote:

22.04 LTS (recommend), 20.04 LTS

16.04:
3.5.1-3

22.04:
3.10.6-1

You update iredmail and iredadmin but keep on useing a system which is 2 revisions behind support.

Hi Cthulhu,

Yes, I know i'm behind on the system, but I really don't like updating the system itself (sometimes running into total nightmares and can't access the system at all)

Still want to try to get it back up and running without updating my kernel.

4

Re: Internal Server Error after upgrading to 5.3 (from 5.2)

i guess its pyton related, you should at least upgrade that

5

Re: Internal Server Error after upgrading to 5.3 (from 5.2)

Your OS release is too old and doesn't offer Python 3.6 (which is required by latest iRedAdmin-Pro).
The solution is simple: either stay with previous iRedAdmin-Pro release which works on this OS, or upgrade OS to at least Ubuntu 18.04.