Posts by Simmarn

    Hi!


    I have a rsync job running on an Raspberry Pi which fetches files from another OMV server. After last minor upgrade (7.4.x on both machines), rsync now fails with

    Quote

    Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LC_ALL=C.UTF-8; export LANGUAGE=; export SHELL=/bin/sh; sudo --shell --non-interactive -- /var/lib/openmediavault/cron.d/rsync-0f4d2bd2-32d0-4d46-a56f-801b3f8738ee 2>&1' with exit code '1'

    For debug reason I have added set -x after shebang on /var/lib/openmediavault/cron.d/rsync-0f4d2bd2-32d0-4d46-a56f-801b3f8738ee but I not able to understand what is wrong. I have attached the output in this post.


    Could someone please help me understand the problem?


    BR,

    Simmarn

    In config.xml sharedfolder section the uuid for <mntentref> is wrong. Shall be same as uuid for <mntent> in the fstab section.


    ...
    <mntent>
      <uuid>c4431442-91bd-4d6b-8e90-8a67a76d9209</uuid>
      <fsname>diskarray</fsname>
      <dir>/diskarray</dir>
      <type>zfs</type>
      <opts>rw,relatime,xattr,noacl</opts>
      <freq>0</freq>
      <passno>0</passno>
      <hidden>1</hidden>
      </mntent>
    ...
    <sharedfolder>
      <uuid>ecce0323-afa5-40bd-b56d-f00fde698798</uuid>
      <name>openmediavault</name>
      <comment>Main NAS share</comment>
      <mntentref>e3da46f5-f3d0-41c0-856b-d15fd355b8e8</mntentref>
      <reldirpath>openmediavault/</reldirpath>
      <privileges>
      <privilege>
      <type>user</type>
      <name>martin</name>
      <perms>7</perms>
      </privilege>
      </privileges>
      </sharedfolder>
    ...


    Can I fix it by just updating config.xml and restart?


    Will the /etc/systemd/system/sharedfolders-XXXX.mount be re-generated?


    BR,
    -Martin

    Also. I get the following error message for each of the shares.


    martin@openmediavault:~$ systemctl status sharedfolders-ArrayShare.mount
    ● sharedfolders-ArrayShare.mount - Mount shared folder ArrayShare to /sharedfolders/ArrayShare
      Loaded: error (Reason: Bad message)
      Active: inactive (dead)
      Where: /sharedfolders/ArrayShare
    martin@openmediavault:~$ sudo journalctl -u sharedfolders-ArrayShare.mount
    -- Logs begin at Fri 2019-08-09 08:28:25 CEST, end at Fri 2019-08-09 08:46:40 CEST. --
    Aug 09 08:28:29 openmediavault systemd[1]: sharedfolders-ArrayShare.mount: Cannot add dependency job, ignoring: Unit sharedfolders-ArrayShare.mount is not loaded properly: Bad message.
    Aug 09 08:28:29 openmediavault systemd[1]: sharedfolders-ArrayShare.mount: Cannot add dependency job, ignoring: Unit sharedfolders-ArrayShare.mount is not loaded properly: Bad message.
    Aug 09 08:34:02 openmediavault systemd[1]: sharedfolders-ArrayShare.mount: Cannot add dependency job, ignoring: Unit sharedfolders-ArrayShare.mount is not loaded properly: Bad message.
    Aug 09 08:39:00 openmediavault systemd[1]: sharedfolders-ArrayShare.mount: Cannot add dependency job, ignoring: Unit sharedfolders-ArrayShare.mount is not loaded properly: Bad message.
    Aug 09 08:44:25 openmediavault systemd[1]: sharedfolders-ArrayShare.mount: What= setting is missing. Refusing.
    Aug 09 08:44:25 openmediavault systemd[1]: sharedfolders-ArrayShare.mount: Cannot add dependency job, ignoring: Unit sharedfolders-ArrayShare.mount is not loaded properly: Bad message.
    Aug 09 08:44:25 openmediavault systemd[1]: sharedfolders-ArrayShare.mount: Cannot add dependency job, ignoring: Unit sharedfolders-ArrayShare.mount is not loaded properly: Bad message.
    martin@openmediavault:~$ 

    Hi,


    After update all Shared Folders on my ZFS array shows device=n/a.


    If I try to edit the shared folder I get: Failed to execute XPath query '//system/fstab/mntent[uuid='e3da46f5-f3d0-41c0-856b-d15fd355b8e8']'.
    See attached screen dump.


    What could be the problem? How to resolve?


    I do not experience any problems with my NFS shares. But the SMB/CIFS share is not working.


    BR,
    -Martin

    I hope omv is not using insserv for anything. I also got ZFS working after I did
    sudo apt purge insserv sysv-rc initscripts openrc


    After reboot I was able to reinstall ZFS from GUI.

    Hi,


    Upgrade from 4.1.22-1 to latest (4.1.23) failed. I do not understand what the problem is.
    I have rolled back to 4.1.22-1. How can I resolve this?



    BR,
    -Martin

    Hi,


    When I upgraded from omv 2 -> 3 I saved the config.xml on omv 2. After installing omv 3 I clicked around in the webGUI to get the same configuration as in the backed up config.xml file.


    Is there a way to configure omv using command line instead of webGUI? It would simplify upgrade a lot. Best would be if configuration could be extracted from omv 3, migrated to omv 4 and then applied.


    /Simmarn