SSISO Community

시소당

[웹로직]Could not obtain an exclusive lock to the embedded LDAP data files director

증상 :
BSC 매니저 시스템에 접근이 안 되는 경우 일반적으로 Apache Bridge Error가 발생하는 경우
웹로직 서비스가 죽은 것이 원인이다.

웹로직 서버에 텔넷으로 접속한 후

[weblogic@bscwas mydomain]$ ps -ef | grep java
weblogic 30557 30536 99 18:22 pts/2    00:35:16 /data1/bea816/jrockit81sp6_142_10/bin/java -jrockit -Xms256m -Xmx512m -Xverify:none -Djava.awt.headless=true -Dweblogic.Name=myserver -Dweblogic.ProductionModeEnabled= -Djava.security.policy=/data1/bea816/weblogic81/server/lib/weblogic.policy weblogic.Server
weblogic 30731 27659  0 18:36 pts/2    00:00:00 grep java

로 웹로직 서비스의 유무를 확인한다. (위처럼 뜨면 서비스가 시작중인 상태)
만약 웹로직 서비스가 없을 경우 /data1/bea816/user_projects/domains/mydomain로 이동해서 ./startAdmin.sh 명령어를
실행해주면 된다.
가끔 웹로직 서비스가 있는데도 재시작이 안 되고, BSC매니저 시스템에 접근이 안 되는 경우 아래의 방법으로 해결
가능하다.
./startAdmin.sh를 실행하고 tail -f admin.out 명령어로 실시간 로그를 확인해보면 아마도 Could not obtain an exclusive lock to the embedded LDAP data files directory
라는 문구의 에러메시지가 뜰때가 있다. 이런 메시지가 보이는 경우 아래와 같이 수행해주면 될 것이다. 뭐 제대로 서비스가 재시작 되면 아래의 작업을 수행할 필요가 없다.
서버가 제대로 수행된 경우 <2008. 1. 10. 오후 2시 44분 47초 KST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode> 형식의 메시지가 보인다.

 


해결방법 : weblogic 유저로 로그인하거나 전환한 후
[weblogic@bscwas ldapfiles]$ cd /data1/bea816/user_projects/domains/mydomain/myserver/ldap/ldapfiles
[weblogic@bscwas ldapfiles]$ ls -al
합계48
drwxrwxr-x  2 weblogic weblogic  4096  1월 10 18:22 .
drwxrwxr-x  7 weblogic weblogic  4096 11월 29  2006 ..
-rw-rw-r--  1 weblogic weblogic 19290  1월 10 18:22 EmbeddedLDAP.data
-rw-rw-r--  1 weblogic weblogic   132  3월 19  2007 EmbeddedLDAP.delete
-rw-rw-r--  1 weblogic weblogic   648  3월 19  2007 EmbeddedLDAP.index
-rw-rw-r--  1 weblogic weblogic     0  1월 10 18:22 EmbeddedLDAP.lok
-rw-rw-r--  1 weblogic weblogic  1204  1월 10 18:22 EmbeddedLDAP.tran
-rw-rw-r--  1 weblogic weblogic     8  1월 10 18:22 EmbeddedLDAP.trpos
-rw-rw-r--  1 weblogic weblogic     8  1월 10 18:22 EmbeddedLDAP.twpos
[weblogic@bscwas ldapfiles]$ rm EmbeddedLDAP.lok
[weblogic@bscwas ldapfiles]$ cd /data1/bea816/user_projects/domains/mydomain
[weblogic@bscwas mydomain]$ ./startAdmin.sh
[weblogic@bscwas mydomain]$ tail -f admin.out


=====================================================================================
아래는 위의 에러가 생겼을때 웹로직 재시작시 뜨는 에러입니다.

<2008. 1. 10. 오후 7시 03분 01초 KST> <Emergency> <WebLogicServer> <BEA-000342> <Unable to initialize the server: weblogic.server.ServiceFailureException: Could not obtain an exclusive lock to the embedded LDAP data files directory: ./myserver/ldap/ldapfiles because another WebLogic Server is already using this directory. Ensure that the first WebLogic Server is completely shutdown and restart the server.>
***************************************************************************
The WebLogic Server did not start up properly.
Exception raised: 'weblogic.server.ServiceFailureException: Could not obtain an exclusive lock to the embedded LDAP data files directory: ./myserver/ldap/ldapfiles because another WebLogic Server is already using this directory. Ensure that the first WebLogic Server is completely shutdown and restart the server.'
Reason: weblogic.server.ServiceFailureException: Could not obtain an exclusive lock to the embedded LDAP data files directory: ./myserver/ldap/ldapfiles because another WebLogic Server is already using this directory. Ensure that the first WebLogic Server is completely shutdown and restart the server.
***************************************************************************

2359 view

4.0 stars