Change Temporary location "/tmp" used by XLDeploy packages import

Follow

Ibrahim Elshal -

Issue

/tmp directory is used for deployment packages import because those packages needs to be extracted to scan for placeholders, you may need to change that path to different location.

Environment

XLDeploy

Resolution

In order to avoid that we can change that location to another path than /tmp, this can be done useing -Djava.io.tmpdir flag as below,

  • Modify the XL_Deploy_server_Home/xld-wrapper-linux.conf "for linux" or xld-wrapper-win.conf file "for Windows" and add this flag for java option,
     wrapper.java.additional.N=-Djava.io.tmpdir=/path/to/my/tmp 
     (N is the next number in line on your wrapper.java.additional option)
  • If you have installed XLD as a service then you will have to re-install the service otherwise just restart XLD.
Cause

in some cases package imports may fail with error no space left on the device if /tmp become full.

Additional Information

Attached xld-wrapper-linux.conf which is an example of configurations with -Djava.io.tmpdir set to different path /var/tmp.

 

Below is Example of error you may receive while importing package fail because /tmp is full,

Error: Could not copy /tmp/1480513451729-0/file.dar/web-1.0.war AP/web-1.0.war to /tmp/temp-web-1.0.war AP336096708659721712/web-1.0.war while importing Applications/WebApp/0.1/web-1.0.war AP No space left on device
Tags

 XLDeploy, Packages

Have more questions? Submit a request
Powered by Zendesk