This happened to me also. I installed a simple v1.1.4 Rancher, added a few hosts, and just started up some catalog services. Then I upgraded to 1.2, and it sort of hung at “Upgrading Environment…”
I found the following in /var/log/rancher/agent.log, and the log was filled with a bunch of JSON/Dict data.
Please, advise.
2016-12-07 19:20:52,816 ERROR agent [139853967076560] [event.py:112] Error in request : 1ca86a17-d59e-4a57-9aaf-5e3b8970d31c
Traceback (most recent call last):
File “/var/lib/cattle/pyagent/cattle/agent/event.py”, line 95, in _worker_main
resp = agent.execute(req)
File “/var/lib/cattle/pyagent/cattle/agent/init.py”, line 15, in execute
return self._router.route(req)
File “/var/lib/cattle/pyagent/cattle/plugins/core/event_router.py”, line 13, in route
resp = handler.execute(req)
File “/var/lib/cattle/pyagent/cattle/plugins/core/event_handlers.py”, line 32, in execute
type.on_ping(event, resp)
File “/var/lib/cattle/pyagent/cattle/plugins/docker/compute.py”, line 126, in on_ping
self._add_instances(ping, pong)
File “/var/lib/cattle/pyagent/cattle/plugins/docker/compute.py”, line 138, in _add_instances
running, nonrunning = self._get_all_containers_by_state()
File “/var/lib/cattle/pyagent/cattle/plugins/docker/compute.py”, line 171, in _get_all_containers_by_state
for c in client.containers(all=True):
File “/var/lib/cattle/pyagent/dist/docker/api/container.py”, line 69, in containers
res = self._result(self._get(u, params=params), True)
File “/var/lib/cattle/pyagent/dist/docker/utils/decorators.py”, line 47, in inner
return f(self, *args, **kwargs)
File “/var/lib/cattle/pyagent/dist/docker/client.py”, line 112, in _get
return self.get(url, **self._set_request_timeout(kwargs))
File “/var/lib/cattle/pyagent/dist/requests/sessions.py”, line 487, in get
return self.request(‘GET’, url, **kwargs)
File “/var/lib/cattle/pyagent/dist/requests/sessions.py”, line 475, in request
resp = self.send(prep, **send_kwargs)
File “/var/lib/cattle/pyagent/dist/requests/sessions.py”, line 585, in send
r = adapter.send(request, **kwargs)
File “/var/lib/cattle/pyagent/dist/requests/adapters.py”, line 453, in send
raise ConnectionError(err, request=request)
ConnectionError: (‘Connection aborted.’, error(111, ‘ECONNREFUSED’))