Restarting the Docker host would also restart the Docker container. You can also delete the container and run the container creating steps again, this will get rid of any stray Python cached code. NOTE: Delete only the container and not the volumes (mayan_media, mayan_settings) as these are where the data is located.
Docker image documentation: https://hub.docker.com/r/mayanedms/mayanedms/ Upgrading a Mayan EDMS Docker container is actually a matter of upgrading the database as the actualy binaries will be upgraded automatically when the new Docker image version is downloaded. IMPORTANT! Don't delete the volumes, only the container. Stop the container to be upgraded: docker stop mayan-edms Remove the container: docker rm mayan-edms Pull the new image version: docker pull mayanedms/mayanedms:latest Run the upgrade command using a temporary container: docker run --rm -v mayan_media:/var/lib/mayan -v mayan_settings:/etc/mayan mayanedms/mayanedms:latest mayan:upgrade Start the container again with the new image version: docker run -d --name mayan-edms --restart=always -p 80:80 -v mayan_media:/var/lib/mayan -v mayan_settings:/etc/mayan mayanedms/mayanedms:latest On Friday, May 5, 2017 at 4:59:35 AM UTC-4, Manuel Reiter wrote: > > How would I restart everything? Calling mayan-edms.py with any argument > produces the same error: > > > root@403ff3d23b4e:/usr/local/lib/python2.7/dist-packages/mayan# >> mayan-edms.py >> Traceback (most recent call last): >> File "/usr/local/bin/mayan-edms.py", line 10, in <module> >> execute_from_command_line(sys.argv) >> File >> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", >> line 367, in execute_from_command_line >> utility.execute() >> File >> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", >> line 341, in execute >> django.setup() >> File "/usr/local/lib/python2.7/dist-packages/django/__init__.py", line >> 27, in setup >> apps.populate(settings.INSTALLED_APPS) >> File "/usr/local/lib/python2.7/dist-packages/django/apps/registry.py", >> line 89, in populate >> "duplicates: %s" % app_config.label) >> django.core.exceptions.ImproperlyConfigured: Application labels aren't >> unique, duplicates: cabinets >> > > I'm still running Mayan inside a Docker container - can I just reboot such > a beast? > -- --- You received this message because you are subscribed to the Google Groups "Mayan EDMS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
