radarr + qbittorrent import issue reddit / selfhosted ---------------------------------------------------------------------- AhmedBarayez · 2023-11-27 12:08 So, i've been struggling with this for few days, i have Ubuntu server with docker & portainer installed and radarr, qBittorrent are installed in portainer This is my radarr docker compose within portainer https://imgur.com/hBh2XU9 And this is qBittorrent docker compose within portainer [https://imgur.com/a/QfAKtss](https://imgur.com/a/QfAKtss) these are the only docker-compose files that worked with me inside radarr i created remote path mapping https://imgur.com/Fz8dlh6 qBittorrent is downloading the files I choose from radarr without any problem https://imgur.com/Ou31i4S However there are two problems: 1: radarr it's stuck on this error https://imgur.com/eDzsTPP and in events it's telling me this error `Import failed, path does not exist or is not accessible by Radarr: /download/Bao (2018) [BluRay] [1080p] [YTS.AM]. Ensure the path exists and the user running Radarr has the correct permissions to access this file/folder` 2: in the original path `/mnt/data-500-g/downloads` which is mounted on both apps in `/download` there are no files downloaded?! i mean it's empty, shouldn't it at least have the downloaded files from qBittorrent? the whole path /mnt/data-500g have permissions of 777 so i don't think it's permission issue so what it could be 🤦‍♂️🤦‍♂️🤦‍♂️🤦‍♂️🤦‍♂️ ---------------------------------------------------------------------- mirbatdon · 2023-11-27 12:22 Qbittorrent save path: /download(s) ---------------------------------------------------------------------- AhmedBarayez · 2023-11-27 12:55 i don't understand? ---------------------------------------------------------------------- mirbatdon · 2023-11-27 13:10 Your volume is /download but in app the dir is /downloads ---------------------------------------------------------------------- AhmedBarayez · 2023-11-27 13:19 when i set it to /download qBit gets stuck on stalled and logs gives me permission denied ---------------------------------------------------------------------- zachfive87 · 2023-11-27 13:25 I think its because you've used the same download location for both radarr and qbit. Looking at the trash guide here,[docker guide](https://wiki.servarr.com/docker-guide#consistent-and-well- planned-paths), if you look at the compose example you'll notice that the download client, sabnzb in the example, has a separate download folder than radarrs. Fixing this should mean that you can also remove the remote path mapping, which in its current state has the same location for remote and local path, which conflicts with the practice described in [this guide](https://trash-guides.info/Radarr/Radarr- remote-path-mapping/). But I think you shouldn't need remote path mapping if you follow the docker guides folder layout. ---------------------------------------------------------------------- mosaati · 2023-11-27 13:27 What user and group owns the folder on host? ---------------------------------------------------------------------- AhmedBarayez · 2023-11-27 13:31 you mean to separate the download folder in the host path or in container? i mean should i do this `/mnt/data-500g/qbitdownload` and `/mnt/data-`500g/radarrdownload or this `/container_qbit_down` and `/container_radarr_down` ---------------------------------------------------------------------- AhmedBarayez · 2023-11-27 13:33 this are the permissions https://imgur.com/1RynDIx ---------------------------------------------------------------------- mosaati · 2023-11-27 13:35 Change the container puid and guid to those of Ubuntu and root. Remove the remote host mapping ---------------------------------------------------------------------- AhmedBarayez · 2023-11-27 13:52 i did but still nothing ---------------------------------------------------------------------- zachfive87 · 2023-11-27 13:56 According to the guides compose example it should be like. Qbit >/mnt/data-500g/downloads/qbitdownload:/downloads Radarr >/mnt/data-500g/downloads:/downlaods And make sure your using a seperate folder for your actual media server and not pointing it to,/mntdata-500g/downloads Look at the compose example in the guide I posted and mimic that layout. ---------------------------------------------------------------------- mosaati · 2023-11-27 13:57 Did you try downloading a new torrent and test if radarr could grab it? Did you change the puid and pgid on qbittorrent as well? ---------------------------------------------------------------------- AhmedBarayez · 2023-11-27 14:07 Yes i tried to download new file and radarr is sending the file to qbit Yes i changed to ubuntu user however qbit is giving now a permission error https://imgur.com/a/wjdKJCy ---------------------------------------------------------------------- mosaati · 2023-11-27 14:47 Permissions sometimes get weird and confusing. One of the options that worked for me when it got confusing was recursively changing the owner user and group to nobody on the host folders. Try that if you have no problems with who owns the folders. Revert the changes you have done earlier with the containers puid and pgid ---------------------------------------------------------------------- AhmedBarayez · 2023-11-27 14:50 >recursively changing the owner user and group to nobody on the host folders. how do i do that? ---------------------------------------------------------------------- mosaati · 2023-11-27 14:59 sudo chown -R nobody:nogroup ---------------------------------------------------------------------- AhmedBarayez · 2023-11-27 15:04 still https://imgur.com/1t1jUdu ---------------------------------------------------------------------- mosaati · 2023-11-27 15:17 Post the containers yaml and host folder path again. ---------------------------------------------------------------------- AhmedBarayez · 2023-11-27 15:22 radarr `version: "2.1"` `services:` `radarr:` `image: ghcr.io/linuxserver/radarr` `container_name: radarr` `environment:` `- PUID=0` `- PGID=0` `- TZ=Africa/Cairo` `volumes:` `- /home/ubuntu/config/radarr:/config` `- /mnt/data-500g:/rrmedia` `ports:` `- 7878:7878` `restart: unless-stopped` ​ ​ qbit `---` `version: "2.1"` `services:` `qbittorrent:` `image: lscr.io/linuxserver/qbittorrent:latest` `container_name: qbittorrent` `environment:` `- PUID=0` `- PGID=0` `- TZ=Africa/Cairo` `- WEBUI_PORT=8080` `volumes:` `- /home/ubuntu/config/qbit/config:/config` `- /mnt/data-500g:/rrmedia` `ports:` `- 8080:8080` `- 6881:6881` `- 6881:6881/udp` `restart: unless-stopped` ---------------------------------------------------------------------- mosaati · 2023-11-27 15:26 And the host folder path and its current permissions? ---------------------------------------------------------------------- mosaati · 2023-11-27 15:26 And the host folder path and its current permissions? ---------------------------------------------------------------------- AhmedBarayez · 2023-11-27 15:45 here https://imgur.com/dgR5K45 ---------------------------------------------------------------------- mosaati · 2023-11-27 17:23 I just created a new Proxmox lxc to test a setup and everything worked from first start. Here is what I did so that you may find your answer or follow what I did. Or check the tl:dr below. ​ I created the lxc. It had only root user so I created ubuntu user. I did `id ubuntu` to get the pid and gid. It was 1000 1000. I added the user ubuntu to sudo group by using `usermod -aG sudo ubuntu` I logged out of root and logged in using ubuntu I then installed docker using `curl -fsSL https://get.docker.com -o get-docker.sh` `sh` [`get-docker.sh`](https://get-docker.sh) I added the user ubuntu to the docker group using `sudo usermod -aG docker $USER` So far if I `id ubuntu` it will look like this `uid=1000(ubuntu) gid=1000(ubuntu) groups=1000(ubuntu),27(sudo),100(users),995(docker)` I created my folders under home directory. My structure might be different from yours but the same concept applies. The look like this: /home/ubuntu/docker/config (for apps config. sub folders qbit and radarr) /home/ubuntu/docker/media (for video files) /home/ubuntu/docker/downloads (for downloads) I ran the following docker commands: `docker run -d \` `--name=radarr \` `-e PUID=1000 \` `-e PGID=1000 \` `-e TZ=Africa/Cairo \` `-v /home/ubuntu/docker/config/radarr:/config \` `-v /home/ubuntu/docker/media:/media \` `-v /home/ubuntu/docker/downloads:/downloads \` `-p 7878:7878 \` `ghcr.io/linuxserver/radarr` `\`\`\`` `\`\`\`` `docker run -d \` `--name=qbittorrent \` `-e PUID=1000 \` `-e PGID=1000 \` `-e TZ=Africa/Cairo \` `-e WEBUI_PORT=8080 \` `-v /home/ubuntu/docker/config/qbit:/config \` `-v /home/ubuntu/docker/downloads:/downloads \` `-p 8080:8080 \` `-p 6881:6881 \` `-p 6881:6881/udp \` [`lscr.io/linuxserver/qbittorrent:latest`](https://lscr.io/linuxserv er/qbittorrent:latest) `\`\`\`` I had to use version 4.6.0 for qbittorrent because latest version did not allow me to sign in for some reason. I just added the qbittorrent downloader in radarr and downloaded a movie and it was grabbed and no errors at all. ​ tl;dr: You might need to fix the permissions of the folders to be owned by the current logged in user and make sure that that user is part of the sudo and docker group. Then id the user and add the pid and gid in the docker deployment yaml. ---------------------------------------------------------------------- AhmedBarayez · 2023-11-27 18:08 Idk if that would help or not but my setup is like below - Main proxmox server with the hdd, shared “media” folder with smb with 777 permissions - Ubuntu server mounting the smb share from above using /etc/fstab into /mnt/data-500g - installed portainer and docker and inside docker i installed radarr and qBittorrent with the mentioned comopose file Just to make things clear, i mounted the smb share on windows pc and i can read/write anything on it Can this be the problem.? ---------------------------------------------------------------------- mosaati · 2023-11-27 18:12 What is the output of 'id $USER'? ---------------------------------------------------------------------- AhmedBarayez · 2023-11-27 18:26 where? in proxmox host or ubuntu server vm? ---------------------------------------------------------------------- AhmedBarayez · 2023-11-27 18:29 >'id $USER from ubuntu server vm [https://imgur.com/l04IFVW](https://imgur.com/l04IFVW) from proxmox main host https://imgur.com/xqwHWGD ---------------------------------------------------------------------- AhmedBarayez · 2023-11-27 18:39 I added the user ubuntu to sudo group by using `usermod -aG sudo ubuntu` And added the user ubuntu to the docker group using `sudo usermod -aG docker $USER` And `id ubuntu` from ubuntu server vm now gives me `uid=1000(ubuntu) gid=1000(ubuntu) groups=1000(ubuntu),4(adm),24(cdrom ),27(sudo),30(dip),46(plugdev),110(lxd),999(docker)` ---------------------------------------------------------------------- AhmedBarayez · 2023-11-27 21:34 what should i do next 😫😫 ---------------------------------------------------------------------- mosaati · 2023-11-28 08:12 Try to run the containers now with -e PUID=1000 \\ \-e PGID=1000 \\