issues with agents connecting to server

494 views
Skip to first unread message

Andrew Brossia

unread,
Dec 23, 2016, 12:04:49 PM12/23/16
to go-cd
not sure what the problem is.... seeing an error message like this:

2016-12-23 15:43:25,882 [main     ] INFO  go.agent.launcher.ServerBinaryDownloader:117 - Got server response
2016-12-23 15:43:25,883 [main     ] ERROR go.agent.launcher.ServerBinaryDownloader:83 - Couldn't update admin/agent-launcher.jar. Sleeping for 1m. Error:
org.apache.http.client.ClientProtocolException: Problem accessing server at https://SANITIZED:8154/go/admin/agent-launcher.jar
Missing required headers '
Content-MD5' and 'Cruise-Server-Ssl-Port' in response.

        at com.thoughtworks.go.agent.launcher.ServerBinaryDownloader.handleInvalidResponse(ServerBinaryDownloader.java:149)
        at com.thoughtworks.go.agent.launcher.ServerBinaryDownloader.download(ServerBinaryDownloader.java:122)
        at com.thoughtworks.go.agent.launcher.ServerBinaryDownloader.downloadIfNecessary(ServerBinaryDownloader.java:78)
        at com.thoughtworks.go.agent.launcher.AgentLauncherImpl.launch(AgentLauncherImpl.java:78)
        at com.thoughtworks.go.agent.bootstrapper.AgentBootstrapper.go(AgentBootstrapper.java:77)
        at com.thoughtworks.go.agent.bootstrapper.AgentBootstrapper.main(AgentBootstrapper.java:58)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at com.simontuffs.onejar.Boot.run(Boot.java:306)
        at com.simontuffs.onejar.Boot.main(Boot.java:159)

not sure what this required headers or ClientProtocolException could mean for this... any thoughts?

Aravind SV

unread,
Dec 23, 2016, 12:08:49 PM12/23/16
to go...@googlegroups.com
I've seen this happen when the server is upgraded to 16.12 and then downgraded to 16.11 or earlier. Did you do something similar?


--
You received this message because you are subscribed to the Google Groups "go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to go-cd+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Andrew Brossia

unread,
Dec 23, 2016, 12:30:12 PM12/23/16
to go...@googlegroups.com
could be, we're definitely on 16.11... do you know any fix for it?

--
You received this message because you are subscribed to a topic in the Google Groups "go-cd" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/go-cd/3S10o5utFkg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to go-cd+unsubscribe@googlegroups.com.

Aravind SV

unread,
Dec 23, 2016, 12:50:15 PM12/23/16
to go...@googlegroups.com
My suspicion is that it has downloaded the 16.12 agent launcher JAR and is using it. I would remove/rename the agent-launcher.jar and see what happens.

Andrew Brossia

unread,
Dec 23, 2016, 12:54:29 PM12/23/16
to go...@googlegroups.com
on the server i'm assuming... and then restart the server?

Aravind SV

unread,
Dec 23, 2016, 12:56:10 PM12/23/16
to go...@googlegroups.com
No, no. On the agent.

Aravind SV

unread,
Dec 23, 2016, 1:01:26 PM12/23/16
to go...@googlegroups.com
Stop agent.
Rename agent-launcher.jar.
Start agent.

Andrew Brossia

unread,
Dec 23, 2016, 1:01:28 PM12/23/16
to go...@googlegroups.com
That makes more sense...

just tried it, while it did regenerate the agent-launcher.jar (/var/lib/go-agent), still getting the same error 

Andrew Brossia

unread,
Dec 23, 2016, 1:05:14 PM12/23/16
to go...@googlegroups.com
yes, that's exactly what i did.... 

just tried it again to be sure...

did notice this in the logs:

2016-12-23 18:02:32,650 [main     ] INFO  go.agent.launcher.ServerBinaryDownloader:110 - Downloading agent-launcher.jar
2016-12-23 18:02:32,691 [main     ] INFO  go.agent.launcher.ServerBinaryDownloader:117 - Got server response
2016-12-23 18:02:32,692 [main     ] ERROR go.agent.launcher.ServerBinaryDownloader:83 - Couldn't update admin/agent-launcher.jar. Sleeping for 1m. Error:
org.apache.http.client.ClientProtocolException: Problem accessing server...

so it does appear to be re-downloading... but for some reason wants to update again...

Andrew Brossia

unread,
Dec 23, 2016, 1:11:06 PM12/23/16
to go...@googlegroups.com
oh nevermind... i just realized that INFO message appears before every failure... so that's typical...


Andrew Brossia

unread,
Dec 23, 2016, 1:30:14 PM12/23/16
to go...@googlegroups.com
i can try upgrading to 12 when the website comes back up... 

Aravind SV

unread,
Dec 23, 2016, 1:31:52 PM12/23/16
to go...@googlegroups.com
On Fri, Dec 23, 2016 at 1:29 PM, Andrew Brossia <abro...@gmail.com> wrote:
i can try upgrading to 12 when the website comes back up... 

Yeah, that might help. If I get a chance later today or in the weekend, I'll downgrade and see what's happening.

Cheers,
Aravind
Reply all
Reply to author
Forward
0 new messages