Feramance / qBitrr

A simple Python script to talk to qBittorrent and Arr's
MIT License
82 stars 2 forks source link

PermissionError - file can not be accessed #75

Closed LegioN7 closed 3 months ago

LegioN7 commented 4 months ago

Hello! I loaded up Qbitrr release today and now I am receiving an error with logging. This is a fresh boot of windows.

STARTING QBITRR
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Misc     : Log Level: DEBUG
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Misc     : Ping URLs:  ['one.one.one.one', 'dns.google.com']
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Misc     : Script Config:  FailedCategory=failed
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Misc     : Script Config:  RecheckCategory=recheck
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Misc     : Script Config:  CompletedDownloadFolder=D:/Torrents/Downloads
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Misc     : Script Config:  FreeSpace=1T
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Misc     : Script Config:  LoopSleepTimer=120
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Misc     : Script Config:  LoopSleepTimer=120
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Misc     : Script Config:  NoInternetSleepTimer=15
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Misc     : Script Config:  IgnoreTorrentsYoungerThan=360
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr          : Log Level: DEBUG
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr          : Ping URLs:  ['one.one.one.one', 'dns.google.com']
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr          : Script Config:  FailedCategory=failed
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr          : Script Config:  RecheckCategory=recheck
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr          : Script Config:  CompletedDownloadFolder=D:/Torrents/Downloads
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr          : Script Config:  FreeSpace=1T
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr          : Script Config:  LoopSleepTimer=120
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr          : Script Config:  LoopSleepTimer=120
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr          : Script Config:  NoInternetSleepTimer=15
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr          : Script Config:  IgnoreTorrentsYoungerThan=360
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] INFO    : qBitrr          : Starting qBitrr: Version: 4.6.1-c1bdee8.
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Manager  : Log Level: DEBUG
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Manager  : Ping URLs:  ['one.one.one.one', 'dns.google.com']
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Manager  : Script Config:  FailedCategory=failed
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Manager  : Script Config:  RecheckCategory=recheck
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Manager  : Script Config:  CompletedDownloadFolder=D:/Torrents/Downloads
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Manager  : Script Config:  FreeSpace=1T
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Manager  : Script Config:  LoopSleepTimer=120
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Manager  : Script Config:  LoopSleepTimer=120
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Manager  : Script Config:  NoInternetSleepTimer=15
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Manager  : Script Config:  IgnoreTorrentsYoungerThan=360
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Manager  : qBitTorrent Config: Host: http://localhost Port: 8081, Username: admin, Password: None
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] INFO    : qBitrr.Manager  : Current qBitTorrent version is supported: 4.6.4
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.FFprobe  : Log Level: DEBUG
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.FFprobe  : Ping URLs:  ['one.one.one.one', 'dns.google.com']
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.FFprobe  : Script Config:  FailedCategory=failed
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.FFprobe  : Script Config:  RecheckCategory=recheck
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.FFprobe  : Script Config:  CompletedDownloadFolder=D:/Torrents/Downloads
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.FFprobe  : Script Config:  FreeSpace=1T
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.FFprobe  : Script Config:  LoopSleepTimer=120
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.FFprobe  : Script Config:  LoopSleepTimer=120
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.FFprobe  : Script Config:  NoInternetSleepTimer=15
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.FFprobe  : Script Config:  IgnoreTorrentsYoungerThan=360
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.FFprobe  : Current FFprobe is up to date.
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.ArrManager: Log Level: DEBUG
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.ArrManager: Ping URLs:  ['one.one.one.one', 'dns.google.com']
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.ArrManager: Script Config:  FailedCategory=failed
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.ArrManager: Script Config:  RecheckCategory=recheck
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.ArrManager: Script Config:  CompletedDownloadFolder=D:/Torrents/Downloads
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.ArrManager: Script Config:  FreeSpace=1T
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.ArrManager: Script Config:  LoopSleepTimer=120
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.ArrManager: Script Config:  LoopSleepTimer=120
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.ArrManager: Script Config:  NoInternetSleepTimer=15
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.ArrManager: Script Config:  IgnoreTorrentsYoungerThan=360
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Sonarr-TV: Log Level: DEBUG
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Sonarr-TV: Ping URLs:  ['one.one.one.one', 'dns.google.com']
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Sonarr-TV: Script Config:  FailedCategory=failed
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Sonarr-TV: Script Config:  RecheckCategory=recheck
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Sonarr-TV: Script Config:  CompletedDownloadFolder=D:/Torrents/Downloads
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Sonarr-TV: Script Config:  FreeSpace=1T
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Sonarr-TV: Script Config:  LoopSleepTimer=120
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Sonarr-TV: Script Config:  LoopSleepTimer=120
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Sonarr-TV: Script Config:  NoInternetSleepTimer=15
[2024-05-16 21:21:43] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Sonarr-TV: Script Config:  IgnoreTorrentsYoungerThan=360
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Sonarr-TV: Sonarr-TV version: 4.0.4.1491
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Sonarr-TV: Sonarr-TV Config: Managed: Auto, Re-search: True, ImportMode: True, Category: tv-sonarr, URI: http://localhost:8989, API Key: e7e32039889a4561b2a691d9f7d6abcf, RefreshDownloadsTimer=6, RssSyncTimer=6
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Sonarr-TV: Script Config:  CaseSensitiveMatches=False
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Sonarr-TV: Script Config:  FolderExclusionRegex=['\\bextras?\\b', '\\bfeaturettes?\\b', '\\bsamples?\\b', '\\bscreens?\\b', '\\bnc(ed|op)?(\\\\d+)?\\b']
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] 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-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Sonarr-TV: Script Config:  FileExtensionAllowlist=re.compile('\\.mp4|\\.mkv|\\.sub|\\.ass|\\.srt|\\.!qB|\\.parts', re.DOTALL)
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Sonarr-TV: Script Config:  AutoDelete=False
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Sonarr-TV: Script Config:  IgnoreTorrentsYoungerThan=360
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Sonarr-TV: Script Config:  MaximumETA=-1
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Sonarr-TV: Script Config:  SearchMissing=True
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Sonarr-TV: Script Config:  AlsoSearchSpecials=False
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Sonarr-TV: Script Config:  SearchByYear=True
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Sonarr-TV: Script Config:  SearchInReverse=False
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Sonarr-TV: Script Config:  CommandLimit=2
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Sonarr-TV: Script Config:  MaximumDeletablePercentage=0.99
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Sonarr-TV: Script Config:  DoUpgradeSearch=False
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Sonarr-TV: Script Config:  CustomFormatUnmetSearch=False
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Sonarr-TV: Script Config:  PrioritizeTodaysReleases=True
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Sonarr-TV: Script Config:  SearchBySeries=True
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Sonarr-TV: Script Config:  SearchOmbiRequests=False
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Sonarr-TV: Script Config:  SearchOverseerrRequests=False
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] HNOTICE : qBitrr.Sonarr-TV: Starting Sonarr-TV monitor
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Radarr-4K: Log Level: DEBUG
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Radarr-4K: Ping URLs:  ['one.one.one.one', 'dns.google.com']
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Radarr-4K: Script Config:  FailedCategory=failed
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Radarr-4K: Script Config:  RecheckCategory=recheck
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Radarr-4K: Script Config:  CompletedDownloadFolder=D:/Torrents/Downloads
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Radarr-4K: Script Config:  FreeSpace=1T
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Radarr-4K: Script Config:  LoopSleepTimer=120
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Radarr-4K: Script Config:  LoopSleepTimer=120
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Radarr-4K: Script Config:  NoInternetSleepTimer=15
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Radarr-4K: Script Config:  IgnoreTorrentsYoungerThan=360
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Radarr-4K: Radarr-4K version: 5.6.0.8846
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Radarr-4K: Radarr-4K Config: Managed: Auto, Re-search: True, ImportMode: True, Category: radarr, URI: http://localhost:7878, API Key: 56f1fcbe5e6c4c6f82ff27613a5e6b59, RefreshDownloadsTimer=6, RssSyncTimer=6
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Radarr-4K: Script Config:  CaseSensitiveMatches=False
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Radarr-4K: Script Config:  FolderExclusionRegex=['\\bextras?\\b', '\\bfeaturettes?\\b', '\\bsamples?\\b', '\\bscreens?\\b', '\\bnc(ed|op)?(\\\\d+)?\\b']
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] 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-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Radarr-4K: Script Config:  FileExtensionAllowlist=re.compile('\\.mp4|\\.mkv|\\.sub|\\.ass|\\.srt|\\.!qB|\\.parts', re.DOTALL)
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Radarr-4K: Script Config:  AutoDelete=False
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Radarr-4K: Script Config:  IgnoreTorrentsYoungerThan=1800
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Radarr-4K: Script Config:  MaximumETA=-1
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Radarr-4K: Script Config:  SearchMissing=True
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Radarr-4K: Script Config:  AlsoSearchSpecials=False
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Radarr-4K: Script Config:  SearchByYear=True
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Radarr-4K: Script Config:  SearchInReverse=False
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Radarr-4K: Script Config:  CommandLimit=10
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Radarr-4K: Script Config:  MaximumDeletablePercentage=0.99
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Radarr-4K: Script Config:  DoUpgradeSearch=False
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Radarr-4K: Script Config:  CustomFormatUnmetSearch=False
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Radarr-4K: Script Config:  PrioritizeTodaysReleases=True
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Radarr-4K: Script Config:  SearchBySeries=False
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Radarr-4K: Script Config:  SearchOmbiRequests=False
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Radarr-4K: Script Config:  SearchOverseerrRequests=False
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] HNOTICE : qBitrr.Radarr-4K: Starting Radarr-4K monitor
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.FreeSpaceManager: Log Level: DEBUG
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.FreeSpaceManager: Ping URLs:  ['one.one.one.one', 'dns.google.com']
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.FreeSpaceManager: Script Config:  FailedCategory=failed
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.FreeSpaceManager: Script Config:  RecheckCategory=recheck
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.FreeSpaceManager: Script Config:  CompletedDownloadFolder=D:/Torrents/Downloads
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.FreeSpaceManager: Script Config:  FreeSpace=1T
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.FreeSpaceManager: Script Config:  LoopSleepTimer=120
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.FreeSpaceManager: Script Config:  LoopSleepTimer=120
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.FreeSpaceManager: Script Config:  NoInternetSleepTimer=15
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.FreeSpaceManager: Script Config:  IgnoreTorrentsYoungerThan=360
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] HNOTICE : qBitrr.FreeSpaceManager: Starting FreeSpaceManager monitor
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Recheck  : Log Level: DEBUG
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Recheck  : Ping URLs:  ['one.one.one.one', 'dns.google.com']
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Recheck  : Script Config:  FailedCategory=failed
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Recheck  : Script Config:  RecheckCategory=recheck
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Recheck  : Script Config:  CompletedDownloadFolder=D:/Torrents/Downloads
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Recheck  : Script Config:  FreeSpace=1T
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Recheck  : Script Config:  LoopSleepTimer=120
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Recheck  : Script Config:  LoopSleepTimer=120
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Recheck  : Script Config:  NoInternetSleepTimer=15
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Recheck  : Script Config:  IgnoreTorrentsYoungerThan=360
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] HNOTICE : qBitrr.Recheck  : Starting Recheck monitor
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Failed   : Log Level: DEBUG
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Failed   : Ping URLs:  ['one.one.one.one', 'dns.google.com']
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Failed   : Script Config:  FailedCategory=failed
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Failed   : Script Config:  RecheckCategory=recheck
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Failed   : Script Config:  CompletedDownloadFolder=D:/Torrents/Downloads
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Failed   : Script Config:  FreeSpace=1T
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Failed   : Script Config:  LoopSleepTimer=120
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Failed   : Script Config:  LoopSleepTimer=120
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Failed   : Script Config:  NoInternetSleepTimer=15
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Failed   : Script Config:  IgnoreTorrentsYoungerThan=360
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] HNOTICE : qBitrr.Failed   : Starting Failed monitor
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Manager  : Log Level: DEBUG
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Manager  : Ping URLs:  ['one.one.one.one', 'dns.google.com']
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Manager  : Script Config:  FailedCategory=failed
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Manager  : Script Config:  RecheckCategory=recheck
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Manager  : Script Config:  CompletedDownloadFolder=D:/Torrents/Downloads
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Manager  : Script Config:  FreeSpace=1T
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Manager  : Script Config:  LoopSleepTimer=120
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Manager  : Script Config:  LoopSleepTimer=120
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Manager  : Script Config:  NoInternetSleepTimer=15
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Manager  : Script Config:  IgnoreTorrentsYoungerThan=360
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr          : Log Level: DEBUG
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr          : Ping URLs:  ['one.one.one.one', 'dns.google.com']
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr          : Script Config:  FailedCategory=failed
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr          : Script Config:  RecheckCategory=recheck
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr          : Script Config:  CompletedDownloadFolder=D:/Torrents/Downloads
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr          : Script Config:  FreeSpace=1T
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr          : Script Config:  LoopSleepTimer=120
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr          : Script Config:  LoopSleepTimer=120
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr          : Script Config:  NoInternetSleepTimer=15
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr          : Script Config:  IgnoreTorrentsYoungerThan=360
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr          : Environment variables: AppConfig(overrides=AppConfig.Overrides(search_only=None, processing_only=None, data_path=None), settings=AppConfig.Settings(console_level=None, logging=None, completed_download_folder=None, free_space=None, no_internet_sleep_timer=None, loop_sleep_timer=None, search_loop_delay=None, failed_category=None, recheck_category=None, ignore_torrents_younger_than=None, ping_urls=None, ffprobe_auto_update=None), qbit=AppConfig.qBit(disabled=None, host=None, port=None, username=None, password=None))
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Manager  : Log Level: DEBUG
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Manager  : Ping URLs:  ['one.one.one.one', 'dns.google.com']
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Manager  : Script Config:  FailedCategory=failed
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Manager  : Script Config:  RecheckCategory=recheck
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Manager  : Script Config:  CompletedDownloadFolder=D:/Torrents/Downloads
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Manager  : Script Config:  FreeSpace=1T
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Manager  : Script Config:  LoopSleepTimer=120
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Manager  : Script Config:  LoopSleepTimer=120
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Manager  : Script Config:  NoInternetSleepTimer=15
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Manager  : Script Config:  IgnoreTorrentsYoungerThan=360
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Manager  : Managing 5 categories
[2024-05-16 21:21:44] [pid:    7484][tid:   17596] DEBUG   : qBitrr.Manager  : Starting 7 child processes
STARTING QBITRR
[2024-05-16 21:21:44] [pid:   15120][tid:    8432] DEBUG   : qBitrr.Misc     : Log Level: DEBUG
[2024-05-16 21:21:44] [pid:   15120][tid:    8432] DEBUG   : qBitrr.Misc     : Ping URLs:  ['one.one.one.one', 'dns.google.com']
[2024-05-16 21:21:44] [pid:   15120][tid:    8432] DEBUG   : qBitrr.Misc     : Script Config:  FailedCategory=failed
[2024-05-16 21:21:44] [pid:   15120][tid:    8432] DEBUG   : qBitrr.Misc     : Script Config:  RecheckCategory=recheck
[2024-05-16 21:21:44] [pid:   15120][tid:    8432] DEBUG   : qBitrr.Misc     : Script Config:  CompletedDownloadFolder=D:/Torrents/Downloads
[2024-05-16 21:21:44] [pid:   15120][tid:    8432] DEBUG   : qBitrr.Misc     : Script Config:  FreeSpace=1T
[2024-05-16 21:21:44] [pid:   15120][tid:    8432] DEBUG   : qBitrr.Misc     : Script Config:  LoopSleepTimer=120
[2024-05-16 21:21:44] [pid:   15120][tid:    8432] DEBUG   : qBitrr.Misc     : Script Config:  LoopSleepTimer=120
[2024-05-16 21:21:44] [pid:   15120][tid:    8432] DEBUG   : qBitrr.Misc     : Script Config:  NoInternetSleepTimer=15
[2024-05-16 21:21:44] [pid:   15120][tid:    8432] DEBUG   : qBitrr.Misc     : Script Config:  IgnoreTorrentsYoungerThan=360
Traceback (most recent call last):
  File "qBitrr\main.py", line 44, in <module>
  File "pathlib.py", line 1234, in rename
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\XCD\\Documents\\qBitrr\\.config\\logs\\qBitrr.log' -> 'C:\\Users\\XCD\Documents\\qBitrr\\.config\\logs\\qBitrr.log.old'
[15120] Failed to execute script 'main' due to unhandled exception!
LegioN7 commented 4 months ago

Just to assist in some troubleshooting/root cause I was able to revert back to v4.5.8 and qBitrr works fine.

Feramance commented 4 months ago

Hi, reason 4.5.8 is working is because that log didn't exist yet. And as you can see from the log above, you seem to have two simultaneous processes running at once. Can you test the following? Ensure all python processes you may have running are stopped temporarily, then open a terminal window in the folder where your executable is placed and run ./qbitrr

LegioN7 commented 4 months ago

Hey Feramance, This is a fresh windows installation with only one instance of qBitrr running. I've shut down the previous .exe, and tried to run the last working version (4.6.1).

(The newer versions posted today actually don't read config files and creates a 2nd config file constantly. I can post a new issue for that.)

All Python services are shut off, and restarted via a cmd. The error pops up anyways. The actual qBitrr won't always open up if old logs are stored, and actually will crash. I can see if I can upload some examples. If I clear the old logs (delete them) and boot it gets to this part of your new logging and crashes.

If this helps my testing is done in Windows 10 (Fresh Installation).

Reverting back to the previous v4.5.8 works just fine and continues to function.

Feramance commented 4 months ago
(The newer versions posted today actually don't read config files and creates a 2nd config file constantly. I can post a new issue for that.)

Just fixed this in 4.6.12. Kindly download and test again. Thank you

Feramance commented 4 months ago

Any news?

LegioN7 commented 4 months ago

Hey Feramance, The issue still persists.

Starting the old version does not provide this error. I'm not running into the config issue anymore.

Feramance commented 4 months ago

The only other thing I could imagine is possibly deleting the entire folder housing qBitrr, then creating a new folder, setting the security to allow all for all users, then placing the exe, running it to generate the config file, pasting your existing config inside the newly created config file and running. If all else fails this seems more than likely a windows permission issue than a qBitrr issue. I've been testing it on windows for the past 2 weeks extensively and didn't see any issues.

And I know others who are also running on windows with no issues on the latest version

LegioN7 commented 4 months ago

Let me see what I can do from a testing perspective.

LegioN7 commented 4 months ago

I've done the following on a fresh windows install.

I opened a brand new folder called qBitrr2 Created an entirely new configuration and copied my old settings

I've checked to make sure no other instances are running etc.

What window permissions would be used by a script? I run it as administrator (just to test)

Feramance commented 4 months ago

And even as admin it returns the permission error? I've tried to reproduce this on my Windows machine but I cannot, try as I might, replicate this issue.

One thing I could suggest is installing power toys and using the locksmith tool as admin to check if any other process is using the file when running qBitrr

LegioN7 commented 4 months ago

Let me see what I can do this week and get back to you. It's odd it's strictly just with the log file.

Feramance commented 4 months ago

At most, disable the log files in the config

Feramance commented 4 months ago

For the time being I have fixed this issue by disabling that specific log. Feel free to update to the latest version.

LegioN7 commented 4 months ago

Hey! Sorry I thought I replied. I disabled the log files and continued using it for the time being.

Feramance commented 4 months ago

You can actually safely update to the latest version

Feramance commented 4 months ago

It's safe to update, confirmed

Feramance commented 3 months ago

Issue will be closed if there is no reply

LegioN7 commented 3 months ago

Lets just close it and i'll re-enable logging in the next version/release.