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:


    and:

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

    and:

    and:

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

    and finally:


    Thanks, David

  • Here you go...


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


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

    and:


    Thanks, David

  • 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.



    Thanks, David

  • 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.)

    Code
    root@shop:/usr/share/openmediavault/mkconf/systemd.d# ps aux | grep virtual
    vbox       633  0.0  0.1 673396 23708 ?        Ssl  06:41   0:00 /usr/lib/virtualbox/vboxwebsrv --host 127.0.0.1 --port 18083
    vbox       878  0.0  0.1 164312 13424 ?        S    06:41   0:02 /usr/lib/virtualbox/VBoxXPCOMIPCD
    vbox      1005  0.0  0.1 599344 22100 ?        Sl   06:41   0:08 /usr/lib/virtualbox/VBoxSVC --auto-shutdown
    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
    openmed+  1614  0.0  0.0 258612  6772 ?        S    06:41   0:00 php-fpm: pool openmediavault-virtualbox
    openmed+  1615  0.0  0.0 258612  6772 ?        S    06:41   0:00 php-fpm: pool openmediavault-virtualbox
    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.



    Thanks, David

  • Sorry, here's the error message when I went to apply the changes.

    Thanks, David

  • 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.

  • 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

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!