gocd / gocd-docker

Deprecated. See: https://github.com/gocd/docker-gocd-server
https://hub.docker.com/r/gocd/gocd-server/
Apache License 2.0
94 stars 71 forks source link

getting java.net.UnknownHostException while running gocd/gocd-server on QNAP #38

Open RomanShestakov opened 8 years ago

RomanShestakov commented 8 years ago

hello,

I am trying to run GoCD in Docker on QNAP server.

here is the exception stacktrace

~] # docker run -tiP gocd/gocd-server * Running /etc/rc.local... * Booting runit daemon... * Runit started as PID 8 Starting Go Server ... using default settings from /etc/default/go-server May 19 19:36:42 454bc5dbade1 syslog-ng[15]: syslog-ng starting up; version='3.5.3' ERROR: Failed to start Go server. Please check the logs. java.lang.RuntimeException: 454bc5dbade1: 454bc5dbade1 at com.thoughtworks.go.util.ExceptionUtils.bomb(ExceptionUtils.java:36) at com.thoughtworks.go.server.util.GoSslSocketConnector.getHostname(GoSslSocketConnector.java:102) at com.thoughtworks.go.server.util.GoSslSocketConnector.storeX509Certificate(GoSslSocketConnector.java:92) at com.thoughtworks.go.server.util.GoSslSocketConnector.sslConnector(GoSslSocketConnector.java:56) at com.thoughtworks.go.server.util.GoSslSocketConnector.(GoSslSocketConnector.java:51) at com.thoughtworks.go.server.Jetty9Server.sslConnector(Jetty9Server.java:133) at com.thoughtworks.go.server.Jetty9Server.configure(Jetty9Server.java:76) at com.thoughtworks.go.server.GoServer.configureServer(GoServer.java:84) at com.thoughtworks.go.server.GoServer.startServer(GoServer.java:70) at com.thoughtworks.go.server.GoServer.go(GoServer.java:63) 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: 454bc5dbade1: 454bc5dbade1 at java.net.InetAddress.getLocalHost(InetAddress.java:1496) at com.thoughtworks.go.server.util.GoSslSocketConnector.getHostname(GoSslSocketConnector.java:100) ... 15 more Caused by: java.net.UnknownHostException: 454bc5dbade1 at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method) at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:922) at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1316) at java.net.InetAddress.getLocalHost(InetAddress.java:1492) ... 16 more ^C* Shutting down runit daemon (PID 8)...

any ideas how to make this work?

Regards, Roman