-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
[Bug]: Uncaught exception while emptying recycle bin #272
Comments
It seems to be that qbit_manage is unable to delete those files and/or doesn't have the correct permissions to read those files. I've added additional logging and fixed the uncaught exception error so it shouldn't crash anymore. Can you update to the develop branch and enable trace logging by adding the env variable |
Well the reason is not permissions, the files are simply not there anymore. Like i said in the first post, the files where deleted outside of qbitmanage. Are you keeping some kind of list of all the files in the bin? And delete them by going over that list? If so, would it be an idea to just remove the items from your list when the physical files are not present anymore, instead of give an error? |
Nope, qbit_manage gets the list of all the files in the bin at the time it's cleaning so it was seeing those files at the time of run. That's why I believe it's a permission issue since those files definitely do exist (or at least qbit_manage think they do exist) at the time of running. Those trace logs would definitely help confirm that theory though. |
well... to be honest, the trace logs doesn't say anything anymore about it, for two reasons:
What triggered the uncaught error is totally clear. I deleted some files that qbitmanage thought where there still. |
Qbit manage sees that the files are there. Either way, this uncaught exception is now handled so itll be fixed in the next release |
Describe the Bug
When files are deleted outside of qBitManage it throws an uncaught exception while emptying the recycle bin.
It just keeps on looping after that throwing the same error over and over again.
I don't think it is that necessary to keep wanting to find the files it needs to delete. and keep looping until those files are found.
When your objective is empty the bin and the files are gone, why keep looping and searching for files that you thought where there? it is empty...
`
|================== Searching: /data/downloads/torrents/private/movies/.RecycleBin ==================|
| Deleted kings.of.mulberry.street.let.love.reign.2023.1080p.web.h264-edith.nfo from /data/downloads/torrents/private/movies/.RecycleBin (Last modified 2 days ago). |
| Uncaught Exception |
Traceback (most recent call last):
File "/app/qbit_manage.py", line 563, in
File "/app/qbit_manage.py", line 322, in start_loop
File "/app/qbit_manage.py", line 436, in start
File "/app/modules/config.py", line 532, in cleanup_dirs
FileNotFoundError: [Errno 2] No such file or directory: '/data/downloads/torrents/private/movies/.RecycleBin/torrents/private/movies/Kings.of.Mulberry.Street.Let.Love.Reign.2023.1080p.WEB.h264-EDITH/kings.of.mulberry.street.let.love.reign.2023.1080p.web.h264-edith.nfo'
`
Config
No response
Logs
https://gist.github.com/appiekap653/16d420d4d7edf9fcd4757734dc7ec509
Screenshots
No response
Installation
Docker
Version Number
3.6.1
What branch are you on?
master
The text was updated successfully, but these errors were encountered: