HTTP connexion failure keeps lock file
Probably due to some server reboot.
Feb 1 08:29:56 milford hermes[481]: INFO: GETting https://www.frama.space/api/v1/jobs, page 1
Feb 1 08:30:25 milford hermes[481]: Traceback (most recent call last):
Feb 1 08:30:25 milford hermes[481]: File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 169, in _new_conn
Feb 1 08:30:25 milford hermes[481]: conn = connection.create_connection(
Feb 1 08:30:25 milford hermes[481]: File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 73, in create_connection
Feb 1 08:30:25 milford hermes[481]: for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
Feb 1 08:30:25 milford hermes[481]: File "/usr/lib/python3.9/socket.py", line 953, in getaddrinfo
Feb 1 08:30:25 milford hermes[481]: for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
Feb 1 08:30:25 milford hermes[481]: socket.gaierror: [Errno -3] Temporary failure in name resolution
Feb 1 08:30:25 milford hermes[481]: During handling of the above exception, another exception occurred:
Feb 1 08:30:25 milford hermes[481]: Traceback (most recent call last):
Feb 1 08:30:25 milford hermes[481]: File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 699, in urlopen
Feb 1 08:30:25 milford hermes[481]: httplib_response = self._make_request(
Feb 1 08:30:25 milford hermes[481]: File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 382, in _make_request
Feb 1 08:30:25 milford hermes[481]: self._validate_conn(conn)
Feb 1 08:30:25 milford hermes[481]: File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 1012, in _validate_conn
Feb 1 08:30:25 milford hermes[481]: conn.connect()
Feb 1 08:30:25 milford hermes[481]: File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 353, in connect
Feb 1 08:30:25 milford hermes[481]: conn = self._new_conn()
Feb 1 08:30:25 milford hermes[481]: File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in _new_conn
Feb 1 08:30:25 milford hermes[481]: raise NewConnectionError(
Feb 1 08:30:25 milford hermes[481]: urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f6053e91460>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution
Feb 1 08:30:25 milford hermes[481]: During handling of the above exception, another exception occurred:
Feb 1 08:30:25 milford hermes[481]: Traceback (most recent call last):
Feb 1 08:30:25 milford hermes[481]: File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in send
Feb 1 08:30:25 milford hermes[481]: resp = conn.urlopen(
Feb 1 08:30:25 milford hermes[481]: File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 755, in urlopen
Feb 1 08:30:25 milford hermes[481]: retries = retries.increment(
Feb 1 08:30:25 milford hermes[481]: File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 574, in increment
Feb 1 08:30:25 milford hermes[481]: raise MaxRetryError(_pool, url, error or ResponseError(cause))
Feb 1 08:30:25 milford hermes[481]: urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.frama.space', port=443): Max retries exceeded with url: /api/v1/jobs?status=0&page=1&perPage=50 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f6053e91460>: Failed to establish a new c
onnection: [Errno -3] Temporary failure in name resolution'))
Feb 1 08:30:25 milford hermes[481]: During handling of the above exception, another exception occurred:
Feb 1 08:30:25 milford hermes[481]: Traceback (most recent call last):
Feb 1 08:30:25 milford hermes[481]: File "/opt/hermes/hermes.py", line 1201, in <module>
Feb 1 08:30:25 milford hermes[481]: sys.exit(main())
Feb 1 08:30:25 milford hermes[481]: File "/opt/hermes/hermes.py", line 1064, in main
Feb 1 08:30:25 milford hermes[481]: jobs()
Feb 1 08:30:25 milford hermes[481]: File "/opt/hermes/hermes.py", line 851, in jobs
Feb 1 08:30:25 milford hermes[481]: r = fetch_pending_jobs(1)
Feb 1 08:30:25 milford hermes[481]: File "/opt/hermes/hermes.py", line 812, in fetch_pending_jobs
Feb 1 08:30:25 milford hermes[481]: return requests.get('%s/api/v1/jobs' % config['host'],
Feb 1 08:30:25 milford hermes[481]: File "/usr/lib/python3/dist-packages/requests/api.py", line 76, in get
Feb 1 08:30:25 milford hermes[481]: return request('get', url, params=params, **kwargs)
Feb 1 08:30:25 milford hermes[481]: File "/usr/lib/python3/dist-packages/requests/api.py", line 61, in request
Feb 1 08:30:25 milford hermes[481]: return session.request(method=method, url=url, **kwargs)
Feb 1 08:30:25 milford hermes[481]: File "/usr/lib/python3/dist-packages/requests/sessions.py", line 542, in request
Feb 1 08:30:25 milford hermes[481]: resp = self.send(prep, **send_kwargs)
Feb 1 08:30:25 milford hermes[481]: File "/usr/lib/python3/dist-packages/requests/sessions.py", line 655, in send
Feb 1 08:30:25 milford hermes[481]: r = adapter.send(request, **kwargs)
Feb 1 08:30:25 milford hermes[481]: File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
Feb 1 08:30:25 milford hermes[481]: raise ConnectionError(e, request=request)
Feb 1 08:30:25 milford hermes[481]: requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.frama.space', port=443): Max retries exceeded with url: /api/v1/jobs?status=0&page=1&perPage=50 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f6053e91460>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Feb 1 08:30:25 milford hermes[481]: [ERROR ] An un-handled exception was caught by Salt's global exception handler:
Feb 1 08:30:25 milford hermes[481]: ConnectionError: HTTPSConnectionPool(host='www.frama.space', port=443): Max retries exceeded with url: /api/v1/jobs?status=0&page=1&perPage=50 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f6053e91460>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Feb 1 08:30:25 milford hermes[481]: Traceback (most recent call last):
Feb 1 08:30:25 milford hermes[481]: File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 169, in _new_conn
Feb 1 08:30:25 milford hermes[481]: conn = connection.create_connection(
Feb 1 08:30:25 milford hermes[481]: File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 73, in create_connection
Feb 1 08:30:25 milford hermes[481]: for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
Feb 1 08:30:25 milford hermes[481]: File "/usr/lib/python3.9/socket.py", line 953, in getaddrinfo
Feb 1 08:30:25 milford hermes[481]: for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
Feb 1 08:30:25 milford hermes[481]: socket.gaierror: [Errno -3] Temporary failure in name resolution
Feb 1 08:30:25 milford hermes[481]: During handling of the above exception, another exception occurred:
Feb 1 08:30:25 milford hermes[481]: Traceback (most recent call last):
Feb 1 08:30:25 milford hermes[481]: File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 699, in urlopen
Feb 1 08:30:25 milford hermes[481]: httplib_response = self._make_request(
Feb 1 08:30:25 milford hermes[481]: File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 382, in _make_request
Feb 1 08:30:25 milford hermes[481]: self._validate_conn(conn)
Feb 1 08:30:25 milford hermes[481]: File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 1012, in _validate_conn
Feb 1 08:30:25 milford hermes[481]: conn.connect()
Feb 1 08:30:25 milford hermes[481]: File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 353, in connect
Feb 1 08:30:25 milford hermes[481]: conn = self._new_conn()
Feb 1 08:30:25 milford hermes[481]: File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in _new_conn
Feb 1 08:30:25 milford hermes[481]: raise NewConnectionError(
Feb 1 08:30:25 milford hermes[481]: urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f6053e91460>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution
Feb 1 08:30:25 milford hermes[481]: During handling of the above exception, another exception occurred:
Feb 1 08:30:25 milford hermes[481]: Traceback (most recent call last):
Feb 1 08:30:25 milford hermes[481]: File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in send
Feb 1 08:30:25 milford hermes[481]: resp = conn.urlopen(
Feb 1 08:30:25 milford hermes[481]: File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 755, in urlopen
Feb 1 08:30:25 milford hermes[481]: retries = retries.increment(
Feb 1 08:30:25 milford hermes[481]: File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 574, in increment
Feb 1 08:30:25 milford hermes[481]: raise MaxRetryError(_pool, url, error or ResponseError(cause))
Feb 1 08:30:25 milford hermes[481]: urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.frama.space', port=443): Max retries exceeded with url: /api/v1/jobs?status=0&page=1&perPage=50 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f6053e91460>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Feb 1 08:30:25 milford hermes[481]: During handling of the above exception, another exception occurred:
Feb 1 08:30:25 milford hermes[481]: Traceback (most recent call last):
Feb 1 08:30:25 milford hermes[481]: File "/opt/hermes/hermes.py", line 1201, in <module>
Feb 1 08:30:25 milford hermes[481]: sys.exit(main())
Feb 1 08:30:25 milford hermes[481]: File "/opt/hermes/hermes.py", line 1064, in main
Feb 1 08:30:25 milford hermes[481]: jobs()
Feb 1 08:30:25 milford hermes[481]: File "/opt/hermes/hermes.py", line 851, in jobs
Feb 1 08:30:25 milford hermes[481]: r = fetch_pending_jobs(1)
Feb 1 08:30:25 milford hermes[481]: File "/opt/hermes/hermes.py", line 812, in fetch_pending_jobs
Feb 1 08:30:25 milford hermes[481]: return requests.get('%s/api/v1/jobs' % config['host'],
Feb 1 08:30:25 milford hermes[481]: File "/usr/lib/python3/dist-packages/requests/api.py", line 76, in get
Feb 1 08:30:25 milford hermes[481]: return request('get', url, params=params, **kwargs)
Feb 1 08:30:25 milford hermes[481]: File "/usr/lib/python3/dist-packages/requests/api.py", line 61, in request
Feb 1 08:30:25 milford hermes[481]: return session.request(method=method, url=url, **kwargs)
Feb 1 08:30:25 milford hermes[481]: File "/usr/lib/python3/dist-packages/requests/sessions.py", line 542, in request
Feb 1 08:30:25 milford hermes[481]: resp = self.send(prep, **send_kwargs)
Feb 1 08:30:25 milford hermes[481]: File "/usr/lib/python3/dist-packages/requests/sessions.py", line 655, in send
Feb 1 08:30:25 milford hermes[481]: r = adapter.send(request, **kwargs)
Feb 1 08:30:25 milford hermes[481]: File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
Feb 1 08:30:25 milford hermes[481]: raise ConnectionError(e, request=request)
Feb 1 08:30:25 milford hermes[481]: requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.frama.space', port=443): Max retries exceeded with url: /api/v1/jobs?status=0&page=1&perPage=50 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f6053e91460>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Feb 1 08:30:25 milford hermes[6901]: INFO: Fetching and processing jobs
Feb 1 08:30:25 milford hermes[6901]: WARNING: [ALL JOBS] Lockfile /tmp/hermes.lock exists. It has been created at 2023-02-01 08:29:56.845504
Feb 1 08:31:25 milford hermes[6901]: INFO: Fetching and processing jobs
Feb 1 08:31:25 milford hermes[6901]: WARNING: [ALL JOBS] Lockfile /tmp/hermes.lock exists. It has been created at 2023-02-01 08:29:56.845504
Feb 1 08:32:25 milford hermes[6901]: INFO: Fetching and processing jobs