BRiT Posted April 24, 2016 Share Posted April 24, 2016 I cant see any pic, but you might be navigating up to the parent directory which is /mnt/user, which is the entire contents of your array. The simple fix is don't. Quote Link to comment
dlandon Posted April 24, 2016 Author Share Posted April 24, 2016 The document looks like it is actually in the recycle bin, so at some time the document was deleted with samba. Quote Link to comment
cybrnook Posted April 24, 2016 Share Posted April 24, 2016 But that's the thing, it was never deleted (at least by me). Only uploaded once (last night) while I was typing to you originally asking about the changes. To make it even more strange, the receipt still exists where it is supposed to, and is a 332kb file. The reference in the recycle bin is a 0kb file? There are other files here in the settings page that should not exist in the recycle bin, but are there (and have the originals still existing in the array). For example, a photo I uploaded to my Photography share last week, also has a 0kb reference in the recycle bin, however the photo exists in the folder as it should (but also has this rogue 0kb copy in recycle bin). Quote Link to comment
BRiT Posted April 24, 2016 Share Posted April 24, 2016 No. The Recycle Bin plugin is correct. I see this all the time with multiple programs. What they seem to do is initially create a 0 byte file with the original filename. They then write to a new temp file, then delete the place-holder file, then rename the new temp file to the original filename. This happens exactly like this when downloading .NZB or .Torrent files from WinOS clients via web browser and writing to it from SAMBA. It also happens when Emby does media scans from WinOS clients. It seems to be how WinOS Clients operate when writing to network shares. Quote Link to comment
cybrnook Posted April 25, 2016 Share Posted April 25, 2016 Thanks BRit, that sounds like it would be the case. The computers we use in the house are windows computers, and the files could end up on the server via a multitude of different ways. For example, the photo I uploaded was downlaoded through an email in chrome, and when the save explorer popped up, I saved directly to my share. The receipt was also a receipt I had in my email (chrome again), and I "printed" it to *.pdf directly to the array etc etc... So what you are saying is that some programs take 4 x steps to get to the final destination: 1. write 0kb file with to-be file name (assume to check for duplicates?) 2. delete the 0kb file 3. write the file in some cryptic .tmp format 4. move the .tmp file to the original to-be name Got it... Thanks guys, I feel more comfortable. Was slightly worried some of my files were ending up in the recycle bin, knowing I have not combed every file prior to purging. Was nervous I may have been losing misc files here and there. Quote Link to comment
cybrnook Posted April 29, 2016 Share Posted April 29, 2016 Thanks for the Update! Again, recycle bin is a great thing to have. Quote Link to comment
markswift Posted May 6, 2016 Share Posted May 6, 2016 Superb update! Thank you. Do we specify excluded shares by name, separated by a comma? Quote Link to comment
noski Posted May 6, 2016 Share Posted May 6, 2016 I just installed this plugin for the first time and I get the following error on the Settings page: Warning: file_get_contents(/boot/config/smb-extra.conf): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/dynamix/include/DefaultPageLayout.php(292) : eval()'d code on line 16 Quote Link to comment
dlandon Posted May 6, 2016 Author Share Posted May 6, 2016 I just installed this plugin for the first time and I get the following error on the Settings page: Warning: file_get_contents(/boot/config/smb-extra.conf): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/dynamix/include/DefaultPageLayout.php(292) : eval()'d code on line 16 What version of unraid? Quote Link to comment
thomast_88 Posted May 16, 2016 Share Posted May 16, 2016 I am getting something similar on 6.2.0-beta21 Warning: file_get_contents(/boot/config/smb-extra.conf): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/dynamix/include/DefaultPageLayout.php(300) : eval()'d code on line 16 Quote Link to comment
dlandon Posted May 16, 2016 Author Share Posted May 16, 2016 Superb update! Thank you. Do we specify excluded shares by name, separated by a comma? Click on 'Help'. Quote Link to comment
dlandon Posted May 16, 2016 Author Share Posted May 16, 2016 I am getting something similar on 6.2.0-beta21 Warning: file_get_contents(/boot/config/smb-extra.conf): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/dynamix/include/DefaultPageLayout.php(300) : eval()'d code on line 16 I'm not seeing this. Quote Link to comment
dlandon Posted May 30, 2016 Author Share Posted May 30, 2016 I am getting something similar on 6.2.0-beta21 Warning: file_get_contents(/boot/config/smb-extra.conf): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/dynamix/include/DefaultPageLayout.php(300) : eval()'d code on line 16 I'm not seeing this. Found the problem. Fixed in the latest release. Quote Link to comment
Spritzup Posted May 31, 2016 Share Posted May 31, 2016 First of, awesome plugin! Thanks for taking the time to create and maintain it. The second question is in regards to excluding shares... what is the correct format to use, as it does not seem to be working for me. I've just put in "Movies,TV" but do I need to put the full path? (Help doesn't state the format). Thanks again! ~Spritz Quote Link to comment
dlandon Posted May 31, 2016 Author Share Posted May 31, 2016 First of, awesome plugin! Thanks for taking the time to create and maintain it. The second question is in regards to excluding shares... what is the correct format to use, as it does not seem to be working for me. I've just put in "Movies,TV" but do I need to put the full path? (Help doesn't state the format). Thanks again! ~Spritz Only the share names. Full paths are not needed. Quote Link to comment
thomast_88 Posted June 6, 2016 Share Posted June 6, 2016 I cannot get this plugin to work. I've attached a screenshot of my configuration, but for some reason no files i remove are inside the .Recycle.Bin folder (it's not even created). The only thing i see is some shortcuts inside /mnt/RecycleBin (but the the shortcuts points to nothing as there are no .Recycle.Bin folders in any of my shares). Quote Link to comment
trurl Posted June 6, 2016 Share Posted June 6, 2016 I cannot get this plugin to work. I've attached a screenshot of my configuration, but for some reason no files i remove are inside the .Recycle.Bin folder (it's not even created). The only thing i see is some shortcuts inside /mnt/RecycleBin (but the the shortcuts points to nothing as there are no .Recycle.Bin folders in any of my shares). How are you removing the files? This is just for files you delete over the network using SMB. Quote Link to comment
thomast_88 Posted June 7, 2016 Share Posted June 7, 2016 I cannot get this plugin to work. I've attached a screenshot of my configuration, but for some reason no files i remove are inside the .Recycle.Bin folder (it's not even created). The only thing i see is some shortcuts inside /mnt/RecycleBin (but the the shortcuts points to nothing as there are no .Recycle.Bin folders in any of my shares). How are you removing the files? This is just for files you delete over the network using SMB. Doh! Mostly through SSH (rm command) and FTP. But thanks for the clarification. Is there any way you can have like a recycle bin for rm commands? Quote Link to comment
MyKroFt Posted June 7, 2016 Share Posted June 7, 2016 Maybe a alias for rm - that instead of just deletes the file, moves it to the recyclebin folder in that share? something like (not tested - not very good at bash) alias rrm="IFS="/" read -ra PARTS <<< "$(pwd)" ; mv $0 /${PARTS[0]}/${PARTS[1]}/.Recycle.Bin/" rrm would be for recycle delete, leaving rm for perm delete looks like it might have to be made into a bash script and have the rrm alias call the bash script instead Myk Quote Link to comment
MyKroFt Posted June 7, 2016 Share Posted June 7, 2016 ok, this works /boot/scripts/rrm.sh #!/bin/bash IFS="/" read -ra PARTS <<< "$(pwd)" mv "$1" "/${PARTS[1]}/${PARTS[2]}/.Recycle.Bin/" alias rrm="/boot/scripts/rrm.sh" test on junk file to make sure Myk Quote Link to comment
EdgarWallace Posted July 20, 2016 Share Posted July 20, 2016 I do not have issues at all with this plugin but I see an error message on the system console....probably a cosmetic problem? Quote Link to comment
Henrx Posted August 18, 2016 Share Posted August 18, 2016 Hello everyone, great plugin. Just one question, is there a way to really hide the .Recycle.Bin folder? The windows recycle bin is a "protected system folder". Not "just" a hidden folder. So, you can see hidden folders, but still not the recycle bin. Which I find great. I don't want to samba share the recycle bin, because it's a simple "safety net" for users, who accidentally delete a file. They should only be restored by the admin or deleted by the cron job. I read that samba can "veto" files. This way these files/folders aren't exported at all. How can I achieve that? Thanks and best regards, Henryk Quote Link to comment
EdgarWallace Posted September 28, 2016 Share Posted September 28, 2016 I do not have issues at all with this plugin but I see an error message on the system console....probably a cosmetic problem? Is anyone having any idea? Thanks a lot. Quote Link to comment
dlandon Posted September 28, 2016 Author Share Posted September 28, 2016 I do not have issues at all with this plugin but I see an error message on the system console....probably a cosmetic problem? Is anyone having any idea? Thanks a lot. Make a change is the Recycle Bin settings and Apply. The message will go away. Quote Link to comment
EdgarWallace Posted September 29, 2016 Share Posted September 29, 2016 Thanks landon. Initially I was removing the plugin and reinstalled it without success but your guidance went well and resolved the minor issue. 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.