1

Topic: webpy.py and iredapd not working

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.3.1
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version: Cento 8
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx):nginx
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
I need help, when I am installing iredmail everything installs well except when it is time to install webpy.py, and therefore iredpad does not work.

pip2 install webpy-0.51
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip2 install --user` instead.
Collecting webpy-0.51
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 407 Proxy Authentication Required',))': /simple/webpy-0-51/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 407 Proxy Authentication Required',))': /simple/webpy-0-51/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 407 Proxy Authentication Required',))': /simple/webpy-0-51/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 407 Proxy Authentication Required',))': /simple/webpy-0-51/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 407 Proxy Authentication Required',))': /simple/webpy-0-51/
  Could not find a version that satisfies the requirement webpy-0.51 (from versions: )
No matching distribution found for webpy-0.51


2- when i restart iredapd and run systemctl status iredapd

Unit iredpapd.service could not be found.
[root@correo misc]# systemctl status iredapd
● iredapd.service - iRedAPD (A simple posfix policy server)
   Loaded: loaded (/usr/lib/systemd/system/iredapd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Sun 2020-07-26 14:16:41 UTC; 27min ago
  Process: 2948 ExecStart=/usr/bin/python3 /opt/iredapd/iredapd.py (code=exited, status=1/FAILURE)

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


I need to solve this problem, to use the iredapd police

----

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

2

Re: webpy.py and iredapd not working

Please run "pip3 install web.py==0.61" and restart iredapd service.