Problems with shared folders. Another one...

    • Problems with shared folders. Another one...

      Hey all,

      Just FYI, I have another OMV server that I've been running for several years now. I have always been able to find solutions to the very few problems I've encountered along the way. Obviously an awesome product. The issue I'm seeing seems to be fairly new since there is not much in the forum/anywhere about it. So......

      Having problems with shared folders as described in this post. I made the necessary changes to /usr/share/openmediavault/mkconf/system.d/sharedfolders but it apparently did not resolve the problem.

      I read the same threads mentioned in that post and I do have the VirtualBox plugin installed with a VM running. OVM was installed several days back and updated along the way. Created several shared folders but started seeing problems creating or removing them yesterday. Turning VirtualBox off seems to satisfy things but then I see issues trying to turn VirtualBox back on. Actually rebuilt the VM and used a different shared folder for VirtualBox. None of that helped.

      Here's the related commands asked for in the above thread:

      Source Code

      1. root@shop:/usr/share/openmediavault/mkconf/systemd.d# systemctl cat sharedfolders-VirtualMachines.mount
      2. # /etc/systemd/system/sharedfolders-VirtualMachines.mount
      3. # This configuration file is auto-generated.
      4. [Unit]
      5. Description=Mount shared folder VirtualMachines to /sharedfolders/VirtualMachines
      6. DefaultDependencies=no
      7. After=zfs-mount.service
      8. Conflicts=umount.target
      9. RequiresMountsFor=/srv/dev-disk-by-label-NASDataDisk
      10. AssertPathIsDirectory=/srv/dev-disk-by-label-NASDataDisk/VirtualMachines
      11. AssertPathIsDirectory=/sharedfolders
      12. AssertPathIsMountPoint=/srv/dev-disk-by-label-NASDataDisk
      13. [Mount]
      14. What=/srv/dev-disk-by-label-NASDataDisk/VirtualMachines
      15. Where=/sharedfolders/VirtualMachines
      16. Type=none
      17. Options=bind,nofail
      18. [Install]
      19. WantedBy=local-fs.target
      Display All
      and:

      Source Code

      1. root@shop:/usr/share/openmediavault/mkconf/systemd.d# ls -alh /srv
      2. total 20K
      3. drwxr-xr-x 5 root root 4.0K Sep 21 11:35 .
      4. drwxr-xr-x 24 root root 4.0K Sep 20 14:33 ..
      5. drwxr-xr-x 19 root root 4.0K Sep 25 06:39 dev-disk-by-label-NASDataDisk
      6. drwxr-xr-x 3 root root 4.0K Sep 21 09:32 dev-disk-by-label-NASDataDiskBkup
      7. drwxr-xr-x 2 ftp nogroup 4.0K Sep 20 14:19 ftp
      and:

      Source Code

      1. root@shop:/usr/share/openmediavault/mkconf/systemd.d# ls -alh /sharedfolders
      2. total 60K
      3. drwxr-xr-x 15 root root 4.0K Sep 25 06:40 .
      4. drwxr-xr-x 24 root root 4.0K Sep 20 14:33 ..
      5. drwxrwsr-x 3 root users 4.0K Sep 24 14:02 Backups
      6. drwxrwsr-x 2 root users 4.0K Sep 21 19:00 Books
      7. drwxrwsr-x 2 root users 4.0K Sep 21 14:16 Business
      8. drwxrwsr-x 2 root users 4.0K Sep 21 13:45 Documents
      9. drwxrwsr-x 8 root users 4.0K Sep 24 10:33 Intranet
      10. drwxrwsr-x 2 root users 4.0K Sep 21 13:52 Library
      11. drwxrwsr-x 2 root users 4.0K Sep 21 10:09 Media
      12. drwxrwsr-x 2 root users 4.0K Sep 21 13:41 Music
      13. drwxrwsr-x 2 root users 4.0K Sep 21 18:55 Photos
      14. drwxrwsr-x 3 vbox vboxusers 4.0K Sep 24 14:53 VirtualMachines
      Display All
      and:

      Source Code

      1. root@shop:/usr/share/openmediavault/mkconf/systemd.d# blkid
      2. /dev/sdb1: LABEL="NASDataDisk" UUID="53689e3a-2a58-4531-b56d-8e3b4b2cc57b" TYPE="ext4" PARTUUID="452408b3-f696-482d-a691-42694519b0e8"
      3. /dev/sda1: UUID="199f0e9b-1d72-4993-9168-e4f6c843de99" TYPE="ext4" PARTUUID="7aab434f-01"
      4. /dev/sda5: UUID="63151da7-d03a-4931-b6bd-1db3d7f86c6c" TYPE="swap" PARTUUID="7aab434f-05"
      5. /dev/sdc1: LABEL="NASDataDiskBkup" UUID="fd1543c4-e68b-4d71-ac76-c2ec7167f5d4" TYPE="ext4" PARTUUID="79df9110-28cf-48b3-89cd-e65247da344c"
      and finally:

      Source Code

      1. sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
      2. proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
      3. udev on /dev type devtmpfs (rw,nosuid,relatime,size=6074024k,nr_inodes=1518506,mode=755)
      4. devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
      5. tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=1218576k,mode=755)
      6. /dev/sda1 on / type ext4 (rw,relatime,errors=remount-ro)
      7. securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
      8. tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
      9. tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
      10. tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
      11. cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
      12. pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
      13. cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
      14. cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
      15. cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
      16. cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
      17. cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
      18. cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
      19. cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
      20. cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
      21. cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
      22. systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=29,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=11107)
      23. hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
      24. debugfs on /sys/kernel/debug type debugfs (rw,relatime)
      25. mqueue on /dev/mqueue type mqueue (rw,relatime)
      26. sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
      27. tmpfs on /tmp type tmpfs (rw,relatime)
      28. /dev/sdc1 on /srv/dev-disk-by-label-NASDataDiskBkup type ext4 (rw,noexec,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group)
      29. /dev/sdb1 on /srv/dev-disk-by-label-NASDataDisk type ext4 (rw,noexec,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group)
      30. /dev/sdb1 on /sharedfolders/VirtualMachines type ext4 (rw,noexec,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group)
      31. /dev/sdb1 on /sharedfolders/Media type ext4 (rw,noexec,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group)
      32. /dev/sdb1 on /sharedfolders/Music type ext4 (rw,noexec,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group)
      33. /dev/sdb1 on /sharedfolders/Documents type ext4 (rw,noexec,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group)
      34. /dev/sdb1 on /sharedfolders/Library type ext4 (rw,noexec,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group)
      35. /dev/sdb1 on /sharedfolders/Backups type ext4 (rw,noexec,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group)
      36. /dev/sdb1 on /sharedfolders/Business type ext4 (rw,noexec,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group)
      37. /dev/sdb1 on /sharedfolders/Intranet type ext4 (rw,noexec,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group)
      38. /dev/sdb1 on /sharedfolders/Photos type ext4 (rw,noexec,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group)
      39. /dev/sdb1 on /sharedfolders/Books type ext4 (rw,noexec,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group)
      Display All

      Thanks, David
    • What is the output if you execute the following commands:

      Source Code

      1. # systemctl daemon-reload
      2. # systemctl restart sharedfolders-VirtualMachines.mount
      3. # systemctl status sharedfolders-VirtualMachines.mount
      Absolutely no support through PM!

      I must not fear.
      Fear is the mind-killer.
      Fear is the little-death that brings total obliteration.
      I will face my fear.
      I will permit it to pass over me and through me.
      And when it has gone past I will turn the inner eye to see its path.
      Where the fear has gone there will be nothing.
      Only I will remain.

      Litany against fear by Bene Gesserit
    • Here you go...

      systemctl daemon-reload returned nothing... Blank line.

      Source Code

      1. root@shop:/usr/share/openmediavault/mkconf/systemd.d# systemctl restart sharedfolders-VirtualMachines.mount
      2. Job for sharedfolders-VirtualMachines.mount failed.
      3. See "systemctl status sharedfolders-VirtualMachines.mount" and "journalctl -xe" for details.
      and:

      Source Code

      1. root@shop:/usr/share/openmediavault/mkconf/systemd.d# systemctl status sharedfolders-VirtualMachines.mount
      2. â sharedfolders-VirtualMachines.mount - Mount shared folder VirtualMachines to /sharedfolders/VirtualMachines
      3. Loaded: loaded (/etc/systemd/system/sharedfolders-VirtualMachines.mount; enabled; vendor preset: enabled)
      4. Active: active (mounted) (Result: exit-code) since Tue 2018-09-25 09:50:20 CDT; 10s ago
      5. Where: /sharedfolders/VirtualMachines
      6. What: /dev/sdb1
      7. Process: 7275 ExecUnmount=/bin/umount /sharedfolders/VirtualMachines (code=exited, status=32)
      8. Tasks: 0 (limit: 4915)
      9. CGroup: /system.slice/sharedfolders-VirtualMachines.mount
      10. Sep 25 06:41:14 shop systemd[1]: Mounting Mount shared folder VirtualMachines to /sharedfolders/VirtualMachines...
      11. Sep 25 06:41:14 shop systemd[1]: Mounted Mount shared folder VirtualMachines to /sharedfolders/VirtualMachines.
      12. Sep 25 06:42:19 shop systemd[1]: Unmounting Mount shared folder VirtualMachines to /sharedfolders/VirtualMachines...
      13. Sep 25 06:42:19 shop systemd[1]: sharedfolders-VirtualMachines.mount: Mount process exited, code=exited status=32
      14. Sep 25 06:42:19 shop systemd[1]: Failed unmounting Mount shared folder VirtualMachines to /sharedfolders/VirtualMachines.
      15. Sep 25 09:50:20 shop systemd[1]: Unmounting Mount shared folder VirtualMachines to /sharedfolders/VirtualMachines...
      16. Sep 25 09:50:20 shop systemd[1]: sharedfolders-VirtualMachines.mount: Mount process exited, code=exited status=32
      17. Sep 25 09:50:20 shop systemd[1]: Failed unmounting Mount shared folder VirtualMachines to /sharedfolders/VirtualMachines.
      Display All

      Thanks, David
    • Are there any processes that are using the shared folder '/sharedfolders/VirtualMachines'? Maybe the virtual box plugin uses that directory (which is forbidden for plugins). I can not say anything about that because i do not maintain this plugin.
      Absolutely no support through PM!

      I must not fear.
      Fear is the mind-killer.
      Fear is the little-death that brings total obliteration.
      I will face my fear.
      I will permit it to pass over me and through me.
      And when it has gone past I will turn the inner eye to see its path.
      Where the fear has gone there will be nothing.
      Only I will remain.

      Litany against fear by Bene Gesserit
    • Here's something that may or may not help...

      I tried to delete the shared folder Music and when I went to Apply the change I received this error. Just before trying to remove the Music shared folder I had tried to remove the Documents folder and got an error referencing a different shared folder in the error. Hope that makes sense.

      Source Code

      1. Error #0:
      2. OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; systemctl restart 'sharedfolders-Documents.mount' 2>&1' with exit code '1': Assertion failed on job for sharedfolders-Documents.mount. in /usr/share/php/openmediavault/system/process.inc:182
      3. Stack trace:
      4. #0 /usr/share/php/openmediavault/system/systemctl.inc(86): OMV\System\Process->execute(Array, 1)
      5. #1 /usr/share/php/openmediavault/system/systemctl.inc(160): OMV\System\SystemCtl->exec('restart', NULL, false)
      6. #2 /usr/share/openmediavault/engined/module/sharedfolders.inc(66): OMV\System\SystemCtl->restart()
      7. #3 /usr/share/openmediavault/engined/rpc/config.inc(194): OMVModuleSharedfolders->startService()
      8. #4 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)
      9. #5 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
      10. #6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(149): OMV\Rpc\ServiceAbstract->callMethod('applyChanges', Array, Array)
      11. #7 /usr/share/php/openmediavault/rpc/serviceabstract.inc(565): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}('/tmp/bgstatusTj...', '/tmp/bgoutputOr...')
      12. #8 /usr/share/php/openmediavault/rpc/serviceabstract.inc(159): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
      13. #9 /usr/share/openmediavault/engined/rpc/config.inc(213): OMV\Rpc\ServiceAbstract->callMethodBg('applyChanges', Array, Array)
      14. #10 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array)
      15. #11 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
      16. #12 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('applyChangesBg', Array, Array)
      17. #13 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Config', 'applyChangesBg', Array, Array, 1)
      18. #14 {main}
      Display All

      Thanks, David
    • Please post the output of

      Shell-Script

      1. # systemctl status 'sharedfolders-Documents.mount'
      Absolutely no support through PM!

      I must not fear.
      Fear is the mind-killer.
      Fear is the little-death that brings total obliteration.
      I will face my fear.
      I will permit it to pass over me and through me.
      And when it has gone past I will turn the inner eye to see its path.
      Where the fear has gone there will be nothing.
      Only I will remain.

      Litany against fear by Bene Gesserit
    • In the VirtualBox plugin it is simply listed as the "VM directory" "The location where VirtualBox stores its virtual machines."

      If it matters, Pi-hole, NSD and Unbound are running on the VM. (OK, I stopped the VM and it made no difference.)

      Source Code

      1. root@shop:/usr/share/openmediavault/mkconf/systemd.d# ps aux | grep virtual
      2. vbox 633 0.0 0.1 673396 23708 ? Ssl 06:41 0:00 /usr/lib/virtualbox/vboxwebsrv --host 127.0.0.1 --port 18083
      3. vbox 878 0.0 0.1 164312 13424 ? S 06:41 0:02 /usr/lib/virtualbox/VBoxXPCOMIPCD
      4. vbox 1005 0.0 0.1 599344 22100 ? Sl 06:41 0:08 /usr/lib/virtualbox/VBoxSVC --auto-shutdown
      5. vbox 1114 2.4 2.1 1919040 264496 ? Sl 06:41 5:07 /usr/lib/virtualbox/VBoxHeadless --comment Unbound DNS --startvm 9b47aaf8-81b1-40cc-8f8a-941e3b5cd383 --vrde config
      6. openmed+ 1614 0.0 0.0 258612 6772 ? S 06:41 0:00 php-fpm: pool openmediavault-virtualbox
      7. openmed+ 1615 0.0 0.0 258612 6772 ? S 06:41 0:00 php-fpm: pool openmediavault-virtualbox
      8. root 11333 0.0 0.0 12788 984 pts/0 S+ 10:08 0:00 grep virtual
    • I turned off the VirtualBox plugin and got the following error when I went to remove a shared folder... The folder referenced is "Documents" which I had tried to remove earlier.


      Source Code

      1. root@shop:/usr/share/openmediavault/mkconf/systemd.d# systemctl status sharedfolders-Documents.mount
      2. â sharedfolders-Documents.mount - Mount shared folder Documents to /sharedfolders/Documents
      3. Loaded: loaded (/etc/systemd/system/sharedfolders-Documents.mount; enabled; vendor preset: enabled)
      4. Active: inactive (dead)
      5. Assert: start assertion failed at Tue 2018-09-25 10:20:26 CDT; 31s ago
      6. AssertPathIsDirectory=/srv/dev-disk-by-label-NASDataDisk/Documents was not met
      7. Where: /sharedfolders/Documents
      8. What: /srv/dev-disk-by-label-NASDataDisk/Documents
      9. Sep 25 10:00:01 shop systemd[1]: Unmounting Mount shared folder Documents to /sharedfolders/Documents...
      10. Sep 25 10:00:01 shop systemd[1]: Unmounted Mount shared folder Documents to /sharedfolders/Documents.
      11. Sep 25 10:01:44 shop systemd[1]: sharedfolders-Documents.mount: Starting requested but asserts failed.
      12. Sep 25 10:01:44 shop systemd[1]: Assertion failed for Mount shared folder Documents to /sharedfolders/Documents.
      13. Sep 25 10:01:58 shop systemd[1]: sharedfolders-Documents.mount: Starting requested but asserts failed.
      14. Sep 25 10:01:58 shop systemd[1]: Assertion failed for Mount shared folder Documents to /sharedfolders/Documents.
      15. Sep 25 10:17:32 shop systemd[1]: sharedfolders-Documents.mount: Starting requested but asserts failed.
      16. Sep 25 10:17:32 shop systemd[1]: Assertion failed for Mount shared folder Documents to /sharedfolders/Documents.
      17. Sep 25 10:20:26 shop systemd[1]: sharedfolders-Documents.mount: Starting requested but asserts failed.
      18. Sep 25 10:20:26 shop systemd[1]: Assertion failed for Mount shared folder Documents to /sharedfolders/Documents.
      Display All
      Thanks, David
    • Sorry, here's the error message when I went to apply the changes.

      Source Code

      1. Error #0:
      2. OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; systemctl restart 'sharedfolders-Documents.mount' 2>&1' with exit code '1': Assertion failed on job for sharedfolders-Documents.mount. in /usr/share/php/openmediavault/system/process.inc:182
      3. Stack trace:
      4. #0 /usr/share/php/openmediavault/system/systemctl.inc(86): OMV\System\Process->execute(Array, 1)
      5. #1 /usr/share/php/openmediavault/system/systemctl.inc(160): OMV\System\SystemCtl->exec('restart', NULL, false)
      6. #2 /usr/share/openmediavault/engined/module/sharedfolders.inc(66): OMV\System\SystemCtl->restart()
      7. #3 /usr/share/openmediavault/engined/rpc/config.inc(194): OMVModuleSharedfolders->startService()
      8. #4 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)
      9. #5 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
      10. #6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(149): OMV\Rpc\ServiceAbstract->callMethod('applyChanges', Array, Array)
      11. #7 /usr/share/php/openmediavault/rpc/serviceabstract.inc(565): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}('/tmp/bgstatuskU...', '/tmp/bgoutput9Z...')
      12. #8 /usr/share/php/openmediavault/rpc/serviceabstract.inc(159): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
      13. #9 /usr/share/openmediavault/engined/rpc/config.inc(213): OMV\Rpc\ServiceAbstract->callMethodBg('applyChanges', Array, Array)
      14. #10 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array)
      15. #11 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
      16. #12 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('applyChangesBg', Array, Array)
      17. #13 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Config', 'applyChangesBg', Array, Array, 1)
      18. #14 {main}
      Display All
      Thanks, David
    • The problem seems to be that the shared folder directory does not exist.

      AssertPathIsDirectory=/srv/dev-disk-by-label-NASDataDisk/Documents was not met
      Absolutely no support through PM!

      I must not fear.
      Fear is the mind-killer.
      Fear is the little-death that brings total obliteration.
      I will face my fear.
      I will permit it to pass over me and through me.
      And when it has gone past I will turn the inner eye to see its path.
      Where the fear has gone there will be nothing.
      Only I will remain.

      Litany against fear by Bene Gesserit
    • Hey again,

      Fixed the problem with the missing Documents folder... While I'm not exactly sure what happened my best guess would be that when I was trying to remove a shared folder (like Documents) I went into the box (ssh) and somehow munged something up BEFORE I had reverted the attempted shared folder removal. Just a guess... as I don't remember changing anything except the sharedfolders file.

      Anyways.... Back to the same error message as before. Got it when I hit the Apply button after removing a shared folder...

      Update: Just looked through the box and see that it actually did remove the shared folder... missing from /srv/dev-disk-by-label-NASDataDisk... and from /etc/systemd/system... and the link in /etc/systemd/system/local-fs.target.wants...
      However, it did NOT remove it from the web GUI.

      Source Code

      1. Error #0:
      2. OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; systemctl restart 'sharedfolders-VirtualMachines.mount' 2>&1' with exit code '1': Job for sharedfolders-VirtualMachines.mount failed.
      3. See "systemctl status sharedfolders-VirtualMachines.mount" and "journalctl -xe" for details. in /usr/share/php/openmediavault/system/process.inc:182
      4. Stack trace:
      5. #0 /usr/share/php/openmediavault/system/systemctl.inc(86): OMV\System\Process->execute(Array, 1)
      6. #1 /usr/share/php/openmediavault/system/systemctl.inc(160): OMV\System\SystemCtl->exec('restart', NULL, false)
      7. #2 /usr/share/openmediavault/engined/module/sharedfolders.inc(66): OMV\System\SystemCtl->restart()
      8. #3 /usr/share/openmediavault/engined/rpc/config.inc(194): OMVModuleSharedfolders->startService()
      9. #4 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)
      10. #5 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
      11. #6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(149): OMV\Rpc\ServiceAbstract->callMethod('applyChanges', Array, Array)
      12. #7 /usr/share/php/openmediavault/rpc/serviceabstract.inc(565): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}('/tmp/bgstatusb3...', '/tmp/bgoutput7n...')
      13. #8 /usr/share/php/openmediavault/rpc/serviceabstract.inc(159): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
      14. #9 /usr/share/openmediavault/engined/rpc/config.inc(213): OMV\Rpc\ServiceAbstract->callMethodBg('applyChanges', Array, Array)
      15. #10 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array)
      16. #11 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
      17. #12 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('applyChangesBg', Array, Array)
      18. #13 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Config', 'applyChangesBg', Array, Array, 1)
      19. #14 {main}
      Display All

      The post was edited 1 time, last by drouth ().

    • Hey again,

      Just to update some findings... The new sharedfolders file is still in use.

      When I try to delete a shared folder AND it's contents and click on the Apply button... I get the error and from there the only real choice is to hit the Revert button. OMV apparently DOES delete the folder under /srv/dev--disk-by-label-NASDataDisk and under /sharedfolders... It doesn't re-create it once the Revert button is applied. Both the sharedfolders-FOLDERNAME.mount and the link in /etc/systemd/system/local-fs.target.wants are re-created.

      If I manually recreate the folders I can so systemctl start sharedfolders-FOLDERNAME.mount and then systemctl status sharedfolders-FOLDERNAME.mount shows Active/mounted.

      I'm guessing that may have been why I got the AssertPathIsDirectory error earlier.

      Thanks, David
    • Another update...

      I removed the VM and then the VirtualBox plugin... Then I manually removed ALL the shared folders... Rebooted...

      Everything is working fine so far... Able to create and remove shared folders...

      Installed the VirtualBox plugin and could still add and remove shared folders. I haven't created a VM yet but that's coming next.

      Using the new sharedfolders file.

      Not sure what went wrong but life is good again...

      Best, David