Upgrade from 24.7.1...
 
Notifications
Clear all

Upgrade from 24.7.1 to 24.9.0 LDAP Fails to start

10 Posts
8 Users
1 Reactions
410 Views
(@azdave7042)
Joined: 5 months ago
Posts: 7
Topic starter  

After upgrading from 24.7.1 to 24.9.0 on Ubuntu 22.04 server and rebooting, system is down.  Zmcontrol -v show 24.9.0 but zmcontrol status shows all services down.  Zmcontrol start says directory fails to start.

 

During upgrade the following error was shown on screen.

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.

 

How do i fix this or work around this error and get system upgraded?


   
Bichula reacted
Quote
(@vhmarx)
Joined: 3 months ago
Posts: 3
 

I'm having the same problem. 

While upgrading to 24.9.0 I got the following errors in apt

* 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> l
ine 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
Errors were encountered while processing:
carbonio-directory-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

I currently can't start the server through zmcontrol and I have no idea how to fix this.


   
ReplyQuote
(@ismartin)
Joined: 7 months ago
Posts: 3
 

I have the same error any idea how i resolve that?


   
ReplyQuote
(@t0mwz)
Joined: 3 months ago
Posts: 8
 

Encounter the same yesterday. See solution here by @anahuac; https://community.zextras.com/forum/postid/8974/


   
ReplyQuote
 Klug
(@klug)
Joined: 13 years ago
Posts: 65

   
ReplyQuote
(@sistemak-imh)
Joined: 10 months ago
Posts: 36
 

Hi @stefanodavid

We are waiting to upgrade to version 24.9.0 until we have more information about this bug.

Is the solution provided in this post the one you recommend ?

Thanks


   
ReplyQuote
(@stefanodavid)
Joined: 3 years ago
Posts: 227
 

@sistemak-imh we will provide official guidelines today on the official docs (followed by a post on this forum)


   
ReplyQuote
(@stefanodavid)
Joined: 3 years ago
Posts: 227

   
ReplyQuote
(@bichula)
Joined: 3 months ago
Posts: 2
 

Hello friends, at this moment I have an installation of Carbonio CE 24.7.1 and when updating whith apt update && apt dist-upgrade I get this error:

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

This is presented using Ansible

2024-10-01 10:15:39,292 p=4649 u=root n=ansible | TASK [../roles/upgrade_carbonio_packages : Update all packages to their latest version] ********************************************************************************************>2024-10-01 10:33:01,691 p=4649 u=root n=ansible | fatal: [mail.mydomain.example]: FAILED! => {"changed": false, "msg": "'/usr/bin/apt-get dist-upgrade ' failed: E: Sub-process /usr/bin/dpkg returned an error code (1)\n", "rc": 100, "stdou>2024-10-01 10:33:01,694 p=4649 u=root n=ansible | PLAY RECAP *************************************************************************************************************************************************************************>2024-10-01 10:33:01,694 p=4649 u=root n=ansible | mail.mydomain.example : ok=16 changed=10 unreachable=0 failed=1 skipped=2 rescued=0 ignored=0

I did my 24.7.1 installation following this

https://www.jorgedelacruz.es/2024/04/29/zextras-como-descargar-e-instalar-zextras-carbonio-ce-24-x-en-ubuntu-22-04-incluye-pasos-para-dnsmasq-chats-y-videollamadas/

I appreciate your support, greetings.


   
ReplyQuote
(@sistemak-imh)
Joined: 10 months ago
Posts: 36
 

Hi @stefanodavid

We have upgraded to the new version without problems, although at one point during the installation I got the impression that something was wrong.

At one point during the installation, in the console you could read the following message

Restoring certificates after upgrades from latest backup:
/opt/zextras/.saveconfig/carbonio-openjdk-cacerts/cacerts-20241005
please wait...

The installer stayed at that point for 30 long minutes, when in previous upgrades the upgrade was very fast.

Looking in the /opt/zextras/.saveconfig/carbonio-openjdk-cacerts/cacerts-20241005 folder I noticed that it was creating new certificates, so I waited patiently. Finally it needed 30 minutes to create 510 new certificates.

Looking at the contents of that folder, I see that since April 4 no new certificates have been generated, so I understand that in previous updates it was not necessary.

Maybe it would be good to note it in the update documentation, so that no one thinks something is wrong.

On the other hand, I congratulate you for adding the option to customize the layout, it is something that many people were missing.

I have noticed that in this version, you can interact with the keyboard, at least to move in the messages with the arrows and the page forward and backward buttons, although you still can not select mails with the keyboard, and you can not delete mails with the delete key, you still need to use the mouse. It would be nice if these features would be supported in the following versions

Thank you very much!

 


   
ReplyQuote