ERROR [WrapperSimpleAppMain] [AgentContext] An error has occurred when requesting fingerprint: HTTP/
Asked by poovaraj:

I am unable to connect Remote Agent from Bamboo server. It is showing below error message.

**Command:**

java -Dbamboo.agent.ignoreServerCertName=true -jar atlassian-bamboo-agent-installer-6.5.0.jar <https://bamboo.cm.company.com/agentServer/> -t c01af358a80f6d5dsafds94b1d3e231031as

++**Error Message:**++

JVM exited while starting the application.

```
INFO | jvm 5 | 2019/06/13 20:32:11 | 2019-06-13 20:32:11,078 ERROR WrapperSimpleAppMain] [AgentContext] An error has occurred when requesting fingerprint: HTTP/1.1 404 Not Found
INFO | jvm 5 | 2019/06/13 20:32:11 | Exiting due to fatal exception.
INFO | jvm 5 | 2019/06/13 20:32:11 | com.atlassian.bamboo.agent.bootstrap.RemoteAgentHttpException: Response: [HTTP/1.1 404 Not Found] received after fingerprint request.
INFO | jvm 5 | 2019/06/13 20:32:11 | at com.atlassian.bamboo.agent.bootstrap.AgentContext.initFingerprint(AgentContext.java:156)
INFO | jvm 5 | 2019/06/13 20:32:11 | at com.atlassian.bamboo.agent.bootstrap.AgentContext.initServerSession(AgentContext.java:101)
INFO | jvm 5 | 2019/06/13 20:32:11 | at com.atlassian.bamboo.agent.bootstrap.AgentContext.run(AgentContext.java:88)
INFO | jvm 5 | 2019/06/13 20:32:11 | at com.atlassian.bamboo.agent.bootstrap.AgentBootstrap.run(AgentBootstrap.java:111)
INFO | jvm 5 | 2019/06/13 20:32:11 | at com.atlassian.bamboo.agent.bootstrap.AgentBootstrap.main(AgentBootstrap.java:50)
INFO | jvm 5 | 2019/06/13 20:32:11 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO | jvm 5 | 2019/06/13 20:32:11 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
INFO | jvm 5 | 2019/06/13 20:32:11 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
INFO | jvm 5 | 2019/06/13 20:32:11 | at java.lang.reflect.Method.invoke(Method.java:498)
INFO | jvm 5 | 2019/06/13 20:32:11 | at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
INFO | jvm 5 | 2019/06/13 20:32:11 | at java.lang.Thread.run(Thread.java:748)
INFO | jvm 5 | 2019/06/13 20:32:11 | 2019-06-13 20:32:11,083 FATAL [WrapperSimpleAppMain] [AgentBootstrap] Exiting due to fatal exception.
INFO | jvm 5 | 2019/06/13 20:32:11 | com.atlassian.bamboo.agent.bootstrap.RemoteAgentHttpException: Response: [HTTP/1.1 404 Not Found] received after fingerprint request.
INFO | jvm 5 | 2019/06/13 20:32:11 | at com.atlassian.bamboo.agent.bootstrap.AgentContext.initFingerprint(AgentContext.java:156)
INFO | jvm 5 | 2019/06/13 20:32:11 | at com.atlassian.bamboo.agent.bootstrap.AgentContext.initServerSession(AgentContext.java:101)
INFO | jvm 5 | 2019/06/13 20:32:11 | at com.atlassian.bamboo.agent.bootstrap.AgentContext.run(AgentContext.java:88)
INFO | jvm 5 | 2019/06/13 20:32:11 | at com.atlassian.bamboo.agent.bootstrap.AgentBootstrap.run(AgentBootstrap.java:111)
INFO | jvm 5 | 2019/06/13 20:32:11 | at com.atlassian.bamboo.agent.bootstrap.AgentBootstrap.main(AgentBootstrap.java:50)
INFO | jvm 5 | 2019/06/13 20:32:11 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO | jvm 5 | 2019/06/13 20:32:11 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
INFO | jvm 5 | 2019/06/13 20:32:11 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
INFO | jvm 5 | 2019/06/13 20:32:11 | at java.lang.reflect.Method.invoke(Method.java:498)
INFO | jvm 5 | 2019/06/13 20:32:11 | at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
INFO | jvm 5 | 2019/06/13 20:32:11 | at java.lang.Thread.run(Thread.java:748)
FATAL | wrapper | 2019/06/13 20:32:11 | There were 5 failed launches in a row, each lasting less than 3 seconds. Giving up.
FATAL | wrapper | 2019/06/13 20:32:11 | There may be a configuration problem: please check the logs.
STATUS | wrapper | 2019/06/13 20:32:11 | <-- Wrapper Stopped
Waiting for the agent process to finish...
Underlying agent process has terminated cleanly,
Bamboo Agent Installer is shutting down, the underlying agent process has already been shut down.
```


Answers:
author: Daniel Santos
body: Hi [@poovaraj](/t5/user/viewprofilepage/user-id/1137057)

Thank you for sharing the logs =\]

I hope that you didn't have other errors before this one, otherwise, I'll kindly ask you to share them with us as well.

This type of error may have different reasons which also includes unsupported Java version on the remote agent.  

I have a couple of questions that will help us to understand this scenario better:

1. Are there other agents running with a similar installation command?
2. Is the agent able to resolve [bamboo.cm.company.com](https://bamboo.cm.company.com/agentServer/) address?
3. Assuming your Bamboo version is around 6.5. Can you double check if your Java version is 1.8?

comments: author: poovaraj
body: Hi [@Daniel Santos](/t5/user/viewprofilepage/user-id/502125)

1. Yes. Other Agent is running successfully using same command

2. Yes. Agent is able to resolve [bamboo.cm.company.com](https://bamboo.cm.company.com/agentServer/) address. (Company name is hidden here)

3. Bamboo version is around 6.5 and Remote agent is having java 1.8 version.


author: Daniel Santos
body: Hi [@poovaraj](/t5/user/viewprofilepage/user-id/1137057)

What is the difference between the agent that works and this one in terms of:

* Operating system
* Networking
* Resources available for the JVM

Did you see any error in the agent logs before the ones you shared here?


author: poovaraj
body: I am using same Operating System and Network. I am unable to find agent log files.


author: Daniel Santos
body: The agent log file which has the agent logs is **\<Agent_Bamboo_Home\>/logs/atlassian-bamboo.log.** To discover what is your \<Agent_Bamboo_Home\> please in your Bamboo UI navigate to: **Admin \>\> Agents \>\> (select your agent) \>\> System properties \>\> Bamboo paths \>\> Bamboo Home.**

Please let me know if you have any issues to find it.

<br />

<br />


author: poovaraj
body: My system is not ++**allowing non-matching certificates in HTTPClient**++ while creating a new http client in my system. Could you please let me know how to allow non-matching certificates in HTTPClient in MAC system ?