Hi,
I'm doing some tests on a perl backend, which causes sometimes my OpenLDAP to hang. I then kill the process, but when I try to restart openldap it won't, because of my HDB backend. I get the following message :
db_db_open: database "dc=mycompany": database already in use.
After rebooting the server, everything works fine.
Any way to "clean" the HDB backend manually, without having to reboot the server ?
Ben
Benin Technologies wrote:
Hi,
I'm doing some tests on a perl backend, which causes sometimes my OpenLDAP to hang. I then kill the process, but when I try to restart openldap it won't, because of my HDB backend. I get the following message :
db_db_open: database "dc=mycompany": database already in use.
After rebooting the server, everything works fine.
Any way to "clean" the HDB backend manually, without having to reboot the server ?
Sounds like you're running on Windows, which takes a long time after a process dies for it to release its file locks. I don't know of any solution other than to wait for Windows to eventually notice the process is gone.
The smarter solution of course is to quit using such a braindead OS as a server platform.
nope, Debian 6.0.4
Le 06/05/2013 20:25, Howard Chu a écrit :
Benin Technologies wrote:
Hi,
I'm doing some tests on a perl backend, which causes sometimes my OpenLDAP to hang. I then kill the process, but when I try to restart openldap it won't, because of my HDB backend. I get the following message :
db_db_open: database "dc=mycompany": database already in use.
After rebooting the server, everything works fine.
Any way to "clean" the HDB backend manually, without having to reboot the server ?
Sounds like you're running on Windows, which takes a long time after a process dies for it to release its file locks. I don't know of any solution other than to wait for Windows to eventually notice the process is gone.
The smarter solution of course is to quit using such a braindead OS as a server platform.
--On Monday, May 06, 2013 8:36 PM +0100 Benin Technologies benintechnologies@yahoo.fr wrote:
nope, Debian 6.0.4
Try the related db_recover command for the version of BDB your openldap is compiled for, and if that doesn't work, also remove the "alock" file. Then try starting slapd.
--Quanah
--
Quanah Gibson-Mount Sr. Member of Technical Staff Zimbra, Inc A Division of VMware, Inc. -------------------- Zimbra :: the leader in open source messaging and collaboration
Benin Technologies wrote:
nope, Debian 6.0.4
The only reason for slapd to say the database is already in use is because a file lock still exists. In this case it implies that the original slapd process is still there. You said you already killed it but it sounds like the process hasn't gone away.
Le 06/05/2013 20:25, Howard Chu a écrit :
Benin Technologies wrote:
Hi,
I'm doing some tests on a perl backend, which causes sometimes my OpenLDAP to hang. I then kill the process, but when I try to restart openldap it won't, because of my HDB backend. I get the following message :
db_db_open: database "dc=mycompany": database already in use.
After rebooting the server, everything works fine.
Any way to "clean" the HDB backend manually, without having to reboot the server ?
Sounds like you're running on Windows, which takes a long time after a process dies for it to release its file locks. I don't know of any solution other than to wait for Windows to eventually notice the process is gone.
The smarter solution of course is to quit using such a braindead OS as a server platform.
Yep, you were right, the process was still there !!! (I launched slapd manually, and thought CTRL+C would kill it, but it didn't).
After killing the process slapd starts fine
thanks
Le 06/05/2013 21:41, Howard Chu a écrit :
Benin Technologies wrote:
nope, Debian 6.0.4
The only reason for slapd to say the database is already in use is because a file lock still exists. In this case it implies that the original slapd process is still there. You said you already killed it but it sounds like the process hasn't gone away.
Le 06/05/2013 20:25, Howard Chu a écrit :
Benin Technologies wrote:
Hi,
I'm doing some tests on a perl backend, which causes sometimes my OpenLDAP to hang. I then kill the process, but when I try to restart openldap it won't, because of my HDB backend. I get the following message :
db_db_open: database "dc=mycompany": database already in use.
After rebooting the server, everything works fine.
Any way to "clean" the HDB backend manually, without having to reboot the server ?
Sounds like you're running on Windows, which takes a long time after a process dies for it to release its file locks. I don't know of any solution other than to wait for Windows to eventually notice the process is gone.
The smarter solution of course is to quit using such a braindead OS as a server platform.
I am fairly new to openldap and trying to setup a Translucent, Overlay, Proxy configuration. Unfortunately the only documentation I can find for it is the older slapd.conf style. I've tried to translate it but not having any luck.
Is there a site with details on how to configure this type of setup using the olc* type of options?
openldap-technical@openldap.org