Stop Weblogic: can’t write cache file…

Environment:

Weblogic 923

Situation:

When stop Weblogic, error messages displayed:

Initializing WebLogic Scripting Tool (WLST) ...
*sys-package-mgr*: invalid index file
*sys-package-mgr*: can't write cache file for ...

Reason:

According to Oracle, it says “This message appears because WLST creates a temporary directory (for example, on Solaris it is /var/tmp/wlstTemp) that gets shared by all users and it is unable to differentiate between users. As a result, access to the directory gets blocked when the user accessing the directory is not the one who originally created the directory.”

Solution:

1. Open stopWeblogic.sh

2. Add -Dpython.cachedir to specify the WLST temp directory

JAVA_OPTIONS="${JAVA_OPTIONS} -Dpython.cachedir=${WL_HOME}/wlstTemp"
export JAVA_OPTIONS
${JAVA_HOME}/bin/java ${JAVA_OPTIONS} weblogic.WLST shutdown.py 2>&1

Reference: http://docs.oracle.com/cd/E13179_01/common/docs92/relnotes/relnotes.html

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s