Error Starting go-agent version-18.3.0-6540

106 views
Skip to first unread message

Sathish Ravi

unread,
Jan 26, 2021, 7:32:34 AM1/26/21
to go-cd
Hi,

Gocd agent not starting after reinstalled in the server.

Server setup failing in the AWS opsworks instance

[2021-01-26T07:03:52+00:00] INFO: Processing directory[/var/log/go-agent-1] action create (gocd::application line 117)
[2021-01-26T07:03:52+00:00] INFO: Processing service[go-server] action enable (gocd::services line 1)
[2021-01-26T07:03:52+00:00] INFO: Processing service[go-server] action start (gocd::services line 1)
[2021-01-26T07:04:22+00:00] INFO: service[go-server] started
[2021-01-26T07:04:22+00:00] INFO: Processing service[go-agent] action enable (gocd::services line 5)
[2021-01-26T07:04:22+00:00] INFO: Processing service[go-agent] action start (gocd::services line 5)
 
================================================================================
Error executing action `start` on resource 'service[go-agent]'
================================================================================
 
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '255'
---- Begin output of /sbin/service go-agent start ----
STDOUT: Error starting Go Agent.
STDERR:
---- End output of /sbin/service go-agent start ----
Ran /sbin/service go-agent start returned 255
 
Resource Declaration:
---------------------
# In /var/chef/runs/0d2f1572-10a3-496b-a859-381be040b531/local-mode-cache/cache/cookbooks/gocd/recipes/services.rb
 
5: service 'go-agent' do
6:     action [:enable, :start]
7: end
8:
 
Compiled Resource:
------------------
# Declared in /var/chef/runs/0d2f1572-10a3-496b-a859-381be040b531/local-mode-cache/cache/cookbooks/gocd/recipes/services.rb:5:in `from_file'
 
service("go-agent") do
action [:enable, :start]
supports {:restart=>nil, :reload=>nil, :status=>nil}
retries 0
retry_delay 2
default_guard_interpreter :default
service_name "go-agent"
enabled true
pattern "go-agent"
declared_type :service
cookbook_name "gocd"
recipe_name "services"
end
 
Platform:
---------
x86_64-linux
 
[2021-01-26T07:04:37+00:00] INFO: Running queued delayed notifications before re-raising exception
[2021-01-26T07:04:37+00:00] INFO: template[/etc/go/cruise-config.xml] sending restart action to service[go-server] (delayed)
[2021-01-26T07:04:37+00:00] INFO: Processing service[go-server] action restart (gocd::services line 1)
[2021-01-26T07:05:14+00:00] INFO: service[go-server] restarted
[2021-01-26T07:05:14+00:00] ERROR: Running exception handlers
[2021-01-26T07:05:14+00:00] ERROR: Exception handlers complete
[2021-01-26T07:05:14+00:00] FATAL: Stacktrace dumped to /var/chef/runs/0d2f1572-10a3-496b-a859-381be040b531/local-mode-cache/cache/chef-stacktrace.out
[2021-01-26T07:05:14+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2021-01-26T07:05:14+00:00] ERROR: service[go-agent] (gocd::services line 5) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '255'
---- Begin output of /sbin/service go-agent start ----
STDOUT: Error starting Go Agent.
STDERR:
---- End output of /sbin/service go-agent start ----
Ran /sbin/service go-agent start returned 255
[2021-01-26T07:05:14+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

Ashwanth Kumar

unread,
Jan 26, 2021, 9:57:12 PM1/26/21
to go...@googlegroups.com
It would help if you can share the stacktrace or logs from the go-agent that is failing. 



--
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/40a387f7-227f-4841-bc76-1108f1dbd4e1n%40googlegroups.com.


--

Ashwanth Kumar / ashwanthkumar.in

Message has been deleted
Message has been deleted
Message has been deleted

Ashwanth Kumar

unread,
Jan 29, 2021, 11:16:53 PM1/29/21
to go...@googlegroups.com
From the stacktrace,

127.0.0.1:8154 [/127.0.0.1] failed: Connection refused (Connection refused)

It looks like the GoCD Server is not running on the same server as the agents. Is the server running when you're starting the agents?



On Fri, Jan 29, 2021 at 8:40 PM Sathish Ravi <sathish...@gmail.com> wrote:
Hi,

Please find the go-agent logfile.

Sathish Ravi

unread,
Feb 2, 2021, 9:24:23 AM2/2/21
to go-cd
Yes, go-server is running and go-agent is not starting. 
Reply all
Reply to author
Forward
0 new messages