bobrap Posted April 13, 2015 Share Posted April 13, 2015 Both Recycle Bin and vfs_recycle are in /usr/local/emhttp/plugins/. When you say "Utilities", do you mean a directory with that name? Sorry for being so thick. Quote Link to comment
Jencryzthers Posted April 15, 2015 Share Posted April 15, 2015 Sorry for taking a bit long to respond cd /usr/local/emhttp/plugins cd vfs_recycle/ ls -l total 32 -rw-rw-rw- 1 root root 460 Apr 5 17:08 device_status.png drwxrwx--- 2 root root 80 Apr 5 17:08 event/ -rw-rw-rw- 1 root root 778 Apr 5 17:08 information.png -rw-rw-rw- 1 root root 607 Apr 5 17:08 new_config.png -rw-rw-rw- 1 root root 3520 Apr 5 17:08 vfs_empty.png -rw-rw-rw- 1 root root 3808 Apr 5 17:08 vfs_full.png -rw-rw-rw- 1 root root 5638 Apr 5 17:08 vfs_recycle.page -rw-rw-rw- 1 root root 2488 Apr 5 17:08 vfs_recycle_icon.png nano vfs_recycle.page Menu="Utilities" Icon="vfs_recycle_icon.png" Version="2015.04.01" Type="php" Title="Recycle Bin" --- <?PHP Menu option is where you specify where it will shows up. It is supposed to have couple of setting, start/stop, empty the recycle bin, etc Edit: I just noticed this section is added by Dynamix Plugins! You might have the install one of the plugins I have in the screenshot I joined or changing the category to something else to have it showing up. Try changing it to Menu="NetworkServices". Quote Link to comment
bobrap Posted April 15, 2015 Share Posted April 15, 2015 No need to apologize, I appreciate your help with this. I tried your suggestions and it seems to be working fine! Thanks very much. The only "problem" I had was accessing the recycle bin in windows explorer. Keeps asking for username/password. After doing a more thorough check, all is not well. The folders that are deleted are saved in the recycle bin, but, not the files. I seem to remember having this problem before. Quote Link to comment
Jencryzthers Posted April 15, 2015 Share Posted April 15, 2015 This depend of what you specify in your smb-extra.conf Here's what inside mine: #vfs_recycle_start #Recycle bin share [RecycleBin] path = /mnt/user/.Recycle.Bin read only = No #vfs config # Documentation http://www.samba.org/samba/docs/man/manpages-3/smb.conf.5.html # Forum topic http://lime-technology.com/forum/index.php?topic=5446.0 # %S Samba share name (which in unRaid equals the user share name), eg. Storage # %P User share full path, eg /mnt/user/Storage # %u Username of the current service, if any # To apply changes execute: /etc/rc.d/rc.samba restart # If the single custom bin solution is chosen, create the dir manually, and grant it g+rwx permissions [global] vfs objects = recycle recycle:repository = /mnt/user/.Recycle.Bin/%u/%P recycle:keeptree = Yes recycle:touch = Yes recycle:touch_mtime = Yes recycle:versions = Yes recycle:exclude = *.tmp recycle:exclude_dir = .Recycle.Bin acl allow execute always = yes #vfs_recycle_end You might want to check this: https://www.samba.org/samba/docs/man/manpages-3/smb.conf.5.html Quote Link to comment
bobrap Posted April 16, 2015 Share Posted April 16, 2015 Tried using your conf file and still the same. Folders but no files in recycle bin. Maybe time to just give up on this. Quote Link to comment
bondoo0 Posted April 17, 2015 Share Posted April 17, 2015 One thing to add, if you can't access the recycle bin share from windows, you need to add the following line (assuming you don't use user level security) to the Recycle bin share section at the top of config/plugins/vfs_recycle/config/smb-extra.conf file. guest ok = yes Quote Link to comment
smashingtool Posted April 17, 2015 Share Posted April 17, 2015 I'm getting a different issue. My files are entering the BIN folder, but the plugin itself does not recognize this and offers no way to empty the recycle bin. That's not a huge deal, but it's a tad annoying. Additionally, I have several .fuse_hidden* files that just won't stay deleted, regardless of whether or not the plugin is running, so I have no idea what's happening there. Quote Link to comment
bondoo0 Posted April 29, 2015 Share Posted April 29, 2015 Wondering if anyone else is seeing this (I'm running 6b15). On my console I keep getting these message (I'm thinking it may be because the plugin name is "Recycle Bin" with a space. Any ideas how to fix this? I assume I would just update the .plg to be something like Recycle_Bin /usr/local/sbin/emhttp_event: line 74: [: /usr/local/emhttp/plugins/Recycle: binary operator expected The line numbers listed are 61, 67, 74 and 80 Quote Link to comment
Leifgg Posted April 30, 2015 Share Posted April 30, 2015 I have noticed the same error as well. Quote Link to comment
MyKroFt Posted April 30, 2015 Share Posted April 30, 2015 I went in and edited the plg and took out the space, no more errors Myk Quote Link to comment
Leifgg Posted April 30, 2015 Share Posted April 30, 2015 I went in and edited the plg and took out the space, no more errors Myk Worked, Thanks! Quote Link to comment
bondoo0 Posted April 30, 2015 Share Posted April 30, 2015 I also had to make one additional change (besides removing the space), and that was a reference in the plg for the mount/umnount events from rc.vfs_recycle_plg to rc.vfs_plg to correct an error on startup. Quote Link to comment
EdgarWallace Posted May 5, 2015 Share Posted May 5, 2015 I went in and edited the plg and took out the space, no more errors Myk Worked, Thanks! What do you mean exactly with "took out space"? I see these messages on the console - does it cover these issues? Quote Link to comment
bondoo0 Posted May 5, 2015 Share Posted May 5, 2015 Yes, the fix covers that error. If you open the .plg, you will see the Entity name on line 4 is "Recycle Bin" In my case I changed it to "Recycle_Bin" and it got rid of that error message. You can change it to anything you want, you just need to avoid the space since unraid sees the space as the end of a parameter, and so it thinks 2 parameters are being passed to it when it only expects one,. Quote Link to comment
EdgarWallace Posted May 5, 2015 Share Posted May 5, 2015 Thanks bondo00, message is much clearer now - corrected all 3 entries and syslog is silent now Quote Link to comment
bobrap Posted May 19, 2015 Share Posted May 19, 2015 Seems I must be the only one unable to get this working. What plugin version are you installing? When I delete something the files never make it to the recycle bin. Would be nice if this was a default addon. Thanks for any help. Quote Link to comment
bondoo0 Posted May 19, 2015 Share Posted May 19, 2015 Seems I must be the only one unable to get this working. What plugin version are you installing? When I delete something the files never make it to the recycle bin. Would be nice if this was a default addon. Thanks for any help. I installed the version listed for 6.0 in this thread forked by Jencryzthers (which I modified slightly to remove some error messages that showed up on the console). If you're on Unraid 5 you should be able to use the one developed by Influencer earlier in the thread. It's just a matter of installing the .plg (either manually, or by putting it in /boot/extra and rebooting). There is no GUI that will show the deleted files, they just show up in the RecycleBin share under the original path (so typically mnt/user), then enabling the plugin under settings. The GUI is only used to specify how long the file is kept, to enable the plugin, and to enable a weekly cleanup. The GUI portion is found under Settings/vfs_recycle. To restore files, simply copy them from the RecycleBin directory back to their original location. Quote Link to comment
bobrap Posted May 20, 2015 Share Posted May 20, 2015 I think it's time for me to just give up on this. When I delete files, the directory name shows in recycle bin, but, not the files. Guess I'll just have to be extra careful. Quote Link to comment
kricker Posted June 9, 2015 Share Posted June 9, 2015 ...The GUI is only used to specify how long the file is kept, to enable the plugin, and to enable a weekly cleanup. The GUI portion is found under Settings/vfs_recycle. To restore files, simply copy them from the RecycleBin directory back to their original location. I installed teh plugin, but I do not see the VFS Recycle GUI in settings. I used this back on v5 when Influencer first made it, but this is the first time I've loaded it up in v6. I am currently running UnRaid rc5. On the plugins page it is showing as installed. Any idea what may be wrong? It's late now and I've been up for almost 24 hours. I'll dig into the log tomorrow for clues. EDIT: Well after a 3rd reboot it is showing up, but oddly now I can not enable it and press Apply. The Apply button never becomes available to press. I am able to start/stop the Recycle Bin, but I just can not change the setting and hit apply. Quote Link to comment
bondoo0 Posted June 9, 2015 Share Posted June 9, 2015 ...The GUI is only used to specify how long the file is kept, to enable the plugin, and to enable a weekly cleanup. The GUI portion is found under Settings/vfs_recycle. To restore files, simply copy them from the RecycleBin directory back to their original location. I installed teh plugin, but I do not see the VFS Recycle GUI in settings. I used this back on v5 when Influencer first made it, but this is the first time I've loaded it up in v6. I am currently running UnRaid rc5. On the plugins page it is showing as installed. Any idea what may be wrong? It's late now and I've been up for almost 24 hours. I'll dig into the log tomorrow for clues. EDIT: Well after a 3rd reboot it is showing up, but oddly now I can not enable it and press Apply. The Apply button never becomes available to press. I am able to start/stop the Recycle Bin, but I just can not change the setting and hit apply. Permissions issue? I know when I first set it up, I couldn't get the config changes to apply, so I had to manually edit the config file to empty once per week, etc. Quote Link to comment
kricker Posted June 9, 2015 Share Posted June 9, 2015 I'll check permissions on the files and see. Quote Link to comment
foo_fighter Posted July 3, 2015 Share Posted July 3, 2015 Dis you try it with crossrename? #vfs_recycle_start #Recycle bin share [RecycleBin] path = /mnt/user/.Recycle.Bin read only = No #vfs config [global] vfs objects = recycle crossrename recycle:repository = /mnt/user/.Recycle.Bin/%m/%P recycle:keeptree = Yes recycle:touch = Yes recycle:touch_mtime = Yes recycle:versions = Yes recycle:noversions = *.doc crossrename:sizelimit = 50000 recycle:exclude = *.tmp recycle:exclude_dir = .Recycle.Bin #vfs_recycle_end I think it's time for me to just give up on this. When I delete files, the directory name shows in recycle bin, but, not the files. Guess I'll just have to be extra careful. Quote Link to comment
Lacehim Posted July 26, 2015 Share Posted July 26, 2015 On 6.0.1 I'm getting this line under "recycle bin" and above status. 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(278) : eval()'d code on line 4 When you run it that disappears, but you can't modify an of the settings. If there anyone that can take on this project? Influencer is busy these days with family matters or I would ask him nicely to update it. Quote Link to comment
Lacehim Posted July 26, 2015 Share Posted July 26, 2015 Started ok anyway and the error disappear and now showing as running. I then stopped it again, and copied over the config file from my V5 version and restarted and it now has the settings I was using before The apply button wasn't active so couldn't set my preferences. It's working great, and picking up folders trees and files ok. Hopefully someone can pick it up as a project and get rid of the errors. Quote Link to comment
Lacehim Posted July 28, 2015 Share Posted July 28, 2015 Never done this before but I had a go at editing the errors in the plg on github and it didn't seem to work I tried to change the links to the vfs recycle plg with the Recycle Bin's changed to Recycle_Bin and also the vfs_recycle_plg changed to vfs_plg. All the errors on my systems have stopped since implementing these changes. running V 6.0.1 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.