Topic: 1.2.1->1.3 failed upgrade iRedapd after installing Python3 **FIXED**
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.21 OPENLDAP EDITION
- Deployed with iRedMail Easy or the downloadable installer? NO
- Linux/BSD distribution name and version: CENTOS7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx):NGINX
- Manage mail accounts with iRedAdmin-Pro? NO
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Upgrading IredAPD 3.6 to 4.4 complete but has failures.
Before doing so I installed Python3. I now have Python 2.7.5 and Python 3.6.8 installed.
Error message after running "bash upgrade_iredapd.sh" in /root/iRedAPD-4.4/tools.
----------
Failed building wheel for python-ldap
Running setup.py clean for python-ldap
Failed to build python-ldap
Installing collected packages: python-ldap
Running setup.py install for python-ldap ... error
--------------------------------------------------------------------
Now IredAPD.service won't run
---------------
[root@mail tools]# systemctl status iredapd.service
● 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-19 11:42:44 PDT; 11min ago
Process: 7382 ExecStart=/usr/bin/python3 /opt/iredapd/iredapd.py (code=exited, status=1/FAILURE)
Jul 19 11:42:44 *.com python3[7382]: Traceback (most recent call last):
Jul 19 11:42:44 *com python3[7382]: File "/opt/iredapd/iredapd.py", line 20, in <module>
Jul 19 11:42:44 * python3[7382]: from libs import __version__, daemon, utils
Jul 19 11:42:44 * python3[7382]: File "/opt/iRedAPD-4.4/libs/utils.py", line 28, in <module>
Jul 19 11:42:44 * python3[7382]: import ldap
Jul 19 11:42:44 *com python3[7382]: ModuleNotFoundError: No module named 'ldap'
Jul 19 11:42:44 *.com systemd[1]: iredapd.service: control process exited, code=exited status=1
Jul 19 11:42:44 *com systemd[1]: Failed to start iRedAPD (A simple posfix policy server).
Jul 19 11:42:44 *.com systemd[1]: Unit iredapd.service entered failed state.
Jul 19 11:42:44 *com systemd[1]: iredapd.service failed.
--------------------------------------------------------
Since new Iredapd-4.4 requires Python3.5+, I just installed "yum python3"
Should I install development and library packages for Python3 too?
I'm assuming I did not install Python3 on Centos 7.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.