WebLogic Server Node Manager Log File Redirection Doesn't Work After Crash Recovery (Doc ID 1340087.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle WebLogic Server - Version 10.3.3 and later
Information in this document applies to any platform.

Symptoms

WebLogic Server Node Manager is not able to redirect JVM stdout and stderr output channels to files after a crash recovery. Logfile names and directories are configured in the server's startup.properties file via weblogic.Stdout and weblogic.Stderr properties. This works fine with normal server start. However, the properties are not honored by Node Manager after a crash recovery procedure. The stdout/sterr logfile (both channels in one file) is always created in the domain/servers/server_name/logs directory instead.

Steps to replicate:

  1. Edit the startup.properties of admin server to log the stdout and stderr in some files.
  2. Start Node Manager using startNodeManager.cmd with weblogic.Stdout and weblogic.Stderr specified, like the following:
    -Dweblogic.Stdout="D:\\Oracle\\WLS1033\\user_projects\\domains\\NM_BUG\\servers\\AdminServer\\data\\nodemanager\\stdkd.out" -Dweblogic.Stderr="D:\\Oracle\\WLS1033\\user_projects\\domains\\NM_BUG\\servers\\AdminServer\\data\\nodemanager\\stdkderr"
    This should log the stderr and stdout to the files specified.
  3. Start the Admin Server using Node Manager:
    nmConnect([username, password], [host], [port], [domainName], [domainDir] [nmType], [verbose])
    For example:
    nmConnect('weblogic', 'weblogic1', 'localhost', '5556', 'NM_BUG', 'D:\Oracle\WLS1033\user_projects\domains\NM_BUG', verbose='true')
    nmStart('AdminServer')
    You will see logs created in the location specified in the startup.properties of the admin server as above.
  4. Enable crash recovery:
    1. Set AutoRestart=true in the startup.properties file.
    2. Set CrashRecoveryEnabled=true in the nodemanager.properties file.
  5. Start the Admin Server using domain/startWebLogic.cmd.
  6. Start WLST:
    nmConnect('weblogic', 'weblogic1', 'localhost', '5556', 'NM_BUG', 'D:\Oracle\WLS1033\user_projects\domains\NM_BUG', verbose='true')
  7. Restart the admin server from WLST:
    nmStart('AdminServer','/oracle/middleware/user_projects/domains/abc')
  8. Reboot the physical machine.

The server is running, but the logs will be generated under the default location /servers/AdminServer/logs. Nothing will be logged in the location specified in the startup.properties.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms