docker container as bamboo agent is getting error, not able to connect to bamboo server
Asked by Amarendar Musham:

INFO \| jvm 20 \| 2019/09/24 06:00:18 \| 2019-09-24 06:00:18,529 INFO \[WrapperSimpleAppMain\] \[ClasspathBuilder\] Syncing /home/bamboo/bamboo-agent-home with <https://bamboo-oracom-stg.us.oracle.com/bamboo//agentServer/bootstrap/classpath/manifest>  
INFO \| jvm 20 \| 2019/09/24 06:00:18 \| 2019-09-24 06:00:18,645 ERROR \[WrapperSimpleAppMain\] \[ClasspathBuilder\] An error has occurred when retrieving classpath data: HTTP/1.1 404 Not Found  
INFO \| jvm 20 \| 2019/09/24 06:00:18 \| Exiting due to fatal exception.  
INFO \| jvm 20 \| 2019/09/24 06:00:18 \| com.atlassian.bamboo.agent.bootstrap.RemoteAgentHttpException: Response: \[HTTP/1.1 404 Not Found\] received after manifest retrieval request.  
INFO \| jvm 20 \| 2019/09/24 06:00:18 \| at com.atlassian.bamboo.agent.bootstrap.ClasspathBuilder.terminateWithError(ClasspathBuilder.java:213)  
INFO \| jvm 20 \| 2019/09/24 06:00:18 \| at com.atlassian.bamboo.agent.bootstrap.ClasspathBuilder.getJarList(ClasspathBuilder.java:202)  
INFO \| jvm 20 \| 2019/09/24 06:00:18 \| at com.atlassian.bamboo.agent.bootstrap.ClasspathBuilder.sync(ClasspathBuilder.java:85)  
INFO \| jvm 20 \| 2019/09/24 06:00:18 \| at com.atlassian.bamboo.agent.bootstrap.ClasspathBuilder.getClassLoader(ClasspathBuilder.java:58)  
INFO \| jvm 20 \| 2019/09/24 06:00:18 \| at com.atlassian.bamboo.agent.bootstrap.AgentContext.newClassLoader(AgentContext.java:329)  
INFO \| jvm 20 \| 2019/09/24 06:00:18 \| at com.atlassian.bamboo.agent.bootstrap.AgentContext.run(AgentContext.java:93)  
INFO \| jvm 20 \| 2019/09/24 06:00:18 \| at com.atlassian.bamboo.agent.bootstrap.AgentBootstrap.run(AgentBootstrap.java:112)  
INFO \| jvm 20 \| 2019/09/24 06:00:18 \| at com.atlassian.bamboo.agent.bootstrap.AgentBootstrap.main(AgentBootstrap.java:51)  
INFO \| jvm 20 \| 2019/09/24 06:00:18 \| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
INFO \| jvm 20 \| 2019/09/24 06:00:18 \| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)  
INFO \| jvm 20 \| 2019/09/24 06:00:18 \| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
INFO \| jvm 20 \| 2019/09/24 06:00:18 \| at java.lang.reflect.Method.invoke(Method.java:498)  
INFO \| jvm 20 \| 2019/09/24 06:00:18 \| at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:349)  
INFO \| jvm 20 \| 2019/09/24 06:00:18 \| at java.lang.Thread.run(Thread.java:748)  
INFO \| jvm 20 \| 2019/09/24 06:00:18 \| 2019-09-24 06:00:18,647 FATAL \[WrapperSimpleAppMain\] \[AgentBootstrap\] Exiting due to fatal exception.  
INFO \| jvm 20 \| 2019/09/24 06:00:18 \| com.atlassian.bamboo.agent.bootstrap.RemoteAgentHttpException: Response: \[HTTP/1.1 404 Not Found\] received after manifest retrieval request.  
INFO \| jvm 20 \| 2019/09/24 06:00:18 \| at com.atlassian.bamboo.agent.bootstrap.ClasspathBuilder.terminateWithError(ClasspathBuilder.java:213)  
INFO \| jvm 20 \| 2019/09/24 06:00:18 \| at com.atlassian.bamboo.agent.bootstrap.ClasspathBuilder.getJarList(ClasspathBuilder.java:202)  
INFO \| jvm 20 \| 2019/09/24 06:00:18 \| at com.atlassian.bamboo.agent.bootstrap.ClasspathBuilder.sync(ClasspathBuilder.java:85)  
INFO \| jvm 20 \| 2019/09/24 06:00:18 \| at com.atlassian.bamboo.agent.bootstrap.ClasspathBuilder.getClassLoader(ClasspathBuilder.java:58)  
INFO \| jvm 20 \| 2019/09/24 06:00:18 \| at com.atlassian.bamboo.agent.bootstrap.AgentContext.newClassLoader(AgentContext.java:329)  
INFO \| jvm 20 \| 2019/09/24 06:00:18 \| at com.atlassian.bamboo.agent.bootstrap.AgentContext.run(AgentContext.java:93)  
INFO \| jvm 20 \| 2019/09/24 06:00:18 \| at com.atlassian.bamboo.agent.bootstrap.AgentBootstrap.run(AgentBootstrap.java:112)  
INFO \| jvm 20 \| 2019/09/24 06:00:18 \| at com.atlassian.bamboo.agent.bootstrap.AgentBootstrap.main(AgentBootstrap.java:51)  
INFO \| jvm 20 \| 2019/09/24 06:00:18 \| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
INFO \| jvm 20 \| 2019/09/24 06:00:18 \| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)  
INFO \| jvm 20 \| 2019/09/24 06:00:18 \| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
INFO \| jvm 20 \| 2019/09/24 06:00:18 \| at java.lang.reflect.Method.invoke(Method.java:498)  
INFO \| jvm 20 \| 2019/09/24 06:00:18 \| at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:349)  
INFO \| jvm 20 \| 2019/09/24 06:00:18 \| at java.lang.Thread.run(Thread.java:748)  
ERROR \| wrapper \| 2019/09/24 06:00:18 \| JVM exited while starting the application.


Answers:
author: Amarendar Musham
body: This happened due to the version mismatch of the server and agent. After using the same version in Agent like in Server, it fixed the issue.