IBM Support

PK50967; 6.0.2.21/6.0.2.23: TRAS0016E: Exeption while trying to archive log file

Download


Abstract

Application Server prints a verbose warning when it fails to rollover a log file.

Download Description

PK50967 resolves the following problem:

ERROR DESCRIPTION:
TRAS0016E: An unexpected exception while trying to archive log file when IBM® WebSphere® Application Server is running under Test environment of IBM Rational® Application Developer (RAD).

The log files are supposed to be locked by other processes like Rational Application Developer, Rational Software Architect, and Eclipse, which results in the application server not able to rename the file which is scheduled for file rotation when the file size reaches to the value specified in "logs and traces" option of Application Server administrative console.

This APAR will attempt to copy the log file over if the rename fails during the rollover process.

LOCAL FIX:
none.

PROBLEM SUMMARY

USERS AFFECTED:
Users who run IBM WebSphere Application Server versions 6.0.2 and 6.1 in a development environment such as Eclipse, Rational Application Developer, and so on, or any user who monitors WebSphere Application Server log files in a "file locking" text editor.

PROBLEM DESCRIPTION:
Application Server prints a verbose warning when it fails to rollover a log file.

RECOMMENDATION:
None

Application Server attempts to roll over a log file by stopping all output, then renaming the existing file (that is, from SystemOut.log to SystemOut_<timestamp>.log), then resuming output to a new file called SystemOut.log. If the rename operation fails (usually because another process like WordPad, Eclipse, or other has locked the log file), Application Server will write a verbose error message with the message ID, TRAS0016E, and will continue logging to the same file.

PROBLEM CONCLUSION:
While it is impossible for Application Server to force the rename when the operating system fails to rename the file, Application Server can attempt the roll-over by copying the existing log file to a new file with the timestamp appended, and then write-over the original log file. This makes it possible to roll over log files even when the rename operation fails.

Application Server will still write a warning message when the rename fails. This is because a copy operation is significantly slower than a rename operation, so system performance can be affected. Also, it is possible that the copy operation will fail (due to insufficient disk space, or some other error). In this case, Application Server will log a verbose error message, so that the root cause of the copy failure can be identified.

The fix for this APAR is currently targeted for inclusion in Fix Packs 6.0.2.25 and 6.1.0.15. Please refer to the recommended updates page for delivery information:

http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980

The file 6.1.0.0-WS-WAS-IFPK50967.pak can be applied to V6.1.0.5- V6.1.0.13.

Prerequisites

Download the UpdateInstaller below to install this fix.

[{"PRLabel":"UpdateInstaller","PRLang":"US English","PRSize":"7250000","PRPlat":{"label":"Windows","code":"PF033"},"PRURL":"http://www.ibm.com/support/docview.wss?rs=180&uid=swg21205991"}]

Installation Instructions

Review the readme.txt for detailed installation instructions.

[{"INLabel":"Readme","INLang":"US English","INSize":"9430","INURL":"ftp://public.dhe.ibm.com/software/websphere/appserv/support/fixes/PK50967/readme.txt"},{"INLabel":"Readme 6.1","INLang":"US English","INSize":"4359","INURL":"ftp://public.dhe.ibm.com/software/websphere/appserv/support/fixes/PK50967/readme_61.txt"}]

How critical is this fix?

Minimal - this change is "cosmetic" only.

Problems Solved

Avoids printing a stack trace in the System Out (console) when Application Server cannot rename the System Out log file (usually only occurs in Eclipse-based development environment, or when the file is opened in an editor). Windows® only.

Known Side Effects

The log file rollover process will take longer (since copying a file takes longer than renaming it), and no logging can occur during this process.

On
[{"DNLabel":"6.1.0.0-WS-WAS-IFPK50967","DNDate":"1/21/2008","DNLang":"US English","DNSize":"132544","DNPlat":{"label":"Windows","code":"PF033"},"DNURL":"http://www.ibm.com/support/fixcentral/quickorder?fixids=6.1.0.0-WS-WAS-IFPK50967&product=ibm%2FWebSphere%2FWebSphere%20Application%20Server&source=dbluesearch++","DNURL_FTP":"ftp://public.dhe.ibm.com/software/websphere/appserv/support/fixes/PK50967/6.1.0.0-WS-WAS-IFPK50967.pak","DDURL":"http://public.dhe.ibm.com:7618;sw_websphere;appserv/support/fixes/PK50967/6.1.0.0-WS-WAS-IFPK50967.pak"}]

Technical Support

Contact IBM Support using SR (http://www.ibm.com/software/support/probsub.html), visit the WebSphere Application Server Support Web site (http://www.ibm.com/software/webservers/appserv/was/support/), or contact 1-800-IBM-SERV(U.S. only).

[{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"General","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF012","label":"IBM i"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"6.1.0.9;6.1.0.7;6.1.0.5;6.1.0.13;6.1.0.11","Edition":"Base","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SS7K4U","label":"WebSphere Application Server for z\/OS"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":null,"Platform":[{"code":"PF035","label":"z\/OS"}],"Version":"6.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
15 June 2018

UID

swg24018223