Direct deployment to Docker Compose migration

Hello all,

is this guide now safe?

My installation of MAYAN EDMS is still running as direct deploymend on Ubuntu 22.04.03 as version 4.4.8.

A manual upgrade to 4.5.1 unfortunately fails with the following error messages:

mayan.apps.backends.model_mixins <1877> [ERROR] “get_backend_class() line 50 ImportError while importing backend: mayan.apps.sources.source_backends.SourceBackendWatchFolder; Module “mayan.apps.sources.source_backends” does not define a “SourceBackendWatchFolder” attribute/class”
mayan.apps.backends.model_mixins <1877> [ERROR] “get_backend_class() line 50 ImportError while importing backend: mayan.apps.sources.source_backends.SourceBackendWatchFolder; Module “mayan.apps.sources.source_backends” does not define a “SourceBackendWatchFolder” attribute/class”
mayan.apps.backends.model_mixins <1877> [ERROR] “get_backend_class() line 50 ImportError while importing backend: mayan.apps.sources.source_backends.SourceBackendWatchFolder; Module “mayan.apps.sources.source_backends” does not define a “SourceBackendWatchFolder” attribute/class”
mayan.apps.backends.model_mixins <1877> [ERROR] “get_backend_class() line 50 ImportError while importing backend: mayan.apps.sources.source_backends.SourceBackendWatchFolder; Module “mayan.apps.sources.source_backends” does not define a “SourceBackendWatchFolder” attribute/class”
mayan.apps.backends.model_mixins <1877> [ERROR] “get_backend_class() line 50 ImportError while importing backend: mayan.apps.sources.source_backends.SourceBackendWatchFolder; Module “mayan.apps.sources.source_backends” does not define a “SourceBackendWatchFolder” attribute/class”
mayan.apps.backends.model_mixins <1877> [ERROR] “get_backend_class() line 50 ImportError while importing backend: mayan.apps.sources.source_backends.SourceBackendWatchFolder; Module “mayan.apps.sources.source_backends” does not define a “SourceBackendWatchFolder” attribute/class”
mayan.apps.backends.model_mixins <1877> [ERROR] “get_backend_class() line 50 ImportError while importing backend: mayan.apps.sources.source_backends.SourceBackendWatchFolder; Module “mayan.apps.sources.source_backends” does not define a “SourceBackendWatchFolder” attribute/class”
mayan.apps.backends.model_mixins <1877> [ERROR] “get_backend_class() line 50 ImportError while importing backend: mayan.apps.sources.source_backends.SourceBackendWebForm; Module “mayan.apps.sources.source_backends” does not define a “SourceBackendWebForm” attribute/class”

Am I perhaps doing something wrong?

I use the following commands to perform a manual upgrade:

sudo systemctl stop supervisor
sudo cp /etc/supervisor/conf.d/mayan-edms.conf /etc/supervisor/conf.d/mayan-edms.conf.bck
sudo --user=mayan /opt/mayan-edms/bin/pip install --upgrade pip
sudo --user=mayan curl https://gitlab.com/mayan-edms/mayan-edms/raw/master/removals.txt --output /tmp/removals.txt && sudo --user=mayan /opt/mayan-edms/bin/pip uninstall --requirement /tmp/removals.txt --yes
sudo --user=mayan /opt/mayan-edms/bin/pip install mayan-edms==4.5.1
sudo --user=mayan MAYAN_MEDIA_ROOT=/opt/mayan-edms/media/ /opt/mayan-edms/bin/mayan-edms.py platform_template supervisord | sudo sh -c “cat > /etc/supervisor/conf.d/mayan-edms.conf”
sudo --user=mayan MAYAN_MEDIA_ROOT=/opt/mayan-edms/media/ /opt/mayan-edms/bin/mayan-edms.py common_perform_upgrade
sudo systemctl start supervisor
sudo reboot

Would be great if I can safely migrate to Docker Compose.

Greetings

[EDIT 18.09.2023 07:14 CET] Correction: I just tried again with the already existing instructions and it worked. :slight_smile: MAYAN EDMS is now running as Docker container as version 4.5.1 rejoice.

**After the migration I had to do - as announced - a few settings manually (for example the watch folders) **

Now I hope that with the following versions of MAYAN EDMS the upgrade process will be easier :slight_smile:

1 Like