Mirror: unexpected closed connection to the pg server
2021-04-01T15:03:30.450387347Z swh_storage.1.yjtfpr7ambpm@libra | ERROR:root:server closed the connection unexpectedly
2021-04-01T15:03:30.450408112Z swh_storage.1.yjtfpr7ambpm@libra | This probably means the server terminated abnormally
2021-04-01T15:03:30.450411279Z swh_storage.1.yjtfpr7ambpm@libra | before or while processing the request.
2021-04-01T15:03:30.450413362Z swh_storage.1.yjtfpr7ambpm@libra | Traceback (most recent call last):
2021-04-01T15:03:30.450415681Z swh_storage.1.yjtfpr7ambpm@libra | File "/usr/lib/python3/dist-packages/flask/app.py", line 1813, in full_dispatch_request
2021-04-01T15:03:30.450418532Z swh_storage.1.yjtfpr7ambpm@libra | rv = self.dispatch_request()
2021-04-01T15:03:30.450421400Z swh_storage.1.yjtfpr7ambpm@libra | File "/usr/lib/python3/dist-packages/flask/app.py", line 1799, in dispatch_request
2021-04-01T15:03:30.450425006Z swh_storage.1.yjtfpr7ambpm@libra | return self.view_functions[rule.endpoint](**req.view_args)
2021-04-01T15:03:30.450428523Z swh_storage.1.yjtfpr7ambpm@libra | File "<decorator-gen-66>", line 2, in snapshot_add
2021-04-01T15:03:30.450432037Z swh_storage.1.yjtfpr7ambpm@libra | File "/usr/lib/python3/dist-packages/swh/core/api/negotiation.py", line 147, in _negotiate
2021-04-01T15:03:30.450442880Z swh_storage.1.yjtfpr7ambpm@libra | return f.negotiator(*args, **kwargs)
2021-04-01T15:03:30.450445071Z swh_storage.1.yjtfpr7ambpm@libra | File "/usr/lib/python3/dist-packages/swh/core/api/negotiation.py", line 81, in __call__
2021-04-01T15:03:30.450447152Z swh_storage.1.yjtfpr7ambpm@libra | result = self.func(*args, **kwargs)
2021-04-01T15:03:30.450449052Z swh_storage.1.yjtfpr7ambpm@libra | File "/usr/lib/python3/dist-packages/swh/core/api/__init__.py", line 458, in _f
2021-04-01T15:03:30.450451042Z swh_storage.1.yjtfpr7ambpm@libra | return obj_meth(**kw)
2021-04-01T15:03:30.450452891Z swh_storage.1.yjtfpr7ambpm@libra | File "/usr/lib/python3/dist-packages/swh/storage/metrics.py", line 24, in d
2021-04-01T15:03:30.450454795Z swh_storage.1.yjtfpr7ambpm@libra | return f(*a, **kw)
2021-04-01T15:03:30.450456584Z swh_storage.1.yjtfpr7ambpm@libra | File "/usr/lib/python3/dist-packages/swh/storage/metrics.py", line 77, in d
2021-04-01T15:03:30.450458525Z swh_storage.1.yjtfpr7ambpm@libra | r = f(*a, **kw)
2021-04-01T15:03:30.450460347Z swh_storage.1.yjtfpr7ambpm@libra | File "/usr/lib/python3/dist-packages/swh/core/db/common.py", line 62, in _meth
2021-04-01T15:03:30.450462416Z swh_storage.1.yjtfpr7ambpm@libra | return meth(self, *args, db=db, cur=cur, **kwargs)
2021-04-01T15:03:30.450464345Z swh_storage.1.yjtfpr7ambpm@libra | File "/usr/lib/python3/dist-packages/swh/storage/postgresql/storage.py", line 749, in snapshot_add
2021-04-01T15:03:30.450466376Z swh_storage.1.yjtfpr7ambpm@libra | if not db.snapshot_exists(snapshot.id, cur):
2021-04-01T15:03:30.450468238Z swh_storage.1.yjtfpr7ambpm@libra | File "/usr/lib/python3/dist-packages/swh/storage/postgresql/db.py", line 217, in snapshot_exists
2021-04-01T15:03:30.450470142Z swh_storage.1.yjtfpr7ambpm@libra | cur.execute("""SELECT 1 FROM snapshot where id=%s""", (snapshot_id,))
2021-04-01T15:03:30.450472137Z swh_storage.1.yjtfpr7ambpm@libra | psycopg2.OperationalError: server closed the connection unexpectedly
2021-04-01T15:03:30.450473982Z swh_storage.1.yjtfpr7ambpm@libra | This probably means the server terminated abnormally
2021-04-01T15:03:30.450475866Z swh_storage.1.yjtfpr7ambpm@libra | before or while processing the request.
2021-04-01T15:03:30.450479655Z swh_storage.1.yjtfpr7ambpm@libra |
Context:
ii python3-swh.core 0.12.0-1~swh1~bpo10+1 all Software Heritage core utilities
ii python3-swh.journal 0.7.1-1~swh1~bpo10+1 all Software Heritage Journal utilities
ii python3-swh.model 2.3.0-1~swh1~bpo10+1 all Software Heritage data model
ii python3-swh.objstorage 0.2.2-1~swh1~bpo10+1 all Software Heritage Object Storage
ii python3-swh.scheduler 0.10.0-1~swh1~bpo10+1 all Software Heritage Scheduler
ii python3-swh.storage 0.27.0-1~swh1~bpo10+1 all Software Heritage storage utilities
Migrated from T3198 (view on Phabricator)