Topic: Update iRedAPD-2.7 - service failed
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.9 MARIADB edition
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: Ubuntu 18.04 LTS
- 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.
====
After receiving the mail informing us that iRedAPD-2.7 had been released, I followed this link (https://forum.iredmail.org/topic15488-i … eased.html) and then followed these (https://docs.iredmail.org/upgrade.iredapd.html) instructions, but unfortunately received the following:
--------------------------------------
root@mail:~/iRedAPD-2.7/tools# bash upgrade_iredapd.sh
* Detected Linux/BSD distribution: UBUNTU
* Found iRedAPD directory: /opt/iredapd, symbol link of iRedAPD-2.4
* Found iRedAPD config file: /opt/iredapd/settings.py
* Add new SQL tables - if there's any
* Checking dependent Python modules:
+ [required] python-sqlalchemy
+ [required] dnspython
* Create directory /opt/iRedAPD-2.7.
* Copying new version to /opt/iRedAPD-2.7
* Copy old config file: settings.py (/opt/iredapd/settings.py -> /opt/iRedAPD-2.7/settings.py)
* Copy custom plugins: iRedAPD-2.4/plugins/custom_*.py.
* Set correct owner and permission for /opt/iRedAPD-2.7: root:root, 0500.
* Set permission for iRedAPD config file: /opt/iRedAPD-2.7/settings.py -> 0400.
* Re-create symbol link: /opt/iredapd -> /opt/iRedAPD-2.7
* 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 → /lib/systemd/system/iredapd.service.
* Remove deprecated plugins.
* Rename old plugins.
* Remove all *.pyc files.
* Restarting iRedAPD service.
Job for iredapd.service failed because the control process exited with error code.
See "systemctl status iredapd.service" and "journalctl -xe" for details.
Failed, please restart iRedAPD service manually.
* 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:~/iRedAPD-2.7/tools#
--------------------------------------
Followed by this:
--------------------------------------
root@mail:~# 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 Thu 2019-04-04 08:45:32 BST; 19min ago
Process: 2995 ExecStart=/usr/bin/python2 /opt/iredapd/iredapd.py (code=exited, status=1/FAILURE)
Apr 04 08:45:32 mail python2[2995]: iredapd INFO: Loading plugin (priority: 40): amavisd_wblist
Apr 04 08:45:32 mail python2[2995]: Traceback (most recent call last):
Apr 04 08:45:32 mail python2[2995]: File "/opt/iredapd/iredapd.py", line 111, in <module>
Apr 04 08:45:32 mail python2[2995]: main()
Apr 04 08:45:32 mail python2[2995]: File "/opt/iredapd/iredapd.py", line 49, in main
Apr 04 08:45:32 mail python2[2995]: if (settings.srs_secrets and settings.srs_domain):
Apr 04 08:45:32 mail python2[2995]: AttributeError: 'module' object has no attribute 'srs_secrets'
Apr 04 08:45:32 mail systemd[1]: iredapd.service: Control process exited, code=exited status=1
Apr 04 08:45:32 mail systemd[1]: iredapd.service: Failed with result 'exit-code'.
Apr 04 08:45:32 mail systemd[1]: Failed to start iRedAPD (A simple posfix policy server).
root@mail:~#
--------------------------------------
I'm not sure where to set 'settings.srs_secrets' or indeed what its value should be.
Would appreciate any help.
Many thanks!
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.