Hey Folks,
I have qBittorrent 3.3.11 running on my QNAP TS-453A (firmware 4.3.3.0095) and so far so good.
However, I have it connected to Sonarr and there's one piece of the puzzle I can't seem to figure out. For Sonarr to work effectively I need QBittorrent to place the downloaded files into folders for each category. E.G. I have categories in qBittorrent for "TV", "Movies", "Books", etc.. If the "TV" category is set, the downloaded file should end up in a folder called "TV" within my completed downloads folder.
I understand this was previously possible with an option called "Append the label of the torrent to the save path", but that has since been deprecated in favour of the new "Advanced Saving Management" feature. Either would do the trick for me but qBittorrent on QNAP only gives me access to the Web UI and neither of those settings are available in the options panel.
Does anyone know if it's possible to:
A. Access the full GUI from a QNAP device (where I assume I'd have Advanced Saving Management).
B. Somehow set either option directly in the config.
C. Use some other functionality to accomplish this (I do have the "Automatically add Torrents from-Watched Folder-Save Files to" section, but since the torrents are being direct added from Sonarr and not a watch folder I'm not sure this would help.
Thanks in advance for your help and guidance.
Advanced Saving Management on QNAP
Re: Advanced Saving Management on QNAP
I recommend using Virtualization Station and run qBittorrent in its own VM on the QNAP. That's what I do on my TS-453 Pro (VM is Linux Mint 18.1). The VM doesn't need a huge amount of memory (I've got mine set to 2GB as it was just hitting swap sometimes at 1GB - but I also do a bit more than just run qBittorrent on it). You should probably upgrade the RAM in your QNAP to 8GB (4GB should be enough, but upgrading to 8GB is pretty cheap and worthwhile - just don't buy the RAM from QNAP!).
I also recommend mounting a CIFS share from the QNAP into the VM for saving to - it makes permissions handling easier. You could also mount an NFS export but unless you configure things correctly you'll end up with files that are readable over a CIFS share but can't be moved, renamed, etc.
That might be the limit of what you want to do, but if you want to protect your traffic you can do lots of fancy tricks with networking as well. The way I've got mine configured is that I have an OpenVPN endpoint running in an LXC container (Container Station), and my qBittorrent VM uses the internal virtual 10Gb switch to send all traffic via the VPN container (default gateway + DNS) except for specific traffic (OS updates) that is whitelisted to go via my router. If the VPN goes down, all torrent-related traffic stops immediately (due to having no suitable route).
It takes quite a bit of work and experimentation to get this working correctly - I've been tweaking my config over the last 6 months and finally think I'm happy with it (it's a bit more complicated than what I described above) and is now very low maintenance. Maybe someday I'll write a HOWTO.
BTW how are you finding QTS 4.3.3? I'm still running on 4.2.1 ... I'm a little loathe to upgrade the firmware to a beta version on a device I rely on so heavily (wish I'd bought 2 at the time since they were half price ... keeping my eyes out for a good deal on a suitable one to use as a backup).
I also recommend mounting a CIFS share from the QNAP into the VM for saving to - it makes permissions handling easier. You could also mount an NFS export but unless you configure things correctly you'll end up with files that are readable over a CIFS share but can't be moved, renamed, etc.
That might be the limit of what you want to do, but if you want to protect your traffic you can do lots of fancy tricks with networking as well. The way I've got mine configured is that I have an OpenVPN endpoint running in an LXC container (Container Station), and my qBittorrent VM uses the internal virtual 10Gb switch to send all traffic via the VPN container (default gateway + DNS) except for specific traffic (OS updates) that is whitelisted to go via my router. If the VPN goes down, all torrent-related traffic stops immediately (due to having no suitable route).
It takes quite a bit of work and experimentation to get this working correctly - I've been tweaking my config over the last 6 months and finally think I'm happy with it (it's a bit more complicated than what I described above) and is now very low maintenance. Maybe someday I'll write a HOWTO.
BTW how are you finding QTS 4.3.3? I'm still running on 4.2.1 ... I'm a little loathe to upgrade the firmware to a beta version on a device I rely on so heavily (wish I'd bought 2 at the time since they were half price ... keeping my eyes out for a good deal on a suitable one to use as a backup).
Last edited by magao on Thu Mar 16, 2017 12:06 am, edited 1 time in total.
Re: Advanced Saving Management on QNAP
I think i actually got this worked out.
I first tried adding the old append function to the qBittorrent.conf file but it kept getting cleared. So I figured I'd need to get the new Advanced Saving Management working somehow.
I downloaded qBittorrent on my windows machine and set up my folders in Advanced Saving Management and then had a look at the ini. I found the following settings that refer to the functionality and which weren't in my qBittorrent.conf file on the QNap.
Session\DisableAutoTMMByDefault=false
Session\DisableAutoTMMTriggers\CategoryChanged=false
Session\DisableAutoTMMTriggers\CategorySavePathChanged=false
Session\DisableAutoTMMTriggers\DefaultSavePathChanged=false
Pasted these into the correct section of the qBittorrent.conf file and woke up this morning to all of my torrents neatly in the correct folder. Still testing to make sure i'm not imagining but it seems to work!
BTW, one of the biggest challenges for me was figuring out where the heck to find and edit the qBittorrent.conf file. My Linux skills are rusty and it can't be accessed through the QNAP file station. It also isn't in the usual location referenced in most forums and the qBittorrent wiki. I finally found it by using WinSCP (Filezilla also works) and connecting to the Qnap on the SSH port (default 22). Then navigate directly to /share/CACHEDEV1_DATA/.qpkg/QBittorrent/.config/qBittorrent (assuming CAHEDEV1_DATA is the drive you installed it to). It's a hidden file, so you may have to show hidden folders and files for it to appear.
@magao Thanks for your response, definitely would have moved onto that solution next if this had been a no go. As it goes, I'm pretty happy I can continue to run this headless as the goal of moving to the Qnap was definitely to simplify set-up and maintenance over my last system. Took the plunge on 4.3.3 right after I got the unit and so far everything's running smooth as butter. In fact it seems to run better than 4.2.1 for me (I had some issues with apps freezing before the upgrade).
I first tried adding the old append function to the qBittorrent.conf file but it kept getting cleared. So I figured I'd need to get the new Advanced Saving Management working somehow.
I downloaded qBittorrent on my windows machine and set up my folders in Advanced Saving Management and then had a look at the ini. I found the following settings that refer to the functionality and which weren't in my qBittorrent.conf file on the QNap.
Session\DisableAutoTMMByDefault=false
Session\DisableAutoTMMTriggers\CategoryChanged=false
Session\DisableAutoTMMTriggers\CategorySavePathChanged=false
Session\DisableAutoTMMTriggers\DefaultSavePathChanged=false
Pasted these into the correct section of the qBittorrent.conf file and woke up this morning to all of my torrents neatly in the correct folder. Still testing to make sure i'm not imagining but it seems to work!
BTW, one of the biggest challenges for me was figuring out where the heck to find and edit the qBittorrent.conf file. My Linux skills are rusty and it can't be accessed through the QNAP file station. It also isn't in the usual location referenced in most forums and the qBittorrent wiki. I finally found it by using WinSCP (Filezilla also works) and connecting to the Qnap on the SSH port (default 22). Then navigate directly to /share/CACHEDEV1_DATA/.qpkg/QBittorrent/.config/qBittorrent (assuming CAHEDEV1_DATA is the drive you installed it to). It's a hidden file, so you may have to show hidden folders and files for it to appear.
@magao Thanks for your response, definitely would have moved onto that solution next if this had been a no go. As it goes, I'm pretty happy I can continue to run this headless as the goal of moving to the Qnap was definitely to simplify set-up and maintenance over my last system. Took the plunge on 4.3.3 right after I got the unit and so far everything's running smooth as butter. In fact it seems to run better than 4.2.1 for me (I had some issues with apps freezing before the upgrade).