dlandon Posted November 16, 2018 Author Share Posted November 16, 2018 22 minutes ago, tjb_altf4 said: It seems the samba log is including records we're less interested in logging, and excluding what we are interested in? Give me some examples. I am doing some filtering because the UD log would get unwieldy. Quote Link to comment
tjb_altf4 Posted November 17, 2018 Share Posted November 17, 2018 (edited) 7 hours ago, dlandon said: Give me some examples. I am doing some filtering because the UD log would get unwieldy. Understand. Lets start from the top, I've cleared the log and excluded the games share that was pumping the steam cache entries. Here a run through of deleting a file: Initial state Created file to delete, then deleted Share appears, no delete file log, .Recycle.Bin directory and deleted file appears Emptied recycle bin, still no deleted file logged .Recycle.Bin directory + contents and GUI reference to share disappear as expected Output of cat /var/log/samba/log.smbd [2018/11/17 08:30:23.832866, 0] ../source3/modules/vfs_extd_audit.c:159(audit_mkdir) vfs_extd_audit: mkdir /mnt/user/software/.Recycle.Bin [2018/11/17 08:30:23.833067, 0] ../source3/modules/vfs_extd_audit.c:159(audit_mkdir) vfs_extd_audit: mkdir /mnt/user/software/.Recycle.Bin/Kodi Edited November 17, 2018 by tjb_altf4 Quote Link to comment
dlandon Posted November 17, 2018 Author Share Posted November 17, 2018 44 minutes ago, tjb_altf4 said: Understand. Lets start from the top, I've cleared the log and excluded the games share that was pumping the steam cache entries. Here a run through of deleting a file: The log.smbd is managed by the vfs_recycle module of samba. I do not have any control over the log except to enable it and let vfs_recycle manage the entries. I can check the settings for enabling the log, but I'm pretty sure it is right. I have no explanation for the file deletion not getting logged. What version of Unraid are you using? Quote Link to comment
tjb_altf4 Posted November 17, 2018 Share Posted November 17, 2018 (edited) 1 hour ago, dlandon said: What version of Unraid are you using? 6.6.5 I think I may have spotted the issue: /etc/samba/smb-shares.conf has .Recycle.Bin as an excluded directory on all shares. recycle:exclude_dir = .Recycle.Bin I don't think this is needed as it is named as the recycle repository recycle:repository = %P/.Recycle.Bin/ With the .Recycle.Bin directory excluded it won't pickup when a file is deleted from that directory (when it empties). Edited November 17, 2018 by tjb_altf4 Quote Link to comment
dlandon Posted November 17, 2018 Author Share Posted November 17, 2018 21 minutes ago, tjb_altf4 said: With the .Recycle.Bin directory excluded it won't pickup when a file is deleted from that directory (when it empties). Correct. I did that on purpose. I don't think there is any value in logging deleted files from the .Recycle.Bin directory. Quote Link to comment
tjb_altf4 Posted November 17, 2018 Share Posted November 17, 2018 I understand the rationale, but that means deleted files never get logged as being deleted as they aren't being logged as deleted when they go to the recycle bin folder. Only deleted files that bypass recycle bin are logged as deleted. Or am I misunderstanding the intent of the deleted files log? Quote Link to comment
dlandon Posted November 17, 2018 Author Share Posted November 17, 2018 8 hours ago, tjb_altf4 said: I understand the rationale, but that means deleted files never get logged as being deleted as they aren't being logged as deleted when they go to the recycle bin folder. Only deleted files that bypass recycle bin are logged as deleted. Or am I misunderstanding the intent of the deleted files log? When a file is deleted from a SMB share, they are moved to the .Recycle.Bin and logged by the vfs_recycle module of SMB. Deleting files from the .Recycle.Bin itself does not log a deleted file. I don't understand why your file is not logging as deleted. I'll review your post again to see if I can see something about your particular file causing a problem. 1 Quote Link to comment
dlandon Posted November 17, 2018 Author Share Posted November 17, 2018 2 hours ago, warham said: Removed the plugin and reinstalled. trying to open plugin just opens a blank page with the unraid gui at the top. This started with 6.6.5. Ideas to fix it? You probably have a large .Recycle.Bin and it is taking a long time to determine the Recycle Bin size. This may also have to spin up disks which can cause a delay. Do you have the cache dirs plugin installed? Quote Link to comment
warham Posted November 17, 2018 Share Posted November 17, 2018 (edited) dynamix cache dr but its disabled. I will let recycble bin sit for a while and It did eventually come up although it says its disabled. ill play with it from there. thank you. Edited November 17, 2018 by warham Quote Link to comment
dlandon Posted November 17, 2018 Author Share Posted November 17, 2018 7 hours ago, warham said: dynamix cache dr but its disabled. I will let recycble bin sit for a while and It did eventually come up although it says its disabled. ill play with it from there. thank you. I've updated the plugin to time out if it takes too long to calculate the recycle bin size so it doesn't hang so long. 1 Quote Link to comment
dlandon Posted November 18, 2018 Author Share Posted November 18, 2018 There is a new version available that allows browsing individual shares from the 'Shares' tab. I've also done some more work on time outs when determining the recycle bin sizes takes too long. 1 Quote Link to comment
dlandon Posted November 18, 2018 Author Share Posted November 18, 2018 On 11/17/2018 at 7:47 AM, warham said: dynamix cache dr but its disabled. I will let recycble bin sit for a while and It did eventually come up although it says its disabled. ill play with it from there. thank you. @warham Can you update to the latest version (today) and then go to the recycle bin shares tab? Let me know if there are any '?' on any share sizes. A '?' is shown if it takes too long to get the recycle bin size. My suspicion is that the delay is being caused by one or more shares having a very large number of files. Probably from a downloader or torrent. I want to get to the bottom of this because a large number of files going to the recycle bin is thrashing the recycle bin and the array. The solution is to exclude the share or certain file types. Having a large number of files in the recycle bin is difficult to navigate and unwieldy. Quote Link to comment
warham Posted November 18, 2018 Share Posted November 18, 2018 (edited) 10 minutes ago, dlandon said: @warham Can you update to the latest version (today) and then go to the recycle bin shares tab? Let me know if there are any '?' on any share sizes. A '?' is shown if it takes too long to get the recycle bin size. My suspicion is that the delay is being caused by one or more shares having a very large number of files. Probably from a downloader or torrent. I want to get to the bottom of this because a large number of files going to the recycle bin is thrashing the recycle bin and the array. The solution is to exclude the share or certain file types. Having a large number of files in the recycle bin is difficult to navigate and unwieldy. Once it finally opened I emptied the trash so there is nothing in there, if I am looking at the location your asking about. It seems to be working. Maybe next time just don't let recycle build up so much? Thanks for the reply. Edited November 18, 2018 by warham Quote Link to comment
wgstarks Posted November 18, 2018 Share Posted November 18, 2018 Getting an invalid url error trying to install the most recent update. plugin: updating: recycle.bin.plg plugin: downloading: "https://github.com/dlandon/recycle.bin/raw/master/recycle.bin-2018.11.18a.tgz" ... failed (Invalid URL / Server error response) plugin: wget: "https://github.com/dlandon/recycle.bin/raw/master/recycle.bin-2018.11.18a.tgz" download failure (Invalid URL / Server error response) DONE Quote Link to comment
dlandon Posted November 18, 2018 Author Share Posted November 18, 2018 (edited) 1 minute ago, wgstarks said: Getting an invalid url error trying to install the most recent update. plugin: updating: recycle.bin.plg plugin: downloading: "https://github.com/dlandon/recycle.bin/raw/master/recycle.bin-2018.11.18a.tgz" ... failed (Invalid URL / Server error response) plugin: wget: "https://github.com/dlandon/recycle.bin/raw/master/recycle.bin-2018.11.18a.tgz" download failure (Invalid URL / Server error response) DONE Just fixed it. Edited November 18, 2018 by dlandon Quote Link to comment
wgstarks Posted November 18, 2018 Share Posted November 18, 2018 1 minute ago, dlandon said: Just fixed it. Now i get bad MD5. Quote Link to comment
dlandon Posted November 18, 2018 Author Share Posted November 18, 2018 (edited) 1 hour ago, warham said: Once it finally opened I emptied the trash so there is nothing in there, if I am looking at the location your asking about. It seems to be working. Maybe next time just don't let recycle build up so much? Thanks for the reply. Be sure to set "Remove Aged Files on Schedule?" to 'Yes' to be sure the recycle bin does not grow too large. EDIT: A large recycle bin does not really have much value because it takes so long to find things. Edited November 18, 2018 by dlandon Quote Link to comment
wgstarks Posted November 18, 2018 Share Posted November 18, 2018 2 minutes ago, wgstarks said: Now i get bad MD5. Working now. 6th times the charm.😁 Quote Link to comment
dlandon Posted November 18, 2018 Author Share Posted November 18, 2018 Just now, wgstarks said: Working now. 6th times the charm.😁 Sometimes GitHub updates are delayed. Quote Link to comment
1812 Posted January 1, 2019 Share Posted January 1, 2019 How long is it suppose to take for the recycle bin to load and unload at array start/stop. I feel like me is taking longer and longer... Quote Link to comment
dlandon Posted January 1, 2019 Author Share Posted January 1, 2019 1 hour ago, 1812 said: How long is it suppose to take for the recycle bin to load and unload at array start/stop. I feel like me is taking longer and longer... Do you mean start and stop? There really isn't anything to load and unload. Quote Link to comment
1812 Posted January 1, 2019 Share Posted January 1, 2019 1 hour ago, dlandon said: Do you mean start and stop? There really isn't anything to load and unload. Yeah, when I boot up my server, it takes what feels like 1-2 minutes just loading the recycling bin, and the same stopping. actually, looking at the log, I think it's just displaying that it is starting the recycle bin, does it, but getting hung on auto-mounting (and failing to mount) remote disks via unassigned devices... so disregard for now. Quote Link to comment
Can0n Posted January 29, 2019 Share Posted January 29, 2019 Hello @dlandon I am having some issues with this plugin on unRaid 6.7.0 rc2 (wasnt paying attention on rc1 sorry) I run three unraid server all with the recycle bin plugin and a couple shares mapped (using unassigned devices) from and two each ill try and explain the server names are this Thor Sif Freya Thor has two mapped shares /mnt/disks/Sif_Backup and /mnt/disks/Freya_Media Freya has one mapped back to Thor with /mnt/disks/THOR_Media the issue is if i delete files on Freya both Thor and Freya see the same recycle bin size. and vice versa if i delete on thor Freya see the files in its recycle bin, if the files reside on Thor and i empty on Freya both recycle bins empty I have use unassigned devices set to no on all server and even set the shares mounted to be excluded but both still show each others and combined recycle bin can you take a look please and if you need anything else let em know Quote Link to comment
dlandon Posted January 29, 2019 Author Share Posted January 29, 2019 3 hours ago, Can0nfan said: Hello @dlandon I am having some issues with this plugin on unRaid 6.7.0 rc2 (wasnt paying attention on rc1 sorry) I run three unraid server all with the recycle bin plugin and a couple shares mapped (using unassigned devices) from and two each ill try and explain the server names are this Thor Sif Freya Thor has two mapped shares /mnt/disks/Sif_Backup and /mnt/disks/Freya_Media Freya has one mapped back to Thor with /mnt/disks/THOR_Media the issue is if i delete files on Freya both Thor and Freya see the same recycle bin size. and vice versa if i delete on thor Freya see the files in its recycle bin, if the files reside on Thor and i empty on Freya both recycle bins empty I have use unassigned devices set to no on all server and even set the shares mounted to be excluded but both still show each others and combined recycle bin can you take a look please and if you need anything else let em know If you are sharing UD shares among the servers, the Recycle Bin on those shares will also show up on the other servers. Can you show screen shots of the Recycle Bin settings and the 'Shares' tab on one of the servers? Quote Link to comment
Can0n Posted January 30, 2019 Share Posted January 30, 2019 20 hours ago, dlandon said: If you are sharing UD shares among the servers, the Recycle Bin on those shares will also show up on the other servers. Can you show screen shots of the Recycle Bin settings and the 'Shares' tab on one of the servers? Hi I would love to but i downgraded one of my servers back to 6.6.6 and now i cant mount any shares from 6.7.0 rc2 and the recyle bin plugin isnt loading at all on the one i downgraded. im going to remove unassigned devices as that seems to be what hanging Recyclebin up ill try and get you screenshots once i duplicated it Quote Link to comment
Recommended Posts
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.