1

Topic: Upgrade issue

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

Saw a previous closed post that sounds similar to the issue I am having. When upgraded iRedAdmin-Pro-SQL-4.4 -> 4.5 I get an internal server error when trying to access iredadmin

Log extract from apache error.log:

SyntaxError: invalid syntax
mod_wsgi (pid=62289): Target WSGI script '/opt/www/iredadmin/iredadmin.py' cannot be loaded as Python module.
mod_wsgi (pid=62289): Exception occurred processing WSGI script '/opt/www/iredadmin/iredadmin.py'.
Traceback (most recent call last):
   File "/opt/www/iredadmin/iredadmin.py", line 8, in <module>
   from libs import iredbase
   File "/opt/www/iredadmin/libs/iredbase.py", line 18, in <module>
     from . import iredutils
   File "/opt/www/iredadmin/libs/iredutils.py", line 92
     def is_auth_email(s) -> bool:
                          ^

Any help appreciated, thank you

----

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

2

Re: Upgrade issue

Your Apache setup for iredadmin application is out of date, seems it runs Python 2. But iRedAdmin-Pro now requires Python-3 (Python-2 is end of life on Jan 1 2020).

Upgrading / Switching your Apache uwsgi module to the Python 3 version should do the trick.

3

Re: Upgrade issue

Thanks for the quick response.

Seem to have solved it using:

sudo apt-get install libapache2-mod-wsgi-py3