LDAP won't start af...
 
Notifications
Clear all

LDAP won't start after upgrade

10 Posts
4 Users
2 Likes
1,846 Views
(@amitchell)
Joined: 2 years ago
Posts: 16
Topic starter  

I upgraded to latest version of Carbonio CE for RHEL 8 a few weeks ago. I followed the instructions provided in the upgrade notification email. I had some other projects get in the way, so I am just now getting back to this. After upgrade, when executing: 

zmcontrol start 

as the zextras user, I received the following error:

[zextras@cmail ~]$ zmcontrol start
Host localhost
Connect: Unable to determine enabled services from ldap.
Unable to determine enabled services. Cache is out of date or doesn't exist.
[zextras@cmail ~]$

This server is not production at the moment, so it is not critical. However, I cannot find anything in the logs to indicate why this may be happening. Can someone here give me any pointers on where to look and what to look for, please? I would like to know so that if we do deploy a production environment and experience a similar complication,  I know what to do.

Thank You.  


   
Quote
(@a-luciano)
Joined: 1 year ago
Posts: 11
 

hello,
I had the same issue that you described and I solved it restoring the file /opt/zextras/conf/localconfig.xml:

I was lucky because I backup this file before the upgrade activity and after some try I understood that file (empty) was the cause.

Anyway I described the issue on this thread https://community.zextras.com/forum/postid/4268/ I hope the zextras team will be able to reproduce it.


   
ReplyQuote
dominix
(@dominix)
Joined: 11 years ago
Posts: 129
 

did you try to just reboot the server ? 

verify if there is a ssl certificat expiration, it may produce this error as well (at least on zimbra).

anyway there is something around the start up sequence of the ldap. try to start this service alone and note the error(s) related in the logs. (and show us) 

good luck.

 


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

@amitchell

I was about to suggest to inspect logs, also of dnf, to check if there is some insight of what went wrong, but I see dominix preceeded me 🙂 

As a general rule, I also suggest to always mention from which to which version you are upgrading, as well as the OS. We do our best to test upgrading procedures, but we can not test all combinations. The upgrade from one version to the next one is flawless un 99% of the times (but remember Murphy's law!), but sometimes there can be some glitch that prevent a successful upgrade, especially when skipping versions.

I will forward the issue to our developers, but if you happen to discover the issue, I'll be more than happy to add a new troubleshooting item to the upgrade guide.

 


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

@amitchell some more hint: discussing with a colleague, he pointed out to check the network configuration: in particular that IP address and hostname correspond to the output of hostnamectl and they are correctly in /etc/hosts. 


   
ReplyQuote
(@amitchell)
Joined: 2 years ago
Posts: 16
Topic starter  

I'd like to thank everyone for their assistance.  I'm afraid that perhaps in my initial post, I was not clear.  I understand that when upgrading things can go wrong.  I'm not upset about that.  What concerns me is that when I try to restart Carbonio and get this error,I see nothing in carbonio.log or any other log files that indicates what the problem is to me.

The output of hostnamectl is:

 Static hostname: cmail.as32030.net
Icon name: computer-vm
Chassis: vm
Machine ID: c5a924e31f894ba3a09b92f221a54ea9
Boot ID: dd33bba495ec4cd58254b96b56708449
Virtualization: vmware
Operating System: CentOS Stream 8
CPE OS Name: cpe:/o:centos:centos:8
Kernel: Linux 4.18.0-408.el8.x86_64
Architecture: x86-64

Which is correct for my system.

When I execute ldap start as the zextras user, this is what I see;

ldap_url and ldap_master_url cannot be the same on an ldap replica

 

Again, I want to thank everybody for helping.  Maybe some of the information above will be useful until I can find the appropriate log file.

 

 

 


   
ReplyQuote
dominix
(@dominix)
Joined: 11 years ago
Posts: 129
 
Posted by: @amitchell

...

When I execute ldap start as the zextras user, this is what I see;

ldap_url and ldap_master_url cannot be the same on an ldap replica

this look like a configuration problem for me. you should re-run carbonio-bootstrap with a special care for the replica problem, in case you don't intentionally make your instance a multi instance. (if you do, it is up to zextras to fix this upgrade in a multi server config)


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

@amitchell

I didn't realise you set up a replicated directory server/ldap, and, as dominix notes, there is a configuration problem in the URL of the master/slave LDAP servers.

We recently published a piece of documentation with all the correct steps for this setup: https://docs.zextras.com/carbonio-ce/html/multi-server-installation.html#install-a-directory-server-replica can you check if it can help you?

 


   
ReplyQuote
(@amitchell)
Joined: 2 years ago
Posts: 16
Topic starter  

Apologies for my delay in getting back to these responses.  Let me start by thanking everyone for your help.  Second, let me say for the record, our Carbonio server is a single standalone server.  I have spent several hours looking into this.  I appreciate all of  your help but honestly at this point, I think a reinstall may be more time effective.  If I get the chance to do the reinstall, I'm also going to try to document it in such a way that is a tutorial for those wanting to install Carbonio on Centos8.  Which is similar to RHEL but not exactly the same.


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

@amitchell thank you, I think such a tutorial would be of great help to who wants to install Carbonio CE on top of Centos.

I also noticed that I forgot to mention, in a previous replay, that Carbonio's log file are saved under /opt/zextras/log/


   
ReplyQuote