Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error response from daemon: error while creating mount source path #44

Closed
bensternthal opened this issue Dec 29, 2017 · 12 comments
Closed

Comments

@bensternthal
Copy link

Pretty stumped on this one.. should be easy-peasey. After running the docker create command and the docker start I get the following error:

Error response from daemon: error while creating mount source path '/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs': mkdir /var/lib/plexmediaserver: permission denied
Error: failed to start containers: plexpy

Spidey sense is that the docker user cannot access the plex logs location. Which seems odd. I have tried a few things to debug including messing with the user and group ids, but nothing I try works. I've confirmed that as my user I can read and edit files there no problem.

Appreciate any help you can provide.

Host OS

Ubuntu 17.10

Docker Commands

docker create \ 
--name=plexpy \
-v /home/ben/Media-Server/plexpy:/config \
-v /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Logs:/logs:ro \
-e PGID=1000 -e PUID=1000  \
-e TZ=America/Los_Angeles \
-p 8181:8181 \
linuxserver/plexpy
docker start plexpy

Docker Output

Error response from daemon: error while creating mount source path '/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs': mkdir /var/lib/plexmediaserver: permission denied
Error: failed to start containers: plexpy

Notes

  1. Plex is installed in the default manner. Log location is owned by plex:plex
  2. User id and group are of my user.
  3. I am able to edit and delete content in the log location.
@j0nnymoe
Copy link
Member

Wrap the second volume mount in " 's and this will get past the error.

@bensternthal
Copy link
Author

Unfortunately that did not work. I tried both:

"/var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Logs"

and

"/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs"

@tobbenb
Copy link
Member

tobbenb commented Dec 29, 2017

Are you sure the path is correct? The error say that it can't create the source path. That probably means that the path doesn't exist and it tries to create it.

@bensternthal
Copy link
Author

Yep path is correct, can copy paste into terminal and cd into that dir.

Something is funky with docker and perms. It seems to not be able to access anything outside my home directory.

Grrr!

@bensternthal
Copy link
Author

OK i think I sorted this.

The issue was using docker-snap https://github.com/docker/docker-snap/blob/master/README.md

Yeah I should have known better. Installing docker-ce via the official docs seems to have worked.

Thanks again for helping.

@srslynow
Copy link

@bensternthal thank you so much for coming back with the answer! I was going crazy, turned out the system I was working on had docker snap installed as well.

@jimtaylor123
Copy link

thanks

@JGNi
Copy link

JGNi commented Apr 15, 2019

How do you uninstall it? Can't see the option in dpkg or apt-get remove

@bensternthal
Copy link
Author

@JGNi Can you create a new issue? It sounds like you are experiencing something different from what is described here.

@JGNi
Copy link

JGNi commented Apr 15, 2019

I found the solution now. I didn't know about snap. I do now.

@PuZZleDucK
Copy link

Commands to remove docker snap and install docker via apt:

sudo snap remove docker
sudo apt install docker

@thelamer
Copy link
Member

thelamer commented Aug 9, 2019

@PuZZleDucK never install from OS repos always use docker ce repos:

https://docs.docker.com/install/linux/docker-ce/ubuntu/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants