Create a gist now

Instantly share code, notes, and snippets.

Embed
start go-server error
Starting Go Server with command: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.65.x86_64/jre/bin/java -server -Xms512m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m -Duser.language=en -Dorg.mortbay.jetty.Request.maxFormContentSize=30000000 -Djruby.rack.request.size.threshold.bytes=30000000 -Duser.country=US -Dcruise.config.dir=/etc/go -Dcruise.config.file=/etc/go/cruise-config.xml -Dcruise.server.port=8153 -Dcruise.server.ssl.port=8154 -jar /usr/share/go-server/go.jar
Starting Go Server in directory:
ERROR: Failed to start Go server. Please check the logs.
java.lang.RuntimeException: chef-go-server-test: chef-go-server-test: Name or service not known
at com.thoughtworks.go.util.ExceptionUtils.bomb(ExceptionUtils.java:36)
at com.thoughtworks.go.server.util.GoSslSocketConnector.getHostname(GoSslSocketConnector.java:104)
at com.thoughtworks.go.server.util.GoSslSocketConnector.storeX509Certificate(GoSslSocketConnector.java:94)
at com.thoughtworks.go.server.util.GoSslSocketConnector.sslConnector(GoSslSocketConnector.java:56)
at com.thoughtworks.go.server.GoServer.sslConnector(GoServer.java:147)
at com.thoughtworks.go.server.GoServer.configureServer(GoServer.java:108)
at com.thoughtworks.go.server.GoServer.startServer(GoServer.java:91)
at com.thoughtworks.go.server.GoServer.go(GoServer.java:84)
at com.thoughtworks.go.server.util.GoLauncher.main(GoLauncher.java:31)
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)
Caused by: java.net.UnknownHostException: chef-go-server-test: chef-go-server-test: Name or service not known
at java.net.InetAddress.getLocalHost(InetAddress.java:1473)
at com.thoughtworks.go.server.util.GoSslSocketConnector.getHostname(GoSslSocketConnector.java:102)
... 13 more
Caused by: java.net.UnknownHostException: chef-go-server-test: Name or service not known
at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:901)
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1293)
at java.net.InetAddress.getLocalHost(InetAddress.java:1469)
... 14 more
@huhongda

This comment has been minimized.

Show comment
Hide comment
@huhongda

huhongda Sep 2, 2014

Solved

need configuration for hostname

$ hostname 
go-server-test

$ vim /etc/hosts
127.0.0.1 go-server-test

then restart go server

$ service go-server start

reference

gocd/gocd#161

Owner

huhongda commented Sep 2, 2014

Solved

need configuration for hostname

$ hostname 
go-server-test

$ vim /etc/hosts
127.0.0.1 go-server-test

then restart go server

$ service go-server start

reference

gocd/gocd#161

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment