I am trying to use the Non-AWS S3 deployment option to connect Mayan to Wasabi. Their system basically emulates S3 and it should be a drop-in solution. It looks pretty straight forward, but for some reason I cannot get this thing to connect. I have used their S3 connector with other software, so I know it works.
What I have is a fairly new installation thats been local to the docker image. There is only about 50 files currently. I shut down the container, migrated the data, made the changes to the docker container, and finally restarted the container. Now I get the little X symbol when I try to preview the file or a Server Error message pops up when I try to access "properties" for example.
I am using the variables in my docker config as follows (obviously removing the keys and bucket name):
Code: Select all
MAYAN_PIP_INSTALLS='django-storages boto3' \
MAYAN_DOCUMENTS_STORAGE_BACKEND=storages.backends.s3boto3.S3Boto3Storage
MAYAN_DOCUMENTS_STORAGE_BACKEND_ARGUMENTS="{'access_key':'ACCESSKEY','secret_key':'SECRETKEY','bucket_name':'my-mayan-bucket-name','endpoint_url':'https://s3.wasabisys.com','verify':'False'}"
Code: Select all
llecting django-storages,
Requirement already satisfied: Django>=1.11 in /opt/mayan-edms/lib/python3.7/site-packages (from django-storages) (2.2.10),
Installing collected packages: django-storages, jmespath, docutils, botocore, s3transfer, boto3,
Successfully installed boto3-1.12.39 botocore-1.15.39 django-storages-1.9.1 docutils-0.15.2 jmespath-0.9.5 s3transfer-0.3.3,
TypeError: Unable to initialize the document version storage. Check the settings DOCUMENTS_STORAGE_BACKEND and DOCUMENTS_STORAGE_BACKEND_ARGUMENTS for formatting errors.,
mayan.apps.storage.classes <93> [CRITICAL] "get_storage_instance() line 87 Unable to initialize the document version storage. Check the settings DOCUMENTS_STORAGE_BACKEND and DOCUMENTS_STORAGE_BACKEND_ARGUMENTS for formatting errors.",
[2020-04-11 06:28:01,445: CRITICAL/ForkPoolWorker-2] Unable to initialize the document version storage. Check the settings DOCUMENTS_STORAGE_BACKEND and DOCUMENTS_STORAGE_BACKEND_ARGUMENTS for formatting errors.,
mayan.apps.documents.models.document_version_models <93> [ERROR] "get_intermediate_file() line 241 Error creating intermediate file "intermediate_file"; Unable to initialize the document version storage. Check the settings DOCUMENTS_STORAGE_BACKEND and DOCUMENTS_STORAGE_BACKEND_ARGUMENTS for formatting errors..",
[2020-04-11 06:28:01,445: ERROR/ForkPoolWorker-2] Error creating intermediate file "intermediate_file"; Unable to initialize the document version storage. Check the settings DOCUMENTS_STORAGE_BACKEND and DOCUMENTS_STORAGE_BACKEND_ARGUMENTS for formatting errors..,
mayan.apps.documents.models.document_page_models <93> [ERROR] "get_image() line 240 Error creating page cache file "base_image"; Unable to initialize the document version storage. Check the settings DOCUMENTS_STORAGE_BACKEND and DOCUMENTS_STORAGE_BACKEND_ARGUMENTS for formatting errors.",
[2020-04-11 06:28:01,446: ERROR/ForkPoolWorker-2] Error creating page cache file "base_image"; Unable to initialize the document version storage. Check the settings DOCUMENTS_STORAGE_BACKEND and DOCUMENTS_STORAGE_BACKEND_ARGUMENTS for formatting errors.,
[2020-04-11 06:28:01,448: ERROR/ForkPoolWorker-2] Task mayan.apps.documents.tasks.task_generate_document_page_image[773b2d78-a338-411f-ac20-e961d3d2647b] raised unexpected: TypeError('Unable to initialize the document version storage. Check the settings DOCUMENTS_STORAGE_BACKEND and DOCUMENTS_STORAGE_BACKEND_ARGUMENTS for formatting errors.')
Thank you,
Michael Ruge