Dec 15 12:32:27 deposit python3[4016621]: 2020-12-15 12:32:27 [4016621] swh.deposit.api.common:WARNING ########### swhid: swh:1:dir:3b276e18c9b1e70eb84068e3109c0945fc2404eb Dec 15 12:32:27 deposit python3[4016621]: 2020-12-15 12:32:27 [4016621] swh.deposit.api.common:WARNING ########## metadata-only deposit Dec 15 12:32:27 deposit python3[4016621]: 2020-12-15 12:32:27 [4016621] django.request:ERROR Internal Server Error: /1/swh/ Traceback (most recent call last): File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 34, in inner response = get_response(request) File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python3/dist-packages/django/views/decorators/csrf.py", line 54, in wrapped_view return view_func(*args, **kwargs) File "/usr/lib/python3/dist-packages/django/views/generic/base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "/usr/lib/python3/dist-packages/rest_framework/views.py", line 495, in dispatch response = self.handle_exception(exc) File "/usr/lib/python3/dist-packages/rest_framework/views.py", line 455, in handle_exception self.raise_uncaught_exception(exc) File "/usr/lib/python3/dist-packages/rest_framework/views.py", line 492, in dispatch response = handler(request, *args, **kwargs) File "/usr/lib/python3/dist-packages/swh/deposit/api/common.py", line 1063, in post request, headers, collection_name, deposit File "/usr/lib/python3/dist-packages/swh/deposit/api/collection.py", line 102, in process_post receipt = self._atom_entry(req, headers, collection_name, deposit) File "/usr/lib/python3/dist-packages/swh/deposit/api/common.py", line 826, in _atom_entry deposit, swhid, metadata, raw_metadata File "/usr/lib/python3/dist-packages/swh/deposit/api/common.py", line 670, in _store_metadata_deposit deposit_request = self._deposit_request_put(deposit, deposit_request_data) File "/usr/lib/python3/dist-packages/swh/deposit/api/common.py", line 309, in _deposit_request_put deposit_request.save() File "/usr/lib/python3/dist-packages/django/db/models/base.py", line 696, in save "unsaved related object '%s'." % field.name ValueError: save() prohibited to prevent data loss due to unsaved related object 'deposit'.