Hello Carl,

GoAgentServerHttpClient
<https://github.com/gocd/gocd/blob/fedb5c57b5c62fe5f16cb9fa3029e1f6a9195302/base/src/com/thoughtworks/go/agent/common/ssl/GoAgentServerHttpClient.java>
and GoAgentServerHttpClientBuilder
<https://github.com/gocd/gocd/blob/fedb5c57b5c62fe5f16cb9fa3029e1f6a9195302/base/src/com/thoughtworks/go/agent/common/ssl/GoAgentServerHttpClientBuilder.java>
might interest you. I find it strange that the server is not busy, but says
NoHttpResponseException. I would have assumed it's somehow so busy that it
cannot service this request.

Of course, since you say it never recovers, you might be right that it's a
problem with the connection somehow. If you find out anything, by adding a
retry, let us know.

Cheers,
Aravind


On Mon, Oct 30, 2017 at 1:57 PM, Carl D <[email protected]> wrote:

>
> We are currently using GoCD 17.8.0 and occasionally we see our agents
> getting stuck in Cancelling state, I managed to capture the logs from the
> latest instance and I believe applying some configuration to tinker with
> connection pool settings should mitigate or resolve the issue (this is
> based on https://stackoverflow.com/questions/10558791/apache-httpclie
> nt-interim-error-nohttpresponseexception and the source documentation
> from http client).
>
> As an aside, we've had another similar issue overwhelming our repository
> server which causes Jobs to fail intermittently (This has spawned a
> separate discussion internally). We can separate these problems into two
> broad categories: one is recoverable and rerunning the Job is sufficient,
> the other (this case) the agent does not recover and one must restart the
> agent service.
>
> My question is, has anyone else encountered this issue where agents become
> stuck in Cancelling state? How did you overcome it?
>
> Could someone enlighten me about where in the GoCD configuration I can
> look to follow up on connection pool settings or injecting a retry handler?
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to