WAS - Get Application Status returns: .fileTableLock (Permission denied)

book

Article ID: 222204

calendar_today

Updated On:

Products

CA Release Automation - Release Operations Center (Nolio)

Issue/Introduction

While running a deployment, the action (WAS - Get Application Status) is returning the following error:

!SESSION 2021-08-11 16:41:51.004 ----------------------------------------------- eclipse.buildId=M20060921-0945 java.fullversion=8.0.6.20 - pxa6480sr6fp20-20201120_02(SR6 FP20) JRE 1.8.0 Linux amd64-64-Bit Compressed References 20201102_458768 (JIT enabled, AOT enabled) OpenJ9 - 5b31a42 OMR - 6ad3a34 IBM - b7e48f4 BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US Framework arguments:41:51.117 !MESSAGE Error reading configuration: /path/to/1.0/was/<instance>/configuration/org.eclipse.osgi/.manager/.fileTableLock (Permission denied) !STACK 0 java.io.FileNotFoundException: /path/to/1.0/was/<instance>/configuration/org.eclipse.osgi/.manager/.fileTableLock (Permission denied) at java.io.RandomAccessFile.open0(Native Method) at java.io.RandomAccessFile.open(RandomAccessFile.java:333) at java.io.RandomAccessFile.(RandomAccessFile.java:257) at org.eclipse.core.runtime.internal.adaptor.Locker_JavaNio.lock(Locker_JavaNio.java:33) at org....(truncated)

 

Cause

The action (WAS - Get Application Status) is configured to with it's settings set to:

Credentials:

  • Use server type credentials

This means, by default (which applied here), the action will be run as the user that the agent is running as. However, that user does not have access to the files/folders in the WAS application directory structure. 

Environment

Release : 6.7

Component : CA RELEASE AUTOMATION ACTION PACK

 

Resolution

Reconfigure the action's settings so that the "Credentials" use "Use the following credentials" option and then provide the "wasadmin" user - which does have the appropriate access to the WAS application directory structure. 

 

Additional Information

The resolution uses the impersonate feature. Additional information regarding the impersonate feature can be found here: