-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Error: ‘partfile_write Access Denied’ when selecting partial content within a Torrent (v4.6.5) #20849
Comments
There are errors seem related and lead up to the access denied error, see below.
|
Update; If I then go back into the content tab, then ensure I check/select ALL files within the torrent, then click resume. The missing files proceed to download and the torrent finally completes as normal. |
Not sure if this issue shown below is linked, but I noticed a progress bar suddenly spread across all columns, seems to be another bug on the progress bar, lasted 10 seconds or so before it then converted to "Completed". This is happening also if you keep resuming a torrent with partial content selected for download after it has stopped due to the aforementioned error. Notice the last file, despite the Priority set to "Do not download" at the get-go, the Progress bar suddenly bugged out. (The file was actually downloaded too!!) |
For me it looks like your torrent has cross-file piece that matches both "unselected" and "selected" files but qBittorrent (namely
Given the above, I would not dismiss "Access is denied" as the real reason for the error. Are you sure that the current permissions allow you (qBittorrent) to create files in the root of the disk |
This happens with any torrent containing multiple files. You change one or more of the content (files) to priority "do not download" and the error occurs.
It does have full permissions to create files. Keep in mind, if the application did not have permissions to read and write to the target directory or its cache directory, it would not be able to start the torrent. It would not download parts of the torrent. This is about the setting of some of the files within a torrent to the priority "do not download" and those files causing the error. When the Torrent is in the error state, the only way to continue is to set the files you prioritised to "do not download" to any other priority i.e. normal, high or maximum. Then the torrent will continue to download to completion. |
Here is an example torrent to try, this has multiple files within it. It seems to be a copy of the audio from shows on you tube. https://www.youtube.com/@howardstern/videos
Then change all the files to normal priority and click resume. Torrent now downloads. |
No problem with it. Keep in mind that if the application does not work correctly in some case, it does not necessarily mean that the problem is with this application. At least there are some specific conditions in your environment that cause this problem. And it would be nice for you to try to figure it out better before you say something like "This app is seriously broken" out loud. |
Would you mind to run the following command in PowerShell and provide its output? Get-ACL -Path F:\ | Format-Table -Wrap |
You are right! The file storage permissions had been customised in an unconventional manner which masked the issue, since the user can still create and delete files and folders. After resetting the directory permissions to their standard configuration, we’re now seeing the expected behaviour. |
qBittorrent & operating system versions
qBittorrent: 4.6.4 x64
qBittorrent: 4.6.5 x64
Operating system: Windows 11 pro Version 10.0.22631.3593
What is the problem?
The following error is raised wherever you specify a subset of the content within a torrent that you wish to download using the content tab within the UI.
I deselected the folder and file path within the content tab corresponding to "SomeSubFolder" in the example below.
File error alert. Torrent: "SomeTorrent". File: "F:\SomeTorrent\SomeSubFolder\SomeFile1.!qB". Reason: "SomeFile1 partfile_write (F:\SomeTorrent\SomeSubFolder\SomeFile1.!qB) error: Access is denied"
It seems the engine is in conflict with the user content selection criteria, since "SomeSubFolder" does not exist on disk, which is expected, but the file engine is still attempting to download and save to the folder regardless, hence the error.
Not only that, but "Access is denied" is in fact the wrong error anyway, as one would expect "folder does not exist".
This seems to affect files irrespective of a file being within a sub folder or not. As long as you deselected them from download within said content tab, the torrent will fail with the aforementioned error after an amount of time - presumably it starts to download the files with a positive priority first, then eventually turns attention to the "no not download" files and tries to do so anyway resulting in the exception raised.
This also happens if you deselect files within the content tab after starting the torrent, or at commencement during the save torrent dialogue form. Example shown below.
Steps to reproduce
Additional context
Despite having undertaken a 'force recheck' operation, that does not clear the condition and the error persists.
Log(s) & preferences file(s)
The text was updated successfully, but these errors were encountered: