BARA|BMA - Failure uploading archive to server - Connection timed out - ports to be opened in firewall

Version 3
    Share This:

    This document contains official content from the BMC Software Knowledge Base. It is automatically updated when the knowledge article is modified.


    PRODUCT:

    BladeLogic Application Release Automation - Standard


    APPLIES TO:

    BMC BladeLogic Application Release Automation - Standard



    PROBLEM:

     

    Getting the below error during application deploy. All other tasks like , snapshot, creation of resources, etc works fine.

      



    com.ibm.websphere.management.exception.AdminException: Failure uploading archive to server
    WebSphere:Name=Cell_01,Type=Cell:Application
    com.phurnace.engine.websphere.MBeanServerFacade.installApplication(MBeanServerFacade.java:1771)
    com.phurnace.mbeans.websphere.Application.install(Application.java:162)
    com.phurnace.engine.websphere.AbstractWebSphereEngine.installMBean(AbstractWebSphereEngine.java:1042)
    com.phurnace.engine.websphere.AbstractWebSphereEngine.installMBean(AbstractWebSphereEngine.java:988)
    com.phurnace.mbeans.websphere.websphere70.Cell.installScopedResources(Cell.java:68)
    com.phurnace.mbeans.websphere.ScopeResourceMBean.install(ScopeResourceMBean.java:26)
    com.phurnace.engine.websphere.AbstractWebSphereEngine.installMBean(AbstractWebSphereEngine.java:1042)
    com.phurnace.engine.websphere.AbstractWebSphereEngine.installMBean(AbstractWebSphereEngine.java:988)
    com.phurnace.engine.websphere70.WebSphere70Engine.install(WebSphere70Engine.java:1414)
    com.phurnace.engine.AbstractEngine.status(AbstractEngine.java:283)
    com.phurnace.DeliverEngineMain.run(DeliverEngineMain.java:522)
    com.phurnace.DeliverEngineMain.doWork(DeliverEngineMain.java:245)
    com.phurnace.DeliverEngineMain.main(DeliverEngineMain.java:111)

    [java] com.phurnace.exception.PhurnaceException: com.ibm.websphere.management.exception.AdminException: Failure uploading archive to server
    [java] at com.phurnace.engine.websphere.MBeanServerFacade.installApplication(MBeanServerFacade.java:1771)
    [java] at com.phurnace.mbeans.websphere.Application.install(Application.java:162)
    [java] at com.phurnace.engine.websphere.AbstractWebSphereEngine.installMBean(AbstractWebSphereEngine.java:1042)
    [java] at com.phurnace.engine.websphere.AbstractWebSphereEngine.installMBean(AbstractWebSphereEngine.java:988)
    [java] at com.phurnace.mbeans.websphere.websphere70.Cell.installScopedResources(Cell.java:68)
    [java] at com.phurnace.mbeans.websphere.ScopeResourceMBean.install(ScopeResourceMBean.java:26)
    [java] at com.phurnace.engine.websphere.AbstractWebSphereEngine.installMBean(AbstractWebSphereEngine.java:1042)
    [java] at com.phurnace.engine.websphere.AbstractWebSphereEngine.installMBean(AbstractWebSphereEngine.java:988)
    [java] at com.phurnace.engine.websphere70.WebSphere70Engine.install(WebSphere70Engine.java:1414)
    [java] at com.phurnace.engine.AbstractEngine.status(AbstractEngine.java:283)
    [java] at com.phurnace.DeliverEngineMain.run(DeliverEngineMain.java:522)
    [java] at com.phurnace.DeliverEngineMain.doWork(DeliverEngineMain.java:245)
    [java] at com.phurnace.DeliverEngineMain.main(DeliverEngineMain.java:111)
    [java] Caused by:
    [java] com.ibm.websphere.management.exception.AdminException: Failure uploading archive to server
    [java] at com.ibm.websphere.management.application.AppManagementProxy.uploadArchive(AppManagementProxy.java:695)
    [java] at com.ibm.websphere.management.application.AppManagementProxy.installApplication(AppManagementProxy.java:470)
    [java] at com.phurnace.engine.websphere.MBeanServerFacade.installApplication(MBeanServerFacade.java:1760)
    [java] ... 12 more
    [java] Caused by:
    [java] com.ibm.websphere.management.filetransfer.client.TransferFailedException: Upload retry limit exceeded for file /ARA_INSTALL_HOME/workspace/working/**time-stamp**/PlantsByWebSphere.ear. Exception: java.net.ConnectException: Connection timed out
    [java] at com.ibm.ws.management.filetransfer.client.FileTransferClientImpl.uploadFileInternal(FileTransferClientImpl.java:593)
    [java] at com.ibm.ws.management.filetransfer.client.FileTransferClientImpl.uploadFile(FileTransferClientImpl.java:448)
    [java] at com.ibm.ws.management.filetransfer.client.FileTransferClientImpl.uploadFile(FileTransferClientImpl.java:355)
    [java] at com.ibm.ws.management.filetransfer.client.FileTransferClientImpl.uploadFile(FileTransferClientImpl.java:279)
    [java] at com.ibm.ws.management.application.client.AppInstallHelper.copyToServer(AppInstallHelper.java:993)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
    [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    [java] at java.lang.reflect.Method.invoke(Method.java:611)
    [java] at com.ibm.websphere.management.application.AppManagementProxy.uploadArchive(AppManagementProxy.java:681)
    [java] ... 14 more
    [java] Caused by:
    [java] java.net.ConnectException: Connection timed out
    [java] at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:363)
    [java] at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:225)
    [java] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:212)
    [java] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:377)
    [java] at java.net.Socket.connect(Socket.java:539)
    [java] at java.net.Socket.connect(Socket.java:488)
    [java] at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
    [java] at sun.net.www.http.HttpClient.openServer(HttpClient.java:407)
    [java] at sun.net.www.http.HttpClient.openServer(HttpClient.java:542)
    [java] at com.ibm.net.ssl.www2.protocol.https.c.<init>(c.java:80)
    [java] at com.ibm.net.ssl.www2.protocol.https.c.a(c.java:105)
    [java] at com.ibm.net.ssl.www2.protocol.https.d.getNewHttpClient(d.java:19)
    [java] at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:921)
    [java] at com.ibm.net.ssl.www2.protocol.https.d.connect(d.java:62)
    [java] at com.ibm.net.ssl.www2.protocol.https.b.connect(b.java:25)
    [java] at com.ibm.ws.management.filetransfer.client.FileTransferClientImpl.connectToServer(FileTransferClientImpl.java:2885)
    [java] at com.ibm.ws.management.filetransfer.client.FileTransferClientImpl.openConnection(FileTransferClientImpl.java:2797)
    [java] at com.ibm.ws.management.filetransfer.client.FileTransferClientImpl.uploadFileInternal(FileTransferClientImpl.java:548)






    Issue Summary: unable to deploy application to new system, getting file upload error
     

     


    SOLUTION:

     

    Legacy ID:KA348725

      

    If the target WAS Application Server is behind a firewall and you get these error that means some of the required ports are not opened. Below are the ports that are needed to be opened:

    1. Target WAS DMGR SOAP_CONNECTOR_ADDRESS - this is needed for BARA to connect to the DMGR for almost all transactions.
    2. Target WAS DMGR WC_adminhost (HTTP)
    3. Target WAS DMGR WC_adminhost_secure (HTTPS)

    We need the HTTP and HTTPS ports for the DMGR added in the firewall because the EAR file upload always happens through the https://WAS-target:port/FileTransfer. This url is provided by Websphere to upload the file and the port here is the HTTP or HTTPS port of the DMGR. If the target WAS is secure then the port is HTTPS.

    The connection time out issue caused if the ports are not opened in firewall. Opening the ports mentioned above resolves the problem.

      
    Related Products:  
       
    1. BMC BladeLogic Application Release Automation - Standard

     


    Article Number:

    000077835


    Article Type:

    Solutions to a Product Problem



      Looking for additional information?    Search BMC Support  or  Browse Knowledge Articles