Recycle Bin Samba NS8

Hi @gio.pelli

and welcome to NethServer Community.

Did you setup the include.conf file or did you run the net conf setparm command or both?
Maybe you could share the file or the commands you used.

Could you please share the error message.

I’m going to retry the recycle bin setup later today.

EDIT:

It seems both methods aren’t working anymore but the net conf commands create an error in the cluster-admin Shared folders page.

To get back to a working page in cluster admin just remove the params from the testfolder section with following commands:

net conf delparm testfolder "vfs objects"
net conf delparm testfolder recycle:exclude_dir
net conf delparm testfolder recycle:repository
net conf delparm testfolder recycle:versions
net conf delparm testfolder recycle:keeptree
net conf delparm testfolder recycle:touch
net conf delparm testfolder recycle:directory_mode
net conf delparm testfolder recycle:exclude

Now cluster-admin should work again.
I need to check why it isn’t working anymore…

This is the error:

option 'recycle' in section 'testfolder' already exists

Yes but there are different subparams which should be allowed. @davidep do you have an idea why the samba registry entries aren’t working anymore?

This is the error trace:

Traceback (most recent call last):
  File "/home/samba1/.config/actions/list-shares/50list_shares", line 75, in <module>
    ocfg.read_file(hconf.stdout, 'samba-registry-conf')
  File "/usr/lib64/python3.11/configparser.py", line 734, in read_file
    self._read(f, source)
  File "/usr/lib64/python3.11/configparser.py", line 1112, in _read
    raise DuplicateOptionError(sectname, optname,
configparser.DuplicateOptionError: While reading from 'samba-registry-conf' [line  7]: option 'recycle' in section 'testfolder' already exists