Re: [go-cd] Error starting go-agent on v19.7

2019-08-15 Thread Atul Verma
Hi Ketan

i was able to fix it. It was server version mismatch. server was running 
18.5.  i have now downgraded agent to run 18.12.

the java error was a bit tricky. one of the threads mentioned that agents 
downloads a file from server and that was the clue.

thanks

On Thursday, August 15, 2019 at 7:02:37 PM UTC+10, Ketan Padegaonkar wrote:
>
> What gocd version is your server?
>
> On Thu, 15 Aug, 2019, 11:25 Atul Verma, > 
> wrote:
>
>> Hi
>>
>> I am getting an error when go agent fails to start. trace log below. 
>> OS is : Amazon Linux AMI 2018.03
>> Java: openjdk version "10.0.2" 2018-07-17
>> Go agent version: 19.7.0
>>
>> tried running it on java 1.8 but it fails with same error. any ideas or 
>> suggestions
>>
>> ```
>> STATUS | wrapper  | 2019/08/15 15:48:20 | <-- Wrapper Stopped
>> STATUS | wrapper  | 2019/08/15 15:49:22 | --> Wrapper Started as Daemon
>> STATUS | wrapper  | 2019/08/15 15:49:22 | Java Service Wrapper Standard 
>> Edition 64-bit 3.5.37
>> STATUS | wrapper  | 2019/08/15 15:49:22 |   Copyright (C) 1999-2018 
>> Tanuki Software, Ltd. All Rights Reserved.
>> STATUS | wrapper  | 2019/08/15 15:49:22 | 
>> http://wrapper.tanukisoftware.com
>> STATUS | wrapper  | 2019/08/15 15:49:22 |   Licensed to ThoughtWorks for 
>> GoCD Agent On Linux
>> STATUS | wrapper  | 2019/08/15 15:49:22 |
>> STATUS | wrapper  | 2019/08/15 15:49:22 | Launching a JVM...
>> INFO   | jvm 1| 2019/08/15 15:49:22 | WrapperManager: Initializing...
>> INFO   | jvm 1| 2019/08/15 15:49:22 | [Thu Aug 15 15:49:22 AEST 2019] 
>> Starting process:
>> INFO   | jvm 1| 2019/08/15 15:49:22 | [Thu Aug 15 15:49:22 AEST 
>> 2019]   Working directory: /var/lib/go-agent
>> INFO   | jvm 1| 2019/08/15 15:49:22 | [Thu Aug 15 15:49:22 AEST 
>> 2019]   Application arguments: [-serverUrl, https://10.x.x.x:8154/go/]
>> INFO   | jvm 1| 2019/08/15 15:49:22 | [Thu Aug 15 15:49:22 AEST 
>> 2019]GoCD Version: 19.7.0-9567
>> INFO   | jvm 1| 2019/08/15 15:49:22 | [Thu Aug 15 15:49:22 AEST 
>> 2019]Java Version: 12.0.1
>> INFO   | jvm 1| 2019/08/15 15:49:22 | [Thu Aug 15 15:49:22 AEST 
>> 2019]Operating System: Linux(4.14.114-83.126.amzn1.x86_64)
>> INFO   | jvm 1| 2019/08/15 15:49:23 | Could not find file 
>> `config/agent-bootstrapper-logback.xml'. Attempting to load from classpath.
>> INFO   | jvm 1| 2019/08/15 15:49:23 | Using classpath resource 
>> `jar:onejar:lib/agent-bootstrapper-19.7.0-9567-classes.jar!/config/agent-bootstrapper-logback.xml'.
>> INFO   | jvm 1| 2019/08/15 15:49:23 | SLF4J: Class path contains 
>> multiple SLF4J bindings.
>> INFO   | jvm 1| 2019/08/15 15:49:23 | SLF4J: Found binding in 
>> [jar:onejar:lib/logback-classic-1.2.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
>> INFO   | jvm 1| 2019/08/15 15:49:23 | SLF4J: Found binding in 
>> [jar:file:/var/lib/go-agent/data/deps-4303b3af29443eb7-agent-launcher.jar/logback-classic-1.2.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
>> INFO   | jvm 1| 2019/08/15 15:49:23 | SLF4J: See 
>> http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
>> INFO   | jvm 1| 2019/08/15 15:49:23 | SLF4J: Actual binding is of 
>> type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
>> INFO   | jvm 1| 2019/08/15 15:49:23 | Could not find file 
>> `config/agent-launcher-logback.xml'. Attempting to load from classpath.
>> INFO   | jvm 1| 2019/08/15 15:49:23 | Using classpath resource 
>> `jar:file:/var/lib/go-agent/data/deps-4303b3af29443eb7-agent-launcher.jar/agent-launcher-18.5.0-6679-classes.jar!/config/agent-launcher-logback.xml'.
>> INFO   | jvm 1| 2019/08/15 15:49:25 | 
>> java.lang.reflect.InvocationTargetException
>> INFO   | jvm 1| 2019/08/15 15:49:25 | at 
>> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native 
>> Method)
>> INFO   | jvm 1| 2019/08/15 15:49:25 | at 
>> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown 
>> Source)
>> INFO   | jvm 1| 2019/08/15 15:49:25 | at 
>> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown 
>> Source)
>> INFO   | jvm 1| 2019/08/15 15:49:25 | at 
>> java.base/java.lang.reflect.Method.invoke(Unknown Source)
>> INFO   | jvm 1| 2019/08/15 15:49:25 | at 
>> com.thoughtworks.gocd.Boot.run(Boot.java:89)
>> INFO   | jvm 1| 2019/08/15 15:49:25 | at 
>> com.thoughtworks.gocd.Boot.main(Boot.java:55)
>> INFO   | jvm 1| 2019/08/15 15:49:25 | at 
>> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native 
>> Method)
>> INFO   | jvm 1| 2019/08/15 15:49:25 | at 
>> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown 
>> Source)
>> INFO   | jvm 1| 2019/08/15 15:49:25 | at 
>> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown 
>> Source)
>> INFO   | jvm 1| 2019/08/15 15:49:25 | at 
>> java.base/java.lang.reflect.Method.invoke(Unknown Source)
>> INFO   | jvm 1| 2019/08/15 

Re: [go-cd] Error starting go-agent on v19.7

2019-08-15 Thread Ketan Padegaonkar
What gocd version is your server?

On Thu, 15 Aug, 2019, 11:25 Atul Verma,  wrote:

> Hi
>
> I am getting an error when go agent fails to start. trace log below.
> OS is : Amazon Linux AMI 2018.03
> Java: openjdk version "10.0.2" 2018-07-17
> Go agent version: 19.7.0
>
> tried running it on java 1.8 but it fails with same error. any ideas or
> suggestions
>
> ```
> STATUS | wrapper  | 2019/08/15 15:48:20 | <-- Wrapper Stopped
> STATUS | wrapper  | 2019/08/15 15:49:22 | --> Wrapper Started as Daemon
> STATUS | wrapper  | 2019/08/15 15:49:22 | Java Service Wrapper Standard
> Edition 64-bit 3.5.37
> STATUS | wrapper  | 2019/08/15 15:49:22 |   Copyright (C) 1999-2018 Tanuki
> Software, Ltd. All Rights Reserved.
> STATUS | wrapper  | 2019/08/15 15:49:22 |
> http://wrapper.tanukisoftware.com
> STATUS | wrapper  | 2019/08/15 15:49:22 |   Licensed to ThoughtWorks for
> GoCD Agent On Linux
> STATUS | wrapper  | 2019/08/15 15:49:22 |
> STATUS | wrapper  | 2019/08/15 15:49:22 | Launching a JVM...
> INFO   | jvm 1| 2019/08/15 15:49:22 | WrapperManager: Initializing...
> INFO   | jvm 1| 2019/08/15 15:49:22 | [Thu Aug 15 15:49:22 AEST 2019]
> Starting process:
> INFO   | jvm 1| 2019/08/15 15:49:22 | [Thu Aug 15 15:49:22 AEST 2019]
>  Working directory: /var/lib/go-agent
> INFO   | jvm 1| 2019/08/15 15:49:22 | [Thu Aug 15 15:49:22 AEST 2019]
>  Application arguments: [-serverUrl, https://10.x.x.x:8154/go/]
> INFO   | jvm 1| 2019/08/15 15:49:22 | [Thu Aug 15 15:49:22 AEST 2019]
>   GoCD Version: 19.7.0-9567
> INFO   | jvm 1| 2019/08/15 15:49:22 | [Thu Aug 15 15:49:22 AEST 2019]
>   Java Version: 12.0.1
> INFO   | jvm 1| 2019/08/15 15:49:22 | [Thu Aug 15 15:49:22 AEST 2019]
>   Operating System: Linux(4.14.114-83.126.amzn1.x86_64)
> INFO   | jvm 1| 2019/08/15 15:49:23 | Could not find file
> `config/agent-bootstrapper-logback.xml'. Attempting to load from classpath.
> INFO   | jvm 1| 2019/08/15 15:49:23 | Using classpath resource
> `jar:onejar:lib/agent-bootstrapper-19.7.0-9567-classes.jar!/config/agent-bootstrapper-logback.xml'.
> INFO   | jvm 1| 2019/08/15 15:49:23 | SLF4J: Class path contains
> multiple SLF4J bindings.
> INFO   | jvm 1| 2019/08/15 15:49:23 | SLF4J: Found binding in
> [jar:onejar:lib/logback-classic-1.2.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> INFO   | jvm 1| 2019/08/15 15:49:23 | SLF4J: Found binding in
> [jar:file:/var/lib/go-agent/data/deps-4303b3af29443eb7-agent-launcher.jar/logback-classic-1.2.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> INFO   | jvm 1| 2019/08/15 15:49:23 | SLF4J: See
> http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
> INFO   | jvm 1| 2019/08/15 15:49:23 | SLF4J: Actual binding is of type
> [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
> INFO   | jvm 1| 2019/08/15 15:49:23 | Could not find file
> `config/agent-launcher-logback.xml'. Attempting to load from classpath.
> INFO   | jvm 1| 2019/08/15 15:49:23 | Using classpath resource
> `jar:file:/var/lib/go-agent/data/deps-4303b3af29443eb7-agent-launcher.jar/agent-launcher-18.5.0-6679-classes.jar!/config/agent-launcher-logback.xml'.
> INFO   | jvm 1| 2019/08/15 15:49:25 |
> java.lang.reflect.InvocationTargetException
> INFO   | jvm 1| 2019/08/15 15:49:25 | at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> INFO   | jvm 1| 2019/08/15 15:49:25 | at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown
> Source)
> INFO   | jvm 1| 2019/08/15 15:49:25 | at
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> Source)
> INFO   | jvm 1| 2019/08/15 15:49:25 | at
> java.base/java.lang.reflect.Method.invoke(Unknown Source)
> INFO   | jvm 1| 2019/08/15 15:49:25 | at
> com.thoughtworks.gocd.Boot.run(Boot.java:89)
> INFO   | jvm 1| 2019/08/15 15:49:25 | at
> com.thoughtworks.gocd.Boot.main(Boot.java:55)
> INFO   | jvm 1| 2019/08/15 15:49:25 | at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> INFO   | jvm 1| 2019/08/15 15:49:25 | at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown
> Source)
> INFO   | jvm 1| 2019/08/15 15:49:25 | at
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> Source)
> INFO   | jvm 1| 2019/08/15 15:49:25 | at
> java.base/java.lang.reflect.Method.invoke(Unknown Source)
> INFO   | jvm 1| 2019/08/15 15:49:25 | at
> org.tanukisoftware.wrapper.WrapperJarApp.run(WrapperJarApp.java:451)
> INFO   | jvm 1| 2019/08/15 15:49:25 | at
> java.base/java.lang.Thread.run(Unknown Source)
> INFO   | jvm 1| 2019/08/15 15:49:25 | Caused by:
> java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter
> INFO   | jvm 1| 2019/08/15 15:49:25 | at
> com.thoughtworks.go.agent.launcher.DownloadableFile.matchChecksum(DownloadableFile.java:72)
> INFO   | jvm 1| 2019/08/15 15:49:25 |