WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  wasadmin script exception: WASX7017E and system's tmp folder

    Posted Thu July 04, 2013 01:25 PM

    Hi,


    As we know wsadmin script helps application deployment, for example we can use AdminApp.install() to deploy apps.


    Question here is, wsadmin will utilise system's tmp folder (not WAS temp folder) for interim ear files during deployment, and if system's tmp folder is not big enough, the deployment script will simply throw exception WASX7017E error, like:

    Cannot copy file "/XXX_deploy/ABC.ear" to file "/tmp/app30617466406113855.ear"


    Is there anyway to route wsadmin deployment script to use other folders instead of use system's (AIX) tmp folder?

    Thanks,
    Eric



  • 2.  wasadmin script exception: WASX7017E and system's tmp folder

    Posted Thu July 04, 2013 02:34 PM
    Hi ericYP,

      I can't check now but if I'm not wrong the script is using system temp environment variable. 

      if you do an export of your system temp variable before execute the wsadmin script (or in it) you can change the location of the intermediary files.

      I don't remember in AIX temp variable, maybe IATEMPDIR?

      Hope this help.

    Regards


  • 3.  wasadmin script exception: WASX7017E and system's tmp folder

    Posted Fri July 05, 2013 05:31 PM

    Thanks Gabriel, for the prompt response.


    I have found a solution for this issue, we can actually set tempdir within wsadmin.properties to reroute wsadmin interim process.

    Have a nice weekend !

    Eric



  • 4.  wasadmin script exception: WASX7017E and system's tmp folder

    Posted Fri July 05, 2013 06:53 PM
    great EricYP!!!

    good to know about this property

    wsadmin.properties:

    #-------------------------------------------------------------------------
    # The tempdir property determines what directory to use for temporary
    # files when installing applications.  
    # The default is that the JVM decides -- this is java.io.tmpdir
    #-------------------------------------------------------------------------
    #com.ibm.ws.scripting.tempdir=


    enjoy the weekend!!!!

    Regards,