1 (edited by mano 2021-09-26 20:27:00)

Topic: iredAPD5.0.3 error (connect to 127.0.0.1:7777: Connection refused)

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Upgraded from 1.3.2  -> 1.4.0  -> 1.4.1 -> 1.4.2 today manually.  ***(was on version 2.6 of Python)
Updated to Python3 version 3.9.7 as well as updating  Ubuntu Linux to latest patch on 18.04 LTS, MySQL, Apache with IredAdmin-Pro

Was not receiving any emails, checked mail.log and found 127.0.0.1:7777 Refused error.
Removed  all config referring to check_policy_service inet:127.0.0.1:7777 in /etc/postfix/main.cf

receiving emails now.

iredAPD service is not running and  when trying to restart:

systemctl status iredapd.service
● 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 Sun 2021-09-26 12:42:51 BST; 3min 50s ago
  Process: 1842 ExecStart=/usr/bin/python3 /opt/iredapd/iredapd.py (code=exited, status=1/FAILURE)

systemd[1]: Starting iRedAPD (A simple posfix policy server)...
python3[1842]: Traceback (most recent call last):
python3[1842]:   File "/opt/iredapd/iredapd.py", line 20, in <module>
python3[1842]:     from libs import __version__, daemon, utils
python3[1842]:   File "/opt/iRedAPD-5.0.3/libs/utils.py", line 19, in <module>
python3[1842]:     from web import sqlquote
python3[1842]: ModuleNotFoundError: No module named 'web'
systemd[1]: iredapd.service: Control process exited, code=exited status=1
systemd[1]: iredapd.service: Failed with result 'exit-code'.
systemd[1]: Failed to start iRedAPD (A simple posfix policy server).

iredapd.log empty.

tried also ( pip install web.py==0.51) still above error..

Please advise.

----

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

2

Re: iredAPD5.0.3 error (connect to 127.0.0.1:7777: Connection refused)

Please install web.py with command "pip3" instead of "pip":

pip3 install -U web.py

3

Re: iredAPD5.0.3 error (connect to 127.0.0.1:7777: Connection refused)

ZhangHuangbin wrote:

Please install web.py with command "pip3" instead of "pip":

pip3 install -U web.py

Thanks, did a complete uninstall and then reinstalled as above. Same issue. Then did a server reboot and all was fine. May be the server needed a kick.

All good now. Thanks