Unable to Manage GoCD Server Process - go-server: unrecognized service

81 views
Skip to first unread message

Jason Smyth

unread,
Aug 27, 2022, 8:22:56 PM8/27/22
to go-cd
Hello everyone,

We are running GoCD 19.8.0 on CentOS 6.10 (Final).

On both the production and test server we are apparently unable to manage the GoCD server process. The documentation says that we should use service go-server to interact with the GoCD server, but this returns an "unrecognized service" error on both machines.

GoCD is up and running so presumably the system knows both that it is supposed to start the service and how to do so; I just can't figure out how to stop it so that I can do maintenance. Presumably I can reboot the server to restart the service, but I want to stop the service, not restart it.

Any ideas on where we can go from here are greatly appreciated.

Regards,
Jason Smyth

Sriram Narayanan

unread,
Aug 27, 2022, 10:54:48 PM8/27/22
to go...@googlegroups.com
(Replying from my phone)

If the service is unrecognised, could you check if it is visible via chkconfig? 



Regards,
Jason Smyth

--
You received this message because you are subscribed to the Google Groups "go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to go-cd+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/ffbe8be2-4b54-4709-8772-5fd0009c6fd6n%40googlegroups.com.

Ketan Padegaonkar

unread,
Aug 28, 2022, 5:16:11 AM8/28/22
to go...@googlegroups.com
Try /etc/init.d/go-{server,agent} instead.

Jason Smyth

unread,
Aug 28, 2022, 11:46:43 AM8/28/22
to go-cd
Thank you for the suggestions, Sriram, Ketan.

I checked both chkconfig and the init.d directory and neither recognized go-server either:

$ sudo chkconfig go-server --list
error reading information on service go-server: No such file or directory
$ sudo sh -c 'ls /etc/init.d/go-*'
ls: cannot access /etc/init.d/go-*: No such file or directory

I searched under /etc and found a few files related to GoCD:

$ sudo find /etc/ -name 'go-*'
/etc/default/go-server.pre-migration
/etc/default/go-server~
/etc/default/go-server.rpmnew
/etc/init/go-server.conf


I think the files in /etc/default are legacy files that are no longer used by GoCD, but the conf file in /etc/init looks legitimate. A bit more research and I confirmed that the go-server service on these servers is controlled via initctl (upstart) rather than by the service command:

$ initctl status go-server
go-server start/running, process 19196


Thank you again for the hints that got me moving in the right direction.

Regards,
Jason Smyth
Reply all
Reply to author
Forward
0 new messages