1 (edited by Danelskold 2020-10-26 20:36:25)

Topic: IredMail-PRO 4.4: 500 error

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version 1.3.1 MARIADB edition
- Deployed with downloadable installer
- Linux/BSD distribution name and version:  Debian 10
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): nginx
- Manage mail accounts with iRedAdmin-Pro: yes

When i try to open https://<my-mail-srv-ip>/iredmail, i have 500 error. In /var/log/messages i found msg, that jinja2 python module not installed. After jinja2 installation, i see login screen in https://<my-mail-srv-ip>/iredmail, and input my admin login and password and get 500 message again.

Oct 26 17:35:58 iredmail iredadmin: Traceback (most recent call last):
Oct 26 17:35:58 iredmail iredadmin:   File "./iredadmin.py", line 8, in <module>
Oct 26 17:35:58 iredmail iredadmin:     from libs import iredbase
Oct 26 17:35:58 iredmail iredadmin:   File "/opt/www/iRedAdmin-Pro-SQL-4.4/libs/iredbase.py", line 18, in <module>
Oct 26 17:35:58 iredmail iredadmin:     from . import iredutils
Oct 26 17:35:58 iredmail iredadmin:   File "/opt/www/iRedAdmin-Pro-SQL-4.4/libs/iredutils.py", line 20, in <module>
Oct 26 17:35:58 iredmail iredadmin:     from libs import regxes, l10n
Oct 26 17:35:58 iredmail iredadmin: ImportError: Interpreter change detected - this module can only be loaded into one interpreter per process.
Oct 26 17:35:58 iredmail iredadmin: unable to load app 1 (mountpoint='192.168.0.243|/iredadmin') (callable not found or import error)
Oct 26 17:35:58 iredmail iredadmin: Exception ignored in: <function ThreadedDict.__del__ at 0x7f01ac5397b8>
Oct 26 17:35:58 iredmail iredadmin: Traceback (most recent call last):
Oct 26 17:35:58 iredmail iredadmin:   File "/usr/local/lib/python3.7/dist-packages/web/utils.py", line 1313, in __del__
Oct 26 17:35:58 iredmail iredadmin:   File "/usr/local/lib/python3.7/dist-packages/web/utils.py", line 1316, in __hash__
Oct 26 17:35:58 iredmail iredadmin: NameError: name 'id' is not defined
Oct 26 17:35:58 iredmail iredadmin: [192.168.0.2] POST /iredadmin/login 500 84 "https://192.168.0.243/iredadmin"

----

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

2

Re: IredMail-PRO 4.4: 500 error

Fixed by upgrading Python(-3) module "web.py" from 0.51 to the latest 0.61:

pip3 install -U web.py

3

Re: IredMail-PRO 4.4: 500 error

Work, but!
https://192.168.0.243/iredadmin/profile … domain> get an 500 error.

Oct 27 00:17:45 iredmail iredadmin: Traceback (most recent call last):
Oct 27 00:17:45 iredmail iredadmin:   File "./iredadmin.py", line 8, in <module>
Oct 27 00:17:45 iredmail iredadmin:     from libs import iredbase
Oct 27 00:17:45 iredmail iredadmin:   File "/opt/www/iRedAdmin-Pro-SQL-4.4/libs/iredbase.py", line 18, in <module>
Oct 27 00:17:45 iredmail iredadmin:     from . import iredutils
Oct 27 00:17:45 iredmail iredadmin:   File "/opt/www/iRedAdmin-Pro-SQL-4.4/libs/iredutils.py", line 20, in <module>
Oct 27 00:17:45 iredmail iredadmin:     from libs import regxes, l10n
Oct 27 00:17:45 iredmail iredadmin: ImportError: Interpreter change detected - this module can only be loaded into one interpreter per process.
Oct 27 00:17:45 iredmail iredadmin: unable to load app 1 (mountpoint='192.168.0.243|/iredadmin') (callable not found or import error)
Oct 27 00:17:45 iredmail iredadmin: Exception ignored in: <function ThreadedDict.__del__ at 0x7f0de7c43158>
Oct 27 00:17:45 iredmail iredadmin: Traceback (most recent call last):
Oct 27 00:17:45 iredmail iredadmin:   File "/usr/local/lib/python3.7/dist-packages/web/utils.py", line 1279, in __del__
Oct 27 00:17:45 iredmail iredadmin:   File "/usr/local/lib/python3.7/dist-packages/web/utils.py", line 1282, in __hash__
Oct 27 00:17:45 iredmail iredadmin: NameError: name 'id' is not defined
Oct 27 00:17:46 iredmail iredadmin: [192.168.0.2] GET /iredadmin/domains 200 29765 "https://192.168.0.243/iredadmin/create/alias/it66.info"
Oct 27 00:17:53 iredmail iredadmin: Traceback (most recent call last):
Oct 27 00:17:53 iredmail iredadmin:   File "./iredadmin.py", line 8, in <module>
Oct 27 00:17:53 iredmail iredadmin:     from libs import iredbase
Oct 27 00:17:53 iredmail iredadmin:   File "/opt/www/iRedAdmin-Pro-SQL-4.4/libs/iredbase.py", line 18, in <module>
Oct 27 00:17:53 iredmail iredadmin:     from . import iredutils
Oct 27 00:17:53 iredmail iredadmin:   File "/opt/www/iRedAdmin-Pro-SQL-4.4/libs/iredutils.py", line 20, in <module>
Oct 27 00:17:53 iredmail iredadmin:     from libs import regxes, l10n
Oct 27 00:17:53 iredmail iredadmin: ImportError: Interpreter change detected - this module can only be loaded into one interpreter per process.
Oct 27 00:17:53 iredmail iredadmin: unable to load app 1 (mountpoint='192.168.0.243|/iredadmin') (callable not found or import error)
Oct 27 00:17:53 iredmail iredadmin: Exception ignored in: <function ThreadedDict.__del__ at 0x7f0de795ed08>
Oct 27 00:17:53 iredmail iredadmin: Traceback (most recent call last):
Oct 27 00:17:53 iredmail iredadmin:   File "/usr/local/lib/python3.7/dist-packages/web/utils.py", line 1279, in __del__
Oct 27 00:17:53 iredmail iredadmin:   File "/usr/local/lib/python3.7/dist-packages/web/utils.py", line 1282, in __hash__
Oct 27 00:17:53 iredmail iredadmin: NameError: name 'id' is not defined
Oct 27 00:17:53 iredmail iredadmin: [192.168.0.2] GET /iredadmin/profile/domain/general/it66.info 500 242 "https://192.168.0.243/iredadmin/domains"
Oct 27 00:18:01 iredmail CRON[17841]: (root) CMD (/bin/bash /usr/local/bin/fail2ban_banned_db unban_db)
Oct 27 00:18:01 iredmail CRON[17842]: (amavis) CMD (test -e /usr/sbin/amavisd-new-cronjob && /usr/sbin/amavisd-new-cronjob sa-sync)

4

Re: IredMail-PRO 4.4: 500 error

Danelskold wrote:

Oct 27 00:17:53 iredmail iredadmin: NameError: name 'id' is not defined

Name "id" is always a Python built-in function, this really confuses me. Maybe caused by Cython - the tool we used to pack iRedAdmin-Pro trial license.

What i can promise is you won't have this error with a purchased iRedAdmin-Pro license.