Plex Docker container, getting permissions error

I am trying to create a Docker container for Plex using the official container. I have a bind mount for /config to the host. I am getting

libc++abi: terminating with uncaught exception of type boost::filesystem::filesystem_error: boost::filesystem::create_directories: Permission denied [system:13]: “/config/Library/Application Support/Plex Media Server/Cache”, “/config/Library/Application Support/Plex Media Server/Cache”

Which obvioulsy is saying the container does not have permissions but I DO have permissions if I look on the NAS.

I am at a loss, thanks for any help!

Edit: When I start the container, it creates the folder structure “\config\Library\Application Support” but does not create the Cache folder, which goes along with the error. But I do not know why, it clearly has permissions.

All of a sudden it started working, I did not do anything other than stop and start the container a couple of times to check a few things. Weird.

I do have another issue now. I did a bind mount for the media to /media. When I am creating a library on the web /media shows empty. However, if I connect to the container via a console, I can browse /media and it shows files.

Clearly I am doing something wrong here, I am not sure what

Its a permissions issue. Why are you adding docker as a complexity layer? Just run it on the OS natively, you will avoid soo many issues.

Terramaster is HORRIBLE with this apps. GOD AWFUL and then some. The OS often has to be wiped and redone, it’s easy to lose app data and you cannot redirect it that I know of.

Doing it in a Docker allows me to redirect the configs.

If it’s a permissions issue, why did it start working without a change?

Also, I just added a second bind mount /media/movies and I can see the moves then but if I do /media I cannot see the folders under media.

It all sounds like permissions issues but there are no permissions issues I can find

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.