Hi @all,
I am having a problem where any newly created GoAgents have a status of
'lost contact'. At first they have the status 'building' when they are
newly created but this
quickly changes to 'lost contact'. The agents are configured to
autoregister and register successfully. Restarting the GoAgent service does
not affect the status.
The GoAgent logs show the following:
2016-09-23 12:59:13,497 [loopThread] INFO
go.agent.service.SslInfrastructureService:85 - [Agent Registration]
Starting to register agent
2016-09-23 12:59:13,532 [loopThread] ERROR
go.agent.service.SslInfrastructureService:104 - [Agent Registration] There
was a problem registering with the go server.
java.lang.StringIndexOutOfBoundsException: String index out of range: -4
at java.lang.String.charAt(String.java:658)
at org.bouncycastle.util.encoders.Base64Encoder.decode(Unknown Source)
at org.bouncycastle.util.encoders.Base64.decode(Unknown Source)
at org.bouncycastle.util.io.pem.PemReader.loadObject(Unknown Source)
at org.bouncycastle.util.io.pem.PemReader.readPemObject(Unknown Source)
at
com.thoughtworks.go.security.Registration.fromJson(Registration.java:43)
at
com.thoughtworks.go.agent.service.SslInfrastructureService$RemoteRegistrationRequester.readResponse(SslInfrastructureService.java:186)
at
com.thoughtworks.go.agent.service.SslInfrastructureService$RemoteRegistrationRequester.requestRegistration(SslInfrastructureService.java:178)
at
com.thoughtworks.go.agent.service.SslInfrastructureService.register(SslInfrastructureService.java:102)
at
com.thoughtworks.go.agent.service.SslInfrastructureService.registerIfNecessary(SslInfrastructureService.java:86)
at
com.thoughtworks.go.agent.AgentController.rpcLoop(AgentController.java:181)
at
com.thoughtworks.go.agent.AgentController.loop(AgentController.java:173)
at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:273)
at
org.springframework.scheduling.support.MethodInvokingRunnable.run(MethodInvokingRunnable.java:65)
at
org.springframework.scheduling.timer.DelegatingTimerTask.run(DelegatingTimerTask.java:70)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
2016-09-23 12:59:13,532 [loopThread] ERROR
thoughtworks.go.agent.AgentController:192 - [Agent Loop] Error occurred
during loop:
java.lang.StringIndexOutOfBoundsException: String index out of range: -4
at java.lang.String.charAt(String.java:658)
at org.bouncycastle.util.encoders.Base64Encoder.decode(Unknown Source)
at org.bouncycastle.util.encoders.Base64.decode(Unknown Source)
at org.bouncycastle.util.io.pem.PemReader.loadObject(Unknown Source)
at org.bouncycastle.util.io.pem.PemReader.readPemObject(Unknown Source)
at
com.thoughtworks.go.security.Registration.fromJson(Registration.java:43)
at
com.thoughtworks.go.agent.service.SslInfrastructureService$RemoteRegistrationRequester.readResponse(SslInfrastructureService.java:186)
at
com.thoughtworks.go.agent.service.SslInfrastructureService$RemoteRegistrationRequester.requestRegistration(SslInfrastructureService.java:178)
at
com.thoughtworks.go.agent.service.SslInfrastructureService.register(SslInfrastructureService.java:102)
at
com.thoughtworks.go.agent.service.SslInfrastructureService.registerIfNecessary(SslInfrastructureService.java:86)
at
com.thoughtworks.go.agent.AgentController.rpcLoop(AgentController.java:181)
at
com.thoughtworks.go.agent.AgentController.loop(AgentController.java:173)
at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:273)
at
org.springframework.scheduling.support.MethodInvokingRunnable.run(MethodInvokingRunnable.java:65)
at
org.springframework.scheduling.timer.DelegatingTimerTask.run(DelegatingTimerTask.java:70)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
I have read
https://groups.google.com/forum/#!msg/go-cd/zLqeECge1t4/RSrFb3xYAwAJ but I
don't think the issue is the same as mine is not stuck at the pending
state, and also https://groups.google.com/forum/#!topic/go-cd/Q0fxHsuNtag
but
I am not using a VM template.
I am using Go Version: 16.8.0 on CentOS7
Thanks
Sarah
--
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.