Updated OMV 4.x to 5.x using dliedert's guide and script here.
All went well. OMV running well for a couple of days.
So decided to upgrade the 5.x to 6.x.
I had two plugins (OMV-Exras and Flashmemory) which I uninstalled first.
Then I followed the Zoki guide here.
The command sudo omv-salt stage run deploy went ok with no failures.
The command sudo omv-upgrade went ok with no failures.
But the command sudo omv-release-upgrade failed with error:
...
...
Get:12 https://deb.debian.org/debian bullseye InRelease [116 kB]
Ign:14 https://deb.debian.org/debian-security bullseye/updates InRelease
Get:15 https://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
Err:16 https://deb.debian.org/debian-security bullseye/updates Release
404 Not Found [IP: 199.232.58.132 443]
Get:13 https://openmediavault.github.io/packages shaitan InRelease [12.8 kB]
Get:18 http://packages.openmediavault.org/public shaitan/main amd64 Packages [12.7 kB]
Get:19 https://download.docker.com/linux/debian bullseye/stable amd64 Packages [15.2 kB]
Get:20 https://openmediavault-plugin-developers.github.io/packages/debian shaitan/main amd64 Packages [8995 B]
Get:21 https://deb.debian.org/debian bullseye/main Sources [8633 kB]
Get:22 https://deb.debian.org/debian bullseye/contrib Sources [43.2 kB]
Get:23 https://deb.debian.org/debian bullseye/non-free Sources [81.2 kB]
Get:24 https://deb.debian.org/debian bullseye/main amd64 Packages [8184 kB]
Get:25 https://openmediavault.github.io/packages shaitan/main amd64 Packages [12.7 kB]
Get:26 https://deb.debian.org/debian bullseye/main Translation-en [6239 kB]
Get:27 https://deb.debian.org/debian bullseye/contrib amd64 Packages [50.6 kB]
Get:28 https://deb.debian.org/debian bullseye/contrib Translation-en [46.9 kB]
Get:29 https://deb.debian.org/debian bullseye/non-free amd64 Packages [97.7 kB]
Get:30 https://deb.debian.org/debian bullseye/non-free Translation-en [92.4 kB]
Get:31 https://deb.debian.org/debian bullseye-updates/main Sources [4812 B]
Get:32 https://deb.debian.org/debian bullseye-updates/main amd64 Packages [14.6 kB]
Get:33 https://deb.debian.org/debian bullseye-updates/main Translation-en [7929 B]
Reading package lists... Done
E: The repository 'https://deb.debian.org/debian-security bullseye/updates Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
root@OMV:~#
Alles anzeigen
I got round that problem using steps ryecoaaron suggested here. Essentially, I ran:
echo "deb http://deb.debian.org/debian/ bullseye main contrib non-free" | sudo tee /etc/apt/sources.list
echo "deb http://deb.debian.org/debian/ bullseye-updates main contrib non-free" | sudo tee -a /etc/apt/sources.list
sudo rm /etc/apt/sources.list.d/openmediavault-*-security.list
sudo omv-salt deploy run apt
sudo apt-get update
...they completed without fail.
Then I ran sudo omv-upgrade which completed (I assume successfully) :
...
...
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://linux.teamviewer.com/deb stable InRelease
Hit:6 http://httpredir.debian.org/debian buster-backports InRelease
Get:7 http://security.debian.org/debian-security buster/updates InRelease [34.8 kB]
Hit:8 https://deb.debian.org/debian buster InRelease
Hit:9 https://download.docker.com/linux/debian buster InRelease
Ign:10 http://ftp.uk.debian.org/debian stretch InRelease
Hit:11 http://ftp.uk.debian.org/debian stretch-updates InRelease
Get:12 https://deb.debian.org/debian-security buster/updates InRelease [34.8 kB]
Hit:13 http://packages.openmediavault.org/public usul InRelease
Hit:14 http://ftp.uk.debian.org/debian stretch Release
Hit:15 https://deb.debian.org/debian buster-updates InRelease
Hit:16 http://packages.openmediavault.org/public usul-proposed InRelease
Hit:17 https://openmediavault.github.io/packages usul InRelease
Get:18 https://openmediavault-plugin-developers.github.io/packages/debian usul InRelease [3928 B]
Hit:19 https://openmediavault.github.io/packages usul-proposed InRelease
Get:20 https://openmediavault-plugin-developers.github.io/packages/debian usul-extras InRelease [3918 B]
Get:21 https://openmediavault-plugin-developers.github.io/packages/debian usul-testing InRelease [3932 B]
Get:22 http://security.debian.org/debian-security buster/updates/main Sources [284 kB]
Get:24 https://deb.debian.org/debian-security buster/updates/main Sources [284 kB]
Fetched 649 kB in 5s (142 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
containerd.io
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 27.7 MB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 https://download.docker.com/linux/debian buster/stable amd64 containerd.io amd64 1.6.12-1 [27.7 MB]
Fetched 27.7 MB in 2s (13.3 MB/s)
(Reading database ... 84803 files and directories currently installed.)
Preparing to unpack .../containerd.io_1.6.12-1_amd64.deb ...
Unpacking containerd.io (1.6.12-1) over (1.6.11-1) ...
Setting up containerd.io (1.6.12-1) ...
root@OMV:~#
Alles anzeigen
Then I ran sudo omv-release-upgrade which ran for a while BUT seems to end in failure to do with Python:
...
...
...
/var/lib/dpkg/info/python-pip.prerm: 6: pyclean: not found
dpkg: error processing package python-pip (--remove):
installed python-pip package pre-removal script subprocess returned error exit status 127
Removing python2-minimal (2.7.16-1) ...
Removing python3-cached-property (1.5.1-3) ...
Removing python3-click (7.0-1) ...
Removing python3-colorama (0.3.7-1) ...
Removing python3-dateutil (2.7.3-3) ...
Removing python3-distro (1.3.0-1) ...
Removing python3-natsort (6.0.0-1) ...
Removing python3-pyudev (0.21.0-1) ...
Removing quotatool (1:1.6.2-5) ...
Removing rsync (3.1.3-6) ...
Removing sdparm (1.10-1) ...
Removing smartmontools (6.6-1) ...
Removing socat (1.7.3.2-2) ...
Removing php7.0-cli (7.0.33-0+deb9u12) ...
Removing php7.0-readline (7.0.33-0+deb9u12) ...
Removing php7.0-opcache (7.0.33-0+deb9u12) ...
Removing php7.0-json (7.0.33-0+deb9u12) ...
Removing php7.3-common (7.3.31-1~deb10u1) ...
Removing php7.0-common (7.0.33-0+deb9u12) ...
Removing php-common (2:69) ...
dpkg: python-pip-whl: dependency problems, but removing anyway as you requested:
python-pip depends on python-pip-whl (= 18.1-5).
Removing python-pip-whl (18.1-5) ...
dpkg: usb.ids: dependency problems, but removing anyway as you requested:
usbutils depends on usb.ids.
Removing usb.ids (2019.07.27-0+deb10u1) ...
Errors were encountered while processing:
python-backports.ssl-match-hostname
python-certifi
python-dnspython
python-idna
python-ipaddress
python-pip
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@OMV:~#
Alles anzeigen
now, the OMV GUI is dead (403 Forbidden error on Nginx).
Now all the omv- command have all gone:
root@OMV:~# sudo omv-upgrade
sudo: omv-upgrade: command not found
root@OMV:~# sudo omv-release-upgrade
sudo: omv-release-upgrade: command not found
root@OMV:~#
The servers are running and I can access my shares but not the OMV web page.
I have not rebooted the server yet but left it running as-is until further directions here.
What can I do to solve this problem ?
EDIT:
Current state is:
Code
root@OMV:~# dpkg -l | grep openm
iU libopenmpt0:amd64 0.4.11-1 amd64 module music library based on OpenMPT -- shared library
rc openmediavault 5.6.26-1 all openmediavault - The open network attached storage solution
ii openmediavault-keyring 1.0 all GnuPG archive keys of the OpenMediaVault archive
root@OMV:~#
Looks like OMV is currently at 5.6.26
Can this system be salvaged ?