Unable to delete contents, object in use
Moderator: Barb@Invincea
-
- Posts: 16
- Joined: Sat Feb 13, 2016 9:43 am
Unable to delete contents, object in use
Sandboxie version 5.14
Windows 10
Running Firefox 49.0.1
AV/AM programs: MalwareBytes Anti-Malware Premium, Avira AV
After using Sandboxie with this setup for about 6 months, I now get an error when trying to delete the contents of a sandbox (also see attached):
"Could not move the sandbox folder out of the way The object (file or folder) may be in use by another program. Close any applications or windows that may prevent the access. System Error Code: Access is denied (5)"
I've done some Googling, and searched this forum. I first tried rebooting. Not effective.
I tried to "unlock" the Sandbox folder itself using MB's FileAssassin unlocker program. It was unable to find the folder (see attachment).
I tried to manually delete the contents of the sandbox, and I was able to clear out all the files in the quick recovery folders, and the AppData. All that is left is a few files called desktop.ini, RegHive, RegHive.LOG1, RegHive{long string of digits}.regtrans-ms (see attachment)
I'm not sure what options are left? Any ideas?
Thank you for your time.
Windows 10
Running Firefox 49.0.1
AV/AM programs: MalwareBytes Anti-Malware Premium, Avira AV
After using Sandboxie with this setup for about 6 months, I now get an error when trying to delete the contents of a sandbox (also see attached):
"Could not move the sandbox folder out of the way The object (file or folder) may be in use by another program. Close any applications or windows that may prevent the access. System Error Code: Access is denied (5)"
I've done some Googling, and searched this forum. I first tried rebooting. Not effective.
I tried to "unlock" the Sandbox folder itself using MB's FileAssassin unlocker program. It was unable to find the folder (see attachment).
I tried to manually delete the contents of the sandbox, and I was able to clear out all the files in the quick recovery folders, and the AppData. All that is left is a few files called desktop.ini, RegHive, RegHive.LOG1, RegHive{long string of digits}.regtrans-ms (see attachment)
I'm not sure what options are left? Any ideas?
Thank you for your time.
- Attachments
-
- Error from Malwarebytes' FileASSASSIN, where it could not find the DefaultBox folder to unlock nor delete
- Sandboxie Error3.PNG (4.94 KiB) Viewed 1543 times
-
- Sandboxie Screenshot of files left in DefaultBox. All others were manually deleted in Windows File Explorer
- Sandboxie Error2.PNG (39.03 KiB) Viewed 1543 times
-
- Original error from attempt to delete contents of DefaultBox
- Sandboxie Error.PNG (10.74 KiB) Viewed 1543 times
Re: Unable to delete contents, object in use
http://forums.sandboxie.com/phpBB3/view ... 84#p123790
You could try running Procexplorer
On the menu > Find > Find handle or dll then give it the path of the sandbox (eg C:\Sandbox or whatever your path is) you can't delete and see what has something opened there?
You could also try regedit and navigate to HKEY_USERS\ and see if any Sandbox_ entries related to the box that won't delete is open there and try to unload them (after the box is closed) by selecting the proper Sandbox_ entry and going to the menu > File > Unload Hive... .
A reboot [shutdown may not be enough on 10 with fast startup enabled as it's a form of hibernation instead of a clean boot] should ensure they are not mounted though so if they still can't be deleted after that then something else is likely at play (likely a 3rd party AV/security).
Goo.gl/p8qFCf
-
- Posts: 16
- Joined: Sat Feb 13, 2016 9:43 am
Re: Unable to delete contents, object in use
I ran Process Explorer, but there doesn't seem to be anything running.
I ran Registry Editor, and there are a whole bunch of subfolders under my DefaultBox sandbox. I do not know where to start. I've never messed with the Registry before, so I wouldn't recognize a problem if I saw it.
I ran Registry Editor, and there are a whole bunch of subfolders under my DefaultBox sandbox. I do not know where to start. I've never messed with the Registry before, so I wouldn't recognize a problem if I saw it.
Re: Unable to delete contents, object in use
hmm, it shouldn't be locked if there aren't any handles. The picture you showed has the reg entry added though so it's mounted and so the Sandbox seems to be active at the time you took the picture? Was it?
Let's try it this way. Close everything that is running in sandboxie. Rename the folder followed a reboot. After boot up attempt to delete the renamed folder.
Let's try it this way. Close everything that is running in sandboxie. Rename the folder followed a reboot. After boot up attempt to delete the renamed folder.
Goo.gl/p8qFCf
-
- Posts: 16
- Joined: Sat Feb 13, 2016 9:43 am
Re: Unable to delete contents, object in use
The sandbox was not active, as far as I can tell. I mostly browse with it, occasionally File Explorer opens sandboxed. Those applications were terminated. Everything that is actively running has been terminated. Again, as far as I can tell. I suspect there is a background process running or using Sandboxie that I just haven't seen, but I'm not an expert detective in these matters. I keep getting this notice everyday:
I can't rename the sandbox, because it is still in use somewhere.
I went into File Explorer and just attempted to delete all the contents. There is only one file left preventing a full delete:
Don't know what to do with it though. Can't tell what is using it.
I can't rename the sandbox, because it is still in use somewhere.
I went into File Explorer and just attempted to delete all the contents. There is only one file left preventing a full delete:
Don't know what to do with it though. Can't tell what is using it.
Re: Unable to delete contents, object in use
Thanks for checking at least, yes I can duplicate the folder rename failure while the reghive is opened. I was able to rename the Reghive itself though, odd.
At this point I'd suggest just right clicking on the Sandboxie Icon in the notification area, selecting 'Terminate all programs' then try clearing/deleting the box again. If that doesn't do it we may need to get a list of running processes or a procmon log to continue. Something has it opened and if it's not SBIE then we need to figure out what and close/stop it before you can delete the box properly.
Another option might be booting into safe mode and deleting the folder manually?
At this point I'd suggest just right clicking on the Sandboxie Icon in the notification area, selecting 'Terminate all programs' then try clearing/deleting the box again. If that doesn't do it we may need to get a list of running processes or a procmon log to continue. Something has it opened and if it's not SBIE then we need to figure out what and close/stop it before you can delete the box properly.
Another option might be booting into safe mode and deleting the folder manually?
Goo.gl/p8qFCf
-
- Posts: 16
- Joined: Sat Feb 13, 2016 9:43 am
Re: Unable to delete contents, object in use
The problem is on my home PC, and I can't access it at work, but I will try to Terminate Programs, and delete contents again when I can get to it.
I'll also try File Assassin on the RegHive file itself. Before, I was attempting to unlock the entire DefaultBox folder. I may have better luck trying to unlock/delete an actual file.
If that does not work, what is the most useful screenshot of running processes?
Booting into Safe Mode and manually deleting might work. I'd prefer that to be an option of last resort, and try to figure out what program is keeping this file locked or in use. I don't want to have a recurring problem, and this is honestly a good learning experience for me. I like learning how all these things work. I think of a computer like a car - the more you know about it, the better you can keep it running. I appreciate your patience and your suggestions.
I'll also try File Assassin on the RegHive file itself. Before, I was attempting to unlock the entire DefaultBox folder. I may have better luck trying to unlock/delete an actual file.
If that does not work, what is the most useful screenshot of running processes?
Booting into Safe Mode and manually deleting might work. I'd prefer that to be an option of last resort, and try to figure out what program is keeping this file locked or in use. I don't want to have a recurring problem, and this is honestly a good learning experience for me. I like learning how all these things work. I think of a computer like a car - the more you know about it, the better you can keep it running. I appreciate your patience and your suggestions.
Re: Unable to delete contents, object in use
While Sandboxie Control's tray icon does NOT show any red dots in it, run regedit again.
Click on "Sandbox_John_DefaultBox" in the regedit window, then while only that one item is selected, click File > Unload Hive > click Yes to "unload the current key and ..."
Then Delete Contents of the sandbox.
Click on "Sandbox_John_DefaultBox" in the regedit window, then while only that one item is selected, click File > Unload Hive > click Yes to "unload the current key and ..."
Then Delete Contents of the sandbox.
Paul
Win 10 Home 64-bit (w/admin rights) - Zone Alarm Pro Firewall, MalwareBytes Premium A/V, Cyberfox, Thunderbird
Sandboxie user since March 2007
Win 10 Home 64-bit (w/admin rights) - Zone Alarm Pro Firewall, MalwareBytes Premium A/V, Cyberfox, Thunderbird
Sandboxie user since March 2007
-
- Posts: 16
- Joined: Sat Feb 13, 2016 9:43 am
Re: Unable to delete contents, object in use
First thing I attempted was to use File Assassin to unlock or delete the RegHive file itself. No luck. Got this message box from Sandboxie, then the standard "cannot delete file while in use...."
Tried to "Unload Hive", but got this error:
Still can't seem to budge that file out.
What will allow me to view whatever process is accessing that file?
Next, I tried another round of terminating all programs, then delete contents. Still unable to delete that pesky RegHive file.Syrinx wrote:Thanks for checking at least, yes I can duplicate the folder rename failure while the reghive is opened. I was able to rename the Reghive itself though, odd.
At this point I'd suggest just right clicking on the Sandboxie Icon in the notification area, selecting 'Terminate all programs' then try clearing/deleting the box again. If that doesn't do it we may need to get a list of running processes or a procmon log to continue. Something has it opened and if it's not SBIE then we need to figure out what and close/stop it before you can delete the box properly.
Another option might be booting into safe mode and deleting the folder manually?
I opened Registry Editor, and clicked on the folder Sandbox_John_DefaultBox. I assume you meant the folder, and not the object in the folder called (Default) with type: REG_SZ.Guest10 wrote:While Sandboxie Control's tray icon does NOT show any red dots in it, run regedit again.
Click on "Sandbox_John_DefaultBox" in the regedit window, then while only that one item is selected, click File > Unload Hive > click Yes to "unload the current key and ..."
Then Delete Contents of the sandbox.
Tried to "Unload Hive", but got this error:
Still can't seem to budge that file out.
What will allow me to view whatever process is accessing that file?
Re: Unable to delete contents, object in use
You need to run File assassin unsandboxed.captnamerca wrote:First thing I attempted was to use File Assassin to unlock or delete the RegHive file itself. No luck. Got this message box from Sandboxie,.....
Bo
-
- Posts: 16
- Joined: Sat Feb 13, 2016 9:43 am
Re: Unable to delete contents, object in use
I don't think File Assassin was executed sandboxed. I didn't specifically run it as a sandboxed program, and it doesn't have a yellow border, or the hashtags when it starts.bo.elam wrote:You need to run File assassin unsandboxed.captnamerca wrote:First thing I attempted was to use File Assassin to unlock or delete the RegHive file itself. No luck. Got this message box from Sandboxie,.....
Bo
The only time that it appears to be running in the sandbox, is when I right-click on the RegHive File, and select "Delete/Unlock File Using FileASSASSIN". Then I get the typical Sandboxie yellow-bordered window, then failure notice.
Maybe this FileASSASSIN is not working. I only used it because it came with my paid MBAM. I'd try another program if anyone knew one that works on Windows 10. Unlocker does not.
Re: Unable to delete contents, object in use
I am thinking it ran sandboxed because you are getting Sandboxie messages. If File assassin is not running sandboxed, you shouldn't get SBIE messages like you got.captnamerca wrote: I don't think File Assassin was executed sandboxed. I didn't specifically run it as a sandboxed program, and it doesn't have a yellow border, or the hashtags when it starts.
The only time that it appears to be running in the sandbox, is when I right-click on the RegHive File, and select "Delete/Unlock File Using FileASSASSIN". Then I get the typical Sandboxie yellow-bordered window, then failure notice.
I am not familiar with FA but one of the pictures you just posted does show FA with the yellow border. That means its running sandboxed.
Bo
-
- Posts: 16
- Joined: Sat Feb 13, 2016 9:43 am
Re: Unable to delete contents, object in use
You are correct, and I see it too. The attempt to unlock/delete using FA produces Sandboxie errors, but it is odd because the yellow bordered box only appears when I attempt to unlock/delete a file in a sandbox. I tried to unlock other folders that are not in a sandbox, and none of the message boxes look like sandboxed programs, i.e. no yellow borders, no hashtags in the program title, no problem unlocking.bo.elam wrote:I am thinking it ran sandboxed because you are getting Sandboxie messages. If File assassin is not running sandboxed, you shouldn't get SBIE messages like you got.captnamerca wrote: I don't think File Assassin was executed sandboxed. I didn't specifically run it as a sandboxed program, and it doesn't have a yellow border, or the hashtags when it starts.
The only time that it appears to be running in the sandbox, is when I right-click on the RegHive File, and select "Delete/Unlock File Using FileASSASSIN". Then I get the typical Sandboxie yellow-bordered window, then failure notice.
I am not familiar with FA but one of the pictures you just posted does show FA with the yellow border. That means its running sandboxed.
Bo
Today I will try to research another program that will unlock or delete locked folders, that also works on Windows 10. Maybe I can get them to at least run their program on a file in a sandbox, without actually being sandboxed themselves.
-
- Sandboxie Lead Developer
- Posts: 1638
- Joined: Fri Jan 17, 2014 5:21 pm
- Contact:
Re: Unable to delete contents, object in use
It is not difficult to tell what is running in Sbie. SbieCtrl shows all processes running in the sandbox. You can also use "Is Window Sandboxed?" off the File menu to see if a window is sandboxed.
-
- Posts: 16
- Joined: Sat Feb 13, 2016 9:43 am
Re: Unable to delete contents, object in use
You're right, using the "Is Window Sandboxed?" tool does show if the app is running in a sandbox. Also, just opening the window shows everything that's running sandboxed.Curt@invincea wrote:It is not difficult to tell what is running in Sbie. SbieCtrl shows all processes running in the sandbox. You can also use "Is Window Sandboxed?" off the File menu to see if a window is sandboxed.
Here's the weird part (to me, anyway):
Startup FileAssassin = Not Sandboxed
Select file in FA's window = Not Sandboxed
Right-click file, select Unlock or Delete File Using FileASSASSIN = Sandboxed
Who is online
Users browsing this forum: No registered users and 1 guest