1

Topic: SOGo not starting after update

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

Yesterday I update SOGo from version 5.8.2 to 5.11.2 via dnf update.
Now SOGo won't start.

Problem is a segmentation fault on libgnustep-base.
Nov 28 15:04:02 svrmail kernel: sogo-ealarms-no[98239]: segfault at 7ffc697ae9c8 ip 00007f78b2a35edd sp 00007ffc697ae9c8 error 6 in libgnustep-base.so.1.24.9[7f78b26950
00+4e8000]
Nov 28 15:04:02 svrmail kernel: Code: 08 48 8d 05 05 eb 45 00 5b 5d c3 66 90 f3 0f 1e fa 41 57 41 56 41 55 41 54 55 53 4c 8d 9c 24 00 c0 ff ff 48 81 ec 00 10 00 00 <48>
83 0c 24 00 4c 39 dc 75 ef 48 81 ec a8 00 00 00 48 89 74 24 18

Any ideas?
Thank you in advance!

----

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

2 (edited by chris.23lo 2024-11-29 10:07:57)

Re: SOGo not starting after update

some command may be useful, but it's clearly beyond average ....

# dnf history list
# dnf history list sogo

many components / packages maybe involved, gnustep-base, gnustep-base-libs, sogo*, sope4*

if you have epel.repo be also very careful it likely conflicts with the one (gnustep*) from Sogo

3

Re: SOGo not starting after update

Make sure you're running the gnustep packages from SOGo repo, not the one offered by EPEL repo.

4

Re: SOGo not starting after update

You are right! Problem is gnustep package.

I solved the problem and I want to share the solution (was not so easy).

Unfortunately I update gnustep-base from Epel repository. A big mistake!
At time of writing Epel version 1.28.0, SOGo/Inverse version is 1.24.9.

Uninstalling Epel version is not enough.

Step I used to resolve:

1) Backup your SOGo configuration file located at /etc/sogo/
2) Make sure to exclude unwanted package from Epel repository in /etc/yum.repos.d/epel.repo
    (exclude=gnustep* ytnef*)
3) Uninstall Sogo, Sope and other related Package
    dnf remove  sogo* sope* gnustep* libwbxml* lasso* libobjc* libwbxml* memcached* ytnef*
    (probably dnf will remove other dependant packages)
4) Manually remove (or rename .old) folders not removed by dnf/rpm
    rm -rf /etc/sogo/
    rm -rf /usr/lib64/GNUstep/
    rm -rf /var/lib/sogo/GNUstep
    rm -rf /usr/lib64/sogo
    rm -rf /var/log/sogo
    rm -f /etc/sysconfig/sogo.rpmsave
    rm -rf /usr/share/doc/sogo
    rm -rf /usr/share/doc/gnustep-base-libs
5) Reboot your system
    shutdown -r now
6) Reinstall SOGo
    dnf install sogo sogo-tool sogo-activesync sogo-ealarms-notify
    (dnf adds the necessary dependencies including the right gnustep/ytnef packages)
7) Restore config in /etc/sogo/
8) Make sure /etc/sogo/ files is owned by sogo user and group
    chown -R sogo:sogo /etc/sogo/
9) Make sure log files and folder are owned by sogo
    chown -R sogo:sogo /var/log/sogo/
10) Start services and test
    systemctl start memcached.service
    systemctl start sogod.service
11) Enable services at startup
    systemctl enable memcached.service
    systemctl enable sogod.service

I hope I haven't forgotten anything.

Thanks you all!
Carlo

5

Re: SOGo not starting after update

Thanks for sharing.