Ticket #3747 (closed defect: worksforme)
Help Slapd - Setting up Master/Slave network
| Reported by: | Gb7to7@… | Owned by: | jamor@… |
|---|---|---|---|
| Milestone: | Component: | users | |
| Severity: | critical | Keywords: | Users slapd |
| Cc: |
Description
Hi. I was setting up Zentyal for a Master-Slave setup and kept getting an error. As a result i can't setup users at all. From the same iso image file, i installed to another PC of the same spec, and had the same issue when setting that one also for Master/Slave?. As a result i am STUCK! Presently i have performed an "apt-get dist-upgrade", of which i got the following error:
Backing up /etc/ldap/slapd.d/ in /var/backups/slapd-2.4.21-0ubuntu5.5... done. chown: cannot access `olcDbDirectory\nolcDbDirectory': No such file or directory dpkg: error processing slapd (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of zentyal-users:
zentyal-users depends on slapd (>= 2.4.15); however:
Package slapd is not configured yet.
dpkg: error processing zentyal-users (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
slapd zentyal-users
I have also trawled the forum for information and run "sudo dpkg --configure -a". presently i get the following error "The following packages are not properly installed. You need to fix this before trying to use them or install new modules. - zentyal-users" on the webGUI. Please be gentle with me as I'm fairly new to Linux, and i'm learning as i continue this adventure. I had downloaded the error files when i first had the problem, which i have attached. Thanks
Attachments
Change History
comment:1 follow-up: ↓ 2 Changed 16 months ago by jamor@…
- Status changed from new to closed
- Resolution set to worksforme
Hello Gb7to7,
this seems that something went wrong with your packages installation. The easier way to remedie this is to reinstall the users portion. You can sue the following command to do this easily:
sudo /usr/share/zentyal-users reinstall
Regards,
Javier
comment:2 in reply to: ↑ 1 Changed 16 months ago by Gb7to7@…
Thanks Javier for the reply. I'm grateful for the group and support towards getting things done Linux-style from knowledgable folks such as you. Please advice me on this crazy thing i did (i.e., before i got your reply):
root@Zent-0:/etc/ldap# sudo dpkg --configure -a
then, root@Zent-0:/etc/ldap# cd /etc/ldap/ root@Zent-0:/etc/ldap# rm slapd.* -f -r
after which i then root@Zent-0:/etc/ldap# apt-get -y install slapd ldap-utils
i now got the following error: After this operation, 0B of additional disk space will be used. Setting up slapd (2.4.21-0ubuntu5.6) ...
Creating initial slapd configuration... done.
Not starting slapd: SLAPD_NO_START set in /etc/default/slapd
so i went into slapd and set SLAPD_NO_START = 0
After which everything went well.
Pleeeeze tell me i didn't spoil much. I am presently demoing the system to some of my IT colleagues, but will be installing a fresh setup for a live deployment in the faculty. I'd appreciate if you can educate me on what damage i may have caused by manually changing the value, what i can do if the probelm persists (i wished i had gotten your reply earlier as it would have prevented me reinstalling from image and then updating TWICE) and any other info you might be able to advice save ask me to study for Zentyal certification right now ;-)
Thanks.
comment:3 Changed 16 months ago by jamor@…
Hello Gb7to7,
When it is enabled for first item, the Zentyal module for users management copies a slapd configuration with SLAPD_NO_START = 1. If you change it later, it can cause various problems.
Try to revert it back to 1 and restart user module with the following commands:
$ sudo invoke-rc.d slapd stop # to stop already running slapd $ sudo /etc/init.d/zentyal users restart # restart user modules
if this does not works you would need to reinstall as show in the previous message.
Regards,
Javier

Error log