Sandboxie Double Recovering Files

Discussion in 'Sandboxie (SBIE Open Source) Plus & Classic' started by johnny_castle, Jan 9, 2022.

  1. johnny_castle

    johnny_castle Registered Member

    Joined:
    May 5, 2021
    Posts:
    53
    Location:
    USA
    I'm running the latest version of Sandboxie Classic, and it's working great with my new Windows 10 upgrade. The only quirk I can't smooth out is how it recovers files. I have been using the app for years and bought a lifetime license back when it was with the other company. Normally, I could add several folders to the quick recovery list, and have immediate recovery checked. If I would download a file, I would recover it as soon as it was done downloading. When I closed the browser, the sandbox would just clear normally. No muss, no fuss.

    But now when I recover the file, I close the browser and it gives me a second recover option again. As if it doesn't realize I already got the file. I tried clearing the folders in the quick recovery list, but that breaks the recovery option altogether.

    Thoughts on how to tweak this to get it acting like it did before?
     
  2. DjKilla

    DjKilla Registered Member

    Joined:
    Oct 4, 2021
    Posts:
    224
    Location:
    Tampa, FL
    Here's how I have mine setup. I'm using the latest version Sandboxie Classic 5.55.7 (64-bit) on Windows 10 21h2 (64-bit).

    I choose the folders I use for downloaded files.
    Recovery1.jpg

    I leave this unchecked because I want my downloaded files to remain sandboxed until I'm ready to manually recover them to the folders I selected above.
    Recovery2.jpg

    I check the first box which deletes all contents in Sandboxie when I close the last opened app that's sandoxed. If I downloaded a file and didn't manually
    or enable quick recovery above, then I'll get a popup window when I close the last app sandboxed letting me manually recover the file before deleting the
    contents of Sandboxie. This might be the setting that's causing the issue. If you uncheck the first box, then no contents will be deleted including files when
    you close all sandboxed apps. The second box never deletes the sandboxie contents automatically or manually.
    Recovery3.jpg
     
  3. DjKilla

    DjKilla Registered Member

    Joined:
    Oct 4, 2021
    Posts:
    224
    Location:
    Tampa, FL
    To manually recover, just right-click the following:
    Recovery4.jpg


    To manually delete the contents, do the following:
    Recovery5.jpg
     
  4. DavidXanatos

    DavidXanatos Developer

    Joined:
    Sep 6, 2006
    Posts:
    2,338
    Location:
    Viena
    @johnny_castle are you using the plus or the classic version?
    I tryed and could not reproduce the issue, as you describe it, it looks to be an issue where the list of to recovered files fails to be cleared on imminet recovery and it striggered again on close.
    But i tested this scenario and for me everything worked fine.

    Could you may be make a video of the issue and attach your sandboxie.ini
     
  5. n8chavez

    n8chavez Registered Member

    Joined:
    Jul 19, 2003
    Posts:
    3,357
    Location:
    Location Unknown
    I occasionally have exactly the same problem, using sbie plus 1.0.7 on Win11 21h2.

    Code:
    [GlobalSettings]
    
    Template=Folder_Size
    Template=OfficeLicensing
    Template=RpcPortBindings
    TemplateReject=WindowsLive
    TemplateReject=VirtualDesktopManager
    TemplateReject=WindowsRasMan
    FileRootPath=S:\Sandbox\%SANDBOX%
    EditAdminOnly=y
    ForceDisableAdminOnly=y
    ForgeetPassword=n
    SeparateUserFolders=y
    KeyRootPath=\REGISTRY\USER\Sandbox_%USER%_%SANDBOX%
    IpcRootPath=\Sandbox\%USER%\%SANDBOX%\Session_%SESSION%
    NetworkEnableWFP=n
    EnableObjectFiltering=n
    ForgetPassword=n
    EnableWin32kHooks=n
    
    [UserSettings_1B080328]
    
    SbieCtrl_NextUpdateCheck=1638581055
    SbieCtrl_ReloadConfNotify=n
    SbieCtrl_EditConfNotify=n
    SbieCtrl_TerminateWarn=n
    SbieCtrl_AutoApplySettings=n
    SbieCtrl_SettingChangeNotify=n
    SbieCtrl_WindowCoords=3137,392,536,426
    SbieCtrl_ActiveView=40021
    SbieCtrl_HideWindowNotify=n
    SbieCtrl_ProcessViewColumnWidths=250,70,300
    SbieCtrl_UserName=n8chavez
    SbieCtrl_UpdateCheckNotify=n
    SbieCtrl_ExplorerWarn=n
    SbieCtrl_HideMessage=2205,CloseClipboard C0000058
    SbieCtrl_HideMessage=1308, updater.exe [Firefox]
    SbieCtrl_HideMessage=2313,SandboxieCrypto.exe (5)
    SbieCtrl_TerminateNotify=n
    SbieCtrl_AutoStartAgent=SandMan.exe
    SbieCtrl_EnableAutoStart=y
    BoxCollapsedView=Miranda,Firefox,Mail
    
    [DefaultBox]
    
    ConfigLevel=9
    AutoRecover=y
    BlockNetworkFiles=y
    Template=OpenSmartCard
    Template=OpenBluetooth
    Template=SkipHook
    Template=qWave
    Template=LingerPrograms
    Template=Chrome_Phishing_DirectAccess
    Template=AutoRecoverIgnore
    BorderColor=#00FFFF,ttl
    Enabled=y
    NeverDelete=y
    
    [Miranda]
    
    Enabled=y
    ConfigLevel=9
    AutoRecover=y
    Template=OpenSmartCard
    Template=OpenBluetooth
    Template=SkipHook
    Template=AutoRecoverIgnore
    Template=LingerPrograms
    BorderColor=#00ffff,off,6
    BoxNameTitle=n
    AutoDelete=y
    ProcessGroup=<StartRunAccess>,<InternetAccess>,dllhost.exe,waterfox.exe,rundll32.exe
    ProcessGroup=<InternetAccess>,miranda32.exe,mirand~1.exe,waterfox.exe
    NotifyStartRunAccessDenied=y
    ClosedFilePath=<BlockNetDevices>,InternetAccessDevices
    ClosedFilePath=C:\Program Files\IVPN Client
    ClosedFilePath=C:\Program Files\VoodooShield
    ClosedFilePath=!<InternetAccess>,InternetAccess
    ClosedFilePath=C:\Scripts\
    ClosedFilePath=C:\Program Files\Macrium
    ClosedFilePath=!<InternetAccess>,InternetAccessDevices
    ForceProcess=mirand~1.exe
    ForceProcess=miranda32.exe
    LeaderProcess=mirand~1.exe
    LeaderProcess=miranda32.exe
    ClosedIpcPath=!<StartRunAccess>,*
    LingerProcess=mirand~1.exe
    LingerProcess=miranda32.exe
    CopyLimitKb=81920
    DropAdminRights=y
    
    [UserSettings_0C78020D]
    
    SbieCtrl_NextUpdateCheck=1572069760
    SbieCtrl_UpdateCheckNotify=n
    SbieCtrl_ReloadConfNotify=n
    SbieCtrl_HideWindowNotify=n
    SbieCtrl_WindowCoords=200,150,640,471
    SbieCtrl_ActiveView=40021
    SbieCtrl_AutoApplySettings=y
    SbieCtrl_SettingChangeNotify=n
    SbieCtrl_UserName=n8chavez
    SbieCtrl_ShowWelcome=n
    SbieCtrl_TerminateWarn=n
    SbieCtrl_EditConfNotify=n
    
    [Firefox]
    
    Enabled=y
    ConfigLevel=9
    AutoRecover=y
    Template=OpenSmartCard
    Template=OpenBluetooth
    Template=Firefox_Bookmarks_DirectAccess
    Template=Firefox_Force
    Template=LingerPrograms
    Template=SkipHook
    NotifyInternetAccessDenied=y
    ProcessGroup=<StartRunAccess>,<InternetAccess>,dllhost.exe,RuntimeBroker.exe,rundll32.exe,plugin-container.exe,CompPkgSrv.exe,POPPeeper.exe,helper.exe,Adguard.Tools.exe
    ProcessGroup=<InternetAccess>,plugin-container.exe,firefox.exe
    NotifyStartRunAccessDenied=y
    BoxNameTitle=y
    ClosedFilePath=C:\Program Files\IFW
    ClosedFilePath=C:\Program Files\IVPN Client
    ClosedFilePath=C:\Program Files\VoodooShield
    ClosedFilePath=!<InternetAccess>,InternetAccess
    ClosedFilePath=C:\Scripts\
    ClosedFilePath=!<InternetAccess>,InternetAccessDevices
    LeaderProcess=firefox.exe
    OpenFilePath=firefox.exe,%AppData%\Mozilla\Firefox\Profiles\Mine\storage\default\moz-extension+++0c187712-fab3-4b27-97f5-b80f88579969*\*
    OpenFilePath=firefox.exe,%AppData%\Mozilla\Firefox\Profiles\Mine\storage\default\moz-extension+++839392f9-2665-479b-bbb6-acafa77e8e06*\*
    OpenFilePath=firefox.exe,%AppData%\Mozilla\Firefox\Profiles\Mine\storage\default\moz-extension+++ceeb2e11-b287-41f8-b94f-9b94c6001ec1*\*
    CopyLimitKb=1030030
    AutoRecoverIgnore=.part
    ClosedIpcPath=!<StartRunAccess>,*
    RecoverFolder=%{374DE290-123F-4565-9164-39C4925E467B}%
    AutoDelete=y
    BorderColor=#000000,off,6
    DropAdminRights=y
    
    [Mail]
    
    Enabled=y
    ConfigLevel=9
    AutoRecover=y
    Template=SkipHook
    Template=LingerPrograms
    Template=AutoRecoverIgnore
    BorderColor=#00ffff,off,6
    ForceProcess=poppee~1.exe
    ForceProcess=poppeeper.exe
    NotifyStartRunAccessDenied=y
    BoxNameTitle=n
    ClosedFilePath=C:\Program Files\IFW
    ClosedFilePath=poppee~1.exe,C:\Program Files\IVPN Client
    ClosedFilePath=<BlockNetDevices>,InternetAccessDevices
    ClosedFilePath=C:\Program Files\VoodooShield
    ClosedFilePath=!<InternetAccess>,InternetAccess
    ClosedFilePath=C:\Scripts\
    ClosedFilePath=!<InternetAccess>,InternetAccessDevices
    AutoDelete=y
    LingerProcess=poppeeper.exe,poppee~1.exe
    CopyLimitKb=117917
    LeaderProcess=poppeeper.exe
    LeaderProcess=poppee~1.exe
    DropAdminRights=y
    OpenFilePath=poppeeper.exe,C:\Program Files\POPPeeper\Mail\AntiJunk.db
    OpenFilePath=poppeeper.exe,C:\Program Files\POPPeeper\Mail\addrbook.inx
    OpenFilePath=poppeeper.exe,C:\Program Files\POPPeeper\Mail\Spam\data.db
    OpenFilePath=poppeeper.exe,C:\Program Files\POPPeeper\Mail\Inbox\data.db
    OpenFilePath=poppeeper.exe,C:\Program Files\POPPeeper\Mail\Investments\data.db
    OpenFilePath=poppeeper.exe,C:\Program Files\POPPeeper\Mail\Misc\data.db
    OpenFilePath=poppeeper.exe,C:\Program Files\POPPeeper\Mail\Receipts\data.db
    OpenFilePath=poppeeper.exe,C:\Program Files\POPPeeper\Mail\Personal\data.db
    OpenFilePath=poppeeper.exe,C:\Program Files\POPPeeper\Mail\School\data.db
    OpenFilePath=poppeeper.exe,C:\Program Files\POPPeeper\Mail\Work\data.db
    OpenFilePath=poppeeper.exe,C:\Program Files\POPPeeper\Mail\Server\data.db
    OpenFilePath=poppeeper.exe,C:\Program Files\POPPeeper\Mail\Sent\data.db
    OpenFilePath=poppeeper.exe,C:\Program Files\POPPeeper\Pro\AntiJunk\
    OpenFilePath=poppeeper.exe,C:\Program Files\POPPeeper\Pro\AntiJunk.dll
    OpenFilePath=poppeeper.exe,C:\Program Files\POPPeeper\poppeeper.ini
    ClosedIpcPath=!<StartRunAccess>,*
    ProcessGroup=<InternetAccess>,poppeeper.exe,poppee~1.exe,firefox.exe
    ProcessGroup=<StartRunAccess>,waterfox.exe,rundll32.exe,PPhelper.exe,poppeeper.exe,poppee~1.exe,firefox.exe
    ClosedFilePath=C:\Program Files\IVPN Client
    
     
  6. johnny_castle

    johnny_castle Registered Member

    Joined:
    May 5, 2021
    Posts:
    53
    Location:
    USA
    I would love to create a video, but it seems to be an internment problem that does not happen every time. Just like sometimes the sandbox won't delete itself right away and hangs, even though I have told it to kill Edge in the lingering programs menu. So I'm not sure how much of this is how it interacts with my system, and how much is the Sandbox itself. But my INI is below (ignore where it says "Windows Seven" as that is just an older username). I'm on Windows 10 with the latest version of Classic Sandboxie.

    Code:
    #
    # Sandboxie-Plus configuration file
    #
    
    [GlobalSettings]
    Template=ObjectDock
    Template=BitDefenderInternetSecurity
    Template=LogitechSetPoint
    Template=WindowsRasMan
    Template=WindowsLive
    Template=AdobeAcrobatReader
    Template=VirtualDesktopManager
    Template=Microsoft_MSMQ
    Template=OfficeLicensing
    
    [DefaultBox]
    ConfigLevel=9
    BlockNetworkFiles=y
    Template=Office_Outlook
    Template=Chrome_Force
    Template=IExplore_Force
    Template=Edge_Phishing_DirectAccess
    Template=Firefox_Force
    Template=Edge_Force
    Template=OpenSmartCard
    Template=OpenBluetooth
    Template=SkipHook
    Template=FileCopy
    Template=qWave
    Template=BlockPorts
    Template=LingerPrograms
    Template=Chrome_Phishing_DirectAccess
    Template=Firefox_Phishing_DirectAccess
    Template=AutoRecoverIgnore
    BorderColor=#00FFFF,off,6
    Enabled=y
    BoxNameTitle=-
    AutoRecover=y
    AutoDelete=y
    NeverDelete=n
    ForceFolder=C:\Users\Windows Seven\Downloads
    ForceProcess=outlook.exe
    OpenFilePath=%Personal%\Outlook Files\
    LingerProcess=firefox.exe
    LingerProcess=msedge.exe
    LingerProcess=iexplore.exe
    LingerProcess=chrome.exe
    RecoverFolder=%{374DE290-123F-4565-9164-39C4925E467B}%
    RecoverFolder=%Desktop%
    
    [UserSettings_4B2E054D]
    SbieCtrl_UserName=windows_seven
    SbieCtrl_BoxExpandedView=DefaultBox
    SbieCtrl_NextUpdateCheck=-1
    SbieCtrl_UpdateCheckNotify=y
    SbieCtrl_WindowCoords=640,117,1234,632
    SbieCtrl_ActiveView=40021
    SbieCtrl_AutoApplySettings=n
    SbieCtrl_HideWindowNotify=n
    SbieCtrl_ProcessViewColumnWidths=250,70,300
    SbieCtrl_ExplorerWarn=n
    
    
     
  7. sevenstar

    sevenstar Registered Member

    Joined:
    Oct 19, 2010
    Posts:
    54
    I have that issue as well and it is also intermittent. Not a huge problem, but it does cause me to reverify that I really got the file.
     
  8. johnny_castle

    johnny_castle Registered Member

    Joined:
    May 5, 2021
    Posts:
    53
    Location:
    USA
    Ah, well that is certainly enough of us (probably more out there) to verify this is a lingering bug. I'll watch here to see if a solution is found soon.
     
  9. DavidXanatos

    DavidXanatos Developer

    Joined:
    Sep 6, 2006
    Posts:
    2,338
    Location:
    Viena
    Is that only the classic UI or also with the plus UI?
    and if you verify that you have the file, is there a dupliate left at the old location?
     
  10. johnny_castle

    johnny_castle Registered Member

    Joined:
    May 5, 2021
    Posts:
    53
    Location:
    USA
    Not sure what you mean by the first part of that, all I know is I did a fresh install of Sandboxie Classic from scratch. Also, yes, there does appear to be a duplicate. I recover the file down to my HDD outside the sandbox with immediate invocation, but then the app pulls up the recovery box again a second time. If you decline to recover this, it deletes it and everything else in the Sandbox. So it's repeating behavior to no useable end sometimes.
     
  11. DavidXanatos

    DavidXanatos Developer

    Joined:
    Sep 6, 2006
    Posts:
    2,338
    Location:
    Viena
    Ok but that's good to know, than the issue is with the moving of the file itself, not with the checking/notifying code. That pinpoints the issue.
     
  12. n8chavez

    n8chavez Registered Member

    Joined:
    Jul 19, 2003
    Posts:
    3,357
    Location:
    Location Unknown
    I can verify everything johnny_castle says, except to add that with me it happens with both classic and plus versions.
     
  13. johnny_castle

    johnny_castle Registered Member

    Joined:
    May 5, 2021
    Posts:
    53
    Location:
    USA
    Since we know this is a fixable thing, I'm going to bookmark this and circle back. If you come up with a solution for this in a patch or future update (or just something I can change in my settings now), please post it here. So I can ensure I find the solution. Thanks so much and thanks for supporting one of my go-to apps for so long!
     
  14. DavidXanatos

    DavidXanatos Developer

    Joined:
    Sep 6, 2006
    Posts:
    2,338
    Location:
    Viena
    This looks like the issue is with the process that created those files keeping a handle open past the recovery process,
    resulting in the file not being deleted.
    So my test with creating files form console will not be affected.

    Please tell me with what applications creating files the problem appears?
    May be firefox downloads? what else?

    Cheers
    David
     
  15. sevenstar

    sevenstar Registered Member

    Joined:
    Oct 19, 2010
    Posts:
    54
    All of duplicates are from Firefox downloads. :)
     
  16. DavidXanatos

    DavidXanatos Developer

    Joined:
    Sep 6, 2006
    Posts:
    2,338
    Location:
    Viena
    ok, will test that scenario thoroughly
     
  17. n8chavez

    n8chavez Registered Member

    Joined:
    Jul 19, 2003
    Posts:
    3,357
    Location:
    Location Unknown
    For me, the downloads can range from anything from .rar files to video files. There doesn't seem to be any particular pattern or file type.
     
  18. Rainwalker

    Rainwalker Registered Member

    Joined:
    May 18, 2003
    Posts:
    2,720
    Location:
    USA
    Latest Sandboxie Classic Windows 11 suddenly stopped working. Error message >> The application has failed to start because it's side by side configuration is incorrect. I did a clean reinstalled. Error remained. How can I fix this?
    s side by side configuration
     
  19. n8chavez

    n8chavez Registered Member

    Joined:
    Jul 19, 2003
    Posts:
    3,357
    Location:
    Location Unknown
    Don't hijack the thread. Use the 1.0.7 thread, or make a separate one.
     
  20. johnny_castle

    johnny_castle Registered Member

    Joined:
    May 5, 2021
    Posts:
    53
    Location:
    USA
    I can confirm what n8chavez said erlier. For me, it can be images, pdfs, anything. And it's not just Firefox. I use Edge. Sorry if that opens a can of worms o_O
     
  21. DavidXanatos

    DavidXanatos Developer

    Joined:
    Sep 6, 2006
    Posts:
    2,338
    Location:
    Viena
    Is this issue appearing with the classic UI only or also with the plus UI?
     
  22. n8chavez

    n8chavez Registered Member

    Joined:
    Jul 19, 2003
    Posts:
    3,357
    Location:
    Location Unknown
    I had the issue in both classic and plus, both x64.
     
  23. DavidXanatos

    DavidXanatos Developer

    Joined:
    Sep 6, 2006
    Posts:
    2,338
    Location:
    Viena
    please re test the issue witn 1.0.9 the handle fix should have helped
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.