Quantcast

[Mayan EDMS: 1489] Problem with Docker image

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Mayan EDMS: 1489] Problem with Docker image

Jens Pfau
Hi,

I have downloaded the official Docker image (latest version) from the Docker hub:
https://hub.docker.com/r/mayanedms/mayanedms/

When I follow the instructions for initialising the container, I get the following output from the container:
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 354, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 303, in execute
    settings.INSTALLED_APPS
  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 48, in __getattr__
    self._setup(name)
  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 44, in _setup
    self._wrapped = Settings(settings_module)
  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 92, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
ImportError: No module named settings

Looking at the container it appears that the cause for this is that the following folder is empty:
/usr/local/lib/python2.7/dist-packages/mayan/settings
That doesn't look right.

Can someone confirm this observation?

Cheers,
Jens

--

---
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Mayan EDMS: 1493] Re: Problem with Docker image

rosarior
Administrator
 Hi, 

this turns out to be an issue with Docker. Named volumes are not managed the same way as local folders being mounted as volumes.

Volumes are initialized when a container is created. If the container’s base image contains data at the specified mount point, that existing data is copied into the new volume upon volume initialization. (Note that this does not apply when mounting a host directory.)

When mounting host directories, the base.py settings file is not being copied to the volume. https://docs.docker.com/engine/tutorials/dockervolumes/



On Saturday, January 21, 2017 at 8:37:04 PM UTC-4, Jens Pfau wrote:
Hi,

I have downloaded the official Docker image (latest version) from the Docker hub:
<a href="https://hub.docker.com/r/mayanedms/mayanedms/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fhub.docker.com%2Fr%2Fmayanedms%2Fmayanedms%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFqvBgD9yRJ6dvGlOvuNDvo_2TUAw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fhub.docker.com%2Fr%2Fmayanedms%2Fmayanedms%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFqvBgD9yRJ6dvGlOvuNDvo_2TUAw&#39;;return true;">https://hub.docker.com/r/mayanedms/mayanedms/

When I follow the instructions for initialising the container, I get the following output from the container:
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 354, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 303, in execute
    settings.INSTALLED_APPS
  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 48, in __getattr__
    self._setup(name)
  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 44, in _setup
    self._wrapped = Settings(settings_module)
  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 92, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
ImportError: No module named settings

Looking at the container it appears that the cause for this is that the following folder is empty:
/usr/local/lib/python2.7/dist-packages/mayan/settings
That doesn't look right.

Can someone confirm this observation?

Cheers,
Jens
 
A workaround is being tried. Follow issue #6 here: https://gitlab.com/mayan-edms/mayan-edms-docker/issues/6

--

---
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Loading...