Successfully uploaded document showes up in Minio but not in Mayan EDMS

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/", line 450, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/opt/mayan-edms/lib/python3.9/site-packages/celery/app/", line 731, in __protected_call__
    return*args, **kwargs)
  File "/opt/mayan-edms/lib/python3.9/site-packages/mayan/apps/sources/", line 96, in task_process_document_upload
    with as file_object:
  File "/opt/mayan-edms/lib/python3.9/site-packages/mayan/apps/storage/", 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

issue was a known bug in v4.2 which we were using. Patch applied and this solved it.

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.