[Mayan EDMS: 2024] mayan_data directory is empty on host machine (Docker)

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Mayan EDMS: 2024] mayan_data directory is empty on host machine (Docker)

Robert Metzger
Hi,

I've just tried out Mayan the first time using Docker. I used the following command to start the docker image:

docker run -d --name mayan-edms --restart=always -p 80:80 -v mayan_data:/media/Store/data/mayan/data mayanedms/mayanedms:2.6.4-4

"docker volume inspect mayan_data" returns the following:

[
    {
        "Driver": "local",
        "Labels": null,
        "Mountpoint": "/var/lib/docker/volumes/mayan_data/_data",
        "Name": "mayan_data",
        "Options": {},
        "Scope": "local"
    }
]

So something went wrong somewhere on the way.

Both /var/lib/docker/volumes/mayan_data/_data and /media/Store/data/mayan/data are empty.

Where is Mayan storing its data?

--

---
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
|

[Mayan EDMS: 2025] Re: mayan_data directory is empty on host machine (Docker)

Lin Pro


On Saturday, August 19, 2017 at 4:38:22 AM UTC-5, Robert Metzger wrote:


Both /var/lib/docker/volumes/mayan_data/_data and /media/Store/data/mayan/data are empty.

Where is Mayan storing its data?


I would look for trouble in the "/media/Storage/data..." line which does not correspond to the volume definition from the Dockerfile:

cat Dockerfile |grep var/lib/mayan
RUN ln -s $MAYAN_MEDIA /var/lib/mayan
RUN chown www-data:www-data /var/lib/mayan
VOLUME ["/var/lib/mayan"]

So in essense, one should do "-v mayan_data:/var/lib/mayan" to define the named volume.

The fully blown installation with all the bells and whisles like (postgresql, RabbitMQ, etc) can be obtained with "docker-compose" comand:
So first do the folowing:

git clone https://gitlab.com/mayan-edms/mayan-edms-docker.git

cd mayan-edms-docker
nano docker-compose.yml

make sure theres is a line:
 image: mayanedms/mayanedms:2.6.4-4

that way you will get the most recent version of mayan-edms.

And fire up:
docker-compose up -d


Inspect created volumes:
docker volume ls
DRIVER              VOLUME NAME
local               mayanedmsdocker_app
local               mayanedmsdocker_broker
local               mayanedmsdocker_db
local               mayanedmsdocker_results

Regards
Lin Pro

--

---
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
|

[Mayan EDMS: 2027] Re: mayan_data directory is empty on host machine (Docker)

Robert Metzger
Thank you for looking into it.

I've been following the installation guide from the website, and it said that I can define a custom data directory by passing "mayan_data:/media/Store/data/mayan/data" to the docker command.
I think that's also the only place where this string appears.

On Saturday, August 19, 2017 at 11:40:27 PM UTC+2, Lin Pro wrote:


On Saturday, August 19, 2017 at 4:38:22 AM UTC-5, Robert Metzger wrote:


Both /var/lib/docker/volumes/mayan_data/_data and /media/Store/data/mayan/data are empty.

Where is Mayan storing its data?


I would look for trouble in the "/media/Storage/data..." line which does not correspond to the volume definition from the Dockerfile:

cat Dockerfile |grep var/lib/mayan
RUN ln -s $MAYAN_MEDIA /var/lib/mayan
RUN chown www-data:www-data /var/lib/mayan
VOLUME ["/var/lib/mayan"]

So in essense, one should do "-v mayan_data:/var/lib/mayan" to define the named volume.

The fully blown installation with all the bells and whisles like (postgresql, RabbitMQ, etc) can be obtained with "docker-compose" comand:
So first do the folowing:

git clone <a href="https://gitlab.com/mayan-edms/mayan-edms-docker.git" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgitlab.com%2Fmayan-edms%2Fmayan-edms-docker.git\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE-ZLq1xh8h5N4KKYEm23wlodoqag&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgitlab.com%2Fmayan-edms%2Fmayan-edms-docker.git\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE-ZLq1xh8h5N4KKYEm23wlodoqag&#39;;return true;">https://gitlab.com/mayan-edms/mayan-edms-docker.git

cd mayan-edms-docker
nano docker-compose.yml

make sure theres is a line:
 image: mayanedms/mayanedms:2.6.4-4

that way you will get the most recent version of mayan-edms.

And fire up:
docker-compose up -d


Inspect created volumes:
docker volume ls
DRIVER              VOLUME NAME
local               mayanedmsdocker_app
local               mayanedmsdocker_broker
local               mayanedmsdocker_db
local               mayanedmsdocker_results

Regards
Lin Pro

--

---
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.