Permission Denied error when starting Java based processes (JWP & JCP).
search cancel

Permission Denied error when starting Java based processes (JWP & JCP).

book

Article ID: 103042

calendar_today

Updated On:

Products

CA Automic One Automation

Issue/Introduction

When starting either the JWP or JCP  the following exception is shown in the log file:
Exception in thread "main" java.lang.RuntimeException: ../AutomationEngine/bin/configuration/0/org.eclipse.osgi/.manager/.fileTableLock (Permission denied)

Environment

Release: 12.3,12.2
Component: Automic Automation Engine

Cause

Configuration.

Resolution

The file org.eclipse.osgi is owned by root, therefore the Java processes cannot be started as user automic.

[support@server 0]$ pwd
/opt/Automic/Automation.Platform/AutomationEngine/bin/configuration/0
[support@server 0]$ ls -la
total 204
drwxr-xr-x. 3 automic automic  4096 Jun 15 18:07 .
drwxr-xr-x. 6 automic automic    94 Dec 26  2019 ..
-rw-r--r--. 1 automic automic 97329 Dec 16  2019 1576516933754.log
-rw-r--r--. 1 automic automic 36415 Dec 19  2019 1576778308797.log
-rw-r--r--. 1 automic automic 36415 Dec 19  2019 1576778324878.log
-rw-r--r--. 1 automic automic  1643 Feb 10  2020 1577402549617.log
-rw-r--r--. 1 automic automic  1643 Jun 30  2020 1591036735860.log
-rw-r--r--. 1 automic automic  1643 Oct  5  2020 1593557475748.log
-rw-r--r--. 1 automic automic  1643 Jan  4  2021 1609198241752.log
-rw-r--r--. 1 automic automic  1643 Jan  5  2021 1609804744356.log
-rw-r--r--. 1 automic automic  1643 Feb  9  2021 1609805177955.log
-rw-r--r--. 1 automic automic  1643 Feb  9  2021 1612830944649.log
-rw-r--r--. 1 automic automic  1643 Jun 15 18:02 1621546663589.log
drwxr-xr-x. 4 root root		     89 Jun 15 18:07 org.eclipse.osgi

Once this was changed back to the user automic the Java processes can be started as expected.

[support@server 0]$ pwd
/opt/Automic/Automation.Platform/AutomationEngine/bin/configuration/0
[support@server 0]$ ls -la
total 204
drwxr-xr-x. 3 automic automic  4096 Jun 15 18:07 .
drwxr-xr-x. 6 automic automic    94 Dec 26  2019 ..
-rw-r--r--. 1 automic automic 97329 Dec 16  2019 1576516933754.log
-rw-r--r--. 1 automic automic 36415 Dec 19  2019 1576778308797.log
-rw-r--r--. 1 automic automic 36415 Dec 19  2019 1576778324878.log
-rw-r--r--. 1 automic automic  1643 Feb 10  2020 1577402549617.log
-rw-r--r--. 1 automic automic  1643 Jun 30  2020 1591036735860.log
-rw-r--r--. 1 automic automic  1643 Oct  5  2020 1593557475748.log
-rw-r--r--. 1 automic automic  1643 Jan  4  2021 1609198241752.log
-rw-r--r--. 1 automic automic  1643 Jan  5  2021 1609804744356.log
-rw-r--r--. 1 automic automic  1643 Feb  9  2021 1609805177955.log
-rw-r--r--. 1 automic automic  1643 Feb  9  2021 1612830944649.log
-rw-r--r--. 1 automic automic  1643 Jun 15 18:02 1621546663589.log
drwxr-xr-x. 4 automic automic    89 Jun 15 18:07 org.eclipse.osgi