gocd / gocd

GoCD - Continuous Delivery server main repository
https://www.gocd.org
Apache License 2.0
7.12k stars 974 forks source link

Solaris installer - Issues #1342

Closed arvindsv closed 8 years ago

arvindsv commented 9 years ago

Found on 15.2:

  1. It does not create /etc/default/go-agent and /etc/default/go-server files.
  2. The installation always puts the service in "maintenance" mode, since JAVA_HOME is not found. The part which finds JAVA_HOME uses readlink, which is not available on Solaris 10, and uses a missing function. Here are the messages:
-bash-3.2$ cat /var/svc/log/application-go-agent\:default.log
[ Jul  9 22:00:31 Enabled. ]
[ Jul  9 22:00:31 Rereading configuration. ]
[ Jul  9 22:00:31 Executing start method ("/lib/svc/method/go-agent start") ]
/lib/svc/method/go-agent: line 40: readlink: command not found
Found Java  in PATH, using it.
Please set JAVA_HOME to proceed.
/lib/svc/method/go-agent: line 74: log_failure_msg: command not found
[ Jul  9 22:00:31 Method "start" exited with status 95 ]

These can be reproduced using scripts here. I'll move them to within the gocd org and change this soon. If you have vagrant installed, and run ./scripts/provision and then put an agent installer in the data/ directory and run ./scripts/install-agent go-agent-15.2.0.2246-solaris.gz, you should see this happen. The install-agent script takes care of this, and fixes it. But, you can see it happen if you remove that code from here.

arvindsv commented 8 years ago

Removed milestone 15.3. I don't think this is such high priority given such little interest in the Solaris installers.

arvindsv commented 8 years ago

Closing since Solaris installers themselves are going away.