Notifications
Clear all
Topic starter
09/24/2024 20:41
During the upgrade of Carbonio to version 24.9.0, I encounter approximately same issue as in https://community.zextras.com/forum/carbonio-setup/problems-upgrading-to-ubuntu-22-04-and-carbonio-from-24-1-to-24-3-0/
Setting up carbonio-directory-server (4.17.6-1jammy) ... * Starting LDAP upgrade... ** Applying changes from /opt/zextras/libexec/scripts/LDAP/migrations/pre_flight//01_olcPidFile_path_update.pl... * Error applying changes from /opt/zextras/libexec/scripts/LDAP/migrations/pre_flight//01_olcPidFile_path_update.pl: Failed to connect to LDAP server using any of the provided LDPAI socket paths. at /opt/zextras/common/lib/perl5/Zextras/LdapMigrationUtils.pm line 63. slapd not running Looking for LDAP installation...succeeded Installing core schema... Installing cosine schema... Installing inetOrgPerson schema... Installing zimbra schema... Installing amavis schema... Installing dyngroup schema... Installing OpenDKIM schema... Connection refused at /opt/zextras/libexec/zmldapupdateldif line 45, <DATA> line 960. Connection refused at /opt/zextras/libexec/ldapattributeupdate line 56, <DATA> line 960. slapd not running Failed to start slapd. Error: Unable to check that slapd is listening to connections dpkg: error processing package carbonio-directory-server (--configure): installed carbonio-directory-server package post-installation script subprocess returned error exit status 1
When I try to start carbonio, I got the error;
Sep 24 18:39:30 server2 systemd[1]: Started User Manager for UID 998. Sep 24 18:39:30 server2 systemd[1]: Started Session c39 of User zextras. Sep 24 18:39:31 server2 systemd[1]: service-discover.service: Scheduled restart job, restart counter is at 133. Sep 24 18:39:31 server2 systemd[1]: Stopped Service discover server for Zextras. Sep 24 18:39:31 server2 systemd[1]: Starting Service discover server for Zextras... Sep 24 18:39:31 server2 service-discoverd[996070]: panic: runtime error: invalid memory address or nil pointer dereference Sep 24 18:39:31 server2 service-discoverd[996070]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x50 pc=0x5dd9be] Sep 24 18:39:31 server2 service-discoverd[996070]: goroutine 1 [running]: Sep 24 18:39:31 server2 service-discoverd[996070]: github.com/go-ldap/ldap.(*Conn).nextMessageID(...) Sep 24 18:39:31 server2 service-discoverd[996070]: #011/home/agent/go/pkg/mod/github.com/go-ldap/ldap@v3.0.3+incompatible/conn.go:235 Sep 24 18:39:31 server2 service-discoverd[996070]: github.com/go-ldap/ldap.(*Conn).SimpleBind(0x0, 0xc00008fbd8) Sep 24 18:39:31 server2 service-discoverd[996070]: #011/home/agent/go/pkg/mod/github.com/go-ldap/ldap@v3.0.3+incompatible/bind.go:54 +0x13e Sep 24 18:39:31 server2 service-discoverd[996070]: github.com/go-ldap/ldap.(*Conn).Bind(0xc00001c300?, {0xc00001c7c0?, 0x43ca20?}, {0xc000012a45?, 0x60ed60?}) Sep 24 18:39:31 server2 service-discoverd[996070]: #011/home/agent/go/pkg/mod/github.com/go-ldap/ldap@v3.0.3+incompatible/bind.go:116 +0x53 Sep 24 18:39:31 server2 service-discoverd[996070]: github.com/zextras/service-discover/pkg/carbonio.connect(0xc000016600, 0x3f?) Sep 24 18:39:31 server2 service-discoverd[996070]: #011/tmp/service-discover/pkg/carbonio/ldap.go:216 +0x1eb Sep 24 18:39:31 server2 service-discoverd[996070]: github.com/zextras/service-discover/pkg/carbonio.(*ldapContext).QueryAllServersWithService(0x16?, {0x654469, 0x10}) Sep 24 18:39:31 server2 service-discoverd[996070]: #011/tmp/service-discover/pkg/carbonio/ldap.go:149 +0x65 Sep 24 18:39:31 server2 service-discoverd[996070]: main.queryAllServiceDiscoverServers({0x6bf018?, 0xc000016600?}) Sep 24 18:39:31 server2 service-discoverd[996070]: #011/tmp/service-discover/cmd/service-discoverd/service-discoverd.go:318 +0x31 Sep 24 18:39:31 server2 service-discoverd[996070]: main.runServiceDiscoverDaemon({0x6bfb08, 0x869100}, {0xc000014040, 0x2, 0xc0000061c0?}) Sep 24 18:39:31 server2 service-discoverd[996070]: #011/tmp/service-discover/cmd/service-discoverd/service-discoverd.go:132 +0x3d7 Sep 24 18:39:31 server2 service-discoverd[996070]: main.main() Sep 24 18:39:31 server2 service-discoverd[996070]: #011/tmp/service-discover/cmd/service-discoverd/service-discoverd.go:92 +0x36 Sep 24 18:39:31 server2 systemd[1]: service-discover.service: Main process exited, code=exited, status=2/INVALIDARGUMENT Sep 24 18:39:31 server2 systemd[1]: service-discover.service: Failed with result 'exit-code'. Sep 24 18:39:31 server2 systemd[1]: Failed to start Service discover server for Zextras. Sep 24 18:39:31 server2 zimbramon[996041]: 996041:info: Starting services initiated by zmcontrol Sep 24 18:39:31 server2 slapd[996099]: @(#) $OpenLDAP: slapd 2.5.18 (Aug 27 2024 12:00:31) $#012#011root@78cac1d6050b:/tmp/openldap/src/openldap-2.5.18/servers/slapd Sep 24 18:39:31 server2 slapd[996099]: lt_dlopenext failed: (pw-argon2.la) file not found Sep 24 18:39:31 server2 slapd[996099]: config error processing cn=module{0},cn=config: <olcModuleLoad> handler exited with 1 Sep 24 18:39:31 server2 slapd[996099]: slapd stopped. Sep 24 18:39:31 server2 slapd[996099]: connections_destroy: nothing to destroy.
Is this by chance a known thing?
Thanks,
Tom
Topic starter
09/24/2024 23:06
I now see that I upgraded was from 24.5.0, not sure of that makes a difference here
Topic starter
09/25/2024 00:18
root@server2:/opt/zextras/data# apt-get install carbonio-openldap=2.4.59-7jammy Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages were automatically installed and are no longer required: carbonio-appserver-store-libs carbonio-appserver-war carbonio-common-core-jar carbonio-common-core-libs carbonio-jetty-distribution carbonio-libmilter carbonio-perl-io-socket-inet6 carbonio-perl-unix-getrusage libgnutlsxx28 libharfbuzz-icu0 Use 'sudo apt autoremove' to remove them. The following packages will be DOWNGRADED: carbonio-openldap 0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 3 not upgraded. 1 not fully installed or removed. Need to get 1,829 kB of archives. After this operation, 798 kB disk space will be freed. Do you want to continue? [Y/n] y Get:1 https://repo.zextras.io/release/ubuntu jammy/main amd64 carbonio-openldap amd64 2.4.59-7jammy [1,829 kB] Fetched 1,829 kB in 0s (9,407 kB/s) dpkg: warning: downgrading carbonio-openldap from 2.5.18-1jammy to 2.4.59-7jammy (Reading database ... 182983 files and directories currently installed.) Preparing to unpack .../carbonio-openldap_2.4.59-7jammy_amd64.deb ... Unpacking carbonio-openldap (2.4.59-7jammy) over (2.5.18-1jammy) ... Setting up carbonio-directory-server (4.17.6-1jammy) ... * Starting LDAP upgrade... ** Applying changes from /opt/zextras/libexec/scripts/LDAP/migrations/pre_flight//01_olcPidFile_path_update.pl... * Error applying changes from /opt/zextras/libexec/scripts/LDAP/migrations/pre_flight//01_olcPidFile_path_update.pl: Failed to connect to LDAP server using any of the provided LDPAI socket paths. at /opt/zextras/common/lib/perl5/Zextras/LdapMigrationUtils.pm line 63. Stopping openldap...openldap is not running. Looking for LDAP installation...succeeded Installing core schema... Installing cosine schema... Installing inetOrgPerson schema... Installing zimbra schema... Installing amavis schema... Installing dyngroup schema... Installing OpenDKIM schema... Connection refused at /opt/zextras/libexec/zmldapupdateldif line 44, <DATA> line 960. Connection refused at /opt/zextras/libexec/ldapattributeupdate line 56, <DATA> line 960. Stopping openldap...openldap is not running. Starting openldap...failed. dpkg: error processing package carbonio-directory-server (--configure): installed carbonio-directory-server package post-installation script subprocess returned error exit status 1 Setting up carbonio-openldap (2.4.59-7jammy) ... Errors were encountered while processing: carbonio-directory-server needrestart is being skipped since dpkg has failed E: Sub-process /usr/bin/dpkg returned an error code (1)
root@server2:/opt/zextras/data# apt list --installed | grep ldap WARNING: apt does not have a stable CLI interface. Use with caution in scripts. carbonio-openldap/jammy,now 2.4.59-7jammy amd64 [installed,upgradable to: 2.5.18-1jammy] carbonio-perl-net-ldap/jammy,now 0.68-2jammy amd64 [installed,automatic] carbonio-prometheus-openldap-exporter/jammy,now 2.2.4-3jammy amd64 [installed,automatic] libldap-2.5-0/jammy-updates,now 2.5.18+dfsg-0ubuntu0.22.04.2 amd64 [installed,automatic] libldap-common/jammy-updates,now 2.5.18+dfsg-0ubuntu0.22.04.2 all [installed,automatic] root@server2:/opt/zextras/data# apt-get -f install Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages were automatically installed and are no longer required: carbonio-appserver-store-libs carbonio-appserver-war carbonio-common-core-jar carbonio-common-core-libs carbonio-jetty-distribution carbonio-libmilter carbonio-perl-io-socket-inet6 carbonio-perl-unix-getrusage libgnutlsxx28 libharfbuzz-icu0 Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up carbonio-directory-server (4.17.6-1jammy) ... * Starting LDAP upgrade... ** Applying changes from /opt/zextras/libexec/scripts/LDAP/migrations/pre_flight//01_olcPidFile_path_update.pl... * Error applying changes from /opt/zextras/libexec/scripts/LDAP/migrations/pre_flight//01_olcPidFile_path_update.pl: Failed to connect to LDAP server using any of the provided LDPAI socket paths. at /opt/zextras/common/lib/perl5/Zextras/LdapMigrationUtils.pm line 63. Stopping openldap...openldap is not running. Looking for LDAP installation...succeeded Installing core schema... Installing cosine schema... Installing inetOrgPerson schema... Installing zimbra schema... Installing amavis schema... Installing dyngroup schema... Installing OpenDKIM schema... ---------------------------------------- Installed LDAP Schema Version: 1710415918 -------------------------------------------------------------------------------- Skipping: 1645791607.json Reason: not eligible for this update. -------------------------------------------------------------------------------- Skipping: 1649167975.json Reason: not eligible for this update. -------------------------------------------------------------------------------- Skipping: 1656290447.json Reason: not eligible for this update. -------------------------------------------------------------------------------- Skipping: 1656504433.json Reason: not eligible for this update. -------------------------------------------------------------------------------- Skipping: 1665746833.json Reason: not eligible for this update. -------------------------------------------------------------------------------- Skipping: 1670857065.json Reason: not eligible for this update. -------------------------------------------------------------------------------- Skipping: 1674157658.json Reason: not eligible for this update. -------------------------------------------------------------------------------- Skipping: 1677585425.json Reason: not eligible for this update. -------------------------------------------------------------------------------- Skipping: 1680172610.json Reason: not eligible for this update. -------------------------------------------------------------------------------- Skipping: 1680512235.json Reason: not eligible for this update. -------------------------------------------------------------------------------- Skipping: 1683297806.json Reason: not eligible for this update. -------------------------------------------------------------------------------- Skipping: 1685015835.json Reason: not eligible for this update. -------------------------------------------------------------------------------- Skipping: 1690904855.json Reason: not eligible for this update. -------------------------------------------------------------------------------- Skipping: 1697206170.json Reason: not eligible for this update. -------------------------------------------------------------------------------- Skipping: 1700128682.json Reason: not eligible for this update. -------------------------------------------------------------------------------- Skipping: 1700734532.json Reason: not eligible for this update. -------------------------------------------------------------------------------- Skipping: 1710337715.json Reason: not eligible for this update. -------------------------------------------------------------------------------- Skipping: 1710415918 .json Reason: not eligible for this update. -------------------------------------------------------------------------------- Initializing updates from 1719843319.json Processing Entry: zimbra_defaultcos Updating attribute: carbonioFeatureOTPMgmtEnabled => TRUE Processing Entry: zimbra_defaultexternalcos Updating attribute: carbonioFeatureOTPMgmtEnabled => FALSE -------------------------------------------------------------------------------- LDAP schema upgraded to version 1719843319 Stopping openldap...done. Starting openldap...done. Scanning processes... Scanning processor microcode... Scanning linux images... Running kernel seems to be up-to-date.