I tried to install go-server on CentOS 6.2 in VMWare. During the linux installation process I set hostname to "mobeplace.build". I successfully installed the go-server, but it didn't start.
I checked the logs and found out that UnknownHostException was thrown (see attached stack trace). I changed server's hostname to a real hostname and go-server works now.
Stack Trace
Starting with command: /usr/java/jdk1.6.0_25/bin/java -server -Xms512m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m -Duser.language=en -Dorg.mortbay.jetty.Request.maxFormContentSize=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 in directory:
2012-02-05 16:38:00.520:INFO::Logging to STDERR via org.mortbay.log.StdErrLog
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.simontuffs.onejar.Boot.run(Boot.java:306)
at com.simontuffs.onejar.Boot.main(Boot.java:159)
Caused by: java.lang.RuntimeException: mobeplace.build: mobeplace.build
at com.thoughtworks.cruise.util.ExceptionUtils.bomb(ExceptionUtils.java:20)
at com.thoughtworks.cruise.server.util.CruiseSslSocketConnector.getHostname(CruiseSslSocketConnector.java:84)
at com.thoughtworks.cruise.server.util.CruiseSslSocketConnector.storeX509Certificate(CruiseSslSocketConnector.java:74)
at com.thoughtworks.cruise.server.util.CruiseSslSocketConnector.sslConnector(CruiseSslSocketConnector.java:38)
at com.thoughtworks.cruise.server.CruiseServer.sslConnector(CruiseServer.java:117)
at com.thoughtworks.cruise.server.CruiseServer.configureServer(CruiseServer.java:75)
at com.thoughtworks.cruise.server.CruiseServer.startServer(CruiseServer.java:65)
at com.thoughtworks.cruise.server.CruiseServer.go(CruiseServer.java:58)
at com.thoughtworks.cruise.server.util.CruiseLauncher.main(CruiseLauncher.java:19)
... 6 more
Caused by: java.net.UnknownHostException: mobeplace.build: mobeplace.build
at java.net.InetAddress.getLocalHost(InetAddress.java:1354)
at com.thoughtworks.cruise.server.util.CruiseSslSocketConnector.getHostname(CruiseSslSocketConnector.java:82)
... 13 more
Comments
2 comments
I'm having the same issue. In redhat, I set the hostname of my box to 'server' by editing /etc/sysconfig/network. Now I'm getting the error you mentioned above. What's a real hostname?
Hi Bitle & Jason,
This issue is fixed w.r.t Agent. https://github.com/GoCD/GoCD/issues/19
We will see what we can do to handle the case for Server. A better error message would certainly help i suppose.
If you guys are still stuck please use Go users Google group to get some help. You will find the links here: http://www.go.cd/community.
Regards,
Srinivas
Please sign in to leave a comment.