-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Automatically deleting sandbox content always yields an error #4142
Comments
This is the previous feedback. |
Hey there, have you looked at the NTFS Security Permissions for the directory "D:\Software\Sandbox" ? |
It was not created manually by me, but by the sandbox program. I just gave a path "D:\Software" when creating a new sandbox, and then the sandbox program created the "sandbox" folder by itself. |
Thank you for checking and leaving a response (and the pics!) Sadly I currently don't have any further (different) ideas to suggest offhand. Have you tried running ProcMon (As Admin, OUTSIDE of the sandbox) during the exit\delete phase? Checking over that may help get you closer to figuring out what is actually happening on your system...eg if something still has a handle open (other 3rd party Security software [or perhaps the program has a service running OUTSIDE of the sandbox?] for instance but all that seems unlikely if running SandMan as admin to delete the box works...) or it still is outright "ACCESS DENIED". If it was me, I would run ProcMon, enabling "Capture Events" just prior to exit, and after the delete failed end the Capture. Then I'd set up a filter for "Result - Is - ACCESS DENIED - then - include" and look at the (related) programs Integrity Level and UserName (especially if it has to do with the sandboxes subfolder which it was trying to remove) then compare that Users Integrity\Name\etc with the NTFS Security permissions for the folder which it fails to delete (eg don't run it as admin, let it fail and log what happens and try to get a better sense of what is happening while it fails). The chances are that if Sandboxie is creating those sandbox folders again (after you actually get it to delete via an Admin SandMan prompt) it's going to have the same permissions you showed in the pics above but surely there is no harm in your double-checking? Don't worry I P.S. I think SandMan has an option to always run as admin at |
Thank you very much for your help. Just now, I restarted the computer (I shut down the computer last night), and then chose to delete the sandbox content, and it worked. Maybe, as you said, something unknown is still using the files in the sandbox? So the deletion failed. I'll keep an eye on that and try Process Monitor, thanks. |
Helpful update! Now that we know it's likely something that still has a handle open it might actually be easier to switch to using Process Explorer as it has a nifty search feature you could use to Check the Sandbox Path for in real time after the delete fails and the error pops up. ex, if it was the Chrome Sandbox which was failing to delete you launch ProcessExplorer as Admin and in its menu Then that list should hopefully narrow down possible culprits or at least give you a better idea of what's 'involved in the issue'. |
The normal path is: "D: \ Software \ SANDBOX \ yuyin" I can't understand the problem log. |
The ProcMon log file was pretty short and seemed to be trimmed down to just the target directory (not a bad thing, just can't be sure a hint wasn't lost) but it only seemed to show DirectoryOpus refreshing its information about the sandbox directory (likely in the background as it seems to happen every 2-3 seconds). It also shows the SandMan UI going through its attempt(s) to delete the folder (but unlike a working attempt everything remains found afterward). Sadly I attempted to install Directory Opus with default settings and still had no issues removing sandboxes on my end in a VM so unless there is an option somewhere that changes its behavior I'd lean toward saying that it seems fairly well behaved and isn't the root cause. However, given that we've changed suspected targets away from 'Access Denied' over to 'something likely has a Handle open' we should really have much better (easier) luck trying to narrow it down using something like ProcessExplorer (ProcExp) As Admin and using the "Find Handle or DLL (Ctrl+Shift+F)" option to narrow targets to related sandbox directory. Basically anything shown in that search list for D:\Software\SANDBOX\yuyin (that isn't related to Sandboxie) would likely be where you'll want to focus on 'tweaking settings' in order to prevent the auto-delete issues you are seeing. Most likely this would be done by adding a specific exclusion but we 'can't try anything' until we know 'what to try it on'. =( |
I had the same problem when deleting sandbox contents from the Sandboxie-Plus-x64 menu when I upgraded to Windows 11 24H2. On Windows 11 23H2 there were no problems whatsoever. |
I had the same problem this week after my Update from Win10 to Win11 24H2. It was the first time I used a sandbox after the win update. I saw the two popup messages from Step 6 of this issue ("error deleting sandbox") After hours of testing, I found this post here from @Vstory
So I tried to reboot - and sandbox deletion suddenly worked 🤦♂️ However, I'm sure there was no open file handle in my sandbox path before the reboot. I checked process explorer in admin mode for open handles in my sandbox path. There were none. Anyways, the deletion problem finally disappeared after a simple reboot. Maybe this helps others running into the same problem... |
Well, it should be quite easy to figure out what's wrong here. The Sandboxie/SandboxiePlus/QSbieAPI/Helpers/NtIO.cpp Lines 103 to 122 in 28e8818
|
Describe what you noticed and did
If you set automatic deletion for any sandbox, it will fail to automatically delete. You must enter the maintenance page and restart with administrator privileges to delete it normally.
How often did you encounter it so far?
No response
Expected behavior
The automatic deletion works fine without my intervention.
Affected program
1.14.6
Download link
Not available
Where is the program located?
Not relevant to my request.
Did the program or any related process close unexpectedly?
No, not at all.
Crash dump
No response
What version of Sandboxie are you running now?
Sandboxie-Plus v1.14.6
Is it a new installation of Sandboxie?
I just updated Sandboxie from a previous version (I remember which one it is).
Is it a regression from previous versions?
No response
In which sandbox type you have this problem?
All sandbox types (I tried them all).
Can you reproduce this problem on a new empty sandbox?
Not relevant to my request.
What is your Windows edition and version?
24H2
In which Windows account you have this problem?
A local account (Administrator).
Please mention any installed security software
Huorong
Did you previously enable some security policy settings outside Sandboxie?
No
Trace log
No response
Sandboxie.ini configuration
The text was updated successfully, but these errors were encountered: