ERROR:root:canceling statement due to statement timeout Traceback (most recent call last): File "/home/antoine/.virtualenvs/swh/lib/python3.7/site-packages/flask/app.py", line 1950, in full_dispatch_request rv = self.dispatch_request() File "/home/antoine/.virtualenvs/swh/lib/python3.7/site-packages/flask/app.py", line 1936, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "", line 2, in snapshot_get_branches File "/home/antoine/swh/swh-environment/swh-core/swh/core/api/negotiation.py", line 148, in _negotiate return f.negotiator(*args, **kwargs) File "/home/antoine/swh/swh-environment/swh-core/swh/core/api/negotiation.py", line 82, in __call__ result = self.func(*args, **kwargs) File "/home/antoine/swh/swh-environment/swh-core/swh/core/api/__init__.py", line 453, in _f return obj_meth(**kw) File "/home/antoine/swh/swh-environment/swh-storage/swh/storage/metrics.py", line 24, in d return f(*a, **kw) File "/home/antoine/swh/swh-environment/swh-core/swh/core/db/common.py", line 62, in _meth return meth(self, *args, db=db, cur=cur, **kwargs) File "/home/antoine/swh/swh-environment/swh-storage/swh/storage/storage.py", line 794, in snapshot_get_branches cur=cur, File "/home/antoine/swh/swh-environment/swh-storage/swh/storage/db.py", line 256, in snapshot_get_by_id cur.execute(query, (snapshot_id, branches_from, branches_count, target_types)) psycopg2.errors.QueryCanceled: canceling statement due to statement timeout INFO:werkzeug:127.0.0.1 - - [02/Jun/2020 11:32:43] "POST /snapshot/get_branches HTTP/1.1" 500 -