Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qBitrr expects individual folders for each category in qbittorrent #142

Open
milindpatel63 opened this issue Dec 5, 2024 · 4 comments
Open
Assignees

Comments

@milindpatel63
Copy link

I have various categories in qbittorrent, namely "radarr, sonarr, radarruhd, sonarruhd". But all of these categories have same downloads folder "/media/veracrypt23/Downloads".
But qbitrr expects that there should be individual folders for each category inside my downloads folder. And if it's not there, qbitrr fails to start.
Here's what i get in qbitrr logs

STARTING QBITRR
[2024-12-03 23:46:46] [pid:       1][tid:140329412856704] INFO    : qBitrr             : Starting qBitrr: Version: 4.9.20-5a5de43.
[2024-12-03 23:46:46] [pid:       1][tid:140329412856704] INFO    : qBitrr.Manager     : Current qBitTorrent version is supported: 5.0.2
[2024-12-03 23:46:46] [pid:       1][tid:140329412856704] HNOTICE : qBitrr.Sonarr-TV   : Starting Sonarr-TV monitor
[2024-12-03 23:46:47] [pid:       1][tid:140329412856704] HNOTICE : qBitrr.Sonarr-Anime: Starting Sonarr-Anime monitor
[2024-12-03 23:46:47] [pid:       1][tid:140329412856704] HNOTICE : qBitrr.Radarr-1080 : Starting Radarr-1080 monitor
[2024-12-03 23:46:47] [pid:       1][tid:140329412856704] HNOTICE : qBitrr.Radarr-4K   : Starting Radarr-4K monitor
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/local/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/usr/local/lib/python3.10/site-packages/qBitrr/main.py", line 260, in <module>
    run()
  File "/usr/local/lib/python3.10/site-packages/qBitrr/main.py", line 219, in run
    manager = qBitManager()
  File "/usr/local/lib/python3.10/site-packages/qBitrr/main.py", line 127, in __init__
    self.arr_manager = ArrManager(self).build_arr_instances()
  File "/usr/local/lib/python3.10/site-packages/qBitrr/arss.py", line 5400, in build_arr_instances
    managed_object = FreeSpaceManager(self.arr_categories, self)
  File "/usr/local/lib/python3.10/site-packages/qBitrr/arss.py", line 5186, in __init__
    self.current_free_space = shutil.disk_usage(self.completed_folder).free - parse_size(
  File "/usr/local/lib/python3.10/shutil.py", line 1331, in disk_usage
    st = os.statvfs(path)
FileNotFoundError: [Errno 2] No such file or directory: '/media/veracrypt23/Downloads/sonarr'
STARTING QBITRR
[2024-12-03 23:47:50] [pid:       1][tid:140093717580672] INFO    : qBitrr             : Starting qBitrr: Version: 4.9.20-5a5de43.
[2024-12-03 23:47:50] [pid:       1][tid:140093717580672] INFO    : qBitrr.Manager     : Current qBitTorrent version is supported: 5.0.2
[2024-12-03 23:47:51] [pid:       1][tid:140093717580672] HNOTICE : qBitrr.Sonarr-TV   : Starting Sonarr-TV monitor
[2024-12-03 23:47:51] [pid:       1][tid:140093717580672] HNOTICE : qBitrr.Sonarr-Anime: Starting Sonarr-Anime monitor
[2024-12-03 23:47:51] [pid:       1][tid:140093717580672] HNOTICE : qBitrr.Radarr-1080 : Starting Radarr-1080 monitor
[2024-12-03 23:47:52] [pid:       1][tid:140093717580672] HNOTICE : qBitrr.Radarr-4K   : Starting Radarr-4K monitor
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/local/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/usr/local/lib/python3.10/site-packages/qBitrr/main.py", line 260, in <module>
    run()
  File "/usr/local/lib/python3.10/site-packages/qBitrr/main.py", line 219, in run
    manager = qBitManager()
  File "/usr/local/lib/python3.10/site-packages/qBitrr/main.py", line 127, in __init__
    self.arr_manager = ArrManager(self).build_arr_instances()
  File "/usr/local/lib/python3.10/site-packages/qBitrr/arss.py", line 5400, in build_arr_instances
    managed_object = FreeSpaceManager(self.arr_categories, self)
  File "/usr/local/lib/python3.10/site-packages/qBitrr/arss.py", line 5186, in __init__
    self.current_free_space = shutil.disk_usage(self.completed_folder).free - parse_size(
  File "/usr/local/lib/python3.10/shutil.py", line 1331, in disk_usage
    st = os.statvfs(path)
FileNotFoundError: [Errno 2] No such file or directory: '/media/veracrypt23/Downloads/sonarruhd'

This happened in some recent version. Previously everything was working fine. But now, after 1-2 days, i see that qbitrr is stuck in restart loop due to this.

I have tried creating individual folder for my categories "radarr, sonarr, radarruhd, sonarruhd" in my downloads folder "/media/veracrypt23/Downloads", but they get deleted automatically wither by radarr/sonarr or qbittorrent (i'm not sure how or why), after which qbitrr gets stuck in restart loop.
This is my categories.json in my qbittorrent config folder

{
    "radarr": {
        "save_path": "/media/veracrypt23/Downloads"
    },
    "radarruhd": {
        "save_path": "/media/veracrypt23/Downloads"
    },
    "sonarr": {
        "save_path": "/media/veracrypt23/Downloads"
    },
    "sonarruhd": {
        "save_path": "/media/veracrypt23/Downloads"
    }
}

here's my qbitrr config

# This is a config file for the qBitrr Script - Make sure to change all entries of "CHANGE_ME".
# This is a config file should be moved to "C:\Users\<user>\qBitrr\qBitManager\config.toml".


[Settings]
# Level of logging; One of CRITICAL, ERROR, WARNING, NOTICE, INFO, DEBUG, TRACE
ConsoleLevel = "INFO"

# Enable logging to files
Logging = true

# Folder where your completed downloads are put into. Can be found in qBitTorrent -> Options -> Downloads -> Default Save Path
CompletedDownloadFolder = "/media/veracrypt23/Downloads"

#The desired amount of free space in the downloads directory [K=kilobytes, M=megabytes, G=gigabytes, T=terabytes] (set to -1 to disable, this bypasses AutoPauseResume)
FreeSpace = "5G"

# Enable automation of pausing and resuming torrents as needed (Required enabled for the FreeSpace logic to function)
AutoPauseResume = true

# Time to sleep for if there is no internet (in seconds: 600 = 10 Minutes)
NoInternetSleepTimer = 600

# Time to sleep between reprocessing torrents (in seconds: 600 = 10 Minutes)
LoopSleepTimer = 900

# Time to sleep between posting search commands (in seconds: 600 = 10 Minutes)
SearchLoopDelay = 60

# Add torrents to this category to mark them as failed
FailedCategory = "failed"

# Add torrents to this category to trigger them to be rechecked properly
RecheckCategory = "recheck"

# Tagless operation
Tagless = false

# Ignore Torrents which are younger than this value (in seconds: 600 = 10 Minutes)
# Only applicable to Re-check and failed categories
IgnoreTorrentsYoungerThan = 900

# URL to be pinged to check if you have a valid internet connection
# These will be pinged a **LOT** make sure the service is okay with you sending all the continuous pings.
PingURLS = ["one.one.one.one", "dns.google.com"]

# FFprobe auto updates, binaries are downloaded from https://ffbinaries.com/downloads
# If this is disabled and you want ffprobe to work
# Ensure that you add the binary for your platform into ~/qBitrr/qBitManager i.e "C:\Users\<user>\qBitrr\qBitManager\ffprobe.exe"
# If no `ffprobe` binary is found in the folder above all ffprobe functionality will be disabled.
# By default this will always be on even if config does not have these key - to disable you need to explicitly set it to `False`
FFprobeAutoUpdate = true


[qBit]
# If this is enable qBitrr can run in a headless mode where it will only process searches.
# If media search is enabled in their individual categories
# This is useful if you use for example Sabnzbd/NZBGet for downloading content but still want the faster media searches provided by qbit
Disabled = false

# qBit WebUI Port - Can be found in Options > Web UI (called "IP Address")
Host = "127.0.0.1"

# qBit WebUI Port - Can be found in Options > Web UI (called "Port" on top right corner of the window)
Port = 8113

# qBit WebUI Authentication - Can be found in Options > Web UI > Authentication
UserName = "admin"

# If you set "Bypass authentication on localhost or whitelisted IPs" remove this field.
Password = "xxx"

# Set to true to allow abittorrent v5 (Some API calls will not work as expected due to qbittorrent API issues not qBitrr)
v5 = true

[Sonarr-TV]
# Toggle whether to manage the Servarr instance torrents.
Managed = true

# The URL used to access Servarr interface (if you use a domain enter the domain without a port)
URI = "http://127.0.0.1:8989"

# The Servarr API Key, Can be found it Settings > General > Security
APIKey = "xxx"

# Category applied by Servarr to torrents in qBitTorrent, can be found in Settings > Download Clients > qBit > Category
Category = "sonarr"

# Toggle whether to send a query to Servarr to search any failed torrents
ReSearch = true

# The Servarr's Import Mode(one of Move, Copy or Hardlink)
importMode = "Auto"

# Timer to call RSSSync (In minutes) - Set to 0 to disable (Values below 5 can cause errors for maximum retires)
RssSyncTimer = 15

# Timer to call RefreshDownloads to update the queue. (In minutes) - Set to 0 to disable (Values below 5 can cause errors for maximum retires)
RefreshDownloadsTimer = 5

# Error messages shown my the Arr instance which should be considered failures.
# This entry should be a list, leave it empty if you want to disable this error handling.
# If enabled qBitrr will remove the failed files and tell the Arr instance the download failed
ArrErrorCodesToBlocklist = ["Not an upgrade for existing episode file(s)", "Not a preferred word upgrade for existing episode file(s)", "Unable to determine if file is a sample"]


[Sonarr-TV.EntrySearch]
# All these settings depends on SearchMissing being True and access to the Servarr database file.

# Should search for Missing files?
SearchMissing = true

# Should search for specials episodes? (Season 00)
AlsoSearchSpecials = false

# Maximum allowed Searches at any one points (I wouldn't recommend settings this too high)
# Sonarr has a hardcoded cap of 3 simultaneous tasks
SearchLimit = 2

# Servarr Datapath file path
# This is required for any of the search functionality to work
# The only exception for this is the "ReSearch" setting as that is done via an API call.
DatabaseFile = "/sonarr/sonarr.db"

# It will order searches by the year the EPISODE was first aired
SearchByYear = true

# Reverse search order (Start searching oldest to newest)
SearchInReverse = false

# Delay between request searches in seconds
SearchRequestsEvery = 300

# Search movies which already have a file in the database in hopes of finding a better quality version.
DoUpgradeSearch = false

# Do a quality unmet search for existing entries.
QualityUnmetSearch = false

# Do a minimum custom format score unmet search for existing entries.
CustomFormatUnmetSearch = false

# Automatically remove torrents that do not mee the minimum custom format score.
ForceMinimumCustomFormat = false

# Once you have search all files on your specified year range restart the loop and search again.
SearchAgainOnSearchCompletion = true

# Use Temp profile for missing
UseTempForMissing = false

# Search by series instead of by episode
SearchBySeries = false

# Prioritize Today's releases (Similar effect as RSS Sync, where it searches today's release episodes first, only works on Sonarr).
PrioritizeTodaysReleases = true


[Sonarr-TV.EntrySearch.Overseerr]
# Search Overseerr for pending requests (Will only work if 'SearchMissing' is enabled.)
# If this and Ombi are both enable, Ombi will be ignored
SearchOverseerrRequests = false

# Overseerr's URI
OverseerrURI = "http://127.0.0.1:5055"

# Overseerr's API Key
OverseerrAPIKey = "xxx"

# Only process approved requests
ApprovedOnly = true

#Only for 4K Instances
Is4K = false


[Sonarr-TV.Torrent]
# Set it to regex matches to respect/ignore case.
CaseSensitiveMatches = false

# These regex values will match any folder where the full name matches the specified values here, comma separated strings.
# These regex need to be escaped, that's why you see so many backslashes.
FolderExclusionRegex = [
    "\\bfeaturettes?\\b",
    "\\bsamples?\\b",
    "\\bscreens?\\b",
    "\\bspecials?\\b",
    "\\bova\\b",
    "\\bnc(ed|op)?(\\\\d+)?\\b",
]

# These regex values will match any folder where the full name matches the specified values here, comma separated strings.
# These regex need to be escaped, that's why you see so many backslashes.
FileNameExclusionRegex = [
    "\\bncop\\\\d+?\\b",
    "\\bnced\\\\d+?\\b",
    "\\bsample\\b",
    "brarbg.com\\b",
    "\\btrailer\\b",
    "music video",
    "comandotorrents.com",
]

# Only files with these extensions will be allowed to be downloaded, comma separated strings or regex, leave it empty to allow all extensions
FileExtensionAllowlist = [
    ".mp4",
    ".mkv",
    ".sub",
    ".ass",
    ".srt",
    ".!qB",
    ".parts",
    ".avi",
]

# Auto delete files that can't be playable (i.e .exe, .png)
AutoDelete = true

# Ignore Torrents which are younger than this value (in seconds: 600 = 10 Minutes)
IgnoreTorrentsYoungerThan = 180

# Maximum allowed remaining ETA for torrent completion (in seconds: 3600 = 1 Hour)
# Note that if you set the MaximumETA on a tracker basis that value is favoured over this value
MaximumETA = 604800

# Do not delete torrents with higher completion percentage than this setting (0.5 = 50%, 1.0 = 100%)
MaximumDeletablePercentage = 0.99

# Ignore slow torrents.
DoNotRemoveSlow = true

# Maximum allowed time for allowed stalled torrents in minutes (-1 = Disabled, 0 = Infinite)
StalledDelay = 60

# Re-search stalled torrents when StalledDelay is enabled and you want to re-search before removing the stalled torrent
ReSearchStalled = true


[Sonarr-TV.Torrent.SeedingMode]
# Set the maximum allowed download rate for torrents
# Set this value to -1 to disabled it
# Note that if you set the DownloadRateLimit on a tracker basis that value is avoured over this value
DownloadRateLimitPerTorrent = -1

# Set the maximum allowed upload rate for torrents
# Set this value to -1 to disabled it
# Note that if you set the UploadRateLimit on a tracker basis that value is favoured over this value
UploadRateLimitPerTorrent = -1

# Set the maximum allowed upload ratio for torrents
# Set this value to -1 to disabled it
# Note that if you set the MaxUploadRatio on a tracker basis that value is favoured over this value
MaxUploadRatio = -1

# Set the maximum seeding time for torrents
# Set this value to -1 to disabled it
# Note that if you set the MaxSeedingTime on a tracker basis that value is favoured over this value
MaxSeedingTime = -1

# Remove torrent condition (-1=Do not remove, 1=Remove on MaxUploadRatio, 2=Remove on MaxSeedingTime, 3=Remove on MaxUploadRatio or MaxSeedingTime, 4=Remove on MaxUploadRatio and MaxSeedingTime)
RemoveTorrent = -1

# Enable if you want to remove dead trackers
RemoveDeadTrackers = false

# If "RemoveDeadTrackers" is set to true then remove trackers with the following messages
RemoveTrackerWithMessage = [
    "skipping tracker announce (unreachable)",
    "No such host is known",
    "unsupported URL protocol",
    "info hash is not authorized with this tracker",
]

# You can have multiple trackers set here or none just add more subsections.

[Sonarr-Anime]
# Toggle whether to manage the Servarr instance torrents.
Managed = true

# The URL used to access Servarr interface (if you use a domain enter the domain without a port)
URI = "http://127.0.0.1:8990"

# The Servarr API Key, Can be found it Settings > General > Security
APIKey = "xxx"

# Category applied by Servarr to torrents in qBitTorrent, can be found in Settings > Download Clients > qBit > Category
Category = "sonarruhd"

# Toggle whether to send a query to Servarr to search any failed torrents
ReSearch = true

# The Servarr's Import Mode(one of Move, Copy or Hardlink)
importMode = "Auto"

# Timer to call RSSSync (In minutes) - Set to 0 to disable (Values below 5 can cause errors for maximum retires)
RssSyncTimer = 15

# Timer to call RefreshDownloads to update the queue. (In minutes) - Set to 0 to disable (Values below 5 can cause errors for maximum retires)
RefreshDownloadsTimer = 5

# Error messages shown my the Arr instance which should be considered failures.
# This entry should be a list, leave it empty if you want to disable this error handling.
# If enabled qBitrr will remove the failed files and tell the Arr instance the download failed
ArrErrorCodesToBlocklist = ["Not an upgrade for existing episode file(s)", "Not a preferred word upgrade for existing episode file(s)", "Unable to determine if file is a sample"]


[Sonarr-Anime.EntrySearch]
# All these settings depends on SearchMissing being True and access to the Servarr database file.

# Should search for Missing files?
SearchMissing = true

# Should search for specials episodes? (Season 00)
AlsoSearchSpecials = false

# Maximum allowed Searches at any one points (I wouldn't recommend settings this too high)
# Sonarr has a hardcoded cap of 3 simultaneous tasks
SearchLimit = 2

# Servarr Datapath file path
# This is required for any of the search functionality to work
# The only exception for this is the "ReSearch" setting as that is done via an API call.
DatabaseFile = "/sonarr4k/sonarr.db"

# It will order searches by the year the EPISODE was first aired
SearchByYear = false

# Reverse search order (Start searching oldest to newest)
SearchInReverse = false

# Delay between request searches in seconds
SearchRequestsEvery = 300

# Search movies which already have a file in the database in hopes of finding a better quality version.
DoUpgradeSearch = false

# Do a quality unmet search for existing entries.
QualityUnmetSearch = false

# Do a minimum custom format score unmet search for existing entries.
CustomFormatUnmetSearch = false

# Automatically remove torrents that do not mee the minimum custom format score.
ForceMinimumCustomFormat = false

# Once you have search all files on your specified year range restart the loop and search again.
SearchAgainOnSearchCompletion = true

# Search by series instead of by episode
SearchBySeries = false

# Prioritize Today's releases (Similar effect as RSS Sync, where it searches today's release episodes first, only works on Sonarr).
PrioritizeTodaysReleases = true


[Sonarr-Anime.EntrySearch.Overseerr]
# Search Overseerr for pending requests (Will only work if 'SearchMissing' is enabled.)
# If this and Ombi are both enable, Ombi will be ignored
SearchOverseerrRequests = false

# Overseerr's URI
OverseerrURI = "http://127.0.0.1:5055"

# Overseerr's API Key
OverseerrAPIKey = "xxx"

# Only process approved requests
ApprovedOnly = true

#Only for 4K Instances
Is4K = true


[Sonarr-Anime.Torrent]
# Set it to regex matches to respect/ignore case.
CaseSensitiveMatches = false

# These regex values will match any folder where the full name matches the specified values here, comma separated strings.
# These regex need to be escaped, that's why you see so many backslashes.
FolderExclusionRegex = [
    "\\bfeaturettes?\\b",
    "\\bsamples?\\b",
    "\\bscreens?\\b",
    "\\bnc(ed|op)?(\\\\d+)?\\b",
]

# These regex values will match any folder where the full name matches the specified values here, comma separated strings.
# These regex need to be escaped, that's why you see so many backslashes.
FileNameExclusionRegex = [
    "\\bncop\\\\d+?\\b",
    "\\bnced\\\\d+?\\b",
    "\\bsample\\b",
    "brarbg.com\\b",
    "\\btrailer\\b",
    "music video",
    "comandotorrents.com",
]

# Only files with these extensions will be allowed to be downloaded, comma separated strings or regex, leave it empty to allow all extensions
FileExtensionAllowlist = [
    ".mp4",
    ".mkv",
    ".sub",
    ".ass",
    ".srt",
    ".!qB",
    ".parts",
    ".avi",
]

# Auto delete files that can't be playable (i.e .exe, .png)
AutoDelete = true

# Ignore Torrents which are younger than this value (in seconds: 600 = 10 Minutes)
IgnoreTorrentsYoungerThan = 180

# Maximum allowed remaining ETA for torrent completion (in seconds: 3600 = 1 Hour)
# Note that if you set the MaximumETA on a tracker basis that value is favoured over this value
MaximumETA = 604800

# Do not delete torrents with higher completion percentage than this setting (0.5 = 50%, 1.0 = 100%)
MaximumDeletablePercentage = 0.99

# Ignore slow torrents.
DoNotRemoveSlow = true

# Re-search stalled torrents
ReSearchStalled = true

# Maximum allowed time for allowed stalled torrents in minutes (-1 = Disabled, 0 = Infinite)
StalledDelay = 60

[Sonarr-Anime.Torrent.SeedingMode]
# Set the maximum allowed download rate for torrents
# Set this value to -1 to disabled it
# Note that if you set the DownloadRateLimit on a tracker basis that value is avoured over this value
DownloadRateLimitPerTorrent = -1

# Set the maximum allowed upload rate for torrents
# Set this value to -1 to disabled it
# Note that if you set the UploadRateLimit on a tracker basis that value is favoured over this value
UploadRateLimitPerTorrent = -1

# Set the maximum allowed upload ratio for torrents
# Set this value to -1 to disabled it
# Note that if you set the MaxUploadRatio on a tracker basis that value is favoured over this value
MaxUploadRatio = -1

# Set the maximum seeding time for torrents
# Set this value to -1 to disabled it
# Note that if you set the MaxSeedingTime on a tracker basis that value is favoured over this value
MaxSeedingTime = -1

# Remove torrent condition (-1=Do not remove, 1=Remove on MaxUploadRatio, 2=Remove on MaxSeedingTime, 3=Remove on MaxUploadRatio or MaxSeedingTime, 4=Remove on MaxUploadRatio and MaxSeedingTime)
RemoveTorrent = -1

# Enable if you want to remove dead trackers
RemoveDeadTrackers = false

# If "RemoveDeadTrackers" is set to true then remove trackers with the following messages
RemoveTrackerWithMessage = [
    "skipping tracker announce (unreachable)",
    "No such host is known",
    "unsupported URL protocol",
    "info hash is not authorized with this tracker",
]

# You can have multiple trackers set here or none just add more subsections.

[Radarr-1080]
# Toggle whether to manage the Servarr instance torrents.
Managed = true

# The URL used to access Servarr interface (if you use a domain enter the domain without a port)
URI = "http://127.0.0.1:7877"

# The Servarr API Key, Can be found it Settings > General > Security
APIKey = "xxx"

# Category applied by Servarr to torrents in qBitTorrent, can be found in Settings > Download Clients > qBit > Category
Category = "radarr"

# Toggle whether to send a query to Servarr to search any failed torrents
ReSearch = true

# The Servarr's Import Mode(one of Move, Copy or Hardlink)
importMode = "Auto"

# Timer to call RSSSync (In minutes) - Set to 0 to disable (Values below 5 can cause errors for maximum retires)
RssSyncTimer = 15

# Timer to call RefreshDownloads to update the queue. (In minutes) - Set to 0 to disable (Values below 5 can cause errors for maximum retires)
RefreshDownloadsTimer = 5

# Error messages shown my the Arr instance which should be considered failures.
# This entry should be a list, leave it empty if you want to disable this error handling.
# If enabled qBitrr will remove the failed files and tell the Arr instance the download failed
ArrErrorCodesToBlocklist = ["Not an upgrade for existing movie file(s)", "Not a preferred word upgrade for existing movie file(s)", "Unable to determine if file is a sample"]


[Radarr-1080.EntrySearch]
# All these settings depends on SearchMissing being True and access to the Servarr database file.

# Should search for Missing files?
SearchMissing = true

# Should search for specials episodes? (Season 00)
AlsoSearchSpecials = false

# Maximum allowed Searches at any one points (I wouldn't recommend settings this too high)
# Radarr has a default of 3 simultaneous tasks, which can be increased up to 10 tasks
# If you set the environment variable of "THREAD_LIMIT" to a number between and including 2-10
# Radarr devs have stated that this is an unsupported feature so you will not get any support for doing so from them.
# That being said I've been daily driving 10 simultaneous tasks for quite a while now with no issues.
SearchLimit = 2

# Servarr Datapath file path
# This is required for any of the search functionality to work
# The only exception for this is the "ReSearch" setting as that is done via an API call.
DatabaseFile = "/radarr/radarr.db"

# It will order searches by the year the EPISODE was first aired
SearchByYear = false

# Reverse search order (Start searching oldest to newest)
SearchInReverse = false

# Delay between request searches in seconds
SearchRequestsEvery = 300

# Search movies which already have a file in the database in hopes of finding a better quality version.
DoUpgradeSearch = false

# Do a quality unmet search for existing entries.
QualityUnmetSearch = false

# Do a minimum custom format score unmet search for existing entries.
CustomFormatUnmetSearch = false

# Automatically remove torrents that do not mee the minimum custom format score.
ForceMinimumCustomFormat = false

# Once you have search all files on your specified year range restart the loop and search again.
SearchAgainOnSearchCompletion = true


[Radarr-1080.EntrySearch.Overseerr]
# Search Overseerr for pending requests (Will only work if 'SearchMissing' is enabled.)
# If this and Ombi are both enable, Ombi will be ignored
SearchOverseerrRequests = false

# Overseerr's URI
OverseerrURI = "http://127.0.0.1:5055"

# Overseerr's API Key
OverseerrAPIKey = "xxx"

# Only process approved requests
ApprovedOnly = true

#Only for 4K Instances
Is4K = false


[Radarr-1080.Torrent]
# Set it to regex matches to respect/ignore case.
CaseSensitiveMatches = false

# These regex values will match any folder where the full name matches the specified values here, comma separated strings.
# These regex need to be escaped, that's why you see so many backslashes.
FolderExclusionRegex = [
    "\\bfeaturettes?\\b",
    "\\bsamples?\\b",
    "\\bscreens?\\b",
    "\\bspecials?\\b",
    "\\bova\\b",
    "\\bnc(ed|op)?(\\\\d+)?\\b",
]

# These regex values will match any folder where the full name matches the specified values here, comma separated strings.
# These regex need to be escaped, that's why you see so many backslashes.
FileNameExclusionRegex = [
    "\\bncop\\\\d+?\\b",
    "\\bnced\\\\d+?\\b",
    "\\bsample\\b",
    "brarbg.com\\b",
    "\\btrailer\\b",
    "music video",
    "comandotorrents.com",
]

# Only files with these extensions will be allowed to be downloaded, comma separated strings or regex, leave it empty to allow all extensions
FileExtensionAllowlist = [
    ".mp4",
    ".mkv",
    ".sub",
    ".ass",
    ".srt",
    ".!qB",
    ".parts",
    ".avi",
]

# Auto delete files that can't be playable (i.e .exe, .png)
AutoDelete = true

# Ignore Torrents which are younger than this value (in seconds: 600 = 10 Minutes)
IgnoreTorrentsYoungerThan = 180

# Maximum allowed remaining ETA for torrent completion (in seconds: 3600 = 1 Hour)
# Note that if you set the MaximumETA on a tracker basis that value is favoured over this value
MaximumETA = 604800

# Do not delete torrents with higher completion percentage than this setting (0.5 = 50%, 1.0 = 100%)
MaximumDeletablePercentage = 0.99

# Ignore slow torrents.
DoNotRemoveSlow = true

# Re-search stalled torrents
ReSearchStalled = true

# Maximum allowed time for allowed stalled torrents in minutes (-1 = Disabled, 0 = Infinite)
StalledDelay = 60

[Radarr-1080.Torrent.SeedingMode]
# Set the maximum allowed download rate for torrents
# Set this value to -1 to disabled it
# Note that if you set the DownloadRateLimit on a tracker basis that value is avoured over this value
DownloadRateLimitPerTorrent = -1

# Set the maximum allowed upload rate for torrents
# Set this value to -1 to disabled it
# Note that if you set the UploadRateLimit on a tracker basis that value is favoured over this value
UploadRateLimitPerTorrent = -1

# Set the maximum allowed upload ratio for torrents
# Set this value to -1 to disabled it
# Note that if you set the MaxUploadRatio on a tracker basis that value is favoured over this value
MaxUploadRatio = -1

# Set the maximum seeding time in seconds for torrents
# Set this value to -1 to disabled it
# Note that if you set the MaxSeedingTime on a tracker basis that value is favoured over this value
MaxSeedingTime = -1

#Remove torrent condition (-1=Do not remove, 1=Remove on MaxUploadRatio, 2=Remove on MaxSeedingTime, 3=Remove on MaxUploadRatio or MaxSeedingTime, 4=Remove on MaxUploadRatio and MaxSeedingTime)
RemoveTorrent = -1

# Enable if you want to remove dead trackers
RemoveDeadTrackers = false

# If "RemoveDeadTrackers" is set to true then remove trackers with the following messages
RemoveTrackerWithMessage = [
    "skipping tracker announce (unreachable)",
    "No such host is known",
    "unsupported URL protocol",
    "info hash is not authorized with this tracker",
]

# You can have multiple trackers set here or none just add more subsections.

[Radarr-4K]
# Toggle whether to manage the Servarr instance torrents.
Managed = true

# The URL used to access Servarr interface (if you use a domain enter the domain without a port)
URI = "http://127.0.0.1:7879"

# The Servarr API Key, Can be found it Settings > General > Security
APIKey = "xxx"

# Category applied by Servarr to torrents in qBitTorrent, can be found in Settings > Download Clients > qBit > Category
Category = "radarruhd"

# Toggle whether to send a query to Servarr to search any failed torrents
ReSearch = true

# The Servarr's Import Mode(one of Move, Copy or Hardlink)
importMode = "Auto"

# Timer to call RSSSync (In minutes) - Set to 0 to disable (Values below 5 can cause errors for maximum retires)
RssSyncTimer = 15

# Timer to call RefreshDownloads to update the queue. (In minutes) - Set to 0 to disable (Values below 5 can cause errors for maximum retires)
RefreshDownloadsTimer = 5

# Error messages shown my the Arr instance which should be considered failures.
# This entry should be a list, leave it empty if you want to disable this error handling.
# If enabled qBitrr will remove the failed files and tell the Arr instance the download failed
ArrErrorCodesToBlocklist = ["Not an upgrade for existing movie file(s)", "Not a preferred word upgrade for existing movie file(s)", "Unable to determine if file is a sample"]


[Radarr-4K.EntrySearch]
# All these settings depends on SearchMissing being True and access to the Servarr database file.

# Should search for Missing files?
SearchMissing = true

# Should search for specials episodes? (Season 00)
AlsoSearchSpecials = false

# Maximum allowed Searches at any one points (I wouldn't recommend settings this too high)
# Radarr has a default of 3 simultaneous tasks, which can be increased up to 10 tasks
# If you set the environment variable of "THREAD_LIMIT" to a number between and including 2-10
# Radarr devs have stated that this is an unsupported feature so you will not get any support for doing so from them.
# That being said I've been daily driving 10 simultaneous tasks for quite a while now with no issues.
SearchLimit = 2

# Servarr Datapath file path
# This is required for any of the search functionality to work
# The only exception for this is the "ReSearch" setting as that is done via an API call.
DatabaseFile = "/radarr4k/radarr.db"

# It will order searches by the year the EPISODE was first aired
SearchByYear = false

# Reverse search order (Start searching oldest to newest)
SearchInReverse = false

# Delay between request searches in seconds
SearchRequestsEvery = 300

# Search movies which already have a file in the database in hopes of finding a better quality version.
DoUpgradeSearch = false

# Do a quality unmet search for existing entries.
QualityUnmetSearch = false

# Do a minimum custom format score unmet search for existing entries.
CustomFormatUnmetSearch = false

# Automatically remove torrents that do not mee the minimum custom format score.
ForceMinimumCustomFormat = false

# Once you have search all files on your specified year range restart the loop and search again.
SearchAgainOnSearchCompletion = true


[Radarr-4K.EntrySearch.Overseerr]
# Search Overseerr for pending requests (Will only work if 'SearchMissing' is enabled.)
# If this and Ombi are both enable, Ombi will be ignored
SearchOverseerrRequests = false

# Overseerr's URI
OverseerrURI = "http://127.0.0.1:5055"

# Overseerr's API Key
OverseerrAPIKey = "xxx"

# Only process approved requests
ApprovedOnly = true

#Only for 4K Instances
Is4K = true


[Radarr-4K.Torrent]
# Set it to regex matches to respect/ignore case.
CaseSensitiveMatches = false

# These regex values will match any folder where the full name matches the specified values here, comma separated strings.
# These regex need to be escaped, that's why you see so many backslashes.
FolderExclusionRegex = [
    "\\bfeaturettes?\\b",
    "\\bsamples?\\b",
    "\\bscreens?\\b",
    "\\bspecials?\\b",
    "\\bova\\b",
    "\\bnc(ed|op)?(\\\\d+)?\\b",
]

# These regex values will match any folder where the full name matches the specified values here, comma separated strings.
# These regex need to be escaped, that's why you see so many backslashes.
FileNameExclusionRegex = [
    "\\bncop\\\\d+?\\b",
    "\\bnced\\\\d+?\\b",
    "\\bsample\\b",
    "brarbg.com\\b",
    "\\btrailer\\b",
    "music video",
    "comandotorrents.com",
]

# Only files with these extensions will be allowed to be downloaded, comma separated strings or regex, leave it empty to allow all extensions
FileExtensionAllowlist = [
    ".mp4",
    ".mkv",
    ".sub",
    ".ass",
    ".srt",
    ".!qB",
    ".parts",
    ".avi",
]

# Auto delete files that can't be playable (i.e .exe, .png)
AutoDelete = true

# Ignore Torrents which are younger than this value (in seconds: 600 = 10 Minutes)
IgnoreTorrentsYoungerThan = 180

# Maximum allowed remaining ETA for torrent completion (in seconds: 3600 = 1 Hour)
# Note that if you set the MaximumETA on a tracker basis that value is favoured over this value
MaximumETA = 604800

# Do not delete torrents with higher completion percentage than this setting (0.5 = 50%, 1.0 = 100%)
MaximumDeletablePercentage = 0.99

# Ignore slow torrents.
DoNotRemoveSlow = true

# Re-search stalled torrents
ReSearchStalled = true

# Maximum allowed time for allowed stalled torrents in minutes (-1 = Disabled, 0 = Infinite)
StalledDelay = 60

[Radarr-4K.Torrent.SeedingMode]
# Set the maximum allowed download rate for torrents
# Set this value to -1 to disabled it
# Note that if you set the DownloadRateLimit on a tracker basis that value is avoured over this value
DownloadRateLimitPerTorrent = -1

# Set the maximum allowed upload rate for torrents
# Set this value to -1 to disabled it
# Note that if you set the UploadRateLimit on a tracker basis that value is favoured over this value
UploadRateLimitPerTorrent = -1

# Set the maximum allowed upload ratio for torrents
# Set this value to -1 to disabled it
# Note that if you set the MaxUploadRatio on a tracker basis that value is favoured over this value
MaxUploadRatio = -1

# Set the maximum seeding time for torrents
# Set this value to -1 to disabled it
# Note that if you set the MaxSeedingTime on a tracker basis that value is favoured over this value
MaxSeedingTime = -1

# Remove torrent condition (-1=Do not remove, 1=Remove on MaxUploadRatio, 2=Remove on MaxSeedingTime, 3=Remove on MaxUploadRatio or MaxSeedingTime, 4=Remove on MaxUploadRatio and MaxSeedingTime)
RemoveTorrent = -1

# Enable if you want to remove dead trackers
RemoveDeadTrackers = false

# If "RemoveDeadTrackers" is set to true then remove trackers with the following messages
RemoveTrackerWithMessage = [
    "skipping tracker announce (unreachable)",
    "No such host is known",
    "unsupported URL protocol",
    "info hash is not authorized with this tracker",
]

# You can have multiple trackers set here or none just add more subsections.

I havent mentioned those category specific folders anywhere in the config, so i dont know why qbitrr is looking for them.

@Feramance
Copy link
Owner

Hi, can you kindly enable trace logs, let it run for a minute or two and forward the logs that are generated? Thanks

@Feramance Feramance self-assigned this Dec 6, 2024
@milindpatel63
Copy link
Author

Logs

STARTING QBITRR
[2024-12-07 14:44:06] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Misc        : Log Level: TRACE
[2024-12-07 14:44:06] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Misc        : Ping URLs:  ['one.one.one.one', 'dns.google.com']
[2024-12-07 14:44:06] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Misc        : Script Config:  Logging=True
[2024-12-07 14:44:06] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Misc        : Script Config:  FailedCategory=failed
[2024-12-07 14:44:06] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Misc        : Script Config:  RecheckCategory=recheck
[2024-12-07 14:44:06] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Misc        : Script Config:  Tagless=False
[2024-12-07 14:44:06] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Misc        : Script Config:  CompletedDownloadFolder=/media/veracrypt23/Downloads
[2024-12-07 14:44:06] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Misc        : Script Config:  FreeSpace=5G
[2024-12-07 14:44:06] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Misc        : Script Config:  LoopSleepTimer=900
[2024-12-07 14:44:06] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Misc        : Script Config:  SearchLoopDelay=60
[2024-12-07 14:44:06] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Misc        : Script Config:  AutoPauseResume=True
[2024-12-07 14:44:06] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Misc        : Script Config:  NoInternetSleepTimer=600
[2024-12-07 14:44:06] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Misc        : Script Config:  IgnoreTorrentsYoungerThan=900
[2024-12-07 14:44:06] [pid:       1][tid:140186805398400] INFO    : qBitrr             : Starting qBitrr: Version: 4.10.4-45cf33d.
[2024-12-07 14:44:06] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Manager     : qBitTorrent Config: Host: 127.0.0.1 Port: 8113, Username: admin, Password: sudo_nautilus
[2024-12-07 14:44:06] [pid:       1][tid:140186805398400] INFO    : qBitrr.Manager     : Current qBitTorrent version is supported: 5.0.2
[2024-12-07 14:44:06] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.FFprobe     : Current FFprobe is up to date.
[2024-12-07 14:44:06] [pid:       1][tid:140186805398400] TRACE   : qBitrr.Sonarr-TV   : Category exists with save path [/media/veracrypt23/Downloads]
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-TV   : Sonarr-TV version: 4.0.11.2680
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-TV   : Sonarr-TV Config: Managed: Auto, Re-search: True, ImportMode: True, Category: sonarr, URI: http://127.0.0.1:8989, API Key: xxx, RefreshDownloadsTimer=5, RssSyncTimer=15
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-TV   : Script Config:  CaseSensitiveMatches=False
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-TV   : Script Config:  FolderExclusionRegex=['\\bfeaturettes?\\b', '\\bsamples?\\b', '\\bscreens?\\b', '\\bspecials?\\b', '\\bova\\b', '\\bnc(ed|op)?(\\\\d+)?\\b']
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-TV   : Script Config:  FileNameExclusionRegex=['\\bncop\\\\d+?\\b', '\\bnced\\\\d+?\\b', '\\bsample\\b', 'brarbg.com\\b', '\\btrailer\\b', 'music video', 'comandotorrents.com']
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-TV   : Script Config:  FileExtensionAllowlist=['\\.mp4', '\\.mkv', '\\.sub', '\\.ass', '\\.srt', '\\.!qB', '\\.parts', '\\.avi']
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-TV   : Script Config:  AutoDelete=True
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-TV   : Script Config:  IgnoreTorrentsYoungerThan=180
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-TV   : Script Config:  MaximumETA=604800
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-TV   : Script Config:  MaximumDeletablePercentage=0.99
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-TV   : Script Config:  StalledDelay=60
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-TV   : Script Config:  AllowedStalled=True
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-TV   : Script Config:  ReSearchStalled=True
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-TV   : Script Config:  StalledDelay=60
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-TV   : Script Config:  SearchMissing=True
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-TV   : Script Config:  AlsoSearchSpecials=False
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-TV   : Script Config:  SearchUnmoniored=False
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-TV   : Script Config:  SearchByYear=True
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-TV   : Script Config:  SearchInReverse=False
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-TV   : Script Config:  CommandLimit=2
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-TV   : Script Config:  MaximumDeletablePercentage=0.99
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-TV   : Script Config:  DoUpgradeSearch=False
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-TV   : Script Config:  CustomFormatUnmetSearch=False
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-TV   : Script Config:  PrioritizeTodaysReleases=True
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-TV   : Script Config:  SearchBySeries=False
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-TV   : Script Config:  SearchOmbiRequests=False
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-TV   : Script Config:  SearchOverseerrRequests=False
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] HNOTICE : qBitrr.Sonarr-TV   : Starting Sonarr-TV monitor
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] TRACE   : qBitrr.Sonarr-Anime: Category exists with save path [/media/veracrypt23/Downloads]
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-Anime: Sonarr-Anime version: 4.0.11.2680
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-Anime: Sonarr-Anime Config: Managed: Auto, Re-search: True, ImportMode: True, Category: sonarruhd, URI: http://127.0.0.1:8990, API Key: xxx, RefreshDownloadsTimer=5, RssSyncTimer=15
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-Anime: Script Config:  CaseSensitiveMatches=False
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-Anime: Script Config:  FolderExclusionRegex=['\\bfeaturettes?\\b', '\\bsamples?\\b', '\\bscreens?\\b', '\\bnc(ed|op)?(\\\\d+)?\\b']
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-Anime: Script Config:  FileNameExclusionRegex=['\\bncop\\\\d+?\\b', '\\bnced\\\\d+?\\b', '\\bsample\\b', 'brarbg.com\\b', '\\btrailer\\b', 'music video', 'comandotorrents.com']
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-Anime: Script Config:  FileExtensionAllowlist=['\\.mp4', '\\.mkv', '\\.sub', '\\.ass', '\\.srt', '\\.!qB', '\\.parts', '\\.avi']
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-Anime: Script Config:  AutoDelete=True
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-Anime: Script Config:  IgnoreTorrentsYoungerThan=180
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-Anime: Script Config:  MaximumETA=604800
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-Anime: Script Config:  MaximumDeletablePercentage=0.99
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-Anime: Script Config:  StalledDelay=60
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-Anime: Script Config:  AllowedStalled=True
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-Anime: Script Config:  ReSearchStalled=True
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-Anime: Script Config:  StalledDelay=60
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-Anime: Script Config:  SearchMissing=True
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-Anime: Script Config:  AlsoSearchSpecials=False
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-Anime: Script Config:  SearchUnmoniored=False
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-Anime: Script Config:  SearchByYear=False
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-Anime: Script Config:  SearchInReverse=False
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-Anime: Script Config:  CommandLimit=2
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-Anime: Script Config:  MaximumDeletablePercentage=0.99
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-Anime: Script Config:  DoUpgradeSearch=False
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-Anime: Script Config:  CustomFormatUnmetSearch=False
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-Anime: Script Config:  PrioritizeTodaysReleases=True
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-Anime: Script Config:  SearchBySeries=False
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-Anime: Script Config:  SearchOmbiRequests=False
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Sonarr-Anime: Script Config:  SearchOverseerrRequests=False
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] HNOTICE : qBitrr.Sonarr-Anime: Starting Sonarr-Anime monitor
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] TRACE   : qBitrr.Radarr-1080 : Category exists with save path [/media/veracrypt23/Downloads]
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-1080 : Radarr-1080 version: 5.15.1.9463
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-1080 : Radarr-1080 Config: Managed: Auto, Re-search: True, ImportMode: True, Category: radarr, URI: http://127.0.0.1:7877, API Key: xxx, RefreshDownloadsTimer=5, RssSyncTimer=15
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-1080 : Script Config:  CaseSensitiveMatches=False
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-1080 : Script Config:  FolderExclusionRegex=['\\bfeaturettes?\\b', '\\bsamples?\\b', '\\bscreens?\\b', '\\bspecials?\\b', '\\bova\\b', '\\bnc(ed|op)?(\\\\d+)?\\b']
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-1080 : Script Config:  FileNameExclusionRegex=['\\bncop\\\\d+?\\b', '\\bnced\\\\d+?\\b', '\\bsample\\b', 'brarbg.com\\b', '\\btrailer\\b', 'music video', 'comandotorrents.com']
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-1080 : Script Config:  FileExtensionAllowlist=['\\.mp4', '\\.mkv', '\\.sub', '\\.ass', '\\.srt', '\\.!qB', '\\.parts', '\\.avi']
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-1080 : Script Config:  AutoDelete=True
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-1080 : Script Config:  IgnoreTorrentsYoungerThan=180
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-1080 : Script Config:  MaximumETA=604800
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-1080 : Script Config:  MaximumDeletablePercentage=0.99
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-1080 : Script Config:  StalledDelay=60
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-1080 : Script Config:  AllowedStalled=True
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-1080 : Script Config:  ReSearchStalled=True
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-1080 : Script Config:  StalledDelay=60
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-1080 : Script Config:  SearchMissing=True
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-1080 : Script Config:  AlsoSearchSpecials=False
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-1080 : Script Config:  SearchUnmoniored=False
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-1080 : Script Config:  SearchByYear=False
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-1080 : Script Config:  SearchInReverse=False
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-1080 : Script Config:  CommandLimit=2
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-1080 : Script Config:  MaximumDeletablePercentage=0.99
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-1080 : Script Config:  DoUpgradeSearch=False
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-1080 : Script Config:  CustomFormatUnmetSearch=False
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-1080 : Script Config:  PrioritizeTodaysReleases=True
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-1080 : Script Config:  SearchBySeries=False
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-1080 : Script Config:  SearchOmbiRequests=False
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-1080 : Script Config:  SearchOverseerrRequests=False
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] HNOTICE : qBitrr.Radarr-1080 : Starting Radarr-1080 monitor
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] TRACE   : qBitrr.Radarr-4K   : Category exists with save path [/media/veracrypt23/Downloads]
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-4K   : Radarr-4K version: 5.15.1.9463
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-4K   : Radarr-4K Config: Managed: Auto, Re-search: True, ImportMode: True, Category: radarruhd, URI: http://127.0.0.1:7879, API Key: xxx, RefreshDownloadsTimer=5, RssSyncTimer=15
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-4K   : Script Config:  CaseSensitiveMatches=False
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-4K   : Script Config:  FolderExclusionRegex=['\\bfeaturettes?\\b', '\\bsamples?\\b', '\\bscreens?\\b', '\\bspecials?\\b', '\\bova\\b', '\\bnc(ed|op)?(\\\\d+)?\\b']
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-4K   : Script Config:  FileNameExclusionRegex=['\\bncop\\\\d+?\\b', '\\bnced\\\\d+?\\b', '\\bsample\\b', 'brarbg.com\\b', '\\btrailer\\b', 'music video', 'comandotorrents.com']
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-4K   : Script Config:  FileExtensionAllowlist=['\\.mp4', '\\.mkv', '\\.sub', '\\.ass', '\\.srt', '\\.!qB', '\\.parts', '\\.avi']
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-4K   : Script Config:  AutoDelete=True
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-4K   : Script Config:  IgnoreTorrentsYoungerThan=180
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-4K   : Script Config:  MaximumETA=604800
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-4K   : Script Config:  MaximumDeletablePercentage=0.99
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-4K   : Script Config:  StalledDelay=60
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-4K   : Script Config:  AllowedStalled=True
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-4K   : Script Config:  ReSearchStalled=True
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-4K   : Script Config:  StalledDelay=60
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-4K   : Script Config:  SearchMissing=True
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-4K   : Script Config:  AlsoSearchSpecials=False
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-4K   : Script Config:  SearchUnmoniored=False
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-4K   : Script Config:  SearchByYear=False
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-4K   : Script Config:  SearchInReverse=False
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-4K   : Script Config:  CommandLimit=2
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-4K   : Script Config:  MaximumDeletablePercentage=0.99
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-4K   : Script Config:  DoUpgradeSearch=False
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-4K   : Script Config:  CustomFormatUnmetSearch=False
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-4K   : Script Config:  PrioritizeTodaysReleases=True
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-4K   : Script Config:  SearchBySeries=False
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-4K   : Script Config:  SearchOmbiRequests=False
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] DEBUG   : qBitrr.Radarr-4K   : Script Config:  SearchOverseerrRequests=False
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] HNOTICE : qBitrr.Radarr-4K   : Starting Radarr-4K monitor
[2024-12-07 14:44:07] [pid:       1][tid:140186805398400] TRACE   : qBitrr.FreeSpaceManager: Categories: {'sonarruhd', 'radarruhd', 'radarr', 'sonarr'}
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/local/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/usr/local/lib/python3.10/site-packages/qBitrr/main.py", line 260, in <module>
    run()
  File "/usr/local/lib/python3.10/site-packages/qBitrr/main.py", line 219, in run
    manager = qBitManager()
  File "/usr/local/lib/python3.10/site-packages/qBitrr/main.py", line 127, in __init__
    self.arr_manager = ArrManager(self).build_arr_instances()
  File "/usr/local/lib/python3.10/site-packages/qBitrr/arss.py", line 5461, in build_arr_instances
    managed_object = FreeSpaceManager(self.arr_categories, self)
  File "/usr/local/lib/python3.10/site-packages/qBitrr/arss.py", line 5247, in __init__
    self.current_free_space = shutil.disk_usage(self.completed_folder).free - parse_size(
  File "/usr/local/lib/python3.10/shutil.py", line 1331, in disk_usage
    st = os.statvfs(path)
FileNotFoundError: [Errno 2] No such file or directory: '/media/veracrypt23/Downloads/sonarruhd'

@milindpatel63
Copy link
Author

milindpatel63 commented Dec 7, 2024

Interesting, so i had
FreeSpace = "5G"
in my config. This feature was introduced recently if i remember.
If i set that to
FreeSpace = "-1"
to disable it, then qbitrr runs normally and doesn't look for those category folders.

Edit:
I guess since Radarr/Sonarr already have free space check, so i don't need it in qbitrr too. So i wont face this issue. You can mark this issue as resolved if you like and focus on other stuff.

@Feramance
Copy link
Owner

I see, I'll check the code changes I made recently regarding the paths as the free space service might not have been updated accordingly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants