swh-counters statistics not updated
the refresh is failing:
counters-rpc [2024-05-13 09:00:12 +0000] [25] [ERROR] Error handling request /refresh_history
counters-rpc Traceback (most recent call last):
counters-rpc File "/opt/swh/.local/lib/python3.10/site-packages/gunicorn/workers/sync.py", line 135, in handle
counters-rpc self.handle_request(listener, req, client, addr)
counters-rpc File "/opt/swh/.local/lib/python3.10/site-packages/gunicorn/workers/sync.py", line 178, in handle_request
counters-rpc respiter = self.wsgi(environ, resp.start_response)
counters-rpc File "/opt/swh/.local/lib/python3.10/site-packages/sentry_sdk/integrations/flask.py", line 84, in sentry_patched_wsgi_app
counters-rpc return SentryWsgiMiddleware(lambda *a, **kw: old_app(self, *a, **kw))(
counters-rpc File "/opt/swh/.local/lib/python3.10/site-packages/sentry_sdk/integrations/wsgi.py", line 109, in __call__
counters-rpc reraise(*_capture_exception())
counters-rpc File "/opt/swh/.local/lib/python3.10/site-packages/sentry_sdk/utils.py", line 1640, in reraise
counters-rpc raise value
counters-rpc File "/opt/swh/.local/lib/python3.10/site-packages/sentry_sdk/integrations/wsgi.py", line 102, in __call__
counters-rpc response = self.app(
counters-rpc File "/opt/swh/.local/lib/python3.10/site-packages/sentry_sdk/integrations/flask.py", line 84, in <lambda>
counters-rpc return SentryWsgiMiddleware(lambda *a, **kw: old_app(self, *a, **kw))(
counters-rpc File "/opt/swh/.local/lib/python3.10/site-packages/flask/app.py", line 1498, in __call__
counters-rpc return self.wsgi_app(environ, start_response)
counters-rpc File "/opt/swh/.local/lib/python3.10/site-packages/flask/app.py", line 1473, in wsgi_app
counters-rpc response = self.full_dispatch_request()
counters-rpc File "/opt/swh/.local/lib/python3.10/site-packages/flask/app.py", line 880, in full_dispatch_request
counters-rpc rv = self.dispatch_request()
counters-rpc File "/opt/swh/.local/lib/python3.10/site-packages/flask/app.py", line 865, in dispatch_request
counters-rpc return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
counters-rpc File "/opt/swh/.local/lib/python3.10/site-packages/swh/core/api/negotiation.py", line 153, in newf
counters-rpc return f.negotiator(*args, **kwargs)
counters-rpc File "/opt/swh/.local/lib/python3.10/site-packages/swh/core/api/negotiation.py", line 81, in __call__
counters-rpc result = self.func(*args, **kwargs)
counters-rpc File "/opt/swh/.local/lib/python3.10/site-packages/swh/core/api/__init__.py", line 551, in f
counters-rpc ret = obj_meth(**kw)
counters-rpc File "/opt/swh/.local/lib/python3.10/site-packages/swh/counters/history.py", line 132, in refresh_history
counters-rpc prometheus_data = self._get_timestamp_history(object=object)
counters-rpc File "/opt/swh/.local/lib/python3.10/site-packages/swh/counters/history.py", line 105, in _get_timestamp_history
counters-rpc response = requests.get(url)
counters-rpc File "/opt/swh/.local/lib/python3.10/site-packages/requests/api.py", line 73, in get
counters-rpc return request("get", url, params=params, **kwargs)
counters-rpc File "/opt/swh/.local/lib/python3.10/site-packages/requests/api.py", line 59, in request
counters-rpc return session.request(method=method, url=url, **kwargs)
counters-rpc File "/opt/swh/.local/lib/python3.10/site-packages/requests/sessions.py", line 589, in request
counters-rpc resp = self.send(prep, **send_kwargs)
counters-rpc File "/opt/swh/.local/lib/python3.10/site-packages/requests/sessions.py", line 725, in send
counters-rpc history = [resp for resp in gen]
counters-rpc File "/opt/swh/.local/lib/python3.10/site-packages/requests/sessions.py", line 725, in <listcomp>
counters-rpc history = [resp for resp in gen]
counters-rpc File "/opt/swh/.local/lib/python3.10/site-packages/requests/sessions.py", line 266, in resolve_redirects
counters-rpc resp = self.send(
counters-rpc File "/opt/swh/.local/lib/python3.10/site-packages/requests/sessions.py", line 703, in send
counters-rpc r = adapter.send(request, **kwargs)
counters-rpc File "/opt/swh/.local/lib/python3.10/site-packages/requests/adapters.py", line 486, in send
counters-rpc resp = conn.urlopen(
counters-rpc File "/opt/swh/.local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 793, in urlopen
counters-rpc response = self._make_request(
counters-rpc File "/opt/swh/.local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 537, in _make_request
counters-rpc response = conn.getresponse()
counters-rpc File "/opt/swh/.local/lib/python3.10/site-packages/urllib3/connection.py", line 466, in getresponse
counters-rpc httplib_response = super().getresponse()
counters-rpc File "/opt/swh/.local/lib/python3.10/site-packages/sentry_sdk/integrations/stdlib.py", line 126, in getresponse
counters-rpc rv = real_getresponse(self, *args, **kwargs)
counters-rpc File "/usr/local/lib/python3.10/http/client.py", line 1375, in getresponse
counters-rpc response.begin()
counters-rpc File "/usr/local/lib/python3.10/http/client.py", line 318, in begin
counters-rpc version, status, reason = self._read_status()
counters-rpc File "/usr/local/lib/python3.10/http/client.py", line 279, in _read_status
counters-rpc line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
counters-rpc File "/usr/local/lib/python3.10/socket.py", line 705, in readinto
counters-rpc return self._sock.recv_into(b)
counters-rpc File "/opt/swh/.local/lib/python3.10/site-packages/gunicorn/workers/base.py", line 203, in handle_abort
counters-rpc sys.exit(1)
counters-rpc SystemExit: 1
The last statistics seem to be from the 2024-02-07
Edited by Vincent Sellier