Error Centos-Directory Server wont running

Today i have a plan to resolve my sssd project, then this morning when i start my virtual machine for run centos-ds then i found an error like this,

[root@ketoprak dirsrv]# service dirsrv start
Starting dirsrv: 
ketoprak...Warning: Incorrect PIN may result in disabling the token
Enter PIN for Internal (Software) Token: 
[FAILED]
*** Warning: 1 instance(s) failed to start


woaa, yesterday my machine look fine?? then start googling to find an answer, i found this link
http://www.mail-archive.com/fedora-directory-users@redhat.com/msg09219.html
from this link i find how to run dirsrv-instance in debug mode,

/usr/lib64/dirsrv/slapd-myinstance/start-slapd -d 1

then i find another problem

[11/May/2011:10:28:10 +0700]Error - Problem accessing the lockfile /var/lock/dirsrv/slapd-myinstance/lock
[11/May/2011:10:28:10 +0700] - Shutting down due to possible conflicts with other slapd processes


getting deeper into rabbit hole,

ls /var/lock/dirsrv/

then i cannot find my instance folder for keep the lock files, then use the slackware way, if you dont have it then build it :)

# mkdir /var/lock/dirsrv/slapd-myinstance


try to run again, trial and error
# /usr/lib64/dirsrv/slapd-myinstance/start-slapd -d 1


now the error message has change.

[11/May/2011:10:31:19 +0700] - Warning - couldn't set the ownership for /var/lock/dirsrv/slapd-ketoprak
[11/May/2011:10:31:19 +0700] - Shutting down due to possible conflicts with other slapd processes


Ohh, the permission, then i try to run setup-ds.pl, at the middle of reinstallation the script ask for user and group with nobody as a default name, then i canceled the installation, and try to changes the ownership to nobody without reinstall.

chown nobody:nobody -vR /var/lock/dirsrv/slapd-myinstance


okay,then try again, trial and error

[root@ketoprak dirsrv]# service dirsrv start ketoprak
Starting dirsrv: 
ketoprak...Warning: Incorrect PIN may result in disabling the token
Enter PIN for Internal (Software) Token: 
[  OK  ]

Woalaa, then the problem solve.. thanks to Alloh Subhanahu wa ta'ala.

Comments