|
Workflow historyTraceback (most recent call last):
File "/usr/local/lib/python3.11/pathlib.py", line 1116, in mkdir
os.mkdir(self, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/upload-data/tmp-antony/1752066394554'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/pathlib.py", line 1116, in mkdir
os.mkdir(self, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/upload-data/tmp-antony'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/cubicweb/venv/lib/python3.11/site-packages/celery/app/trace.py", line 453, in trace_task
R = retval = fun(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^
File "/home/cubicweb/venv/lib/python3.11/site-packages/celery/app/trace.py", line 736, in __protected_call__
return self.run(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/src/cubicweb_antony/tasks.py", line 47, in upload_archive
directory.mkdir(parents=True, exist_ok=True)
File "/usr/local/lib/python3.11/pathlib.py", line 1120, in mkdir
self.parent.mkdir(parents=True, exist_ok=True)
File "/usr/local/lib/python3.11/pathlib.py", line 1120, in mkdir
self.parent.mkdir(parents=True, exist_ok=True)
File "/usr/local/lib/python3.11/pathlib.py", line 1116, in mkdir
os.mkdir(self, mode)
PermissionError: [Errno 13] Permission denied: '/upload-data' Traceback (most recent call last):
File "/src/cubicweb_antony/tasks.py", line 83, in upload_archive
cnx.commit()
File "/home/cubicweb/venv/lib/python3.11/site-packages/cubicweb/server/session.py", line 156, in check_open
return func(cnx, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/cubicweb/venv/lib/python3.11/site-packages/cubicweb/server/session.py", line 734, in commit
operation.handle_event("precommit_event")
File "/home/cubicweb/venv/lib/python3.11/site-packages/cubicweb/server/hook.py", line 824, in handle_event
getattr(self, event)()
File "/src/cubicweb_antony/hooks.py", line 90, in precommit_event
raise ValueError("archive's data is set empty")
ValueError: archive's data is set empty
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/cubicweb/venv/lib/python3.11/site-packages/celery/app/trace.py", line 453, in trace_task
R = retval = fun(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^
File "/home/cubicweb/venv/lib/python3.11/site-packages/celery/app/trace.py", line 736, in __protected_call__
return self.run(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/src/cubicweb_antony/tasks.py", line 107, in upload_archive
clean_s3(file_id)
File "/src/cubicweb_antony/utils.py", line 42, in clean_s3
Delete={"Objects": [{"Key": o.get("Key")} for o in obj.get("Contents")]},
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not iterable Traceback (most recent call last):
File "/src/cubicweb_antony/tasks.py", line 83, in upload_archive
cnx.commit()
File "/home/cubicweb/venv/lib/python3.11/site-packages/cubicweb/server/session.py", line 156, in check_open
return func(cnx, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/cubicweb/venv/lib/python3.11/site-packages/cubicweb/server/session.py", line 734, in commit
operation.handle_event("precommit_event")
File "/home/cubicweb/venv/lib/python3.11/site-packages/cubicweb/server/hook.py", line 824, in handle_event
getattr(self, event)()
File "/src/cubicweb_antony/hooks.py", line 98, in precommit_event
raise ValueError("archive's data is not zip")
ValueError: archive's data is not zip
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/cubicweb/venv/lib/python3.11/site-packages/celery/app/trace.py", line 453, in trace_task
R = retval = fun(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^
File "/home/cubicweb/venv/lib/python3.11/site-packages/celery/app/trace.py", line 736, in __protected_call__
return self.run(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/src/cubicweb_antony/tasks.py", line 107, in upload_archive
clean_s3(file_id)
File "/src/cubicweb_antony/utils.py", line 42, in clean_s3
Delete={"Objects": [{"Key": o.get("Key")} for o in obj.get("Contents")]},
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not iterable Traceback (most recent call last):
File "/src/cubicweb_antony/tasks.py", line 82, in upload_archive
cnx.commit()
File "/home/cubicweb/venv/lib/python3.11/site-packages/cubicweb/server/session.py", line 156, in check_open
return func(cnx, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/cubicweb/venv/lib/python3.11/site-packages/cubicweb/server/session.py", line 734, in commit
operation.handle_event("precommit_event")
File "/home/cubicweb/venv/lib/python3.11/site-packages/cubicweb/server/hook.py", line 824, in handle_event
getattr(self, event)()
File "/home/cubicweb/venv/lib/python3.11/site-packages/cubicweb/hooks/integrity.py", line 98, in precommit_event
raise validation_error(
yams._exceptions.ValidationError: 12176 (archive-object): at least one relation archive is required on Archive (12176)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/cubicweb/venv/lib/python3.11/site-packages/celery/app/trace.py", line 453, in trace_task
R = retval = fun(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^
File "/home/cubicweb/venv/lib/python3.11/site-packages/celery/app/trace.py", line 736, in __protected_call__
return self.run(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/src/cubicweb_antony/tasks.py", line 112, in upload_archive
raise httpexceptions.HTTPInternalServerError(detail=str(e))
pyramid.httpexceptions.HTTPInternalServerError: 12176 (archive-object): at least one relation archive is required on Archive (12176) Traceback (most recent call last):
File "/home/cubicweb/venv/lib/python3.11/site-packages/cubicweb/server/querier.py", line 782, in get
eidkeys = self._ck_cache[rql]
~~~~~~~~~~~~~~^^^^^
KeyError: 'DELETE FileMetadata FM WHERE V archive A, A eid %(eid)s, V files_metadata FM'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/src/cubicweb_antony/tasks.py", line 88, in upload_archive
delete_archive_files(cnx, archive_eid)
File "/src/cubicweb_antony/utils.py", line 84, in delete_archive_files
cnx.execute(
File "/home/cubicweb/venv/lib/python3.11/site-packages/cubicweb/server/session.py", line 156, in check_open
return func(cnx, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/cubicweb/venv/lib/python3.11/site-packages/cubicweb/server/session.py", line 672, in execute
rset = self._execute(self, rql, kwargs, build_descr)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/cubicweb/venv/lib/python3.11/site-packages/cubicweb/server/querier.py", line 603, in execute
rqlst, cachekey = self.rql_cache.get(cnx, rql, args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/cubicweb/venv/lib/python3.11/site-packages/cubicweb/server/querier.py", line 791, in get
rqlst = self._parse(rql)
^^^^^^^^^^^^^^^^
File "/home/cubicweb/venv/lib/python3.11/site-packages/cubicweb/server/querier.py", line 760, in parse
return parse(rql, annotate=annotate)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/cubicweb/venv/lib/python3.11/site-packages/rql/__init__.py", line 120, in parse
self._checker.check(rqlst)
File "/home/cubicweb/venv/lib/python3.11/site-packages/rql/stcheck.py", line 134, in check
raise BadRQLQuery("%s\n** %s" % (node, "\n** ".join(state.errors)))
rql._exceptions.BadRQLQuery: DELETE FileMetadata FM WHERE V archive A, A eid %(eid)s, V files_metadata FM
** unknown relation `files_metadata`
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/cubicweb/venv/lib/python3.11/site-packages/cubicweb/server/querier.py", line 782, in get
eidkeys = self._ck_cache[rql]
~~~~~~~~~~~~~~^^^^^
KeyError: 'DELETE FileMetadata FM WHERE V archive A, A eid %(eid)s, V files_metadata FM'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/cubicweb/venv/lib/python3.11/site-packages/celery/app/trace.py", line 453, in trace_task
R = retval = fun(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^
File "/home/cubicweb/venv/lib/python3.11/site-packages/celery/app/trace.py", line 736, in __protected_call__
return self.run(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/src/cubicweb_antony/tasks.py", line 108, in upload_archive
delete_archive_files(cnx, archive.eid)
File "/src/cubicweb_antony/utils.py", line 84, in delete_archive_files
cnx.execute(
File "/home/cubicweb/venv/lib/python3.11/site-packages/cubicweb/server/session.py", line 156, in check_open
return func(cnx, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/cubicweb/venv/lib/python3.11/site-packages/cubicweb/server/session.py", line 672, in execute
rset = self._execute(self, rql, kwargs, build_descr)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/cubicweb/venv/lib/python3.11/site-packages/cubicweb/server/querier.py", line 603, in execute
rqlst, cachekey = self.rql_cache.get(cnx, rql, args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/cubicweb/venv/lib/python3.11/site-packages/cubicweb/server/querier.py", line 791, in get
rqlst = self._parse(rql)
^^^^^^^^^^^^^^^^
File "/home/cubicweb/venv/lib/python3.11/site-packages/cubicweb/server/querier.py", line 760, in parse
return parse(rql, annotate=annotate)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/cubicweb/venv/lib/python3.11/site-packages/rql/__init__.py", line 120, in parse
self._checker.check(rqlst)
File "/home/cubicweb/venv/lib/python3.11/site-packages/rql/stcheck.py", line 134, in check
raise BadRQLQuery("%s\n** %s" % (node, "\n** ".join(state.errors)))
rql._exceptions.BadRQLQuery: DELETE FileMetadata FM WHERE V archive A, A eid %(eid)s, V files_metadata FM
** unknown relation `files_metadata`
|