1 (edited by drvicar 2023-04-24 16:23:11)

Topic: iredapd update error[Resolved]

- iRedMail version (check /etc/iredmail-release): 1.2.1
- Deployed with iRedMail Easy or the downloadable installer? downloadable install
- Linux/BSD distribution name and version: centos 8.5
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mysql
- 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.
我在升级1.2.1到1.3时,根据提示,需要升级iredapd,下载了iredapd 5.2 结果报错。
* Detected Linux/BSD distribution: RHEL
* Checking dependent Python modules:
  + [required] wheel
  + [required] sqlalchemy
  + [required] dnspython
  + [required] requests
  + [required] web.py
* Found iRedAPD directory: /opt/iredapd, symbol link of iRedAPD-3.6
* Found iRedAPD config file: /opt/iredapd/settings.py
* Add new SQL tables - if there's any
* Copying new version to /opt/iRedAPD-5.2
* Copy old config file: settings.py (/opt/iredapd/settings.py -> /opt/iRedAPD-5.2/settings.py)
* Copy custom plugins: iRedAPD-3.6/plugins/custom_*.py.
* Set correct owner and permission for /opt/iRedAPD-5.2: root:root, 0500.
* Set permission for iRedAPD config file: /opt/iRedAPD-5.2/settings.py -> 0400.
* Re-create symbol link: /opt/iredapd -> /opt/iRedAPD-5.2
* Copy new SysV init script.
Redirecting to /bin/systemctl restart rsyslog.service
* Replace py2 by py3 in cron jobs.
* Restarting iRedAPD service.
iredapd is already stopped.
Starting iredapd ...
Traceback (most recent call last):
  File "/opt/iredapd/iredapd.py", line 104, in <module>
  File "/opt/iredapd/iredapd.py", line 48, in main
  File "/opt/iRedAPD-5.2/libs/channel.py", line 31, in __init__
  File "/usr/lib64/python3.6/asyncore.py", line 329, in bind
    return self.socket.bind(addr)
OSError: [Errno 98] Address already in use
* Upgrade completed.

我的python3版本是[root@mx ~]# python3 --version
Python 3.6.8
[root@mx ~]# python2 --version
Python 2.7.17


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


Re: iredapd update error[Resolved]

Address already in use, so just restart whole server and check if it fixes itself


Re: iredapd update error[Resolved]

Cthulhu wrote:

Address already in use, so just restart whole server and check if it fixes itself

OK,I'll reboot the machine .

I'm just worried that it won't work after rebooting 。


Re: iredapd update error[Resolved]

do it。
1、stop the iredapd in the main.cf then restart the postfix
2、ps -aux | grep iredapd then kill
3、upgrade the iredapd
4、start the iredapd in the main.cf the restart the postfix
that's all.

I'm not familiar with Python, so when I get an error, I always think there's something wrong with the Python module.

Thans again.


Re: iredapd update error[Resolved]

Is iRedAPD working fine now?
升级 iredapd 的问题解决了吗?