I noticed that I needed to recreate my watch folder; it had null backend. Ok. So I recreated it in the form. However, the watch still doesn’t work. I get the following error:
[2023-09-13 17:45:17,198: ERROR/ForkPoolWorker-7] Task mayan.apps.sources.tasks.task_source_backend_action_background_task[708ebd37-c0b5-40be-986f-250807fa1227] raised unexpected: KeyError('shared_uploaded_file_id')
Traceback (most recent call last):
File "/opt/mayan-edms/lib/python3.11/site-packages/celery/app/trace.py", line 477, in trace_task
R = retval = fun(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^
File "/opt/mayan-edms/lib/python3.11/site-packages/celery/app/trace.py", line 760, in __protected_call__
return self.run(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/mayan-edms/lib/python3.11/site-packages/mayan/apps/sources/tasks.py", line 34, in task_source_backend_action_background_task
action.background_task(interface_load_kwargs=action_interface_kwargs)
File "/opt/mayan-edms/lib/python3.11/site-packages/mayan/apps/sources/source_backend_actions/base.py", line 122, in background_task
self._background_task(**task_kwargs)
File "/opt/mayan-edms/lib/python3.11/site-packages/mayan/apps/sources/source_backend_actions/mixins/document_mixins.py", line 156, in _background_task
document_task_kwargs['shared_uploaded_file_id'] = server_upload_entry[
^^^^^^^^^^^^^^^^^^^^
KeyError: 'shared_uploaded_file_id'
Waiting for another fix in the queue before the release of version 4.5.2.
The issue is triggered when the watch folder uncompressed logic is set to “Always” and it tries to process and non compressed file.
A temporary workaround is to set the 'Uncompress` option to ‘Never’ and not use compressed files or keep it to ‘Always’ but not include non compressed files in the watch folder.
Now running 4.5.2, and the Watch folder issue I’m now facing (with 'Uncompress` option to ‘Never’) is that the automatically trigger is seemingly not working at all: I have to hit Test to trigger the watch. Then (as far as I can see), at most 1 file is imported, and it’s never deleted (yes, checked for permissions issues)