GoCD server/agent missing communication

887 views
Skip to first unread message

Darly Senecal-Baptiste

unread,
Jul 1, 2015, 3:25:56 PM7/1/15
to go...@googlegroups.com
Hi, 


I wanted to install 2 GoCD agents in the same box as GoCD server ; and then, run those agents and server as Linux services. Once the server and the agents are started up for the first time, the server registers them  but both of the agent name is the same; and there is no other configuration to manually update those names but at the config.xml file.

Once those agent names are updated at the config.xml file, the server log provides the following errors

...
2015-07-01 13:30:28,972  WARN [744277562@qtp-70968940-12] log:76 - javax.net.ssl.SSLException: Received fatal alert: internal_error
2015-07-01 13:30:28,977  WARN [855928364@qtp-70968940-16] log:76 - javax.net.ssl.SSLException: Received fatal alert: internal_error
2015-07-01 13:30:28,978  WARN [855928364@qtp-70968940-16] log:76 - javax.net.ssl.SSLException: Received fatal alert: internal_error
...


Once the server and agents get restarted, the server present these messages

2015-07-01 15:10:39,826  WARN [811265241@qtp-70968940-15] log:76 - javax.net.ssl.SSLException: Received fatal alert: internal_error
2015-07-01 15:10:39,830  WARN [811265241@qtp-70968940-15] log:76 - javax.net.ssl.SSLException: Received fatal alert: internal_error
2015-07-01 15:10:39,831  WARN [1738514455@qtp-70968940-17] log:76 - javax.net.ssl.SSLException: Received fatal alert: internal_error
2015-07-01 15:10:46,384  WARN [811265241@qtp-70968940-15] AgentService:284 - Agent [Agent [E1pjnsvap01, 10.15.4.60, 37784fa4-34b3-4be3-a173-0925c237cda5, null]] has no cookie set
2015-07-01 15:10:46,397 ERROR [811265241@qtp-70968940-15] BuildRepositoryRemoteImpl:58 - Error occurred in com.thoughtworks.go.server.service.AgentRuntimeInfo@3adb678f[identifier=Agent [E1pjnsvap01, 10.15.4.60, 37784fa4-34b3-4be3-a173-0925c237cda5],runtimeStatus=Idle,buildingInfo=AgentBuildingInfo[, ],location=/gocd/go-agent1,usableSpace=298199289856,operatingSystemName=Linux,cookie=<null>,agentLauncherVersion=15.1.0] ping.
com.thoughtworks.go.server.service.AgentNoCookieSetException: Agent [Agent [E1pjnsvap01, 10.15.4.60, 37784fa4-34b3-4be3-a173-0925c237cda5, null]] has no cookie set
        at com.thoughtworks.go.server.service.AgentService.updateRuntimeInfo(AgentService.java:285)
        at com.thoughtworks.go.remote.BuildRepositoryRemoteImpl.ping(BuildRepositoryRemoteImpl.java:53)
        at com.thoughtworks.go.server.messaging.BuildRepositoryMessageProducer.ping(BuildRepositoryMessageProducer.java:45)
        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 org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
        at org.springframework.remoting.support.RemoteInvocationTraceInterceptor.invoke(RemoteInvocationTraceInterceptor.java:77)



 In addition, one of the agents (let's say agent1) log provide the following error

2015-07-01 15:10:46,480 [pingThread] ERROR thoughtworks.go.agent.AgentController:116 - Error occurred when agent tried to pin
g server:
org.springframework.remoting.RemoteAccessException: Agent [Agent [E1pjnsvap01, 10.15.4.60, 37784fa4-34b3-4be3-a173-0925c237cd
a5, null]] has no cookie set; nested exception is com.thoughtworks.go.server.service.AgentNoCookieSetException: Agent [Agent
[E1pjnsvap01, 10.15.4.60, 37784fa4-34b3-4be3-a173-0925c237cda5, null]] has no cookie set
        at com.thoughtworks.go.remote.BuildRepositoryRemoteImpl.wrappedException(BuildRepositoryRemoteImpl.java:125)
        at com.thoughtworks.go.remote.BuildRepositoryRemoteImpl.ping(BuildRepositoryRemoteImpl.java:59)
        at com.thoughtworks.go.server.messaging.BuildRepositoryMessageProducer.ping(BuildRepositoryMessageProducer.java:45)
        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 org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
        at org.springframework.remoting.support.RemoteInvocationTraceInterceptor.invoke(RemoteInvocationTraceInterceptor.java
:77)


This log from the agent and server got me thinking that there something cut off between server and agent1. Agent2 gets its own cookie from the server.

How can I make server and agent to connect properly right after renaming the agent names? Thanks

Darly Senecal-Baptiste

unread,
Jul 7, 2015, 9:52:22 AM7/7/15
to go...@googlegroups.com
The only action for now is to keep the agents names as is. Because it seems there is not other way around to rename it.

Ketan Padegaonkar

unread,
Jul 7, 2015, 9:55:35 AM7/7/15
to go...@googlegroups.com
With version 15.3 you can change the agent name while auto-registering and via the API

--
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+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Darly Senecal-Baptiste

unread,
Jul 7, 2015, 9:57:09 AM7/7/15
to go...@googlegroups.com
Thanks for the information Ketan :)
Message has been deleted

Carl Reid

unread,
Jul 7, 2015, 12:16:27 PM7/7/15
to go...@googlegroups.com
I assume you meant 15.2? I thought this feature was coming in that release.

Ketan Padegaonkar

unread,
Jul 7, 2015, 12:26:18 PM7/7/15
to go...@googlegroups.com
On Tue, Jul 7, 2015 at 9:46 PM Carl Reid <carland...@gmail.com> wrote:
I assume you meant 15.2? I thought this feature was coming in that release.

You are right. I did mean 15.2.

Darly Senecal-Baptiste

unread,
Jul 7, 2015, 12:27:29 PM7/7/15
to go...@googlegroups.com
Much better!
Thanks guys

--
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/wcUhbMqzfqE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to go-cd+un...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages