1

Topic: sogo segfault libytnef

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

Sogo do not start and do not log any
I try to explain the history of the events step by step
Which version is "stable" for iredmail and which packages are needed to let sogo works.

*STEP 0: Starting from Apr 10 21:53:12 sogo start to fail without any apparently reason.
/var/log/messages show lot of: "sogod[2412]: segfault at 7ff011fd7000 ip 00007feffcb7db6d sp 00007ffef20c7070 error 4 in libytnef.so.0.0.0[7feffcb7b000+7000]"
-------------------------------------------------------------------------------------------------------------

*STEP 1: In the next morning (Apr 11), I have updated sogo with 'yum update 'sogo*' '*sope*'', but the problem still persist.

Apr 11 09:29:36 b2bired01 yum[31888]: Updated: sope49-cards-5.5.1.20220411-1.el7.x86_64
Apr 11 09:29:36 b2bired01 yum[31888]: Updated: sope49-gdl1-contentstore-5.5.1.20220411-1.el7.x86_64
Apr 11 09:29:44 b2bired01 yum[31888]: Updated: sogo-5.5.1.20220411-1.el7.x86_64
Apr 11 09:29:44 b2bired01 yum[31888]: Updated: sogo-tool-5.5.1.20220411-1.el7.x86_64
Apr 11 09:29:44 b2bired01 yum[31888]: Updated: sogo-activesync-5.5.1.20220411-1.el7.x86_64
-------------------------------------------------------------------------------------------------------------

*STEP 2: Then I have installed libytnef-devel, but the problem still persist.

Apr 11 09:39:32 Installed: libytnef-devel-1.5-14.el7.x86_64

*STEP 3: Then I have uninstalled and reinstalled sogo,libytnef, but the problem still persist.

Apr 11 09:50:56 Erased: libytnef-devel-1.5-14.el7.x86_64
Apr 11 09:50:56 Erased: sogo-activesync-5.5.1.20220411-1.el7.x86_64
Apr 11 09:50:56 Erased: sogo-tool-5.5.1.20220411-1.el7.x86_64
Apr 11 09:50:57 Erased: sogo-5.5.1.20220411-1.el7.x86_64
Apr 11 09:50:58 Erased: ytnef-2.6-12.el7.x86_64
Apr 11 09:50:58 Erased: libytnef-1.5-14.el7.x86_64
Apr 11 09:52:52 Installed: ytnef-2.0.0-1.x86_64
Apr 11 09:52:56 Installed: sogo-5.5.1.20220411-1.el7.x86_64
Apr 11 09:52:56 Installed: sogo-tool-5.5.1.20220411-1.el7.x86_64
Apr 11 09:52:56 Installed: sogo-activesync-5.5.1.20220411-1.el7.x86_64
-------------------------------------------------------------------------------------------------------------

*STEP 4: After STEP 3 Sogo do not log anymore in /var/log/messages or /var/log/sogo/sogo.log

*STEP 5: Then I have updated all system with 'yum update', but the problem still persist.

*STEP 6: Then I have uninstalled and reinstalled sogo,gnustep,sope,libytnef, but the problem still persist.

Apr 11 11:06:09 Erased: sogo-activesync-5.5.1.20220411-1.el7.x86_64
Apr 11 11:06:09 Erased: sogo-tool-5.5.1.20220411-1.el7.x86_64
Apr 11 11:06:10 Erased: sogo-5.5.1.20220411-1.el7.x86_64
Apr 11 11:06:46 Erased: gnustep-base-devel-1.24.6-6.el7.centos.x86_64
Apr 11 11:06:46 Erased: sope49-sbjson-2.3.1-20220409_1664.el7.1.x86_64
Apr 11 11:06:47 Erased: gnustep-base-1.24.6-6.el7.centos.x86_64
Apr 11 11:06:47 Erased: gnustep-base-libs-1.24.6-6.el7.centos.x86_64
Apr 11 11:13:50 Installed: gnustep-base-libs-1.24.6-6.el7.centos.x86_64
Apr 11 11:13:51 Installed: gnustep-base-1.24.6-6.el7.centos.x86_64
Apr 11 11:13:51 Installed: sope49-sbjson-2.3.1-20220409_1664.el7.1.x86_64
Apr 11 11:13:51 Installed: libytnef-1.5-14.el7.x86_64
Apr 11 11:13:51 Updated: ytnef-2.6-12.el7.x86_64
Apr 11 11:13:51 Updated: sope49-xml-4.9-20220409_1664.el7.1.x86_64
Apr 11 11:13:52 Updated: sope49-ldap-4.9-20220409_1664.el7.1.x86_64
Apr 11 11:14:30 Installed: sogo-5.5.1.20220411-1.el7.x86_64
Apr 11 11:14:31 Installed: sogo-tool-5.5.1.20220411-1.el7.x86_64
Apr 11 11:14:31 Installed: sogo-activesync-5.5.1.20220411-1.el7.x86_64
Apr 11 11:14:31 Updated: sogo-ealarms-notify-5.5.1.20220411-1.el7.x86_64
-------------------------------------------------------------------------------------------------------------


*STEP 7: Now when I try to run systemctl start sogod, nothing happens. Command end in timeout
systemctl status sogod show:
[root@local sogo]# systemctl status sogod.service
â sogod.service - SOGo is a groupware server
   Loaded: loaded (/usr/lib/systemd/system/sogod.service; enabled; vendor preset: disabled)
   Active: failed (Result: timeout) since Thu 2022-04-14 11:25:21 CEST; 32min ago
  Process: 31900 ExecStart=/usr/sbin/sogod -WOWorkersCount ${PREFORK} -WOPidFile /var/run/sogo/sogo.pid -WOLogFile /var/log/sogo/sogo.log (code=killed, signal=TERM)

Apr 14 11:23:50 host.local systemd[1]: Starting SOGo is a groupware server...
Apr 14 11:25:20 host.local systemd[1]: sogod.service start operation timed out. Terminating.
Apr 14 11:25:21 host.local systemd[1]: Failed to start SOGo is a groupware server.
Apr 14 11:25:21 host.local systemd[1]: Unit sogod.service entered failed state.
Apr 14 11:25:21 host.local systemd[1]: sogod.service failed.
-------------------------------------------------------------------------------------------------------------

----

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

2

Re: sogo segfault libytnef

Try to install the libytnef package from SOGo yum repository instead of EPEL.

3 (edited by mr.cocco 2022-04-14 22:01:55)

Re: sogo segfault libytnef

I cannot find libytnef, neither tnef
Maybe libytnef package is missing from SOGo yum repository?
Following sogo.repo

#cat /etc/yum.repos.d/sogo.repo
[SOGo]
name=Inverse SOGo Repository
enabled=1
gpgcheck=0

# SOGo v3 stable release.
# WARNING: A proper support contract from Inverse is required:
# https://sogo.nu/support/index.html#support-plans
#baseurl=https://packages.inverse.ca/SOGo/release/3/rhel/7/$basearch

# SOGo v3 nightly builds
#baseurl=https://packages.inverse.ca/SOGo/nightly/3/rhel/7/$basearch

# SOGo v5 nightly builds
baseurl=https://packages.inverse.ca/SOGo/nightly/5/rhel/$releasever/$basearch/

4

Re: sogo segfault libytnef

Attached the output of How do I debug SOGo using gdb.

I am not able to understand what does it means sad
Looks like some problem with /lib64/libgcc_s.so.1 and/or /lib64/libobjc.so.4

I have currently installed:
libgcc.x86_64  4.8.5-44.el7
libobjc.x86_64 4.8.5-11.el7

I have tried:
libobjc.x86_64 4.8.5-16.el7_4.1
libobjc.x86_64 4.8.5-16.el7_4.2
libobjc.x86_64 4.8.5-44.el7

Post's attachments

sogo_debug.txt 685.52 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

5

Re: sogo segfault libytnef

I have recovered OS disk from backup and SOGo works.