1

Topic: Internal Server Error on iRedAdmin and Bad Gateway for netdata

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): new installation from git
- Deployed with iRedMail Easy or the downloadable installer? git and shell installer
- Linux/BSD distribution name and version: debian buster on a raspberry (for testing)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- Web server (Apache or Nginx): Naginx
- Manage mail accounts with iRedAdmin-Pro? cound not access iRedAdmin yet
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue. - no severe log files found
====

I installed iRedMail via shell script on debian - raspberry. I am also confused with the setup using letsencrypt. My mailserver is runing behind a reverse-proxy server (also nginx) that is handling the letsencrypt certificates.

I am able to access Roundcube without any issues with some cron E-Mails listed.
But I cannot open /iredmail ("internal server error" as text) or /netdata (502 Bad Gateway). Restarting services like uwsgi did not help and no uwsgi log available.
The only error I recognized is in /nginx/error.log: connection refused on port 19999
Connection refused is also showing up while checking via "nc -zvw3 ...... 19999"
This happens both via server IP and external mail.xxxx.de subdomain

I hope you can help. Right now I want to use a raspberry just for testing and setup, but I would like to move over to a NUC sooner or later

----

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 on iRedAdmin and Bad Gateway for netdata

restart “iredadmin” and “netdata” services then try again.

How much RAM does your RPi have?

3

Re: Internal Server Error on iRedAdmin and Bad Gateway for netdata

ZhangHuangbin wrote:

restart “iredadmin” and “netdata” services then try again.

How much RAM does your RPi have?

Raspberry is with just 1GB. iredapd is the service I did not check. Attached you will find the systemctl and journalctl extract. Does this really make an issue? So I'll need to wait and test again on a NUC VM but with 16GB.

systemctl:
● iredapd.service - iRedAPD (A simple posfix policy server)
   Loaded: loaded (/lib/systemd/system/iredapd.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Tue 2020-03-31 14:05:34 CEST; 9s ago
  Process: 15483 ExecStart=/usr/bin/python2 /opt/iredapd/iredapd.py (code=exited, status=1/FAILURE)

Mär 31 14:05:33 maxmail.xxx.de systemd[1]: Starting iRedAPD (A simple posfix policy server)...
Mär 31 14:05:34 maxmail.xxx.de python2[15483]: Traceback (most recent call last):
Mär 31 14:05:34 maxmail.xxx python2[15483]:   File "/opt/iredapd/iredapd.py", line 20, in <module>
Mär 31 14:05:34 maxmail.xxx.de python2[15483]:     from libs import __version__, daemon, utils
Mär 31 14:05:34 maxmail.xxx.de python2[15483]:   File "/opt/iRedAPD-3.5/libs/utils.py", line 17, in <module>
Mär 31 14:05:34 maxmail.xxx.de python2[15483]:     from web import sqlquote
Mär 31 14:05:34 maxmail.xxx.de python2[15483]: ImportError: No module named web
Mär 31 14:05:34 maxmail.xxx.de systemd[1]: iredapd.service: Control process exited, code=exited, status=1/FAILURE
Mär 31 14:05:34 maxmail.xxx.de systemd[1]: iredapd.service: Failed with result 'exit-code'.
Mär 31 14:05:34 maxmail.xxx.de systemd[1]: Failed to start iRedAPD (A simple posfix policy server).

journalctl:
-- The job identifier is 3822.
Mär 31 14:05:34 maxmail.xxx.de python2[15483]: Traceback (most recent call last):
Mär 31 14:05:34 maxmail.xxx.de python2[15483]:   File "/opt/iredapd/iredapd.py", line 20, in <module>
Mär 31 14:05:34 maxmail.xxx.de python2[15483]:     from libs import __version__, daemon, utils
Mär 31 14:05:34 maxmail.xxx.de python2[15483]:   File "/opt/iRedAPD-3.5/libs/utils.py", line 17, in <module>
Mär 31 14:05:34 maxmail.xxx.de python2[15483]:     from web import sqlquote
Mär 31 14:05:34 maxmail.xxx.de python2[15483]: ImportError: No module named web
Mär 31 14:05:34 maxmail.xxx.de systemd[1]: iredapd.service: Control process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- An ExecStart= process belonging to unit iredapd.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 1.
Mär 31 14:05:34 maxmail.xxx.de systemd[1]: iredapd.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit iredapd.service has entered the 'failed' state with result 'exit-code'.
Mär 31 14:05:34 maxmail.xxx.de systemd[1]: Failed to start iRedAPD (A simple posfix policy server).
-- Subject: A start job for unit iredapd.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit iredapd.service has finished with a failure.
--
-- The job identifier is 3822 and the job result is failed.
Mär 31 14:05:34 maxmail.xxx.de sudo[15453]: pam_unix(sudo:session): session closed for user root
Mär 31 14:05:39 maxmail.xxx.de dhcpcd[520]: eth0: Router Advertisement from fe80::3a10:d5ff:feb8:646c
Mär 31 14:05:43 maxmail.xxx.de sudo[15504]:       pi : TTY=pts/0 ; PWD=/home/pi ; USER=root ; COMMAND=/bin/systemctl status iredapd.service
Mär 31 14:05:43 maxmail.xxx.de sudo[15504]: pam_unix(sudo:session): session opened for user root by pi(uid=0)
Mär 31 14:05:43 maxmail.xxx.de sudo[15504]: pam_unix(sudo:session): session closed for user root
Mär 31 14:05:50 maxmail.xxx.de dhcpcd[520]: eth0: Router Advertisement from fe80::3a10:d5ff:feb8:646c
Mär 31 14:07:07 maxmail.xxx.de sudo[15535]:       pi : TTY=pts/0 ; PWD=/home/pi ; USER=root ; COMMAND=/bin/journalctl -xe
Mär 31 14:07:07 maxmail.xxx.de sudo[15535]: pam_unix(sudo:session): session opened for user root by pi(uid=0)

4

Re: Internal Server Error on iRedAdmin and Bad Gateway for netdata

mkriegl wrote:

Raspberry is with just 1GB.

1GB is not enough.
With ClamAV enabled, at least 2GB is required. 4GB is recommended.