Can not perform any actions on shared folders

    • Can not perform any actions on shared folders

      Hi all!

      I try to create new shared folder or remove the one that already exists, but get the same error:

      Shell-Script

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

      The comand "systemctl status sharedfolders-p.mount" show:

      Shell-Script

      1. root@Pablo-NAS:~# systemctl status sharedfolders-p.mount
      2. ● sharedfolders-p.mount - Mount shared folder p to /sharedfolders/p
      3. Loaded: loaded (/etc/systemd/system/sharedfolders-p.mount; enabled; vendor preset: enabled)
      4. Active: active (mounted) (Result: exit-code) since Mon 2018-09-24 21:38:30 MSK; 14min ago
      5. Where: /sharedfolders/p
      6. What: /dev/md127
      7. Tasks: 0 (limit: 4915)
      8. Memory: 256.0K
      9. CPU: 7ms
      10. CGroup: /system.slice/sharedfolders-p.mount
      11. сен 24 19:54:16 Pablo-NAS systemd[1]: Failed unmounting Mount shared folder p to /sharedfolders/p.
      12. сен 24 21:26:41 Pablo-NAS systemd[1]: Unmounting Mount shared folder p to /sharedfolders/p...
      13. сен 24 21:26:41 Pablo-NAS systemd[1]: sharedfolders-p.mount: Mount process exited, code=exited status=32
      14. сен 24 21:26:41 Pablo-NAS systemd[1]: Failed unmounting Mount shared folder p to /sharedfolders/p.
      15. сен 24 21:29:54 Pablo-NAS systemd[1]: Unmounting Mount shared folder p to /sharedfolders/p...
      16. сен 24 21:29:54 Pablo-NAS systemd[1]: sharedfolders-p.mount: Mount process exited, code=exited status=32
      17. сен 24 21:29:54 Pablo-NAS systemd[1]: Failed unmounting Mount shared folder p to /sharedfolders/p.
      18. сен 24 21:38:30 Pablo-NAS systemd[1]: Unmounting Mount shared folder p to /sharedfolders/p...
      19. сен 24 21:38:30 Pablo-NAS systemd[1]: sharedfolders-p.mount: Mount process exited, code=exited status=32
      20. сен 24 21:38:30 Pablo-NAS systemd[1]: Failed unmounting Mount shared folder p to /sharedfolders/p.
      Display All
      I see that thre are issue in "Where: /sharedfolders/p What: /dev/md127", but this folder is present, it's not empty, i didn't do anything with this folder, and i don't want to do anything with this folder. I want to remove another folder and create yet another folder.

      I already read this treads: forum.openmediavault.org/index…dit-or-change-privileges/? , forum.openmediavault.org/index…ete-or-add-sharedfolders/? , forum.openmediavault.org/index…n-t-create-shared-folder/?
      but i don't have installed VirtualBox :( And all file systems are mounted and present in system.
      I will be grateful for any help.
      :whistling:
    • Please post the output of the following commands:

      # systemctl cat sharedfolders-p.mount
      # ls -alh /srv
      # ls -alh /sharedfolders
      # blkid
      # 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
    • the output of the commands

      here it is:


      Shell-Script

      1. # systemctl cat sharedfolders-p.mount
      2. # /etc/systemd/system/sharedfolders-p.mount
      3. # This configuration file is auto-generated.
      4. [Unit]
      5. Description=Mount shared folder p to /sharedfolders/p
      6. DefaultDependencies=no
      7. After=zfs-mount.service
      8. Conflicts=umount.target
      9. RequiresMountsFor=/srv/dev-disk-by-label-Raid4gb/p /sharedfolders
      10. [Mount]
      11. What=/srv/dev-disk-by-label-Raid4gb/p
      12. Where=/sharedfolders/p
      13. Type=none
      14. Options=bind,nofail
      15. [Install]
      16. WantedBy=local-fs.target
      Display All

      Shell-Script

      1. #ls -alh /srv
      2. итого 24K
      3. drwxr-xr-x 6 root root 4,0K сен 24 18:40 .
      4. drwxr-xr-x 24 root root 4,0K сен 22 14:21 ..
      5. drwxr-xr-x 9 root root 4,0K сен 24 19:42 dev-disk-by-label-New4Tb
      6. drwxr-xr-x 8 root root 4,0K сен 24 19:07 dev-disk-by-label-Raid2gb
      7. drwxr-xr-x 9 root root 4,0K сен 23 21:02 dev-disk-by-label-Raid4gb
      8. drwxr-xr-x 2 ftp nogroup 4,0K сен 22 14:11 ftp

      Shell-Script

      1. # blkid
      2. /dev/sda1: UUID="42bf48e2-3ec9-43c5-b0f9-073f1add5961" TYPE="ext4" PARTUUID="a7b77723-01"
      3. /dev/sda5: UUID="ff380f7f-863f-435b-b6df-38200597ccb9" TYPE="swap" PARTUUID="a7b77723-05"
      4. /dev/sdb: UUID="ca25f3df-4d43-04f8-28e2-2c6a48358e65" UUID_SUB="60d1efad-7377-765c-4dbe-4486dec7821d" LABEL="pablo-storage:Seagate4TB" TYPE="linux_raid_member"
      5. /dev/sdc: UUID="ca25f3df-4d43-04f8-28e2-2c6a48358e65" UUID_SUB="e25fbebf-875c-cf8b-6f72-88d8b392f88f" LABEL="pablo-storage:Seagate4TB" TYPE="linux_raid_member"
      6. /dev/sde: UUID="009f23fa-ba79-9d20-dd13-202f8e34c942" UUID_SUB="892770f9-925c-61dd-47fe-52911819726b" LABEL="Pablo-NAS:New4TB" TYPE="linux_raid_member"
      7. /dev/sdd: UUID="009f23fa-ba79-9d20-dd13-202f8e34c942" UUID_SUB="6db9fcc7-c5d1-1de6-7288-99d3a4bf1c18" LABEL="Pablo-NAS:New4TB" TYPE="linux_raid_member"
      8. /dev/sdf: UUID="edca6ad0-a343-3513-1940-7fd01b1296b3" UUID_SUB="35387c42-c6ea-775f-9d35-0b166f8f0689" LABEL="Pablo-NAS:2Tb" TYPE="linux_raid_member"
      9. /dev/md0: LABEL="New4Tb" UUID="4a079167-656a-4e42-a90c-65abb958a7ae" TYPE="ext4"
      10. /dev/sdg: UUID="edca6ad0-a343-3513-1940-7fd01b1296b3" UUID_SUB="db2427e1-5dc0-c6e3-67ef-539e09f99b5a" LABEL="Pablo-NAS:2Tb" TYPE="linux_raid_member"
      11. /dev/md127: LABEL="Raid4gb" UUID="68f5bcb8-f184-43b6-b413-d6ebee90e9d8" TYPE="ext4"
      12. /dev/md1: LABEL="Raid2gb" UUID="1977e404-051e-4838-a866-34f7a5d602b4" TYPE="ext4"
      Display All
      The result of "mount" in attached file (it's too long to paste it via text).
      Files
      • mount.txt

        (6.25 kB, downloaded 7 times, last: )
      :whistling:

      The post was edited 1 time, last by palvardeich: added file ().

    • Source Code

      1. # mount
      2. sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
      3. proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
      4. udev on /dev type devtmpfs (rw,nosuid,relatime,size=8130396k,nr_inodes=2032599,mode=755)
      5. devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
      6. tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=1629852k,mode=755)
      7. /dev/sda1 on / type ext4 (rw,relatime,errors=remount-ro)
      8. securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
      9. tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
      10. tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
      11. tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
      12. cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
      13. pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
      14. cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
      15. cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
      16. cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
      17. cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
      18. cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
      19. cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
      20. cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
      21. cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
      22. cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
      23. systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=35,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=2508)
      24. debugfs on /sys/kernel/debug type debugfs (rw,relatime)
      25. hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
      26. mqueue on /dev/mqueue type mqueue (rw,relatime)
      27. sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
      28. tmpfs on /tmp type tmpfs (rw,relatime)
      29. /dev/md1 on /srv/dev-disk-by-label-Raid2gb type ext4 (rw,noexec,relatime,stripe=256,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group)
      30. /dev/md127 on /srv/dev-disk-by-label-Raid4gb type ext4 (rw,noexec,relatime,stripe=256,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group)
      31. /dev/md127 on /sharedfolders/Torrent-files type ext4 (rw,noexec,relatime,stripe=256,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group)
      32. /dev/md0 on /srv/dev-disk-by-label-New4Tb type ext4 (rw,noexec,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group)
      33. /dev/md127 on /sharedfolders/tech type ext4 (rw,noexec,relatime,stripe=256,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group)
      34. /dev/md127 on /sharedfolders/Torrents type ext4 (rw,noexec,relatime,stripe=256,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group)
      35. /dev/md127 on /sharedfolders/p type ext4 (rw,noexec,relatime,stripe=256,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group)
      36. /dev/md0 on /sharedfolders/Kids-films type ext4 (rw,noexec,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group)
      37. /dev/md0 on /sharedfolders/Mults type ext4 (rw,noexec,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group)
      38. /dev/md0 on /sharedfolders/Documental type ext4 (rw,noexec,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group)
      39. /dev/md0 on /sharedfolders/Films type ext4 (rw,noexec,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group)
      40. /dev/md0 on /sharedfolders/Musik-videos type ext4 (rw,noexec,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group)
      41. /dev/md0 on /sharedfolders/Series type ext4 (rw,noexec,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group)
      42. /dev/sda1 on /var/folder2ram/var/log type ext4 (rw,relatime,errors=remount-ro)
      43. folder2ram on /var/log type tmpfs (rw,nosuid,nodev,noexec,relatime)
      44. /dev/sda1 on /var/folder2ram/var/tmp type ext4 (rw,relatime,errors=remount-ro)
      45. folder2ram on /var/tmp type tmpfs (rw,nosuid,nodev,noexec,relatime)
      46. /dev/sda1 on /var/folder2ram/var/lib/openmediavault/rrd type ext4 (rw,relatime,errors=remount-ro)
      47. folder2ram on /var/lib/openmediavault/rrd type tmpfs (rw,nosuid,nodev,noexec,relatime)
      48. /dev/sda1 on /var/folder2ram/var/spool type ext4 (rw,relatime,errors=remount-ro)
      49. folder2ram on /var/spool type tmpfs (rw,nosuid,nodev,noexec,relatime)
      50. /dev/sda1 on /var/folder2ram/var/lib/rrdcached type ext4 (rw,relatime,errors=remount-ro)
      51. folder2ram on /var/lib/rrdcached type tmpfs (rw,nosuid,nodev,noexec,relatime)
      52. /dev/sda1 on /var/folder2ram/var/lib/monit type ext4 (rw,relatime,errors=remount-ro)
      53. folder2ram on /var/lib/monit type tmpfs (rw,nosuid,nodev,noexec,relatime)
      54. /dev/sda1 on /var/folder2ram/var/lib/php type ext4 (rw,relatime,errors=remount-ro)
      55. folder2ram on /var/lib/php type tmpfs (rw,nosuid,nodev,noexec,relatime)
      56. /dev/sda1 on /var/folder2ram/var/lib/netatalk/CNID type ext4 (rw,relatime,errors=remount-ro)
      57. folder2ram on /var/lib/netatalk/CNID type tmpfs (rw,nosuid,nodev,noexec,relatime)
      58. /dev/sda1 on /var/folder2ram/var/cache/samba type ext4 (rw,relatime,errors=remount-ro)
      59. folder2ram on /var/cache/samba type tmpfs (rw,nosuid,nodev,noexec,relatime)
      60. overlay on /var/lib/docker/overlay2/ee2acaa3c9c2d98d796289df1e9a194482095e27aa220998b8dcb5e3a9eda438/merged type overlay (rw,relatime,lowerdir=/var/lib/docker/overlay2/l/IXARDZYMIATAEVZIOEYBTF3PDC:/var/lib/docke
      61. r/overlay2/l/7XWRUJOCEX672VJOQAZSVUBD46:/var/lib/docker/overlay2/l/4OWCEIVNKZ5ZRQVTSN4LBNODXC:/var/lib/docker/overlay2/l/2FPWXDNLD7XVCWJRREDJ4QMXF5:/var/lib/docker/overlay2/l/XR2RB6EM64DQVDVY5XEWO5X3HW:/var/lib/
      62. docker/overlay2/l/MFMBHTI2BO3GMY7ZGIG5V5BERS,upperdir=/var/lib/docker/overlay2/ee2acaa3c9c2d98d796289df1e9a194482095e27aa220998b8dcb5e3a9eda438/diff,workdir=/var/lib/docker/overlay2/ee2acaa3c9c2d98d796289df1e9a1
      63. 94482095e27aa220998b8dcb5e3a9eda438/work)
      64. nsfs on /run/docker/netns/default type nsfs (rw)
      65. shm on /var/lib/docker/containers/e14f09b638d1a35aa464ee58f3b5e394bd88fd2f0d5f29c687d2f2d92f172398/mounts/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=65536k)
      Display All
      :whistling:
    • Should be fixed in openmediavault 4.1.12, see github.com/openmediavault/open…5fe3d18030df52e8af77e6d63.
      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
    • If you're able to modify the file /usr/share/openmediavault/mkconf/systemd.d/sharedfolders according to the git commit you can test it on your system and report back if it fixes your problem.
      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
    • Thank you for your advice. I'm not sure that I fulfilled your recommendation correctly. Here is the result of my experiment:

      Shell-Script

      1. #!/bin/sh
      2. #
      3. # This file is part of OpenMediaVault.
      4. #
      5. # @license http://www.gnu.org/licenses/gpl.html GPL Version 3
      6. # @author Volker Theile <volker.theile@openmediavault.org>
      7. # @copyright Copyright (c) 2009-2018 Volker Theile
      8. #
      9. # OpenMediaVault is free software: you can redistribute it and/or modify
      10. # it under the terms of the GNU General Public License as published by
      11. # the Free Software Foundation, either version 3 of the License, or
      12. # any later version.
      13. #
      14. # OpenMediaVault is distributed in the hope that it will be useful,
      15. # but WITHOUT ANY WARRANTY; without even the implied warranty of
      16. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
      17. # GNU General Public License for more details.
      18. #
      19. # You should have received a copy of the GNU General Public License
      20. # along with OpenMediaVault. If not, see <http://www.gnu.org/licenses/>.
      21. # Documentation/Howto:
      22. # https://www.freedesktop.org/software/systemd/man/systemd.mount.html
      23. # https://copyninja.info/blog/systemd_automount_entry.html
      24. # https://www.digitalocean.com/community/tutorials/understanding-systemd-units-and-unit-files
      25. # https://utcc.utoronto.ca/~cks/space/blog/linux/SystemdBindMountUnits
      26. # Testing:
      27. # systemctl cat sharedfolders-test1.mount
      28. # systemctl show -p Requires,After sharedfolders-test1.mount
      29. set -e
      30. . /etc/default/openmediavault
      31. . /usr/share/openmediavault/scripts/helper-functions
      32. OMV_SHAREDFOLDERS_DIR=${OMV_SHAREDFOLDERS_DIR:-"/sharedfolders"}
      33. OMV_SYSTEMD_CUSTOM_UNITS_DIR=${OMV_SYSTEMD_CUSTOM_UNITS_DIR:-"/etc/systemd/system"}
      34. # Cleanup existing systemd unit files.
      35. unitfiletpl=$(systemd-escape --path "${OMV_SHAREDFOLDERS_DIR}")
      36. find "${OMV_SYSTEMD_CUSTOM_UNITS_DIR}" -type f -iname "${unitfiletpl}-*.mount" -print0 | xargs -0r rm -f
      37. # Create the systemd unit files.
      38. omv-confdbadm read "conf.system.sharedfolder" |
      39. jq -r ".[] | .uuid" |
      40. while read uuid; do
      41. mntdir=$(omv_get_sharedfolder_mount_dir "${uuid}")
      42. name=$(omv_get_sharedfolder_name "${uuid}")
      43. what=$(omv_get_sharedfolder_path "${uuid}")
      44. where="${OMV_SHAREDFOLDERS_DIR}/${name}"
      45. unitname=$(systemd-escape --path --suffix=mount "${where}")
      46. unitfile="${OMV_SYSTEMD_CUSTOM_UNITS_DIR}/${unitname}"
      47. cat <<EOF > ${unitfile}
      48. # This configuration file is auto-generated.
      49. [Unit]
      50. Description=Mount shared folder ${name} to ${where}
      51. DefaultDependencies=no
      52. After=zfs-mount.service
      53. Conflicts=umount.target
      54. # RequiresMountsFor=${what} ${OMV_SHAREDFOLDERS_DIR}
      55. RequiresMountsFor=${mntdir}
      56. AssertPathIsDirectory=${what}
      57. AssertPathIsDirectory=${OMV_SHAREDFOLDERS_DIR}
      58. AssertPathIsMountPoint=${mntdir}
      59. [Mount]
      60. What=${what}
      61. Where=${where}
      62. Type=none
      63. Options=bind,nofail
      64. [Install]
      65. WantedBy=local-fs.target
      66. EOF
      67. done;
      Display All
      Unfortunately, i have the same error as it was in the beginning.
      :whistling: