Trying to install OMV on Helios4 with armbian stretch.
First I try to install it from raspi-config, but it fails, then I try manualy — same results:
~# apt install openmediavault
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
openmediavault
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/1917 kB of archives.
After this operation, 12.3 MB of additional disk space will be used.
Building local package repository ...
Preconfiguring packages ...
Selecting previously unselected package openmediavault.
(Reading database ... 61299 files and directories currently installed.)
Preparing to unpack .../openmediavault_4.1.23-1_all.deb ...
Unpacking openmediavault (4.1.23-1) ...
Setting up openmediavault (4.1.23-1) ...
Creating users/groups ...
Updating local package archive ...
Updating service units ...
Updating configuration database ...
ERROR: Failed to create the default configuration: "The environment variable 'OMV_CONFIG_FILE' does not exist in '/etc/default/openmediavault'"
Traceback (most recent call last):
File "/usr/share/openmediavault/confdbadm/commands.d/create.py", line 65, in execute
self.create_backup()
File "/usr/lib/python3/dist-packages/openmediavault/confdbadm.py", line 68, in create_backup
config_path = openmediavault.getenv("OMV_CONFIG_FILE")
File "/usr/lib/python3/dist-packages/openmediavault/__init__.py", line 55, in getenv
value = openmediavault.settings.Environment.get_str(key, default)
File "/usr/lib/python3/dist-packages/openmediavault/settings.py", line 78, in get_str
value = Environment.get(key, default)
File "/usr/lib/python3/dist-packages/openmediavault/settings.py", line 72, in get
(key, DEFAULT_FILE)
KeyError: "The environment variable 'OMV_CONFIG_FILE' does not exist in '/etc/default/openmediavault'"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/share/openmediavault/confdbadm/commands.d/create.py", line 87, in execute
self.rollback_changes()
File "/usr/lib/python3/dist-packages/openmediavault/confdbadm.py", line 104, in rollback_changes
raise RuntimeError("No configuration backup exists.")
RuntimeError: No configuration backup exists.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/sbin/omv-confdbadm", line 74, in <module>
sys.exit(main())
File "/usr/sbin/omv-confdbadm", line 70, in main
return cmd_inst.execute(*sys.argv)
File "/usr/share/openmediavault/confdbadm/commands.d/create.py", line 90, in execute
self.unlink_backup()
File "/usr/lib/python3/dist-packages/openmediavault/confdbadm.py", line 87, in unlink_backup
raise RuntimeError("No configuration backup exists.")
RuntimeError: No configuration backup exists.
dpkg: error processing package openmediavault (--configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for rsyslog (8.24.0-1) ...
Errors were encountered while processing:
openmediavault
E: Sub-process /usr/bin/dpkg returned an error code (1)
Display More
UPD: Solved
Source of problem was I install via armbian-config both OMV and nextcloud.
Nextcloud pull incompatible with OMV PHP version.
Solution — clean install, no nextcloud package in base system, use another host or docker for nextcloud.