Page MenuHomeSoftware Heritage
Paste P352

storage0.euwest.azure crashes with the following error from time to time
ActivePublic

Authored by ardumont on Jan 31 2019, 2:11 PM.
Jan 31 13:04:36 storage0 python3 [2434334]: 2019-01-31 13:04:36 [2434334] [ERROR] canceling statement due to statement timeout
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/flask/app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request ()
File "/usr/lib/python3/dist-packages/flask/app.py", line 1598, in dispatch_request
return self.view_functions [rule.endpoint] (**req.view_args)
File "/usr/lib/python3/dist-packages/swh/storage/api/server.py", line 147, in revision_get
return encode_data (get_storage ().revision_get (**decode_request (request)))
File "/usr/lib/python3/dist-packages/swh/core/api.py", line 176, in encode_data_server
msgpack_dumps (data),
File "/usr/lib/python3/dist-packages/swh/core/serializers.py", line 170, in msgpack_dumps
return msgpack.packb (data, use_bin_type=True, default=encode_types)
File "/usr/lib/python3/dist-packages/msgpack/__init__.py", line 47, in packb
return Packer (**kwargs).pack (o)
File "msgpack/_packer.pyx", line 231, in msgpack._packer.Packer.pack (msgpack/_packer.cpp:3661)
File "msgpack/_packer.pyx", line 233, in msgpack._packer.Packer.pack (msgpack/_packer.cpp:3503)
File "msgpack/_packer.pyx", line 224, in msgpack._packer.Packer._pack (msgpack/_packer.cpp:3312)
File "/usr/lib/python3/dist-packages/swh/core/serializers.py", line 154, in encode_types
return list (obj)
File "/usr/lib/python3/dist-packages/swh/storage/common.py", line 78, in _meth
yield from meth (self, *args, db=db, cur=cur, **kwargs)
File "/usr/lib/python3/dist-packages/swh/storage/storage.py", line 622, in revision_get
for line in db.revision_get_from_list (revisions, cur):
File "/usr/lib/python3/dist-packages/swh/storage/db.py", line 667, in revision_get_from_list
((id,) for id in revisions))
File "/usr/lib/python3/dist-packages/swh/storage/db.py", line 77, in execute_values_to_bytes
for line in execute_values_generator (*args, **kwargs):
File "/usr/lib/python3/dist-packages/swh/storage/db_utils.py", line 122, in execute_values_generator
cur.execute (b''.join (parts))
psycopg2.extensions.QueryCanceledError: canceling statement due to statement timeout
Jan 31 13:04:36 storage0 python3 [2434334]: 2019-01-31 13:04:36 [2434334] [INFO] b'' - - [31/Jan/2019:13:04:36 +0000] "POST /revision HTTP/1.0" 400 210 "-" "python-requests/2.12.4"

Event Timeline

ardumont changed the title of this paste from storage0.euwest.azure crashes with the following error to storage0.euwest.azure crashes with the following error from time to time.