Synchronizing Applications to Remote Instance Fails due to /var/tmp/APPSERV_REMOVED Permission issue (Doc ID 1227515.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle GlassFish Server - Version 8.1 to 8.2 [Release 8.1 to 8.2]
Oracle GlassFish Server - Version 9.0 to 9.1 [Release 9.0 to 9.1]
Oracle GlassFish Server - Version 2.0 to 2.1.1 [Release 2.0 to 2.1]
Generic UNIX

Symptoms

Starting a server instance explicitly with the Admin Console or asadmin tool will cause a synchronization between the server instance with the cerntral repository, i.e the domain server.

When synchronizing applications ( especially large applications ) to a remote server instance, SEVERE error below logged to the server instance's server.log, and the synchronization failed.

[#|2010-09-27T11:27:01.373+1000|SEVERE|sun-appserver-ee8.1_02|javax.ee.enterprise.system.tools.synchronization|_ThreadID=10;|SYNC029: There was an exception during synchronization.
com.sun.enterprise.ee.synchronization.SynchronizationException: Error while processing response for synch request: ${com.sun.aas.instanceRoot}/applications/

at com.sun.enterprise.ee.synchronization.ResponseProcessCommand.execute(ResponseProcessCommand.java:103)
at com.sun.enterprise.ee.synchronization.JmxRequestMediator.execute(JmxRequestMediator.java:77)
at com.sun.enterprise.ee.synchronization.JmxRequestMediator.run(JmxRequestMediator.java:91)
at java.lang.Thread.run(Thread.java:595)
Caused by: com.sun.enterprise.ee.synchronization.SynchronizationException: SYNC021: Could not create the local file 1285550821321.zip.
at com.sun.enterprise.ee.synchronization.impl.SynchronizationClientImpl.get(SynchronizationClientImpl.java:241)
at com.sun.enterprise.ee.synchronization.impl.SynchronizationClientImpl.getAbsolute(SynchronizationClientImpl.java:196)
at com.sun.enterprise.ee.synchronization.ResponseProcessCommand.downloadZip(ResponseProcessCommand.java:179)
at com.sun.enterprise.ee.synchronization.ResponseProcessCommand.execute(ResponseProcessCommand.java:86)
... 3 more
Caused by: java.io.IOException: Permission denied
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:850)
at com.sun.enterprise.ee.synchronization.impl.SynchronizationClientImpl.get(SynchronizationClientImpl.java:239)
... 6 more
|#]


This issue occurs if the Application server is installed and run as a non-root user with the node-agent and server instances installed on a remote machine from the domain server.

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