<!-- Thanks for opening a PR! Your contribution is much appreciated. In order to make sure your PR is handled as smoothly as possible we request that you follow the checklist sections below. Choose the right checklist for the change that you're making: --> ## Description Please include a summary of the change and which issue is fixed. Fixes # (issue) ## Type of change Please delete options that are not relevant. - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] This change requires a documentation update ## Checklist: - [ ] My code follows the style guidelines of this project - [ ] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have added or updated the docstring for new or existing methods - [ ] I have modified this PR to merge to the develop branch --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
3.9 KiB
Unraid Installation
Docker Installation (Recommended)
The easiest way to run qbit_manage on Unraid is using the Docker container from Docker Hub.
Prerequisites
Install Community Applications plugin if you haven't already.
Installation Steps
-
Install the Container
- Go to the Apps tab in Unraid
- Search for "qbit_manage" in the search box
- Select the qbit_manage container and click Install
-
Configure Path Mapping
Important
qbit_manage must have the same path mappings as your qBittorrent container to properly access your torrents.
Example: If qBittorrent is mapped as
/mnt/user/data/:/data, then qbit_manage must also be mapped the same way.- Set the
Root_Dirvariable to match your qBittorrent download path - Ensure both containers can see torrents at the same paths
- Set the
-
Configure Environment Variables
- Set
QBT_WEB_SERVER=trueto enable the Web UI (recommended) - Configure other QBT environment options as needed
- Set
-
Apply and Download
- Click Apply to download and create the container
- The container may auto-start - stop it if needed
-
Create Configuration File
- Navigate to
/mnt/user/appdata/qbit_manage/on your Unraid server - Download the sample config file
- Rename it to
config.yml(remove the.sampleextension) - Edit the file according to the Config Setup guide
Tip
Make sure the
root_dirin your config matches how qBittorrent sees your torrents (e.g.,/data/torrents) - Navigate to
-
Start the Container
- Start the qbit_manage container from the Docker tab
- Check logs at
/mnt/user/appdata/qbit_manage/logs/
Web UI Access
If you enabled the web server, access the Web UI at:
http://[UNRAID-IP]:8080
Alternative: User Scripts Installation
Warning
This method is more complex and not recommended for most users. Use the Docker method above instead.
Click to expand User Scripts installation method
Requirements
- Nerd Pack plugin
- Python packages:
python-pip,python3,python-setuptools
Installation
- Install required Python packages via Nerd Pack
- Download qbit_manage source to your server (e.g.,
/mnt/user/data/scripts/qbit/) - Create a User Script to install requirements:
#!/bin/bash echo "Installing required packages" python3 -m pip install /mnt/user/data/scripts/qbit/ echo "Required packages installed" - Set the script to run "At First Array Start Only"
- Create another User Script to run qbit_manage:
#!/bin/bash echo "Running qBitTorrent Management" python3 /mnt/user/data/scripts/qbit/qbit_manage.py \ --config-file /mnt/user/data/scripts/qbit/config.yml \ --log-file /mnt/user/data/scripts/qbit/activity.log \ --run echo "qBitTorrent Management Completed" - Set a cron schedule (e.g.,
*/30 * * * *for every 30 minutes)
Tip
Use
--dry-runflag first to test your configuration before running live.
Troubleshooting
Common Issues
Path Mapping Problems:
- Ensure qbit_manage and qBittorrent have identical path mappings
- Check that the
root_dirin config.yml matches the container's view of torrents
Permission Issues:
- Verify the qbit_manage container has read/write access to your download directories
- Check Unraid user/group permissions
Container Won't Start:
- Review container logs in the Docker tab
- Verify config.yml syntax is correct
- Ensure all required path mappings exist