I'm looking for some assistance with utilizing object storage instead of the filesystem storage. I followed the guide outlined here: https://docs.mayan-edms.com/chapters/object_storage.htm, but after I do so my docker container will not start.
I am using the 3.3.7 docker container on Ubuntu 18.04.1 LTS. Below is some the logs from my docker container upon startup. Any Ideas?
Code: Select all
Traceback (most recent call last):,
File "/opt/mayan-edms/bin/mayan-edms.py", line 10, in <module>,
execute_from_command_line(sys.argv),
File "/opt/mayan-edms/lib/python3.7/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line,
utility.execute(),
File "/opt/mayan-edms/lib/python3.7/site-packages/django/core/management/__init__.py", line 338, in execute,
django.setup(),
File "/opt/mayan-edms/lib/python3.7/site-packages/django/__init__.py", line 27, in setup,
apps.populate(settings.INSTALLED_APPS),
File "/opt/mayan-edms/lib/python3.7/site-packages/django/apps/registry.py", line 108, in populate,
app_config.import_models(),
File "/opt/mayan-edms/lib/python3.7/site-packages/django/apps/config.py", line 202, in import_models,
self.models_module = import_module(models_module_name),
File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module,
return _bootstrap._gcd_import(name[level:], package, level),
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import,
File "<frozen importlib._bootstrap>", line 983, in _find_and_load,
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked,
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked,
File "<frozen importlib._bootstrap_external>", line 728, in exec_module,
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed,
File "/opt/mayan-edms/lib/python3.7/site-packages/mayan/apps/cabinets/models.py", line 13, in <module>,
from mayan.apps.documents.models import Document,
File "/opt/mayan-edms/lib/python3.7/site-packages/mayan/apps/documents/models/__init__.py", line 2, in <module>,
from .document_page_models import * # NOQA,
File "/opt/mayan-edms/lib/python3.7/site-packages/mayan/apps/documents/models/document_page_models.py", line 29, in <module>,
from .document_version_models import DocumentVersion,
File "/opt/mayan-edms/lib/python3.7/site-packages/mayan/apps/documents/models/document_version_models.py", line 28, in <module>,
from ..storages import storage_documentversion,
File "/opt/mayan-edms/lib/python3.7/site-packages/mayan/apps/documents/storages.py", line 13, in <module>,
)(**setting_storage_backend_arguments.value),
TypeError: type object argument after ** must be a mapping, not str,
mayan: starting entrypoint.sh,
mayan: update_uid_gid(),
mayan: os_package_installs(),
mayan: pip_installs(),
The directory '/home/mayan/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.,
The directory '/home/mayan/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.,
Requirement already satisfied: django-storages in /opt/mayan-edms/lib/python3.7/site-packages (1.8),
Requirement already satisfied: boto3 in /opt/mayan-edms/lib/python3.7/site-packages (1.10.50),
Requirement already satisfied: Django>=1.11 in /opt/mayan-edms/lib/python3.7/site-packages (from django-storages) (1.11.27),
Requirement already satisfied: s3transfer<0.3.0,>=0.2.0 in /opt/mayan-edms/lib/python3.7/site-packages (from boto3) (0.2.1),
Requirement already satisfied: jmespath<1.0.0,>=0.7.1 in /opt/mayan-edms/lib/python3.7/site-packages (from boto3) (0.9.4),
Requirement already satisfied: botocore<1.14.0,>=1.13.50 in /opt/mayan-edms/lib/python3.7/site-packages (from boto3) (1.13.50),
Requirement already satisfied: pytz in /opt/mayan-edms/lib/python3.7/site-packages (from Django>=1.11->django-storages) (2019.1),
Requirement already satisfied: docutils<0.16,>=0.10 in /opt/mayan-edms/lib/python3.7/site-packages (from botocore<1.14.0,>=1.13.50->boto3) (0.15.2),
Requirement already satisfied: python-dateutil<3.0.0,>=2.1; python_version >= "2.7" in /opt/mayan-edms/lib/python3.7/site-packages (from botocore<1.14.0,>=1.13.50->boto3) (2.8.0),
Requirement already satisfied: urllib3<1.26,>=1.20; python_version >= "3.4" in /opt/mayan-edms/lib/python3.7/site-packages (from botocore<1.14.0,>=1.13.50->boto3) (1.24.3),
Requirement already satisfied: six>=1.5 in /opt/mayan-edms/lib/python3.7/site-packages (from python-dateutil<3.0.0,>=2.1; python_version >= "2.7"->botocore<1.14.0,>=1.13.50->boto3) (1.13.0),
mayan: performupgrade(),
Traceback (most recent call last):,
File "/opt/mayan-edms/bin/mayan-edms.py", line 10, in <module>,
execute_from_command_line(sys.argv),
File "/opt/mayan-edms/lib/python3.7/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line,
utility.execute(),
File "/opt/mayan-edms/lib/python3.7/site-packages/django/core/management/__init__.py", line 338, in execute,
django.setup(),
File "/opt/mayan-edms/lib/python3.7/site-packages/django/__init__.py", line 27, in setup,
apps.populate(settings.INSTALLED_APPS),
File "/opt/mayan-edms/lib/python3.7/site-packages/django/apps/registry.py", line 108, in populate,
app_config.import_models(),
File "/opt/mayan-edms/lib/python3.7/site-packages/django/apps/config.py", line 202, in import_models,
self.models_module = import_module(models_module_name),
File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module,
return _bootstrap._gcd_import(name[level:], package, level),
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import,
File "<frozen importlib._bootstrap>", line 983, in _find_and_load,
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked,
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked,
File "<frozen importlib._bootstrap_external>", line 728, in exec_module,
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed,
File "/opt/mayan-edms/lib/python3.7/site-packages/mayan/apps/cabinets/models.py", line 13, in <module>,
from mayan.apps.documents.models import Document,
File "/opt/mayan-edms/lib/python3.7/site-packages/mayan/apps/documents/models/__init__.py", line 2, in <module>,
from .document_page_models import * # NOQA,
File "/opt/mayan-edms/lib/python3.7/site-packages/mayan/apps/documents/models/document_page_models.py", line 29, in <module>,
from .document_version_models import DocumentVersion,
File "/opt/mayan-edms/lib/python3.7/site-packages/mayan/apps/documents/models/document_version_models.py", line 28, in <module>,
from ..storages import storage_documentversion,
File "/opt/mayan-edms/lib/python3.7/site-packages/mayan/apps/documents/storages.py", line 13, in <module>,
)(**setting_storage_backend_arguments.value),
TypeError: type object argument after ** must be a mapping, not str,
mayan: starting entrypoint.sh,
mayan: update_uid_gid(),
mayan: os_package_installs(),
mayan: pip_installs(),
The directory '/home/mayan/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.,
The directory '/home/mayan/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.,
Requirement already satisfied: django-storages in /opt/mayan-edms/lib/python3.7/site-packages (1.8),
Requirement already satisfied: boto3 in /opt/mayan-edms/lib/python3.7/site-packages (1.10.50),
Requirement already satisfied: Django>=1.11 in /opt/mayan-edms/lib/python3.7/site-packages (from django-storages) (1.11.27),
Requirement already satisfied: s3transfer<0.3.0,>=0.2.0 in /opt/mayan-edms/lib/python3.7/site-packages (from boto3) (0.2.1),
Requirement already satisfied: jmespath<1.0.0,>=0.7.1 in /opt/mayan-edms/lib/python3.7/site-packages (from boto3) (0.9.4),
Requirement already satisfied: botocore<1.14.0,>=1.13.50 in /opt/mayan-edms/lib/python3.7/site-packages (from boto3) (1.13.50),
Requirement already satisfied: pytz in /opt/mayan-edms/lib/python3.7/site-packages (from Django>=1.11->django-storages) (2019.1),
Requirement already satisfied: docutils<0.16,>=0.10 in /opt/mayan-edms/lib/python3.7/site-packages (from botocore<1.14.0,>=1.13.50->boto3) (0.15.2),
Requirement already satisfied: urllib3<1.26,>=1.20; python_version >= "3.4" in /opt/mayan-edms/lib/python3.7/site-packages (from botocore<1.14.0,>=1.13.50->boto3) (1.24.3),
Requirement already satisfied: python-dateutil<3.0.0,>=2.1; python_version >= "2.7" in /opt/mayan-edms/lib/python3.7/site-packages (from botocore<1.14.0,>=1.13.50->boto3) (2.8.0),
Requirement already satisfied: six>=1.5 in /opt/mayan-edms/lib/python3.7/site-packages (from python-dateutil<3.0.0,>=2.1; python_version >= "2.7"->botocore<1.14.0,>=1.13.50->boto3) (1.13.0),
mayan: performupgrade(),