qbittorrent / qBittorrent

qBittorrent BitTorrent client
https://www.qbittorrent.org
Other
27.81k stars 3.93k forks source link

qbittorrent log throwing file permission errros #15784

Closed temelj closed 2 years ago

temelj commented 2 years ago

qBittorrent & operating system versions

qbittorrent latest Operating system Ubuntu 20.04

What is the problem?

from "/downloads/" to "/downloads/temp". Reason: Test Download Ghost) storage move failed. mkdir (): Permission denied.

Steps to reproduce

my docker-compose:

  qbittorrentvpn:
    image: binhex/arch-qbittorrentvpn
    privileged: true
    cap_add:
      - NET_ADMIN
    ports:
      - "6888:8080" #  WebUI
      - "6881:6881" #  TCP Listening Port
      - "6881:6881/udp" #  UDP Listening Port
      - "8118:8118" #  Privoxy
    volumes:
      - "/home/temelj/Documents/docker-config/:/config" #  config dir
      - "/home/temelj/Downloads/qbittorrent/:/data" # downloads folder
    environment:
      VPN_ENABLED: 'yes'
      VPN_CLIENT: 'wireguard'         
      VPN_PROV: 'custom'
      LAN_NETWORK: '192.168.1.1/23'
      NAME_SERVERS: '1.1.1.1,1.0.0.1'
      PUID: 1000 # set this to the UID of your user (temelj)
      PGID: 1000 # set this to the GID of your user (temelj)
      ENABLE_PRIVOXY: 'yes'

notice the volumes - it writes config folders fine, but it can't write the download folder from qbittorrent...

Additional context

No response

Log(s) & preferences file(s)

No response

richmailYT commented 2 years ago

where/how did you install it? what happends if you try to fun it with sudo?

temelj commented 2 years ago

Hey, thanks for the suggestion. I am starting it with sudo. I moved on to another container that works for now. But it wasn't without its own challenges...

A) cannot run without sudo B) must set privileged mode C) I mistakenly used my accounts pgid and puid. Changing this to 0 for root got me through the issues.

On Sat, 27 Nov 2021, 04:59 richmail, @.***> wrote:

where/how did you install it? what happends if you try to fun it with sudo?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/qbittorrent/qBittorrent/issues/15784#issuecomment-980303810, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB7QRHXDUSSEW5VMMV4KU6LUN7KKZANCNFSM5IYVPHGQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

richmailYT commented 2 years ago

@temelj I take it that its working now?