Docker Container Error? Folder is not writable by user abc

Sonarr version (exact version): 2.0.0.5344
Mono version (if Sonarr is not running on Windows): 5.20.1.34
OS: QNAP QTS 4.3.6.1070
Debug logs:
Description of issue:

I’ve installed Sonarr and NZBGet using the docker create command. When I try to add tv shows in Sonarr, the UI is asking me to select a path. When I try to select a path, it gives me the error: “Folder is not writable by user abc”.

So, Sonarr is created through a docker container. I used the following command to create it:

docker create \
  --name=sonarr \
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=America/Toronto \
  -e UMASK_SET=022 `#optional` \
  -p 8989:8989 \
  -v /share/CACHEDEV1_DATA/Container/Docker/Sonarr/config:/config \
  -v /share/CACHEDEV1_DATA/Multimedia/TV\ Show:/tv \
  -v /share/CACHEDEV1_DATA/Container/Docker/Downloads/Complete/tv:/downloads \
  --restart unless-stopped \
  linuxserver/sonarr

I turned on debug tracing in Sonarr and have pasted the output here: https://pastebin.com/NA48uJaC

Can someone please advise?

Remove the \ after TV, i.e.:
-v /share/CACHEDEV1_DATA/Multimedia/TV Show:/tv \

Thank you, but I don’t think that’s the issue.

There seems to be some issue with the user linked to the docker container vs the user on the host. I just can’t figure out how to fix it.

try:
docker ps
copy the container id.
docker exec -it CONTAINER_ID /bin/bash

while inside the container you cant try different path’s and see what happens.

does that user and/or group on that host, have full access to the folder?

docker images that take a PUID/PGID will remap the internal docker user (abc) and group (abc) to those values

Thank you everyone for your help!

I figured out the issue. I just used a docker-compose script to install sonarr, radarr, plex and portainer in separate containers. They all communicate with each other and it’s working fine now.