We managed to connect our on-prem instance of Minio to our Mayan EDMS setup on k8s after some struggles mainly to do with TLS/certificates. But now we are noticing that the successfully uploaded docs do not show up anywhere within Mayan.
The green tick is shown and all messages and notifications indicate a good upload. The docs luckily do make it to Minio. As mentioned in a previous post, we are only using the S3 storage, so nothing is stored on the local file system. Also good to note that I am logged on as admin user so it shouldn’t be an authorisation issue.
the error which is shown in one of the pods (worker-b):
[2023-09-13 06:15:39,926: ERROR/ForkPoolWorker-4] Task mayan.apps.sources.tasks.task_process_document_upload[14260c9e-7694-4b22-be67-34695366134c] raised unexpected: AttributeError("'S3Boto3StorageFile' object has no attribute 'mode'")
Traceback (most recent call last):
File "/opt/mayan-edms/lib/python3.9/site-packages/celery/app/trace.py", line 450, in trace_task
R = retval = fun(*args, **kwargs)
File "/opt/mayan-edms/lib/python3.9/site-packages/celery/app/trace.py", line 731, in __protected_call__
return self.run(*args, **kwargs)
File "/opt/mayan-edms/lib/python3.9/site-packages/mayan/apps/sources/tasks.py", line 96, in task_process_document_upload
with shared_uploaded_file.open() as file_object:
File "/opt/mayan-edms/lib/python3.9/site-packages/mayan/apps/storage/model_mixins.py", line 32, in open
'mode': self.file.file.mode,
AttributeError: 'S3Boto3StorageFile' object has no attribute 'mode'
Any suggestions or ideas where we could look to fix this situation? Thanks in advance