Unable to start LDAP

Hi,

I'm not able to start ldap 5.0 on Sun Solaris 8. It is due to the previous dirty shutdown.

LDAP error file gives the following message.

bash-2.03$ more errors.20060719-041708

[19/Jul/2006:04:17:08 -0400] - iPlanet-Directory/5.0 ServicePack 1 B2001.264.1425 starting up

[19/Jul/2006:04:17:08 -0400] - Detected Disorderly Shutdown last time Directory Server was running, recovering database.

[19/Jul/2006:04:17:08 -0400] - cannot calloc 0 bytes; trying to allocate 0 or a negative number of bytes is not portable and gives different

results on different platforms. Please check the code and change it to avoid the attempt to allocate 0 bytes.

[19/Jul/2006:04:23:12 -0400] - iPlanet-Directory/5.0 ServicePack 1 B2001.264.1425 starting up

[19/Jul/2006:04:23:12 -0400] - Detected Disorderly Shutdown last time Directory Server was running, recovering database.

[19/Jul/2006:04:23:12 -0400] - cannot calloc 0 bytes; trying to allocate 0 or a negative number of bytes is not portable and gives different

results on different platforms. Please check the code and change it to avoid the attempt to allocate 0 bytes.

[19/Jul/2006:04:31:24 -0400] - iPlanet-Directory/5.0 ServicePack 1 B2001.264.1425 starting up

[19/Jul/2006:04:31:24 -0400] - Detected Disorderly Shutdown last time Directory Server was running, recovering database.

.................

On start admin server it gives following error.

bash-2.03$ ./start-admin

admin40_check_ds_availability_init(): WARNING: Configuration Directory Server is down or unreachable (Can't contact LDAP server)

Info: Cache expiration set to 600 seconds

Warning! admin40_task_eval_init(): unable to set User/Group baseDN

iPlanet-WebServer-Enterprise/4.1SP3 BB1-09/17/2000 01:08

startup: listening to http://10.1.0.67, port 7002 as newsmart

thanks

Subhash

[1952 byte] By [Subhash_Forum] at [2007-11-26 9:45:53]
# 1
make sure config instance is running. If not then try to start config instance first... it may give you a message recoviring DB etc. Once the config instance is up then start he admin server
hfaruqi at 2007-7-7 0:50:05 > top of Java-index,Web & Directory Servers,Directory Servers...
# 2
Hi HFaruqi,Thanks for ur respond.I'm not aware of the config instance. How to check it running or not?Where does it exist and how to start and stop?Thanks Subhash
Subhash_Forum at 2007-7-7 0:50:05 > top of Java-index,Web & Directory Servers,Directory Servers...
# 3
Usually the config instance is stored at the first slapd you have setup.To start the config instance, simply start slapd first before admin server.Gary
gary_tay at 2007-7-7 0:50:05 > top of Java-index,Web & Directory Servers,Directory Servers...
# 4

I've tried earlier to start LDAP but it goes down after some seconds.

The screen shot is

bash-2.03$ ./start-slapd

bash-2.03$ ps -ef|grep slapd

newsmart 28444 22199 0 01:20:26 pts/30:00 grep slapd

newsmart 284421 1 01:20:24 ?0:00 ./ns-slapd -D /appdata/iplanetnm/ias6/slapd-sun-go4i-del -i /appdata/iplanetnm/

bash-2.03$ ps -ef|grep slapd

newsmart 28452 22199 0 01:20:30 pts/30:00 grep slapd

bash-2.03$

Subhash_Forum at 2007-7-7 0:50:05 > top of Java-index,Web & Directory Servers,Directory Servers...
# 5

Has it crashed leaving a core file?

If yes, run a pstack on the core file and provide the stack dump of the crashing thread.

If no, use coreadm to configure the system to let abnormally-terminating processes generate a core - something like this should work:

# mkdir -p /var/cores

# coreadm -g /var/cores/%f.%n.%p.core -e global -e process -e global-setid -e proc-setid -e log

Now, start-slapd and let it crash again, run the pstack command and provide the stack trace of the crashing thread.

You may also check/verify your log rotation files (<ds-root>/slapd-<instance>/logs/*.rotationinfo).

If those are truncated/corrupted or have been manually modified in some way you may also see such error. Try to start-slapd after moving all files from that directory to another (safe) place and move them back if this doesn't help.

Also a corrupted or wrongly modified configuration file (dse.ldif) may cause such behaviour.

Stefan

> I've tried earlier to start LDAP but it goes down

> after some seconds.

>

> The screen shot is

>

> bash-2.03$ ./start-slapd

> bash-2.03$ ps -ef|grep slapd

> newsmart 28444 22199 0 01:20:26 pts/30:00 grep

> slapd

> newsmart 284421 1 01:20:24 ?0:00

> ./ns-slapd -D

> /appdata/iplanetnm/ias6/slapd-sun-go4i-del -i

> /appdata/iplanetnm/

> bash-2.03$ ps -ef|grep slapd

> newsmart 28452 22199 0 01:20:30 pts/30:00 grep

> slapd

> bash-2.03$

stefanwo at 2007-7-7 0:50:05 > top of Java-index,Web & Directory Servers,Directory Servers...