Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Recycle Bin (vfs recycle) for SMB Shares

Featured Replies

18 hours ago, dlandon said:

Can you turn off Macos Interoperability and see if it makes a difference?  I'm wanting to be sure the Mac vfs objects aren't interferring with the Recycle Bin.

You got it, can confirm that with it disabled everything works normally. 

  • Replies 1.3k
  • Views 396.9k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Shares were not displaying when "Log Deleted Files" was set to "No".  This has been fixed in the latest version.

  • dlandon
    dlandon

    Done.   The file directory in the recycle bin is created when the file is deleted so it will show the date/time when the file(s) were deleted, but the modify date/time on the files will rema

  • The excluded files input field in the settings is now 150 characters.

Posted Images

  • Author
3 hours ago, Kilrah said:

You got it, can confirm that with it disabled everything works normally. 

Thank you, it was a hunch I had about the vfs objects.  Now to find a solution that doesn't break SMB on Macs.

1 hour ago, Popsikill said:

I have Sonarr set up

How is SMB related to this?

I’m not sure why, but I tested using the same file, and there was an issue.
I confirmed that files from the Array Share and Unassigned Device Share were properly moved to the recycle folder.
However, files from the Pool Share don’t go to the recycle folder even after being deleted.
Is there anything additional I need to configure for the Pool Share?
I am using Unraid 7.0.0

Hello. I, too, am adding a bug report onto the pile. I've read everything in this thread since January 1st so I'll start by posting diagnostic logs and environment info as the developer requests.

 

Environment: I use SMB only, use standard Share permissions setup by Unraid (no chmod or chown commands), ensured "Hide dot files" and "Enhanced macOS interoperability" are set to "No" while "Enable SMB Multi Channel" and "Enable WSD" are set to "Yes". In the Recycle Bin settings I ensured it is enabled and running with hourly emptying.

 

Behavior: Deleted files are not appearing in the recycle folder on both cache drives and array shares. The issue started since upgrading to Unraid 7.0.0. I have tried many combinations of troubleshooting in attempt to find a pattern but the Recycle Bin plugin seems to do nothing now. The thorough "reset" method I've tried is uninstalling the plugin, manually deleting the recycle folder from all shares & drives, rebooting Unraid, reinstalling the plugin, configuring and starting the plugin, then testing file deletion on the array and cache drive (via SMB). No luck, in fact the plugin did not recreate the ".recycle.bin" folder anywhere.

 

If you need more info or for me to test something just ask.

unraid-diagnostics-20250128-1111.zip

  • Author
59 minutes ago, Sgt said:

"No" while "Enable SMB Multi Channel" and "Enable WSD" are set to "Yes".

Set Multi Channel to "No" and try.  Keep in mind that files of zero length are not put in the recucle bin.

  • Author
3 hours ago, pripapripa said:

I’m not sure why, but I tested using the same file, and there was an issue.
I confirmed that files from the Array Share and Unassigned Device Share were properly moved to the recycle folder.
However, files from the Pool Share don’t go to the recycle folder even after being deleted.
Is there anything additional I need to configure for the Pool Share?
I am using Unraid 7.0.0

I'm looking into it.

  • Author
5 hours ago, Sgt said:

Hello. I, too, am adding a bug report onto the pile. I've read everything in this thread since January 1st so I'll start by posting diagnostic logs and environment info as the developer requests.

 

Environment: I use SMB only, use standard Share permissions setup by Unraid (no chmod or chown commands), ensured "Hide dot files" and "Enhanced macOS interoperability" are set to "No" while "Enable SMB Multi Channel" and "Enable WSD" are set to "Yes". In the Recycle Bin settings I ensured it is enabled and running with hourly emptying.

 

Behavior: Deleted files are not appearing in the recycle folder on both cache drives and array shares. The issue started since upgrading to Unraid 7.0.0. I have tried many combinations of troubleshooting in attempt to find a pattern but the Recycle Bin plugin seems to do nothing now. The thorough "reset" method I've tried is uninstalling the plugin, manually deleting the recycle folder from all shares & drives, rebooting Unraid, reinstalling the plugin, configuring and starting the plugin, then testing file deletion on the array and cache drive (via SMB). No luck, in fact the plugin did not recreate the ".recycle.bin" folder anywhere.

 

If you need more info or for me to test something just ask.

unraid-diagnostics-20250128-1111.zip 155.01 kB · 1 download

Update Recycle Bin.

As requested, updated the plugin. Immediately went to a share on the array, observed the recycle bin folder does not exist, deleted a file as a test and viola! A folder named ".Recycle.Bin" appeared with the deleted file inside! Repeated the test with a share on a cache drive only and observed the same results. Deleting folders with and without contents is also working. All tests performed using SMB.

 

Thank you for your speedy update and for bringing to life this arguably essential plugin.

  • 2 weeks later...

Hey guys, getting this issue when trying to update recycle bin after upgrading unraid to 7.0

plugin: installing: recycle.bin.plg

Executing hook script: pre_plugin_checks

plugin: downloading: recycle.bin.plg ... done

Executing hook script: pre_plugin_checks

plugin: run failed: '/bin/bash' returned 1

Executing hook script: post_plugin_checks

 

Anyone have any ideas what the issue is?

  • Author
1 hour ago, Italiandevil0505 said:

Hey guys, getting this issue when trying to update recycle bin after upgrading unraid to 7.0

plugin: installing: recycle.bin.plg

Executing hook script: pre_plugin_checks

plugin: downloading: recycle.bin.plg ... done

Executing hook script: pre_plugin_checks

plugin: run failed: '/bin/bash' returned 1

Executing hook script: post_plugin_checks

 

Anyone have any ideas what the issue is?

Post your diagnostics so I can look into it.

 

I can't reproduce your issue.  I suggest you remove and reinstall the plugin.

MacOS issue. Running Unraid 6.12.8 with Enhanced macOS interoperability set to Yes. With the latest Recycle.Bin 2025.01.28, cannot copy & paste files to Unraid using Mac’s Finder app.  After the paste, the file on the server shows as greyed out and cannot be read, but can be dragged to the trash can.  Tested using Sequoia 15.3 and Big Sur 11.7.  Reverting Recycle.Bin to 2024.11.17b resolves the problem.  Verified this behavior on an Unraid 6.12.8 VM with no other plugins installed.

  • Author
On 2/7/2025 at 12:56 PM, aim60 said:

MacOS issue. Running Unraid 6.12.8 with Enhanced macOS interoperability set to Yes. With the latest Recycle.Bin 2025.01.28, cannot copy & paste files to Unraid using Mac’s Finder app.  After the paste, the file on the server shows as greyed out and cannot be read, but can be dragged to the trash can.  Tested using Sequoia 15.3 and Big Sur 11.7.  Reverting Recycle.Bin to 2024.11.17b resolves the problem.  Verified this behavior on an Unraid 6.12.8 VM with no other plugins installed.

Post diagnostics.

  • Author
On 2/7/2025 at 12:56 PM, aim60 said:

MacOS issue. Running Unraid 6.12.8 with Enhanced macOS interoperability set to Yes. With the latest Recycle.Bin 2025.01.28, cannot copy & paste files to Unraid using Mac’s Finder app.  After the paste, the file on the server shows as greyed out and cannot be read, but can be dragged to the trash can.  Tested using Sequoia 15.3 and Big Sur 11.7.  Reverting Recycle.Bin to 2024.11.17b resolves the problem.  Verified this behavior on an Unraid 6.12.8 VM with no other plugins installed.

Update the Recycle Bin plugin and see if the issue is resolved.

Quote

2025.02.12

Fix: Language translation updates.

Fix: Reorder vfs objects to fix strange file status after copying files from a Mac computer.

Thank you for the second fix specially. It was so annoying.

5 hours ago, dlandon said:

 

Update the Recycle Bin plugin and see if the issue is resolved.

 

RE: MacOS Issue:  Resolved.  Thank You

the logging on my recycle bin is broken. been using for years, updated to 7.0.0 shortly after release, been fine. i updated recycle bin recently and noticed that it isnt logging when i delete files.

 

now when i delete a file thru smb, it moves the file to the recycle bin folder (as it should). but nothing shows in the log. when i go delete the file from the recycle bin folder (also thru smb), then it shows in the log. 

 

this was never the behavior before, it would show in the log immediately, then after the 5 min interval, would actually show in the recycle bin to be emptied. 

 

is this a known issue, or am i missing something? does using exclusive shares have anything to do with logging behavior? share exclusivity and updating recycle bin plugin are the only thing on my server that ive changed recently.

 

thanks!

  • Author
9 hours ago, xrichnj said:

the logging on my recycle bin is broken. been using for years, updated to 7.0.0 shortly after release, been fine. i updated recycle bin recently and noticed that it isnt logging when i delete files.

 

now when i delete a file thru smb, it moves the file to the recycle bin folder (as it should). but nothing shows in the log. when i go delete the file from the recycle bin folder (also thru smb), then it shows in the log. 

 

this was never the behavior before, it would show in the log immediately, then after the 5 min interval, would actually show in the recycle bin to be emptied. 

 

is this a known issue, or am i missing something? does using exclusive shares have anything to do with logging behavior? share exclusivity and updating recycle bin plugin are the only thing on my server that ive changed recently.

 

thanks!

Post your diagnostics.

Hi,

 

In the process of setting up my first Unraid server, upgraded to 7.0.0-rc.2 and enabled your plugin.

 

Enable Recycle Bin is set to yes, no exclusions.

 

Shares

 

Is blank.

 

Created/deleted a text document and no .Recycle.Bin folder showed up (per above comment).

 

Hide Recycle Bin is set to No.

2 hours ago, dozerplex said:

Created/deleted a text documen

Over SMB?

15 hours ago, dozerplex said:

7.0.0-rc.2

That was a prerelease, you should be using the final 7.0.0.

Edited by Kilrah

  • Author

Because of recent changes in Samba, some deleted files are not logged as being deleted but moved.  This is actually a good thing if the file doesn't have to actually be copied to the .Recycle.Bin, but can be moved instead - a move is much faster.  This causes the plugin logging to miss the fact that a file was deleted from a share.  The actual file deletion (file going to the .Recycle.Bin) works, but is not always loggged.  The Samba logging mechanism is not easy to work with and I am considering ditching it and possibly using an inotify on each .Recycle.Bin.  I'm also considering dropping logging altogether, but I suspect this move might not be well received.

1 hour ago, dlandon said:

Because of recent changes in Samba, some deleted files are not logged as being deleted but moved.  This is actually a good thing if the file doesn't have to actually be copied to the .Recycle.Bin, but can be moved instead - a move is much faster.  This causes the plugin logging to miss the fact that a file was deleted from a share.  The actual file deletion (file going to the .Recycle.Bin) works, but is not always loggged.  The Samba logging mechanism is not easy to work with and I am considering ditching it and possibly using an inotify on each .Recycle.Bin.  I'm also considering dropping logging altogether, but I suspect this move might not be well received.

probably not. it's really nice to be able to see everything that has been deleted at a glance in the log without having to navigate to each individual recycle bin to make sure all the files are ok to remove permanently.

  • Author

The logging in the recycle bin has been converted to inotify.  There are several reasons that the logging was not working:

  • Samba has changed files being deleted from 'unlink' to 'moved'.  The new inotify watches the share .Recycle.Bins for files moved or created in those folders.
  • After adding a new share, the recycle bin was not updating to add the recycle bin to the new share.
  • Probably a few other issues also.

All should be working now.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.