Failed to delete Rock-Ons share

Brief description of the problem

Impossibilitate to delete a share

Detailed step by step instructions to reproduce the problem

Storage → Shares → pressing the trashcan button to delete a shared labeled “Rock-Ons” which resides on the ROOT pool. I’ve already removed all the snapshot from it

Web-UI screenshot

Error Traceback provided on the Web-UI

Traceback (most recent call last): File "/opt/rockstor/src/rockstor/storageadmin/views/share.py", line 379, in delete remove_share(share.pool, share.subvol_name, share.pqgroup, force=force) File "/opt/rockstor/src/rockstor/fs/btrfs.py", line 1192, in remove_share run_command([BTRFS, "subvolume", "delete", subvol], log=True) File "/opt/rockstor/src/rockstor/system/osi.py", line 289, in run_command raise CommandException(cmd, out, err, rc) system.exceptions.CommandException: Error running a command. cmd = /usr/sbin/btrfs subvolume delete /mnt2/ROOT/@/Rock-Ons/btrfs/subvolumes/94e4367178c8774e6022001bee23e326c3938eceb7d65d535c36e8c31d24f1b3. rc = 1. stdout = ['']. stderr = ['ERROR: Could not statfs: No such file or directory', '']

@sanviler Hello again

Do you still get this experience after doing a disk re-scan. Or after doing a couple of refreshes on the Shares page for example. To me this looks like the DB record of what to delete is a fraction outdated, page refreshes will force it to be updated and so it can then attempt to delete only existing subvols.

Also always good to include the Rockstor version you are experiencing a fault on, and what openSUSE Leap (or Tumbleweed) version it is running on.

Hope that helps.

2 Likes

I managed to solve that, by deleting the directory from another path (not “/mnt/Rock-Ons”), which honestly I do not clearly remember, as it was one of those moment when you try multiple random things and suddenly the problem vanquishes :S

Thanks for help!

2 Likes