Thứ Năm, 27 tháng 2, 2020

Tổng hợp các lỗi thường gặp về Admin Console WebLogic

Message lỗi
Nguyên nhân
Giải pháp
<Nov 14, 2012 10:58:56 AM ICT> <Info> <Management> <BEA-141281> <unable to get file lock, will retry ...>
Tiến trình WebLogic vẫn đang chạy
Kill -9 hết các tiến trình WebLogic, java
<Nov 19, 2012 11:37:18 PM ICT> <Error> <EmbeddedLDAP> <BEA-000000> <Error opening the Transaction Log: /u01/weblogic/Oracle/Middleware/user_projects/domains/Test_Domain/servers/AdminServer/data/ldap/ldapfiles/EmbeddedLDAP.tran (Permission denied)>
<Nov 19, 2012 11:37:18 PM ICT> <Error> <EmbeddedLDAP> <BEA-000000> <Error Instantiating 'dc=Test_Domain': null>
<Nov 19, 2012 11:37:18 PM ICT> <Critical> <EmbeddedLDAP> <BEA-171522> <An error occurred while initializing the Embedded LDAP Server. The exception thrown is java.lang.ClassCastException: com.octetstring.vde.backend.BackendRoot cannot be cast to com.octetstring.vde.backend.standard.BackendStandard. This may indicate a problem with the data files for the Embedded LDAP Server. If the problem is with the data files and it can not be corrected, backups of previous versions of the data files exist in /u01/weblogic/Oracle/Middleware/user_projects/domains/Test_Domain/servers/AdminServer/data/ldap/backup.>
<Nov 19, 2012 11:37:18 PM ICT> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason:


There are 1 nested errors:

java.lang.ClassCastException: com.octetstring.vde.backend.BackendRoot cannot be cast to com.octetstring.vde.backend.standard.BackendStandard
        at weblogic.ldap.EmbeddedLDAP.start(EmbeddedLDAP.java:303)
        at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

>
<Nov 19, 2012 11:37:18 PM ICT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>
<Nov 19, 2012 11:37:18 PM ICT> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down>
<Nov 19, 2012 11:37:18 PM ICT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>
User root start WebLogic bị reboot đột ngột do đó vẫn còn lock
Phân quyền cho user weblogic có quyền file EmbeddedLDAP.tran
Weblogic Fails To Start With Error "Unable To Obtain Lock" [ID 957377.1]
Cause

This problem sometimes occurs if you killed the bin/startWebLogic process via:

kill -KILL
Solution

There are two possible solutions:

remove the lock files and restart
kill any remaining server processes (if they exist) and restart
Solution1: Removing the lock files and restarting

1. Find -name "*.DAT" files in user_projects/domains/<your domain name> directory (as appropriate) and move or remove them, for example:

$ find . -name "*DAT"
./servers/AdminServer/data/store/diagnostics/WLS_DIAGNOSTICS000000.DAT
./servers/AdminServer/data/store/default/_WLS_ADMINSERVER000000.DAT

NOTE: Gentle reminder that Unix is case sensitive. you do need to make sure you do NOT delete the file <CM HOME>/security/SerializedSystemIni.dat, it is the files ending with "*.DAT" not "*.dat"

Deleting .DAT files: with reference to Note 1332274.1. Please be aware of the implications of removing the .DAT files. "...There may be error messages for transactions that were already committed and finished during the WebLogic Server run. However, the transaction entries will still be available in the transaction persistent store file (.DAT file)..."



2. Remove lock files: "EmbeddedLDAP.lok" and "AdminServer.lok" (maybe some more). These files are usually under paths such as below

/opt/bea/user_projects/domains/ORACLE_COMMUNICATIONS/servers/AdminServer/tmp/AdminServer.lok

opt/bea/user_projects/domains/ORACLE_COMMUNICATIONS/servers/AdminServer/data/ldap/ldapfiles/EmbeddedLDAP.lok

3. You can use the following shell script to find out which process is listening to your port, and kill this via kill -TERM:

#!/bin/ksh

line='---------------------------------------------'
pids=$(/usr/bin/ps -ef | sed 1d | awk '{print $2}')

if [ $# -eq 0 ]; then
   read ans?"Enter port you would like to know pid for: "
else
   ans=$1
fi

for f in $pids
do
   /usr/proc/bin/pfiles $f 2>/dev/null | /usr/xpg4/bin/grep -q "port: $ans"
   if [ $? -eq 0 ]; then
      echo $line
      echo "Port: $ans is being used by PID:\c"
      /usr/bin/ps -ef -o pid -o args | egrep -v "grep|pfiles" | grep $f
   fi
done
exit 0

4. Execute:
nohup ./startWebLogic.sh &

Solution2: kill any remaining server processes (if they exist) and restart

Using the example of a managed server

1. Find the PID of the managed server

ps -ef | grep ManagedServer


2. Kill the managed server process with a -KILL

kill -9 <pid of managed server>


3. Restart the Admin server and Managed servers

nohup ./startWebLogic.sh &



Note: the startWebLogic.sh script is usually run with nohup so the user can exit the shell leaving the process running.
Không stop được WebLogic
Do thay đổi cổng từ file config mà chưa đổi lại trong ./u01/oracle/app/fmw/10.3.2/user_projects/domains/TEST_DOMAIN/bin/stopWebLogic.sh
Thay đổi dòng:
ADMIN_URL="t3://Blade04:7411"
There are 1 nested errors:

weblogic.management.ManagementException: Unable to obtain lock on /u01/oracle/app/fmw/10.3.6/user_projects/domains/OTHERS_Domain/servers/AdminServer/tmp/AdminServer.lok. Server may already be running
        at weblogic.management.internal.ServerLocks.getServerLock(ServerLocks.java:206)
<Jan 19, 2015 2:16:35 PM ICT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>
<Jan 19, 2015 2:16:35 PM ICT> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down>
<Jan 19, 2015 2:16:35 PM ICT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>

·         Đang start bị lỗi
(VD lần đầu tiên gõ nohup ./startWebLogic.sh & trong khi đó phải nhập user/pass do đó không RUNNING được)
·         Hoặc bật với user root (cài đặt bằng user weblogic)
·         Xóa file /u01/oracle/app/fmw/10.3.2/user_projects/domains/VMS_TTCP/servers/AdminServer/tmp/AdminServer.


·         Phân quyền lại (chú ý có 2 file bị đổi sang quyền root: shutdown.py,…) và stopWebLogic.sh sau đó startWebLogic.sh
javax.naming.AuthenticationException [Root exception is java.lang.SecurityException: User: weblogic, failed to be authenticated.]
        at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:42)
Caused by: java.lang.SecurityException: User: weblogic, failed to be authenticated.
        at weblogic.common.internal.RMIBootServiceImpl.authenticate(RMIBootServiceImpl.java:116)
Problem invoking WLST - Traceback (innermost last):
  File "/u01/oracle/app/fmw/10.3.2/user_projects/domains/TEST_DOMAIN/shutdown.py", line 1, in ?
  File "<iostream>", line 22, in connect
  File "<iostream>", line 618, in raiseWLSTException
WLSTException: Error occured while performing connect : User: weblogic, failed to be authenticated.
Use dumpStack() to view the full stacktrace
Pass weblogic đã bị đổi
·         C1:
·         Backup file boot.properties (./AdminServer_esm1/security/boot.properties hoặc ./CSKH_HN1/data/nodemanager/boot.properties)
·         Tạo lại nội dung file boot.properties
bash-3.00# more ./AdminServer_esm1/security/boot.properties
#Fri Feb 28 10:31:05 ICT 2014
username=weblogic
password=weblogic1
javax.naming.CommunicationException [Root exception is java.net.ConnectException: t3://wls1:7011: Destination unreachable; nested exception is:
java.net.ConnectException: Connection refused; No available router to destination]
Problem invoking WLST - Traceback (innermost last):
  File "/u01/oracle/app/fmw/10.3.2/user_projects/domains/TEST_DOMAIN/shutdown.py", line 1, in ?
  File "<iostream>", line 22, in connect
  File "<iostream>", line 618, in raiseWLSTException
WLSTException: Error occured while performing connect : Error getting the initial context. There is no server running at t3://wls1:7011
Use dumpStack() to view the full stacktrace


java.lang.ClassCastException: com.octetstring.vde.backend.BackendRoot incompatible with com.octetstring.vde.backend.standard.BackendStandard

Restart Admin console bằng user root
<Apr 13, 2015 4:28:36 PM ICT> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason:

There are 1 nested errors:

java.lang.ClassCastException: com.octetstring.vde.backend.BackendRoot incompatible with com.octetstring.vde.backend.standard.BackendStandard
        at weblogic.ldap.EmbeddedLDAP.start(EmbeddedLDAP.java:303)
        at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

>
<Apr 13, 2015 4:28:36 PM ICT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>
<Apr 13, 2015 4:28:36 PM ICT> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down>
<Apr 13, 2015 4:28:36 PM ICT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>
Thiếu quyền khi start bằng weblogic
Phân lại quyền
# chmod -Rf 755 /u01/oracle/app/fmw/10.3.6
# chown -Rf weblogic:staff /u01/oracle/app/fmw/10.3.6
<Sep 29, 2016 10:06:19 PM ICT> <Warning> <Socket> <BEA-000444> <Could not load the performance pack that can take advantage of /dev/(e)poll device due to:
        java.lang.NegativeArraySizeException.
Will attempt to use the performance pack that does not depend on /dev/(e)poll device.>
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0xffffffff3d704e68, pid=10653, tid=31
#
# JRE version: 6.0_26-b03
# Java VM: Java HotSpot(TM) 64-Bit Server VM (20.1-b02 mixed mode solaris-sparc compressed oops)
# Problematic frame:
# C  [libmuxer.so+0x4e68]  initializeLoopbackSocket+0xf0
#
# An error report file with more information is saved as:
# /u01/weblogic/app/Middleware/user_projects/domains/TestExa/hs_err_pid10653.log
#
# If you would like to submit a bug report, please visit:
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Abort - core dumped

root@testcard1 # ulimit -n
10000
root@testcard1 # ulimit -n 65534
root@testcard1 # ulimit -n
65534


@ Trần Văn Bình - Founder of Oracle DBA AZ
#học oracle #oracle database #khóa học oracle online #khóa học oca #học oca ở đâu #oca là gì #oca oracle #BossData #OraAz #OracleDBAAz #OracleTutorial #Quản_trị_cơ_sở_dữ_liệu_Oracle #OracleDBA #OracleDatabaseAdministration

ĐỌC NHIỀU

Trần Văn Bình - Oracle Database Master