linuxserver / docker-radarr

GNU General Public License v3.0
646 stars 104 forks source link

Radarr V3 Folder is not writable by user abc #132

Closed Danpoulter97 closed 2 years ago

Danpoulter97 commented 3 years ago

I have newly setup a docker container for Sonarr and Radarr. Sonarr is working perfectly with the same base config and permissions but Radarr always errors when adding a root folder. I can add a folder manually where I am trying to set the root folder with the same user (1001) but Radarr wont add the path.

I have tried making the abc user the owner of that folder but that made no difference.

The container was made with PUID=1001 and PGID=1001

Is anyone else having this issue?

My build is Docker 19.03.12 on linux, amd64 Radarr is version:- 3.0.1.4259

github-actions[bot] commented 3 years ago

Thanks for opening your first issue here! Be sure to follow the bug or feature issue templates!

mitch98 commented 3 years ago

I'm also having the same issue, using a Raspberry Pi 4 on OpenMediaVault. Same issue occurs on a Pi 3 (latest RaspberryPiOS, running docker stand-alone without OpenMediaVault). Sonarr is working fine.

mitch98 commented 3 years ago

I'm also having the same issue, using a Raspberry Pi 4 on OpenMediaVault. Same issue occurs on a Pi 3 (latest RaspberryPiOS, running docker stand-alone without OpenMediaVault). Sonarr is working fine.

Update: Looks like this is a known issue - https://docs.linuxserver.io/faq#my-host-is-incompatible-with-images-based-on-ubuntu-focal

Following the steps outlined above resolved the issue for me Danpoulter97

Roxedus commented 3 years ago

@Danpoulter97 Did you look at the entry above?

github-actions[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

thomasvvugt commented 3 years ago

I'm having the same issue. Running docker 20.10.5 on Ubuntu Focal (20.04.2 LTS), and I tried option 3 in the link mentioned above.

However, still getting the error (both on PUID/PGID 1000 and 0); [Warn] RadarrErrorPipeline: Invalid request Validation failed: -- Path: Folder is not writable by user abc

phatphillips commented 3 years ago

I had this issue running omv running unionfs and snapraid - for some reason the user group didn't have permissions to the Movies and TV-Shows directory. All I had to do to fix this was chmod -R g+rwx /path-to-movies/or/tv-shows/ No need to restart the container, it should just work.

Edit: I was rebuilding my docker containers.. I ran into this issue again - this time I had a different but same issue. I had to run as root chown username /path-to-movies/or/tv-shows/ then chmod -R g+rwx /path-to-movies/or/tv-shows/ then chomd -R 777 /path-to-movies/or/tv-shows/ Also i used ls -ltr /path-to-movies/or/tv-shows/ to figure out which group and user owns what. Hopefully this helps some poor soul out there

github-actions[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Cromm commented 3 years ago

I had this issue running radarr on osx using remote folders mounted using samba. When I changed to AFP the problem went away. I hope this helps others!

eduzen commented 3 years ago

Same issue here, rest of linuxserver images with puid and guid are working fine, but not radarr

  -- Path: Folder is not writable by user abc
eduzen commented 3 years ago

Not a real solution, but it's possible to do:

docker-compose exec radarr bash

$ chown 1000:1000 /movies -R

To be able to add a Root Folders

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

j0nnymoe commented 2 years ago

Without providing any info on how you all have deployed the container on Synology, the only thing we can assume is it's been deployed incorrectly and whatever user you have it running as doesn't have the required permissions.

alexcom commented 2 years ago

@j0nnymoe Maybe permissions were not that broken. The directory mounted brought host file system permissions and ownership inside container with it. I just was resolving the same issue. Synology DSM 7, Docker, linuxserver/radarr:latest I executed interactive shell to look inside the container and I saw that movies and downloads directories have ownership 1024:users. So at least user is incorrect. I check host filesystem and indeed directories belonged to admin(UID=1024) user while UID I passed into configuration was of my second user alexcom. chown to correct user and consecutive chmod fixed the problem. It does not matter where you execute these commands, inside container or on host filesystem.

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

adx74 commented 2 years ago

Hello, same issue here, but all of your commands never change something, PID and UID set as 1000 like my user. Any solutions please ?

Radarr version : 3.0.6.1342 Package Version: 3.0.6.1342-ls132 by linuxserver.io On Linux 20.04 LTS AMD64

Thanks in advance

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

nmfreitas commented 2 years ago

Hi, same issue here.

Have a PC running Ubuntu 20.04 LTS and Docker , plus Synology NAS DS215J

When installing Sonarr or Radarr, have the issue.

Deleted for showing copyrighted content This is the folders in Synology all have chmod 777 (for tests only)

Deleted for showing copyrighted content This is the same folders mounted in the PC via SMB. Cant change the permission level.

When i try to add a "ROOT FOLDER" both on radarr and sonarr this issue happens.

The PUID and PGID are 1000 both on docker-compose and in the system. Tried create a user "abc" and change the PUID and PGID for the respective user, and didnt work.

Is the problem on the synology, the share folder, docker or the apps?

Thanks

j0nnymoe commented 2 years ago

Edited you post to remove the copyrighted content. But clearly showed via your SMB mount that the ownership of the files are incorrect. Your mounts need to be done as the same user you're running the containers as.

That's the issue for all here, it's specific to your remote mounts, not a container issue.

Closing this issue as its not designed for general support, our discourse and discord is best for that.

j0nnymoe commented 2 years ago

Also, I'm aware that users here have had the same error but different setups, if you do still feel your issue is to with the container, please open a fresh issue and provide all the requested information in the template.

rajivravio commented 2 years ago

I had this issue running omv running unionfs and snapraid - for some reason the user group didn't have permissions to the Movies and TV-Shows directory. All I had to do to fix this was chmod -R g+rwx /path-to-movies/or/tv-shows/ No need to restart the container, it should just work.

Edit: I was rebuilding my docker containers.. I ran into this issue again - this time I had a different but same issue. I had to run as root chown username /path-to-movies/or/tv-shows/ then chmod -R g+rwx /path-to-movies/or/tv-shows/ then chomd -R 777 /path-to-movies/or/tv-shows/ Also i used ls -ltr /path-to-movies/or/tv-shows/ to figure out which group and user owns what. Hopefully this helps some poor soul out there

Thank you sir!

geekykant commented 2 years ago

Had the same issue when downloading to mounted storage, folder permissions weren't changing. Solved by setting the sonarr docker container env PUID and PGUID to 0, which is basically root permission.

environment:
      - PUID=0
      - PGID=0
Mr-Quinn commented 2 years ago

Fixed... debian 10 and have the same error with Radarr/Sonarr.

But setting the uid=use_name and gid=0 in fstab then the credential file username=xyx, password=xxxxx

sudo mount -a and we're good!