Source missing method process_document (4.1a1)
I am pretty sure that this is a code related issue. I am running everything with docker so I will include building and running in my steps to reproduce.
Watched folder sources crash on 4.1a1
The errors are consistent under the two following scenarii:
- Reusing existing sources (s4.0)
- Creating new sources (4.1a1)
Steps to reproduce
- Host: Ubuntu 20 x64 on bare metal
- Env: python3 by default
- Clone branch series/4.1
- Env: all requirements/base.txt dependencies installed on host
- Docker 20.10 rootless
- Docker compose 1.29
- docker image built locally with
make docker-build
Clean Start
- compose up from a clean slate
- create new watch folder sources
Reuse 4.0 data
- compose up using s4.0 volumes and db table
- reuse existing watch folder sources
Result
- Both methods lead to the error
Error output
app_1 | mayan.apps.sources.tasks <415> [ERROR] "task_source_process_document() line 42 Error processing source id: 7; SourceBackendWatchFolder is missing the method `process_document`."
app_1 | Traceback (most recent call last):
app_1 | File "/opt/mayan-edms/lib/python3.7/site-packages/mayan/apps/sources/tasks.py", line 38, in task_source_process_document
app_1 | source.get_backend_instance().process_document(dry_run=dry_run)
app_1 | File "/opt/mayan-edms/lib/python3.7/site-packages/mayan/apps/sources/classes.py", line 264, in process_document
app_1 | 'cls': self.__class__.__name__
app_1 | NotImplementedError: SourceBackendWatchFolder is missing the method `process_document`.
app_1 | [2021-08-30 09:01:37,552: ERROR/ForkPoolWorker-1] Error processing source id: 7; SourceBackendWatchFolder is missing the method `process_document`.
app_1 | Traceback (most recent call last):
app_1 | File "/opt/mayan-edms/lib/python3.7/site-packages/mayan/apps/sources/tasks.py", line 38, in task_source_process_document
app_1 | source.get_backend_instance().process_document(dry_run=dry_run)
app_1 | File "/opt/mayan-edms/lib/python3.7/site-packages/mayan/apps/sources/classes.py", line 264, in process_document
app_1 | 'cls': self.__class__.__name__
app_1 | NotImplementedError: SourceBackendWatchFolder is missing the method `process_document`.