Hi,
I am trying to get qbittorrent to work. Downloading anything fails with this error in the logs:
(N) 2025-08-15T00:18:52 - Added new torrent. Torrent: "LibreOffice_25.2.5_Win_x86-64.msi"
(W) 2025-08-15T00:18:54 - File error alert. Torrent: "LibreOffice_25.2.5_Win_x86-64.msi". File: "/downloads/LibreOffice_25.2.5_Win_x86-64.msi". Reason: "LibreOffice_25.2.5_Win_x86-64.msi file_mmap (/downloads/LibreOffice_25.2.5_Win_x86-64.msi) error: No such device"
So this looks like a permission error. The documentation qbittorrent - LinuxServer.io says this:
Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.
The magic seems broken, because it is exactly the case.
My qbittorrent docker compose is the following:
qbittorrent:
image: lscr.io/linuxserver/qbittorrent:latest
container_name: qbittorrent
environment:
PUID: 1001
PGID: 1001
TZ: Europe/Zurich
WEBUI_PORT: 443
networks:
services:
volumes:
- ${CONFIG_FOLDER}/qbittorrent:/config
- /srv/mergerfs/MergerFS/Downloads:/downloads
restart: unless-stopped
The user 1001 and group 1001 do exist on the host machine.
I have done the following:
chmod -R 770 /srv/mergerfs
chown -R 1001:1001 /srv/mergerfs
File permissions are correct.
If I connect to the container’s console with user 1001, I can perfectly create and edit files in /downloads. But qbittorrent is not able to, apparently.
I tried to run the container as PGID:0 / PUID:0, and with chmod 777 to mergerfs, and got exactly the same results.
What could be wrong ?
I can’t find a single solution or what the problem could be.
Thanks you in advance for any answer.
Have a nice day