OpenMediaVault-Plugin-Developers / installScript

script that installs omv-extras and openmediavault if not installed already.
1.1k stars 207 forks source link

OMV installation error on debian 10.0 LXC #9

Closed Etren-zz closed 4 years ago

Etren-zz commented 4 years ago

Virtual System: Debian 10.0 standard LXC in Proxmox VE 6.1 System Kernel: Linux version 5.3.18-2-pve

apt-get install wget sudois finish installation. An error occurred after running the following command: wget -O - https://github.com/OpenMediaVault-Plugin-Developers/installScript/raw/master/install | sudo bash

The error message is as follows:

root@OpenMediaVault:~# wget -O - https://github.com/OpenMediaVault-Plugin-Developers/installScript/raw/master/install | sudo bash
--2020-03-16 09:12:15--  https://github.com/OpenMediaVault-Plugin-Developers/installScript/raw/master/install
Connecting to 10.10.10.15:1080... connected.
Proxy request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/OpenMediaVault-Plugin-Developers/installScript/master/install [following]
--2020-03-16 09:12:16--  https://raw.githubusercontent.com/OpenMediaVault-Plugin-Developers/installScript/master/install
Connecting to 10.10.10.15:1080... connected.
Proxy request sent, awaiting response... 200 OK
Length: 11593 (11K) [text/plain]
Saving to: 'STDOUT'

-                             100%[=================================================>]  11.32K  --.-KB/s    in 0s

2020-03-16 09:12:17 (80.6 MB/s) - written to stdout [11593/11593]

Current / permissions = 755
New / permissions = 755
Updating repos before installing...
Get:1 file:/var/cache/openmediavault/archives  InRelease
Ign:1 file:/var/cache/openmediavault/archives  InRelease
Get:2 file:/var/cache/openmediavault/archives  Release
Ign:2 file:/var/cache/openmediavault/archives  Release
Get:3 file:/var/cache/openmediavault/archives  Packages
Ign:3 file:/var/cache/openmediavault/archives  Packages
Get:4 file:/var/cache/openmediavault/archives  Translation-en
Ign:4 file:/var/cache/openmediavault/archives  Translation-en
Get:3 file:/var/cache/openmediavault/archives  Packages
Ign:3 file:/var/cache/openmediavault/archives  Packages
Get:4 file:/var/cache/openmediavault/archives  Translation-en
Ign:4 file:/var/cache/openmediavault/archives  Translation-en
Get:3 file:/var/cache/openmediavault/archives  Packages
Ign:3 file:/var/cache/openmediavault/archives  Packages
Get:4 file:/var/cache/openmediavault/archives  Translation-en
Ign:4 file:/var/cache/openmediavault/archives  Translation-en
Get:3 file:/var/cache/openmediavault/archives  Packages
Ign:3 file:/var/cache/openmediavault/archives  Packages
Get:4 file:/var/cache/openmediavault/archives  Translation-en
Ign:4 file:/var/cache/openmediavault/archives  Translation-en
Get:3 file:/var/cache/openmediavault/archives  Packages
Ign:3 file:/var/cache/openmediavault/archives  Packages
Get:4 file:/var/cache/openmediavault/archives  Translation-en
Ign:4 file:/var/cache/openmediavault/archives  Translation-en
Get:3 file:/var/cache/openmediavault/archives  Packages
Ign:3 file:/var/cache/openmediavault/archives  Packages
Get:4 file:/var/cache/openmediavault/archives  Translation-en
Ign:4 file:/var/cache/openmediavault/archives  Translation-en
Get:3 file:/var/cache/openmediavault/archives  Packages
Get:4 file:/var/cache/openmediavault/archives  Translation-en
Ign:4 file:/var/cache/openmediavault/archives  Translation-en
Hit:5 http://ftp.debian.org/debian buster InRelease
Hit:6 http://packages.openmediavault.org/public usul InRelease
Hit:7 http://security.debian.org buster/updates InRelease
Hit:8 http://ftp.debian.org/debian buster-updates InRelease
Reading package lists... Done
usul :: 5
Install prerequisites...
Reading package lists... Done
Building dependency tree
Reading state information... Done
dirmngr is already the newest version (2.2.12-1+deb10u1).
gnupg is already the newest version (2.2.12-1+deb10u1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up openmediavault (5.3.8-1) ...
Creating users/groups ...
Updating local package archive ...
Updating service units ...
Job for systemd-networkd.service failed because the control process exited with error code.
See "systemctl status systemd-networkd.service" and "journalctl -xe" for details.
Job for systemd-resolved.service failed.
See "systemctl status systemd-resolved.service" and "journalctl -xe" for details.
Creating configuration database ...
Setting up Salt environment ...
Setting up system ...
[WARNING ] /usr/lib/python3/dist-packages/salt/modules/file.py:32: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
  from collections import Iterable, Mapping, namedtuple

[ERROR   ] Command 'udevadm control --reload-rules' failed with return code: 1
[ERROR   ] retcode: 1
[ERROR   ] {'pid': 22766, 'retcode': 1, 'stdout': '', 'stderr': ''}
[WARNING ] /usr/lib/python3/dist-packages/salt/utils/decorators/signature.py:31: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly
  *salt.utils.args.get_function_argspec(original_function)

[WARNING ] /usr/lib/python3/dist-packages/salt/utils/decorators/signature.py:31: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly
  *salt.utils.args.get_function_argspec(original_function)

[WARNING ] /usr/lib/python3/dist-packages/salt/utils/oset.py:47: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
  class OrderedSet(collections.MutableSet):

[ERROR   ] {'out': 'highstate', 'ret': {'OpenMediaVault.LOCAL': {'cmd_|-udevadm_reload_rules_|-udevadm control --reload-rules_|-run': {'name': 'udevadm control --reload-rules', 'changes': {'pid': 22766, 'retcode': 1, 'stdout': '', 'stderr': ''}, 'result': False, 'comment': 'Command "udevadm control --reload-rules" run', '__sls__': 'omv.setup.fstab.default', '__run_num__': 0, 'start_time': '09:13:02.976924', 'duration': 16.625, '__id__': 'udevadm_reload_rules'}, 'cmd_|-udevadm_trigger_|-udevadm trigger_|-run': {'changes': {}, 'result': False, 'duration': 0.022, 'start_time': '09:13:02.994690', 'comment': 'One or more requisite failed: omv.setup.fstab.default.udevadm_reload_rules', '__run_num__': 1, '__sls__': 'omv.setup.fstab.default'}, 'service_|-start_fstrim_timer_|-fstrim.timer_|-running': {'name': 'fstrim.timer', 'changes': {}, 'result': True, 'comment': 'The service fstrim.timer is already running', '__sls__': 'omv.setup.fstrim.default', '__run_num__': 2, 'start_time': '09:13:02.996825', 'duration': 28.013, '__id__': 'start_fstrim_timer'}, 'file_|-enable_discard_in_lvm_conf_|-/etc/lvm/lvm.conf_|-replace': {'name': '/etc/lvm/lvm.conf', 'changes': {}, 'result': True, 'comment': 'No changes needed to be made', '__sls__': 'omv.setup.fstrim.default', '__run_num__': 3, 'start_time': '09:13:03.028882', 'duration': 43.913, '__id__': 'enable_discard_in_lvm_conf'}, 'locale_|-generate_C.UTF-8_locale_|-C.UTF-8_|-present': {'name': 'C.UTF-8', 'changes': {}, 'result': True, 'comment': 'Locale C.UTF-8 is already present', '__sls__': 'omv.setup.locale.default', '__run_num__': 4, 'start_time': '09:13:03.083084', 'duration': 10.28, '__id__': 'generate_C.UTF-8_locale'}, 'cmd_|-set_system_locale_|-update-locale LANG=C.UTF-8 LC_ALL=C.UTF-8_|-run': {'name': 'update-locale LANG=C.UTF-8 LC_ALL=C.UTF-8', 'changes': {'pid': 22770, 'retcode': 0, 'stdout': '', 'stderr': ''}, 'result': True, 'comment': 'Command "update-locale LANG=C.UTF-8 LC_ALL=C.UTF-8" run', '__sls__': 'omv.setup.locale.default', '__run_num__': 5, 'start_time': '09:13:03.093730', 'duration': 48.869, '__id__': 'set_system_locale'}, 'file_|-symlink_systemd_resolvconf_|-/etc/resolv.conf_|-symlink': {'result': True, 'name': '/etc/resolv.conf', 'changes': {}, 'comment': 'onlyif condition is false', 'skip_watch': True, '__sls__': 'omv.setup.resolvconf.default', '__run_num__': 6, 'start_time': '09:13:03.142958', 'duration': 11576.824, '__id__': 'symlink_systemd_resolvconf'}, 'file_|-configure_root_bashrc_|-/root/.bashrc_|-managed': {'changes': {}, 'comment': 'File /root/.bashrc is in the correct state', 'name': '/root/.bashrc', 'result': True, '__sls__': 'omv.setup.shell.10root_bashrc', '__run_num__': 7, 'start_time': '09:13:14.720184', 'duration': 49.85, '__id__': 'configure_root_bashrc'}, 'file_|-configure_root_inputrc_|-/root/.inputrc_|-managed': {'changes': {}, 'comment': 'File /root/.inputrc is in the correct state', 'name': '/root/.inputrc', 'result': True, '__sls__': 'omv.setup.shell.20root_inputrc', '__run_num__': 8, 'start_time': '09:13:14.770269', 'duration': 3.642, '__id__': 'configure_root_inputrc'}, 'file_|-modify_root_profile_|-/root/.profile_|-replace': {'name': '/root/.profile', 'changes': {}, 'result': True, 'comment': 'No changes needed to be made', '__sls__': 'omv.setup.shell.30root_profile', '__run_num__': 9, 'start_time': '09:13:14.774165', 'duration': 3.783, '__id__': 'modify_root_profile'}}}}
dpkg: error processing package openmediavault (--configure):
 installed openmediavault package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
 openmediavault
E: Sub-process /usr/bin/dpkg returned an error code (1)
Installing openmediavault required packages...
Reading package lists... Done
Building dependency tree
Reading state information... Done
postfix is already the newest version (3.4.8-0+10debu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up openmediavault (5.3.8-1) ...
Creating users/groups ...
Updating local package archive ...
Updating service units ...
Job for systemd-networkd.service failed because the control process exited with error code.
See "systemctl status systemd-networkd.service" and "journalctl -xe" for details.
Job for systemd-resolved.service failed because the control process exited with error code.
See "systemctl status systemd-resolved.service" and "journalctl -xe" for details.
Creating configuration database ...
Setting up Salt environment ...
Setting up system ...
[WARNING ] /usr/lib/python3/dist-packages/salt/modules/file.py:32: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
  from collections import Iterable, Mapping, namedtuple

[ERROR   ] Command 'udevadm control --reload-rules' failed with return code: 1
[ERROR   ] retcode: 1
[ERROR   ] {'pid': 23057, 'retcode': 1, 'stdout': '', 'stderr': ''}
[WARNING ] /usr/lib/python3/dist-packages/salt/utils/decorators/signature.py:31: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly
  *salt.utils.args.get_function_argspec(original_function)

[WARNING ] /usr/lib/python3/dist-packages/salt/utils/decorators/signature.py:31: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly
  *salt.utils.args.get_function_argspec(original_function)

[WARNING ] /usr/lib/python3/dist-packages/salt/utils/oset.py:47: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
  class OrderedSet(collections.MutableSet):

[ERROR   ] {'out': 'highstate', 'ret': {'OpenMediaVault.LOCAL': {'cmd_|-udevadm_reload_rules_|-udevadm control --reload-rules_|-run': {'name': 'udevadm control --reload-rules', 'changes': {'pid': 23057, 'retcode': 1, 'stdout': '', 'stderr': ''}, 'result': False, 'comment': 'Command "udevadm control --reload-rules" run', '__sls__': 'omv.setup.fstab.default', '__run_num__': 0, 'start_time': '09:13:55.888882', 'duration': 16.66, '__id__': 'udevadm_reload_rules'}, 'cmd_|-udevadm_trigger_|-udevadm trigger_|-run': {'changes': {}, 'result': False, 'duration': 0.024, 'start_time': '09:13:55.906728', 'comment': 'One or more requisite failed: omv.setup.fstab.default.udevadm_reload_rules', '__run_num__': 1, '__sls__': 'omv.setup.fstab.default'}, 'service_|-start_fstrim_timer_|-fstrim.timer_|-running': {'name': 'fstrim.timer', 'changes': {}, 'result': True, 'comment': 'The service fstrim.timer is already running', '__sls__': 'omv.setup.fstrim.default', '__run_num__': 2, 'start_time': '09:13:55.908881', 'duration': 27.619, '__id__': 'start_fstrim_timer'}, 'file_|-enable_discard_in_lvm_conf_|-/etc/lvm/lvm.conf_|-replace': {'name': '/etc/lvm/lvm.conf', 'changes': {}, 'result': True, 'comment': 'No changes needed to be made', '__sls__': 'omv.setup.fstrim.default', '__run_num__': 3, 'start_time': '09:13:55.940516', 'duration': 44.708, '__id__': 'enable_discard_in_lvm_conf'}, 'locale_|-generate_C.UTF-8_locale_|-C.UTF-8_|-present': {'name': 'C.UTF-8', 'changes': {}, 'result': True, 'comment': 'Locale C.UTF-8 is already present', '__sls__': 'omv.setup.locale.default', '__run_num__': 4, 'start_time': '09:13:55.995542', 'duration': 10.332, '__id__': 'generate_C.UTF-8_locale'}, 'cmd_|-set_system_locale_|-update-locale LANG=C.UTF-8 LC_ALL=C.UTF-8_|-run': {'name': 'update-locale LANG=C.UTF-8 LC_ALL=C.UTF-8', 'changes': {'pid': 23061, 'retcode': 0, 'stdout': '', 'stderr': ''}, 'result': True, 'comment': 'Command "update-locale LANG=C.UTF-8 LC_ALL=C.UTF-8" run', '__sls__': 'omv.setup.locale.default', '__run_num__': 5, 'start_time': '09:13:56.006315', 'duration': 49.972, '__id__': 'set_system_locale'}, 'file_|-symlink_systemd_resolvconf_|-/etc/resolv.conf_|-symlink': {'result': True, 'name': '/etc/resolv.conf', 'changes': {}, 'comment': 'onlyif condition is false', 'skip_watch': True, '__sls__': 'omv.setup.resolvconf.default', '__run_num__': 6, 'start_time': '09:13:56.056677', 'duration': 11628.1, '__id__': 'symlink_systemd_resolvconf'}, 'file_|-configure_root_bashrc_|-/root/.bashrc_|-managed': {'changes': {}, 'comment': 'File /root/.bashrc is in the correct state', 'name': '/root/.bashrc', 'result': True, '__sls__': 'omv.setup.shell.10root_bashrc', '__run_num__': 7, 'start_time': '09:14:07.685247', 'duration': 49.912, '__id__': 'configure_root_bashrc'}, 'file_|-configure_root_inputrc_|-/root/.inputrc_|-managed': {'changes': {}, 'comment': 'File /root/.inputrc is in the correct state', 'name': '/root/.inputrc', 'result': True, '__sls__': 'omv.setup.shell.20root_inputrc', '__run_num__': 8, 'start_time': '09:14:07.735400', 'duration': 3.693, '__id__': 'configure_root_inputrc'}, 'file_|-modify_root_profile_|-/root/.profile_|-replace': {'name': '/root/.profile', 'changes': {}, 'result': True, 'comment': 'No changes needed to be made', '__sls__': 'omv.setup.shell.30root_profile', '__run_num__': 9, 'start_time': '09:14:07.739355', 'duration': 3.821, '__id__': 'modify_root_profile'}}}}
dpkg: error processing package openmediavault (--configure):
 installed openmediavault package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
 openmediavault
E: Sub-process /usr/bin/dpkg returned an error code (1)
failed installing postfix
ryecoaaron commented 4 years ago

OMV does not work in containers - lxc,lxd,docker,etc - due to not having a real root device. Nothing I can do to change this.

Etren-zz commented 4 years ago

Thank you very much for your reply, I understand. Have you considered supporting KVM virtualization or LXC in OMV? For home data centers, virtualization is also an important function. I didn't find any plug-ins related to virtual machines in the plug-in installation list of OMV-extras. Attempting to configure a virtual machine through the cockpit plugin of OMV-extras always fails to start the virtual machine.

ryecoaaron commented 4 years ago

Have you considered supporting KVM virtualization or LXC in OMV?

OMV works very well in VMs like KVM (most of my OMV installs are VMs running on Proxmox which uses KVM). LXC is something that Volker would have to change core OMV to support. I can't do that.

For home data centers, virtualization is also an important function. I didn't find any plug-ins related to virtual machines in the plug-in installation list of OMV-extras. Attempting to configure a virtual machine through the cockpit plugin of OMV-extras always fails to start the virtual machine.

If you are running a home data center, you should consider running OMV on Proxmox or ESXi instead. virtualbox is no longer in the Debian repo. So, that plugin will no longer exist.