1

Topic: FreeBSD 13 iredadmin gets error

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

I just installed did a fresh install on a BSD server, wanting to migrate from a Linux server. When I go to iredadmin web management I just get Internal Server Error in the browser. Roundcube Mail works perfectly, what log do I need to look at in order to diagnosis the issue? Any help would be appreciated.

----

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

2

Re: FreeBSD 13 iredadmin gets error

Please try steps below to reproduce the issue, then copy the full console output here for troubleshooting:

- Start iredadmin manually on port 8080:

cd /usr/local/www/iredadmin/
python3 iredadmin.py

It will listen on port 8080 by default, without SSL.

- Visit port 8080 with a web browser, reproduce the error again.

3

Re: FreeBSD 13 iredadmin gets error

ZhangHuangbin wrote:

Please try steps below to reproduce the issue, then copy the full console output here for troubleshooting:

- Start iredadmin manually on port 8080:

cd /usr/local/www/iredadmin/
python3 iredadmin.py

It will listen on port 8080 by default, without SSL.

- Visit port 8080 with a web browser, reproduce the error again.

As soon as I ran iredadmin.py this is was the output:

Traceback (most recent call last):
  File "iredadmin.py", line 8, in <module>
    from libs import iredbase
  File "/usr/local/www/iRedAdmin-1.5/libs/iredbase.py", line 6, in <module>
    from jinja2 import Environment, FileSystemLoader
ModuleNotFoundError: No module named 'jinja2'

4

Re: FreeBSD 13 iredadmin gets error

otto_presser wrote:
ZhangHuangbin wrote:

Please try steps below to reproduce the issue, then copy the full console output here for troubleshooting:

- Start iredadmin manually on port 8080:

cd /usr/local/www/iredadmin/
python3 iredadmin.py

It will listen on port 8080 by default, without SSL.

- Visit port 8080 with a web browser, reproduce the error again.

As soon as I ran iredadmin.py this is was the output:

Traceback (most recent call last):
  File "iredadmin.py", line 8, in <module>
    from libs import iredbase
  File "/usr/local/www/iRedAdmin-1.5/libs/iredbase.py", line 6, in <module>
    from jinja2 import Environment, FileSystemLoader
ModuleNotFoundError: No module named 'jinja2'

Zhang please disregard now, I installed py38-pip and using pip installed the missing modules jinja2 and cheroot. it works perfectly now.

Thanks for helping me point in the right direction.