TrueNAS Scale: Setting up qBitTorrent (including finding the login password)

This isn’t a step-by-step guide on how to configure qBitTorrent, but rather some things I came across when I was installing it on my own TrueNAS Scale (Dragonfish) server to get qBittorrent 4.6.x up and running. I’m no expert on this app, but I know just enough to get it up and running, so hopefully this helps someone to get this app up and running initially.

Initial App Configuration

Network Configuration

  • Since I need to set up port forwarding, I went to Network Configuration and enabled Host Network. This maps the jail to my local network.
  • Web Port - This is the port number that is used to access the qBitTorrent web interface.
  • BT Port - This is the port number that is actually used for Torrents. You may want to write this down in case it’s needed at your router.

Download Directory

By default, qBitTorrent sends all of it’s downloads to the following directory as defined in Tools → Options → Downloads → Default Save Path:

  • App Version prior to 5: /downloads
  • App Version 5 and later: /config/Downloads

We need to map this to an outside storage such as a downloads directory. To do so, first go to the Storage ConfigurationqBittorrent Downloads Storage and set the following:

  • Type: Host Path (Path already exists on the system)
  • Host Path Configuration - Leave Enable ACL unchecked
  • Host Path - This is the actual directory in your pool, thus you want to set it to something like /mnt/pool/downloads directory.

Then create your app.

Electric Eel Note: The “qBittorrent Downloads Storage” is mapped as follows:

  • App Version 5.0.1 / Version: 1.0.33 and earlier: /downloads
  • App Version 5.0.1 / Version: 1.1.1 and later: /config/Downloads

Please note that the if you had established a mapping under Additional Storage as a workaround, you will need to remove it otherwise the upgrade from 1.0.33 to 1.1.1 will fail. The download directory is configured in qBittorrent in Tools → Options → Downloads → Default Save Path.

Finding That Initial Password

In the past, the initial username was admin while the password was adminadmin. While the initial username remains the same, the password is now randomly generated. Immediately after creating the jail, you want to access the logs as follows:

  1. Go to the qBitTorrent app.
  2. In the Workloads section, click on View Logs icon in the lower-right of that section.
  3. In the Choose Pod section, accept the defaults and click on Choose.
  4. Scan the logs for the line containing the word password and copy that password. Example log lines:
    2024-10-31 03:30:26.430460+00:00The WebUI administrator username is: admin
    2024-10-31 03:30:26.430460+00:00The WebUI administrator password was not set. A temporary password is provided for this session: EqkKSsbqB
  5. Go back to the App screen, then go to the section Application Info, then click on the Web Portal icon.
  6. Log into with the username of admin and the password from step 4.

To change the password in qBitTorrent:

  1. Log into the qBitTorrent app.
  2. go to ToolsOptions .
  3. Click on the Web UI tab.
  4. In the Authentication section, set a new username and password and write them down.
  5. Scroll down and click on Save.

To turn off authentication on your own network, you will need to know your IP address and subnet mask. All of my systems are on the 192.168.1.XXX network with a subnet mask of 255.255.255.0, thus the actual IP address I will be entering in is 192.168.1.0/24. Your own network configuration may vary. To set this bypass:

  1. Log into the qBitTorrent app.
  2. Go to ToolsOptions .
  3. Click on the Web UI tab.
  4. Go to the Authentication section.
  5. Check off Bypass authentication for clients in whitelisted IP subnets
  6. In the box immediately below, put in your network address. (e.g. 192.168.1.0/24)
  7. Scroll down and click on Save.

Setting up a monitored folder

One nice feature of several Torrent clients is the ability to set up a monitor folder so that you can drop in the torrent files and have qBitTorrent automatically begin the download. I have a separate directory to go this automatically (e.g. is /mnt/pool/watch) which is mapped to the app internal directory (e.g. is /watch). To accomplish this:

  1. Go to the qBitTorrent App on TrueNAS SCALE.
  2. In the Application Info section, click on Edit.
  3. Go to Storage ConfigurationAdditional Storage
  4. For Type, select Host Path (path that already exists on the system)
  5. Leave Read Only unchecked.
  6. For Mount Path, type in /watch. If you use a different name, note it down.
  7. For Host Path Configuration, leave Enable ACL unchecked.
  8. For Host Path, this is where you want to configure the directory in your pool to be watched. This directory should already be created, so just select it. (e.g. /mnt/pool/watch).
  9. Scroll down to the bottom and click on Update.
  10. Wait one minute for the App to restart.
  11. Log into the qBitTorrent web interface.
  12. Go to ToolsOptions.
  13. Go to the Downloads tab.
  14. Go to the Automatically add torrents from section.
  15. In the Monitored Folder section, add the internal directory you added from step 6 (e.g. /watch).
  16. In the Override Save Location section, leave it at Default save location.
  17. Scroll down to the bottom and click Save.

What will happen at this point is any torrent file you put into the watch directory (e.g. /mnt/pool/watch) will then be scanned by qBitTorrent, the download starts, and the torrent file will be deleted automatically.

Note: This guide was written at the time qBittorrent 4.6.x was the current deployed app on a Dragonfish server. There may be some changes with Electric Eel, but I haven’t gotten to that version yet.

2 Likes

Regarding the Download Directory

I’m using the new Docker (App V. 5.0.0 / Chart V.1.2.15). So looks like i did exactly as you; I selected the /mnt/pool/downloads folder; but once i go inside qBT WebUI config itself; its using /config/Downloads *(Which is INSIDE the /mnt/pool/IX_Applications folder instead). I even tested a download and it confirmed ended up in the IX_App folder.

I must be missing something here… or your version is different to mine…

Did you add a hostpath mount for /mnt/TANK/downloads in the app config? Or if it’s a docker app, a bind?

I suspect due to the timing of Truenas EE and qBT v.5 upgrade; something got lost in translation. i’ve tried editing the config file but somehow its not “saving” the edits. I’m missing something; BUT…

I think i’ll wait until AFTER TrueNAS EE 24.10 is stable + 2weeks and then i’ll start all over again and see what happens. i’m not mission critical; so i can afford to wait and see where the forums go with fresh installs *(Mine are TrueCharts installs. time to nuke the IX_applications folder and start from scratch for EE and Docker).

That still sounds like your docker-compose isn’t handling binds the way you think they are? To avoid adding download folders to all my arrs, I’ve done all the arrs/downloaders with the same host paths.

Screenshot 2024-10-25 205055

In qbt config I have my download folder set to /mnt/Array1/downloads/torrents/incomplete and the default save path to /mnt/Array1/downloads/torrents/complete

How are you setting your binds in your compose? I’d plan on using one for app data (aka download location) and one for app config (for /config or /config/qbittorrent). Also could be permission related.

Funny Joke; after seeing your screenshot i realised the missing field is the MOUNT PATH.

But … didnt work until AFTER 2 server reboots.

…I know… there’s gotta be some leftover issues at the OS level. Think it must be during the BlueFin/Cobia and GPU Hardware Acceleration upgrade issues I had *(Still have to actually. have to shut down down and remove the GPU before rebooting. Have to do it again whenever there’s a power failure boot. Can never boot/reboot with the GPU enabled. But that’s a problem for another thread). Anyways thanks for the screenshot! Picture says a thousand words what i’m missing… :rofl:

I added notes to the guide stating that this was done under qBitTorrent 4.6.x and Dragonfish, and there may be changes with Electric Eel.

Scale is an appliance OS, I wouldn’t expect issues carrying over. The no GPU thing might be more of a BIOS issue.

Then again, after updating to the newest dragonfish point release, Plex never starts properly. Either can’t find its app data directory (which is on the same app drive, so it shouldn’t be a race condition) or errors saying there’s no igpu to add. Have to stop the pod, go to 0 igpu, start it again, stop then go back to 1 gpu and it works.

@MarkHoltz I don’t think the community/official repo app configs will be much different in EE than they are now. Installing custom apps will be, you’ll be able to just paste/create your own docker-compose with that.

I managed to put the downloads and temp downloads into the host mountpoint. The trick is to select “Additonal Storage” instead of using the “Qbittorent Downloads Storage” options. You can then use the folder mapped in the mount point in the web UI config for downloads path.

1 Like

Defect TNCHARTS-1502 - Apps: After migration to Electric Eel, the qBittorrent app → qBittorrent Downloads Storage may be pointing to the wrong directory has been filed. A fix should be coming out shortly. A manual fix is to just go into Tools → Options → Downloads and change the directory.

Just as a heads up… App Version 5.0.1 / Version: 1.1.1 has just been issued, and it changed the download directory from /downloads to /config/Downloads. If you did a “Additional Storage Config” as a workaround, it will need to be removed otherwise the upgrade will error out. Note that you may need to fix the download directory at Tools → Options → Downloads → Default Save Path.

To use Host Path for Config Storage in Electric Eel App, I hade to change dataset permission to apps:apps.

In other apps it’s Ok with root:root. Not sure whats correct permission for Host Path?

Check this Run As Context widget when installing an app for host path permissions. qBittorrent says 568 (apps), others may say root or something else.

1 Like

if my mounted path is /mnt/A/Media
what i need to set in qbittorents settings download path? (by default is/config/Downloads)
Thanks.