1

Topic: upgrade iRedAPD error

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.7.4
- Deployed with iRedMail Easy or the downloadable installer? installer
- Linux/BSD distribution name and version: Centos 10
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MYSQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? Y
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hi there,

i try upgrade iRedMail from 1.7.4 to 1.8.0, but have an error at first step - upgrade iRedAPD.

Below is the error, Please help. Thanks!!


[root@mail tools]# bash upgrade_iredapd.sh
* Detected Linux/BSD distribution: RHEL
* Checking dependent Python modules:
  + [required] wheel
  + [required] sqlalchemy
  + [required] dnspython
  + [required] requests
Install packages: python3-python-multipart python3-wheel
Last metadata expiration check: 2:36:59 ago on Wed May 13 13:10:05 2026.
No match for argument: python3-wheel
Error: Unable to find a match: python3-wheel
* Found iRedAPD directory: /opt/iredapd, symbol link of iRedAPD-6.1
* Found iRedAPD config file: /opt/iredapd/settings.py
* Add new SQL tables - if there's any
* Copying new version to /opt/iRedAPD-6.1
* Copy old config file: settings.py (/opt/iredapd/settings.py -> /opt/iRedAPD-6.1/settings.py)
cp: '/opt/iredapd/settings.py' and '/opt/iRedAPD-6.1/settings.py' are the same file
* Copy custom plugins: iRedAPD-6.1/plugins/custom_*.py.
* Set correct owner and permission for /opt/iRedAPD-6.1: root:root, 0500.
* Set permission for iRedAPD config file: /opt/iRedAPD-6.1/settings.py -> 0400.
* Re-create symbol link: /opt/iredapd -> /opt/iRedAPD-6.1
* Remove existing systemd service files.
* Copy systemd service file: /opt/iredapd/rc_scripts/iredapd.service -> /lib/systemd/system/iredapd.service.
Created symlink '/etc/systemd/system/multi-user.target.wants/iredapd.service' -> '/usr/lib/systemd/system/iredapd.service'.
Redirecting to /bin/systemctl restart rsyslog.service
* Replace py2 by py3 in cron jobs.
* Restarting iRedAPD service.
Redirecting to /bin/systemctl restart iredapd.service
Job for iredapd.service failed because the control process exited with error code.
See "systemctl status iredapd.service" and "journalctl -xeu iredapd.service" for details.
Failed, please restart iRedAPD service manually.
Traceback (most recent call last):
  File "/opt/iredapd/tools/fix_throttle_priority.py", line 22, in <module>
    import web
  File "/opt/iredapd/tools/../web/__init__.py", line 4, in <module>
    from . import (  # noqa: F401
  File "/opt/iredapd/tools/../web/debugerror.py", line 19, in <module>
    from . import webapi as web
  File "/opt/iredapd/tools/../web/webapi.py", line 12, in <module>
    import multipart
ModuleNotFoundError: No module named 'multipart'
* Upgrade completed.

< NOTE > If iRedAPD doesn't work as expected, please post your issue in our
< NOTE > online support forum: http://www.iredmail.org/forum/
< NOTE >
< NOTE > * Turn on debug mode: http://www.iredmail.org/docs/debug.iredapd.html
< NOTE > * iRedAPD log file is /var/log/iredapd/iredapd.log.

[root@mail tools]#

----

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

2

Re: upgrade iRedAPD error

Which iRedAPD release did you try? Please try the latest version 6.1:
https://github.com/iredmail/iRedAPD/tags

3

Re: upgrade iRedAPD error

My mistake, please install packages manually before upgrading iRedAPD-6.1:

yum install -y python3-pip-wheel python3-python-multipart

Will fix this shortly.

4

Re: upgrade iRedAPD error

Thank you so much for the iRedAPD problem. It FIXED.

But net step mlmmjadmin have another issue >_<

[root@mail ~]# cd mlmmjadmin-3.6.2/tools/
[root@mail tools]# bash upgrade_mlmmjadmin.sh
Unsupported Linux/BSD distribution or release, abort.
[root@mail tools]#

[root@mail tools]# cat /etc/centos-release
CentOS Stream release 10 (Coughlan)
[root@mail tools]#