Oracle Retail Agent will not start: java.io.IOException: Permission denied at java.io.File.createTempFile(File.java:2013)
search cancel

Oracle Retail Agent will not start: java.io.IOException: Permission denied at java.io.File.createTempFile(File.java:2013)

book

Article ID: 84375

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

Error Message :
java.io.IOException: Permission denied
at java.io.File.createTempFile(File.java:2013)
at java.io.File.createTempFile(File.java:2059)
at java_io_File$createTempFile.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)

RA Oracle Retail Agent fails to start. Log file initially only contains the following:
 
20180115/171454.637 - U02000107 Connection object 'CONN.ORACLERETAILAGENT.TEST' with time stamp '##########' was successfully transferred to the Agent.
20180115/171456.313 - U02013310 Failed to load RA Agent.

Starting the Agent from command line and adding -Xdebug to the command shows the following in the command prompt (does not show up in the log file):

java.io.IOException: Permission denied 
at java.io.File.createTempFile(File.java:2013) 
at java.io.File.createTempFile(File.java:2059) 
at java_io_File$createTempFile.call(Unknown Source) 
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40) 
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) 

Environment

OS Version: N/A

Cause

Cause type:
Configuration
Root Cause: There are not sufficient permissions on Environment Variable TMPDIR.

Resolution

Change the permissions on the Environment Variable TMPDIR:

1) Find TMPDIR path
echo $TMPDIR               <----- In the following commands we will assume that this is "/example/tmp"

2) Apply the permission changes 
chmod o+w /example/tmp

3) Check the new permissions
Permissions should look like the following:
drwxrwxrwx 6 oracle oinstall 4096 Jan 15 18:55 . 
drwxrwxr-x 6 oracle oinstall 256 Nov 14 10:28 .. 
drwxrwxrwt 3 grid oinstall 256 Jan 15 18:54 .com_ibm_tools_attach 
-rw------- 1 lpar2rrd lpar2rrd 0 Jan 15 18:55 croutuexLMj 
drwxrwx--- 4 grid oinstall 256 Dec 7 15:28 grid 
drwxr-xr-x 2 root system 256 Nov 1 17:26 lost+found 
drwxrwx--- 5 oracle oinstall 4096 Jan 15 15:39 oracle 


Fix Status: No Fix

Fix Version(s):
N/A

Additional Information

Workaround :
N/A