1

Topic: Error 500 iRedAdmin-Pro

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.6.8
- Deployed with iRedMail Easy or the downloadable installer? installer
- Linux/BSD distribution name and version: FreeBSD 13.3
- 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.
====

I start with the RC script

# service iredadmin start
Starting iredadmin.
[uWSGI] getting INI configuration from /usr/local/www/iredadmin/rc_scripts/uwsgi/freebsd.ini
#

But does not start it but calls the start command 

Starting iredadmin.
++ uwsgi --ini /usr/local/www/iredadmin/rc_scripts/uwsgi/freebsd.ini --pidfile /var/run/iredadmin/iredadmin.pid --log-syslog --daemonize /dev/null
[uWSGI] getting INI configuration from /usr/local/www/iredadmin/rc_scripts/uwsgi/freebsd.ini
+ _return=0
+ umask 0022
+ '[' 0 -ne 0 ']'
+ return 0
+ _run_rc_postcmd
+ '[' -n '' ']'
+ return 0
+ return 0

and all RC = 0

57356 S      0:00.25   0 127      3   53380   33056   -  548   0.0  0.4 uwsgi --ini /usr/local/www/iredadmin/rc_scripts/uwsgi/freebsd.ini --pidfile /var/run/iredadmin/iredadmin.pid --log
69769 I      0:00.19 127 127      0   66760   45540   -  548   0.0  0.5 uwsgi --ini /usr/local/www/iredadmin/rc_scripts/uwsgi/freebsd.ini --pidfile /var/run/iredadmin/iredadmin.pid --log
72540 I      0:00.00 127 127      0   53380   33060   -  548   0.0  0.4 uwsgi --ini /usr/local/www/iredadmin/rc_scripts/uwsgi/freebsd.ini --pidfile /var/run/iredadmin/iredadmin.pid --log
74244 I      0:00.00 127 127      0   53380   33060   -  548   0.0  0.4 uwsgi --ini /usr/local/www/iredadmin/rc_scripts/uwsgi/freebsd.ini --pidfile /var/run/iredadmin/iredadmin.pid --log
76037 I      0:00.27 127 127      0   74268   54468   -  548   0.0  0.7 uwsgi --ini /usr/local/www/iredadmin/rc_scripts/uwsgi/freebsd.ini --pidfile /var/run/iredadmin/iredadmin.pid --log
78409 I      0:00.00 127 127      0   53380   33060   -  548   0.0  0.4 uwsgi --ini /usr/local/www/iredadmin/rc_scripts/uwsgi/freebsd.ini --pidfile /var/run/iredadmin/iredadmin.pid --log

However .... the status still says not started

# service iredadmin status
iredadmin is stopped.
#

I start manually too

# python3 iredadmin.py
http://0.0.0.0:8080/

I access the portal from a browser and I only see on ngnix access log

192.168.50.133 - - [18/Mar/2024:00:13:51 +0200] "GET /iredadmin/ HTTP/1.1" 500 32 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:123.0) Gecko/20100101 Firefox/123.0"

Tried to install the iRedAdmin and used the Pro 5.4 as well same results, I do not even see anything being forwarded to the 8080 just a 500 on access logs

Any hint at this point is well recieved

----

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

2

Re: Error 500 iRedAdmin-Pro

aceback (most recent call last):
  File "/usr/local/www/iRedAdmin-Pro-SQL-5.5/web/application.py", line 277, in process
    return self.handle()
  File "/usr/local/www/iRedAdmin-Pro-SQL-5.5/web/application.py", line 268, in handle
    return self._delegate(fn, self.fvars, args)
  File "/usr/local/www/iRedAdmin-Pro-SQL-5.5/web/application.py", line 506, in _delegate
    mod = __import__(mod, None, None, [""])
  File "/usr/local/www/iRedAdmin-Pro-SQL-5.5/controllers/sql/basic.py", line 14, in <module>
    from libs.sqllib import domain as sql_lib_domain
  File "/usr/local/www/iRedAdmin-Pro-SQL-5.5/libs/sqllib/domain.py", line 15, in <module>
    from libs.panel import domain_ownership
  File "/usr/local/www/iRedAdmin-Pro-SQL-5.5/libs/panel/domain_ownership.py", line 5, in <module>
    from dns import resolver
  File "/usr/local/lib/python3.9/site-packages/dns/resolver.py", line 30, in <module>
    import dns._ddr
  File "/usr/local/lib/python3.9/site-packages/dns/_ddr.py", line 12, in <module>
    import dns.nameserver
  File "/usr/local/lib/python3.9/site-packages/dns/nameserver.py", line 5, in <module>
    import dns.asyncquery
  File "/usr/local/lib/python3.9/site-packages/dns/asyncquery.py", line 32, in <module>
    import dns.quic
  File "/usr/local/lib/python3.9/site-packages/dns/quic/__init__.py", line 7, in <module>
    import aioquic.quic.configuration  # type: ignore
  File "/usr/local/lib/python3.9/site-packages/aioquic/quic/configuration.py", line 6, in <module>
    from ..tls import (
  File "/usr/local/lib/python3.9/site-packages/aioquic/tls.py", line 25, in <module>
    import service_identity
  File "/usr/local/lib/python3.9/site-packages/service_identity/__init__.py", line 6, in <module>
    from . import cryptography, hazmat, pyopenssl
  File "/usr/local/lib/python3.9/site-packages/service_identity/cryptography.py", line 11, in <module>
    from cryptography.x509 import (
  File "/usr/local/lib/python3.9/site-packages/cryptography/x509/__init__.py", line 7, in <module>
    from cryptography.x509 import certificate_transparency, verification
  File "/usr/local/lib/python3.9/site-packages/cryptography/x509/certificate_transparency.py", line 11, in <module>
    from cryptography.hazmat.bindings._rust import x509 as rust_x509
ImportError: PyO3 modules do not yet support subinterpreters, see https://github.com/PyO3/pyo3/issues/576


Long short RUST and py-cryptography mess

Will install an older version of py-cryptpgraphy for now

3

Re: Error 500 iRedAdmin-Pro

Endede up jus tinstalling the one from pip3 and works.

I have to admit the support is not very good lately in the forum for the PRO paid feature

4

Re: Error 500 iRedAdmin-Pro

So sorry about the late reply.

We're busy working on the upcoming "iRedMail Enterprise Edition"[1], it combines iRedMail installer + iRedAdmin-Pro + iRedMail Easy (deployment / upgrade) in one single binary program.

[1] https://www.iredmail.org/ee.html

5

Re: Error 500 iRedAdmin-Pro

For reference

pip install -U cryptography==40.0.2

was the fix

https://github.com/iredmail/iRedMail/issues/255

6

Re: Error 500 iRedAdmin-Pro

Thanks for sharing. smile

7

Re: Error 500 iRedAdmin-Pro

By the way, you may want to give iRedMail Enterprise Edition a try with a VM, we're thinking about offering license for existing iRedAdmin-Pro customers with same expiration date for free.