Remote agents do not work with HTTP to HTTPS redirects in Tomcat web.xml

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Unresolved
    • None
    • Component/s: Agents
    • None
    • 0
    • 3

      Remote agents will fail to connect if HTTP to HTTPS redirection is configured in Tomcat web.xml. The logs in the remote agent will show the following errors:

       ERROR [WrapperSimpleAppMain] [ClasspathBuilder] An error has occurred when retrieving classpath data: HTTP/1.1 302 Found
       Exiting due to fatal exception.
       com.atlassian.bamboo.agent.bootstrap.RemoteAgentHttpException: Response: [HTTP/1.1 302 Found] received after 'classpath.zip' retrieval request.
       at com.atlassian.bamboo.agent.bootstrap.ClasspathBuilder.getRemoteResources(ClasspathBuilder.java:118)
       at com.atlassian.bamboo.agent.bootstrap.ClasspathBuilder.build(ClasspathBuilder.java:59)
       at com.atlassian.bamboo.agent.bootstrap.AgentContext.newClassLoader(AgentContext.java:388)
       at com.atlassian.bamboo.agent.bootstrap.AgentContext.run(AgentContext.java:98)
       at com.atlassian.bamboo.agent.bootstrap.AgentBootstrap.run(AgentBootstrap.java:117)
       at com.atlassian.bamboo.agent.bootstrap.AgentBootstrap.main(AgentBootstrap.java:52)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:497)
       at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
       

      Workaround:

      1. In the remote agent edit the "wrapper.app.parameter" in <agent-home>/conf/wrapper.conf and change the protocol to https.
        E.g: wrapper.app.parameter=http://bamboo-server.com/agentServer/ change to wrapper.app.parameter=https://bamboo-server.com/agentServer/
      2. Restart the remote agent

            Assignee:
            Unassigned
            Reporter:
            Augusto Santos (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: