チラシの裏
gocd

チラ裏: GoCD使おうとしたが起動すら成功しなかった

More than 1 year has passed since last update.

ubuntu 16.10

deb インストール

https://www.gocd.org/download/

  • go-server_17.9.0-5368_all.deb
  • go-agent_17.9.0-5368_all.deb

起動

  • 設定: /etc/default/go-server
sudo /etc/init.d/go-server start

Java 1.9だと動かないので1.8を入れる

/var/log/go-server/go-server.out.log

[2017  9 10 日曜日 08:21:07 JST] Starting Go Server in directory: /var/lib/go-server
Running GoCD requires Java version 1.8. You are currently running with Java version 9. GoCD will now exit!
sudo apt purge openjdk-9-jre-headless

sudo apt install -y openjdk-8-jre-headless
sudo /etc/init.d/go-server start

[2017年  9月 10日 日曜日 08:26:46 JST] using default settings from /etc/default/go-server
Error starting Go Server.

以下エラー

/var/log/go-server/go-server.log
org.springframework.beans.factory.UnsatisfiedDependencyException
: Error creating bean with name 'userService' defined in file [/var/lib/go-server/work/jetty-0.0.0.0-8153-cruise.war-_go-any-/webapp/WEB-INF/classes/com/thoughtworks/go/server/service/UserService.class]
: Unsatisfied dependency expressed through constructor argument with index 0 of type [com.thoughtworks.go.server.dao.UserDao]
: 
: Error creating bean with name 'userSqlMapDao'
: Requested bean is currently in creation
: Is there an unresolvable circular reference?; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException
: Error creating bean with name 'userSqlMapDao'
: Requested bean is currently in creation
: Is there an unresolvable circular reference?

を使うのがてっとり早そう