Exception when docker is stopped
Exception when docker is stopped...
Sep 01 03:31:45 xxxx awit-zabbix-agent-dockerd[1552]: Traceback (most recent call last):
Sep 01 03:31:45 xxxx awit-zabbix-agent-dockerd[1552]: File "/usr/lib/python3.8/site-packages/docker/api/client.py", line 259, in _raise_for_status
Sep 01 03:31:45 xxxx awit-zabbix-agent-dockerd[1552]: response.raise_for_status()
Sep 01 03:31:45 xxxx awit-zabbix-agent-dockerd[1552]: File "/usr/lib/python3.8/site-packages/requests/models.py", line 941, in raise_for_status
Sep 01 03:31:45 xxxx awit-zabbix-agent-dockerd[1552]: raise HTTPError(http_error_msg, response=self)
Sep 01 03:31:45 xxxx awit-zabbix-agent-dockerd[1552]: requests.exceptions.HTTPError: 404 Client Error: Not Found for url: http+docker://localhost/v1.40/containers/0d3e731bbee00d3522a12c6930f47e4fa1b23d0e07fac56a8e934a08255fb06e/json
Sep 01 03:31:45 xxxx awit-zabbix-agent-dockerd[1552]: During handling of the above exception, another exception occurred:
Sep 01 03:31:45 xxxx awit-zabbix-agent-dockerd[1552]: Traceback (most recent call last):
Sep 01 03:31:45 xxxx awit-zabbix-agent-dockerd[1552]: File "/usr/bin/awit-zabbix-agent-dockerd", line 428, in <module>
Sep 01 03:31:45 xxxx awit-zabbix-agent-dockerd[1552]: for container in client.containers.list():
Sep 01 03:31:45 xxxx awit-zabbix-agent-dockerd[1552]: File "/usr/lib/python3.8/site-packages/docker/models/containers.py", line 951, in list
Sep 01 03:31:45 xxxx awit-zabbix-agent-dockerd[1552]: containers.append(self.get(r['Id']))
Sep 01 03:31:45 xxxx awit-zabbix-agent-dockerd[1552]: File "/usr/lib/python3.8/site-packages/docker/models/containers.py", line 887, in get
Sep 01 03:31:45 xxxx awit-zabbix-agent-dockerd[1552]: resp = self.client.api.inspect_container(container_id)
Sep 01 03:31:45 xxxx awit-zabbix-agent-dockerd[1552]: File "/usr/lib/python3.8/site-packages/docker/utils/decorators.py", line 19, in wrapped
Sep 01 03:31:45 xxxx awit-zabbix-agent-dockerd[1552]: return f(self, resource_id, *args, **kwargs)
Sep 01 03:31:45 xxxx awit-zabbix-agent-dockerd[1552]: File "/usr/lib/python3.8/site-packages/docker/api/container.py", line 770, in inspect_container
Sep 01 03:31:45 xxxx awit-zabbix-agent-dockerd[1552]: return self._result(
Sep 01 03:31:45 xxxx awit-zabbix-agent-dockerd[1552]: File "/usr/lib/python3.8/site-packages/docker/api/client.py", line 265, in _result
Sep 01 03:31:45 xxxx awit-zabbix-agent-dockerd[1552]: self._raise_for_status(response)
Sep 01 03:31:45 xxxx awit-zabbix-agent-dockerd[1552]: File "/usr/lib/python3.8/site-packages/docker/api/client.py", line 261, in _raise_for_status
Sep 01 03:31:45 xxxx awit-zabbix-agent-dockerd[1552]: raise create_api_error_from_http_exception(e)
Sep 01 03:31:45 xxxx awit-zabbix-agent-dockerd[1552]: File "/usr/lib/python3.8/site-packages/docker/errors.py", line 31, in create_api_error_from_http_exception
Sep 01 03:31:45 xxxx awit-zabbix-agent-dockerd[1552]: raise cls(e, response=response, explanation=explanation)
Sep 01 03:31:45 xxxx awit-zabbix-agent-dockerd[1552]: docker.errors.NotFound: 404 Client Error: Not Found ("No such container: 0d3e731bbee00d3522a12c6930f47e4fa1b23d0e07fac56a8e934a08255fb06e")