Page 1 of 1

migration from qb-desktop to qb-nox

Posted: Mon Jan 20, 2025 6:46 pm
by bananaman
Hi, so I've read throught he installation guide of the docker-qbittorrent-nox and tried to run it in a docker stack using the qbittorrent-stack yaml but when I do that no torrents are being shown.
This is my yaml atm.

Code: Select all

qbittorrent-nox:
    environment:
      - QBT_LEGAL_NOTICE=confirm
      - QBT_WEBUI_PORT=8080
      - QBT_VERSION=latest
      - PUID=1000
      - PGID=1000
    image: qbittorrentofficial/qbittorrent-nox:latest
    ports:
      - 6881:6881/tcp
      - 6881:6881/udp
      - 8080:8080/tcp
    stop_grace_period: 30m
    tmpfs:
      - /tmp
    tty: true
    volumes:
      - /home/USER/.config/qBittorrent:/config
      - /media/USER/DISK/media/download:/downloads
do I need to add this path as well?

Code: Select all

/home/USER/.local/share/qBittorrent
if so, what would go after the : ?
Does anyone maybe know how to solve this issue?

my device is a RaspberryPi 5 running RaspiOS with qB v4.5.2
Thank you for the help

Re: migration from qb-desktop to qb-nox

Posted: Tue Jan 28, 2025 4:11 pm
by bananaman
No answer? :/ Idk if I made a mistake here with the wrong forum or something. Or is it just the inactivity of the docker sub?

Re: migration from qb-desktop to qb-nox

Posted: Thu Feb 13, 2025 3:50 pm
by bananaman
So somehow I was able to solve everything and now it's running wonderful, didn't lose anything :)
Gonna provide a small tutorial.
Info: Did this on a Raspberry Pi running RaspiOS (Debian 12). Also using and internal HDD.
What you should know: Basic Docker knowledge.
Links: qb-nox-docker, default-stack-compose

First of all backup your config files in case anything goes wrong. These can be found here:

Code: Select all

/home/USER/.local/share/qBittorrent`
and here:
[code]/home/USER/.config/qBittorrent`
Remember these paths, you'll need them later.

Now you're gonna deploy a new docker-stack. Open the yml file and paste this. If you're sceptical what this is you can read through this here [default-stack-compose](https://github.com/qbittorrent/docker-qbittorrent-nox/blob/main/docker-stack.yml). The yml below is simply adjusted :)

[code]
version: '3.8'
services:
  qbittorrent-nox:
    # for debugging
    #cap_add:
      #- SYS_PTRACE
    environment:
      #- PAGID=10000
      #- PGID=1000
      #- PUID=1000
      - QBT_LEGAL_NOTICE=
      # add_confirm_in_the_line_above
      - QBT_WEBUI_PORT=8080
      #- TZ=UTC
      #- UMASK=022
    image: qbittorrentofficial/qbittorrent-nox:latest
    ports:
      # for bittorrent traffic
      - 43313:43313/tcp
      - 43313:43313/udp
      # for WebUI
      - 8080:8080/tcp
    read_only: true
    stop_grace_period: 30m
    tmpfs:
      - /tmp
    tty: true
    volumes:
      - /home/USER/path/of/your/choice:/config
      - /media/USER/DISK/:/media/USER/DISK/


make sure to replace the Ports you wanna use in line 19 & 20. As well as the ones for the WebUI in line 22.
Now for the Volumes, in this example we're using an internal HDD but more on that later.
Now I'm going to explain the

Code: Select all

- /home/USER/path/of/your/choice:/config
line a bit more. This line will create following folders: cache, config, data. Inside these are some more folders so in the end it will look something like this:

Code: Select all

- cache
- config
	- rss/
	- categories.json
	...
- data
	- BT_backup
	- logs
	- rss
inside the config you're gonna add what you found under

Code: Select all

/home/USER/.config/qBittorrent
.
inside the data you're gonna add what you found under

Code: Select all

/home/USER/.local/share/qBittorrent
.

And then there is

Code: Select all

- /media/USER/DISK/:/media/USER/DISK/
this simply specifies the location where all the files can be saved. In this case it's a DISK which is mounted in

Code: Select all

/media/USER/
Now you should be able to Launch the stack.

Please double check if the folders and everything was created, it might need some more adjustments depending on what you're using.

If you think there is something that could be improved about this tutorial or the general setup please let me know.
Always here for questions :)