permissions error everytime i try to upload a torrent

If you run qBittorrent in / with Docker.
Post Reply
atomsk
Newbie
Newbie
Posts: 2
Joined: Tue Dec 31, 2024 10:46 am

permissions error everytime i try to upload a torrent

Post by atomsk »

using qbittorent 5.0.3

i'm trying to upload a torrent file via the WebUI and it's getting to Errored status

qbittorrent logs:

Code: Select all

(N) 2024-12-31T12:54:32 - Added new torrent. Torrent: "ubuntu-24.10-desktop-amd64.iso"
(W) 2024-12-31T12:54:34 - File error alert. Torrent: "ubuntu-24.10-desktop-amd64.iso". File: "/media/chronalis/seedbox/public/ubuntu-24.10-desktop-amd64.iso". Reason: "ubuntu-24.10-desktop-amd64.iso file_open (/media/chronalis/seedbox/public/ubuntu-24.10-desktop-amd64.iso) error: Permission denied"
keep in mind that downloads folder has full permissions (777). I was trying to troubleshoot it a bit:

I have this docker-compose.yml

Code: Select all

services:
  qbittorrent:
    image: linuxserver/qbittorrent
    container_name: qbittorrent
    environment:
      - PUID=1000             # User ID for permissions
      - PGID=1000             # Group ID for permissions
      - TZ=Europe/Athens      # Timezone (adjust as needed)
      - WEBUI_PORT=9000       # Port for WebUI (changed to 9000)
    volumes:
      - /home/atomsk/qbittorrent/config:/config      # Directory for configuration
      - /media/chronalis/seedbox:/downloads  # Directory for downloads
    ports:
      - 9000:9000             # Map WebUI port 9000 (changed from 8080)
      - 19230:19230             # Map torrent port
      - 19230:19230/udp         # Map torrent UDP port
    restart: unless-stopped   # Ensure the container restarts on reboot
user 1000 and group 1000 exists. If i try to check running container permissions I get

Code: Select all

docker exec -it qbittorrent id
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy),20(dialout),26(tape),27(video)
and when i try to create a file inside the docker container that file is the generated with root user permissions on host OS path. My guess is that the uid and gid of the running container should be 1000 but it isn't. I'm guessing this causes the issues. Also this issue happened out of the blue , it used to be running fine a couple of months ago but recently i've upgraded from ubuntu 22 to ubuntu 24 , might this be the issue? Anyone experienced something similar?
atomsk
Newbie
Newbie
Posts: 2
Joined: Tue Dec 31, 2024 10:46 am

Re: permissions error everytime i try to upload a torrent

Post by atomsk »

omg i found ithink ..the paths inside the qbitorrent webuis config are the paths in the container not the host OS :o .. (seems logical) .. i had the impression that i had the local OS paths though
Post Reply