Install error on fresh Buster

    • Resolved
    • OMV 5.x (beta)
    • Install error on fresh Buster

      Hello,

      I followed these instructions on a fresh Buster install and this line:

      Source Code

      1. apt-get --yes --auto-remove --show-upgraded \
      2. --allow-downgrades --allow-change-held-packages \
      3. --no-install-recommends \
      4. --option Dpkg::Options::="--force-confdef" \
      5. --option DPkg::Options::="--force-confold" \
      6. install openmediavault-keyring openmediavault
      fails with:

      Source Code

      1. [ERROR ] Rendering exception occurred
      2. Traceback (most recent call last):
      3. File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 393, in render_jinja_tmpl
      4. output = template.render(**decoded_context)
      5. File "/usr/lib/python3/dist-packages/jinja2/asyncsupport.py", line 76, in render
      6. return original_render(self, *args, **kwargs)
      7. File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 1008, in render
      8. return self.environment.handle_exception(exc_info, True)
      9. File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 780, in handle_exception
      10. reraise(exc_type, exc_value, tb)
      11. File "/usr/lib/python3/dist-packages/jinja2/_compat.py", line 37, in reraise
      12. raise value.with_traceback(tb)
      13. File "<template>", line 57, in top-level template code
      14. File "/var/cache/salt/minion/extmods/modules/omv_utils.py", line 173, in get_root_filesystem
      15. fs = openmediavault.fs.Filesystem.from_mount_point('/')
      16. File "/usr/lib/python3/dist-packages/openmediavault/fs/__init__.py", line 95, in from_mount_point
      17. device = pyudev.Devices.from_device_number(context, 'block', st.st_dev)
      18. File "/usr/lib/python3/dist-packages/pyudev/device/_device.py", line 182, in from_device_number
      19. raise DeviceNotFoundByNumberError(typ, number)
      20. pyudev.device._errors.DeviceNotFoundByNumberError: No block device with number 22
      Display All
      Whole output here: pastebin.com/3dUNLFJt

      Do you have any hint on what could be expected, as a block device number 22?

      This is cat /etc/fstab:

      Source Code

      1. # /etc/fstab: static file system information.
      2. #
      3. # Use 'blkid' to print the universally unique identifier for a
      4. # device; this may be used with UUID= as a more robust way to name devices
      5. # that works even if disks are added and removed. See fstab(5).
      6. #
      7. # <file system> <mount point> <type> <options> <dump> <pass>
      8. # / was on /dev/sda1 during installation
      9. UUID=c29477ed-9bb2-4056-b91a-c34580ec3759 / btrfs defaults 0 0
      10. # swap was on /dev/sda5 during installation
      11. UUID=62094831-436c-417c-8e00-a0733447bdb3 none swap sw 0 0
      Display All
      and ls -l /dev/block:

      Source Code

      1. total 0
      2. lrwxrwxrwx 1 root root 6 Aug 6 15:36 8:0 -> ../sda
      3. lrwxrwxrwx 1 root root 7 Aug 6 15:36 8:1 -> ../sda1
      4. lrwxrwxrwx 1 root root 6 Aug 6 15:36 8:16 -> ../sdb
      5. lrwxrwxrwx 1 root root 7 Aug 6 15:36 8:17 -> ../sdb1
      6. lrwxrwxrwx 1 root root 7 Aug 6 15:36 8:2 -> ../sda2
      7. lrwxrwxrwx 1 root root 6 Aug 6 15:36 8:32 -> ../sdc
      8. lrwxrwxrwx 1 root root 7 Aug 6 15:36 8:33 -> ../sdc1
      9. lrwxrwxrwx 1 root root 7 Aug 6 15:36 8:5 -> ../sda5
      I understand OMV is meant to work with a data partition which is distinct from the root fs, can you figure if the above error is related? I'd like to rule out other issues before reallocating the storage.

      The post was edited 2 times, last by Daniele: Fix link typo and formatting. ().

    • It seems that there is a problem with BTRFS as root filesystem and the pyudev library.

      Could you please execute the following commands and post the output:

      Shell-Script

      1. $ stat /


      Shell-Script

      1. $ python3
      2. Python 3.6.8 (default, Jan 14 2019, 11:02:34)[GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] on linuxType "help", "copyright", "credits" or "license" for more information.
      3. >>> import os
      4. >>> st = os.stat("/")
      5. >>> st
      6. >>> os.major(st.st_dev), os.minor(st.st_dev)
      The output of the Python interactive shell should look like:

      Shell-Script

      1. $ python3
      2. Python 3.6.8 (default, Jan 14 2019, 11:02:34)
      3. [GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] on linux
      4. Type "help", "copyright", "credits" or "license" for more information.
      5. >>> import os
      6. >>> st = os.stat("/")
      7. >>> st
      8. os.stat_result(st_mode=16877, st_ino=2, st_dev=2050, st_nlink=24, st_uid=0, st_gid=0, st_size=4096, st_atime=1565156590, st_mtime=1563864897, st_ctime=1563864897)
      9. >>> os.major(st.st_dev), os.minor(st.st_dev)
      10. (8, 2)

      Now execute the following command with YOUR major/minor numbers:


      Shell-Script

      1. $ ls -alh /sys/dev/block/8:2
      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
    • Could you please open a bug report at scm.openmediavault.org/issues? This allows a better tracking than doing this in the forum.
      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
    • Thanks for your quick reply, stat / gives:

      Source Code

      1. File: /
      2. Size: 276 Blocks: 32 IO Block: 4096 directory
      3. Device: 16h/22d Inode: 256 Links: 1
      4. Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
      5. Access: 2019-08-07 11:09:01.836276415 +0200
      6. Modify: 2019-08-07 11:05:06.986117941 +0200
      7. Change: 2019-08-07 11:05:06.986117941 +0200
      8. Birth: -
      The Python session (note I had version 3.7.3 pulled automatically):

      Python Source Code

      1. Python 3.7.3 (default, Apr 3 2019, 05:39:12)
      2. [GCC 8.3.0] on linux
      3. Type "help", "copyright", "credits" or "license" for more information.
      4. >>> import os
      5. >>> st = os.stat("/")
      6. >>> st
      7. os.stat_result(st_mode=16877, st_ino=256, st_dev=22, st_nlink=1, st_uid=0, st_gid=0, st_size=276, st_atime=1565168941, st_mtime=1565168706, st_ctime=1565168706)
      8. >>> os.major(st.st_dev), os.minor(st.st_dev)
      9. (0, 22)
      and indeed ls -alh /sys/dev/block/0:22 doesn't find it:

      Source Code

      1. ls: cannot access '/sys/dev/block/0:22': No such file or directory
      ls -alh /sys/dev/block gives:

      Source Code

      1. total 0
      2. drwxr-xr-x 2 root root 0 Aug 7 11:28 .
      3. drwxr-xr-x 4 root root 0 Aug 7 11:28 ..
      4. lrwxrwxrwx 1 root root 0 Aug 7 11:28 8:0 -> ../../devices/pci0000:00/0000:00:1f.2/ata1/host0/target0:0:0/0:0:0:0/block/sda
      5. lrwxrwxrwx 1 root root 0 Aug 7 11:28 8:1 -> ../../devices/pci0000:00/0000:00:1f.2/ata1/host0/target0:0:0/0:0:0:0/block/sda/sda1
      6. lrwxrwxrwx 1 root root 0 Aug 7 11:28 8:16 -> ../../devices/pci0000:00/0000:00:1f.2/ata1/host0/target0:0:1/0:0:1:0/block/sdb
      7. lrwxrwxrwx 1 root root 0 Aug 7 11:28 8:17 -> ../../devices/pci0000:00/0000:00:1f.2/ata1/host0/target0:0:1/0:0:1:0/block/sdb/sdb1
      8. lrwxrwxrwx 1 root root 0 Aug 7 11:28 8:2 -> ../../devices/pci0000:00/0000:00:1f.2/ata1/host0/target0:0:0/0:0:0:0/block/sda/sda2
      9. lrwxrwxrwx 1 root root 0 Aug 7 11:28 8:32 -> ../../devices/pci0000:00/0000:00:1f.2/ata2/host1/target1:0:0/1:0:0:0/block/sdc
      10. lrwxrwxrwx 1 root root 0 Aug 7 11:28 8:33 -> ../../devices/pci0000:00/0000:00:1f.2/ata2/host1/target1:0:0/1:0:0:0/block/sdc/sdc1
      11. lrwxrwxrwx 1 root root 0 Aug 7 11:28 8:5 -> ../../devices/pci0000:00/0000:00:1f.2/ata1/host0/target0:0:0/0:0:0:0/block/sda/sda5
      Display All
    • Will ne fixed in openmediavault 5.0.5
      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