Page MenuHomeSoftware Heritage

Vault: put_bundle fails on big object sizes.
Closed, ResolvedPublic


Can be either because of the objstorage or because of the Vault backend?

Feb 15 15:23:58 python3[90852]: [2018-02-15 15:23:58,685: ERROR/MainProcess] Task swh.vault.cooking_tasks.SWHCookingTask[336e334e-f4c9-44f4-bfb8-926cad7f4be3] raised unexpected: RemoteException("Unexpected status code for API request: 413 (b'413: Request Entity Too Large')",)

   Traceback (most recent call last):
     File "/usr/lib/python3/dist-packages/celery/app/", line 240, in trace_task
       R = retval = fun(*args, **kwargs)
     File "/usr/lib/python3/dist-packages/celery/app/", line 438, in __protected_call__
       return*args, **kwargs)
     File "/usr/lib/python3/dist-packages/swh/scheduler/", line 161, in run
       raise e from None
     File "/usr/lib/python3/dist-packages/swh/scheduler/", line 158, in run
       result = self.run_task(*args, **kwargs)
     File "/usr/lib/python3/dist-packages/swh/vault/", line 17, in run_task
     File "/usr/lib/python3/dist-packages/swh/vault/cookers/", line 127, in cook
       self.backend.put_bundle(self.CACHE_TYPE_KEY, self.obj_id, bundle)
     File "/usr/lib/python3/dist-packages/swh/vault/api/", line 49, in put_bundle
     File "/usr/lib/python3/dist-packages/swh/core/", line 62, in post
       return self._decode_response(response)
     File "/usr/lib/python3/dist-packages/swh/core/", line 96, in _decode_response
   swh.core.api.RemoteException: Unexpected status code for API request: 413 (b'413: Request Entity Too Large')

Event Timeline

Is this still an issue?

seirl closed this task as Resolved.Mar 22 2019, 1:31 PM

I don't think so, I'll reopen if we see the bug happening again.