Upgrade from 5.6.26 to current OMV6 doesn't work

  • Hi all,


    I'm trying to upgrade my OMV 5 installation (5.6.26) to OMV 6 using sudo omv-release-upgrade. Everything seemed to work perfectly, but it completed very quickly (less than 5 minutes) and after a reboot, I am still on OMV 5. Tried again and the same thing happened.


    I found a thread where a similar issue was described: Upgrade from 5.6.21 to 6.x Didn't Work

    Here are all the info that were asked for in this thread:


    Unfortunately my Linux experience is rather limited... could you please help me find the issue? If it is identical to the thread I linked above, is it safe for me to go ahead as it was recommended to the user there?


    Thanks a lot for your help!


    iYassin

  • Everything seemed to work perfectly, but it completed very quickly (less than 5 minutes)

    You need to post the output of the command.


    At first look, the fact that you have this:

    Means that your sources are old and need to be fixed.

  • Please, don't post to external sites.

    You can put it as an attachment in TXT format.


    You seem to have been running OMV since v4 and upgraded it, correct?


    Post the output inside codeboxes of:

    ls -al /etc/apt/sources.list.d/


    Then post a cat command of every single file you got from the above command.


    And also:

    cat /etc/apt/sources.list

  • Sure, I will then attach TXT files instead if needed - sorry about that!


    Exactly, I installed OMV 4 and already upgraded to OMV 5, I believe 2 years ago?


    Here are the files you asked for:


    ls -al /etc/apt/sources.list.d/

    Code
    insgesamt 36
    drwxr-xr-x  2 root root 4096 Mai  6 20:26 .
    drwxr-xr-x 12 root root 4096 Mai  6 20:26 ..
    -rw-r--r--  1 root root  206 Mai  6 20:26 omvextras.list
    -rw-r--r--  1 root root  263 Okt 10  2021 omv-extras-org.bak
    -rw-r--r--  1 root root   78 Mai  6 20:26 openmediavault-kernel-backports.list
    -rw-r--r--  1 root root  196 Mai  6 20:26 openmediavault.list
    -rw-r--r--  1 root root   60 Mai  6 19:02 openmediavault-local.list
    -rw-r--r--  1 root root  172 Mai  6 20:26 openmediavault-os-security.list
    -rw-r--r--  1 root root  592 Mai  6 19:08 stretch.list

    cat omvextras.list

    Code
    deb https://openmediavault-plugin-developers.github.io/packages/debian shaitan main
    deb [arch=amd64] https://download.docker.com/linux/debian bullseye stable
    deb http://linux.teamviewer.com/deb stable main

    cat omv-extras-org.bak

    Code
    # This is file is generated.
    # OMV-Extras repos
    #
    # OMV-Extras.org
    deb https://dl.bintray.com/openmediavault-plugin-developers/arrakis stretch main
    # OMV-Extras.org Testing
    deb https://dl.bintray.com/openmediavault-plugin-developers/arrakis-testing stretch main

    cat openmediavault-kernel-backports.list

    Code
    deb http://httpredir.debian.org/debian buster-backports main contrib non-free

    cat openmediavault.list

    Code
    deb http://packages.openmediavault.org/public/ usul main
    deb https://openmediavault.github.io/packages/ usul main
    # deb http://downloads.sourceforge.net/project/openmediavault/packages/ usul main

    cat openmediavault-local.list

    Code
    deb [trusted=yes] file:/var/cache/openmediavault/archives /

    cat openmediavault-os-security.list

    Code
    deb http://security.debian.org/debian-security buster/updates main contrib non-free
    deb-src http://security.debian.org/debian-security buster/updates main contrib non-free

    cat stretch.list

    cat /etc/apt/sources.list

    Code
    deb http://archive.debian.org/debian stretch main contrib non-free
  • Let's start by deleting the unneeded lists:

    cat omv-extras-org.bak


    Code # This is file is generated. # OMV-Extras repos # # OMV-Extras.org deb https://dl.bintray.com/openmed…plugin-developers/arrakis stretch main # OMV-Extras.org Testing deb https://dl.bintray.com/openmed…evelopers/arrakis-testing stretch main

    rm -f /etc/apt/sources.list.d/omv-extras-org.bak


    cat stretch.list


    Code # # deb cdrom:[Debian GNU/Linux 9 _Stretch_ - Official Snapshot amd64 LIVE/INSTALL Binary 20180330-19:01]/ stretch contrib main non-free # deb cdrom:[Debian GNU/Linux 9 _Stretch_ - Official Snapshot amd64 LIVE/INSTALL Binary 20180330-19:01]/ stretch contrib main non-free deb http://archive.debian.org/debian/ stretch main deb-src http://archive.debian.org/debian/ stretch main # stretch-updates, previously known as 'volatile' # deb http://ftp.de.debian.org/debian/ stretch-updates main contrib non-free # deb-src http://ftp.de.debian.org/debian/ stretch-updates main contrib non-free

    rm -f /etc/apt/sources.list.d/stretch.list



    Now edit these lists to make it correct:

    nano /etc/apt/sources.list.d/openmediavault-os-security.list

    Code
    deb http://security.debian.org/debian-security buster/updates main contrib non-free
    #deb-src http://security.debian.org/debian-security buster/updates main contrib non-free


    nano /etc/apt/sources.list

    Code
    deb http://deb.debian.org/debian buster main contrib non-free
    deb http://deb.debian.org/debian buster-updates main contrib non-free


    nano /etc/apt/sources.list.d/omvextras.list

    Code
    deb https://openmediavault-plugin-developers.github.io/packages/debian usul main
    deb [arch=amd64] https://download.docker.com/linux/debian buster stable
    deb http://linux.teamviewer.com/deb stable main


    Now, before attempting any further changes, and since your SOURCE.LIST was not on BUSTER, make a cloned backup of the OS drive.

    You'll have a fail safe system to go back to in case something fails.
    This is mandatory.


    Make sure the clone is working and then continue.


    After this, run and post the output of:

    omv-upgrade


    There should be some updates to OMV5

  • Thanks a lot! I've adjusted the sources and cloned my OS drive. Unfortunately, an error occurred during omv-upgrade.

    Does it think it's already on Bullseye? lsb-release -a still indicates Buster.


    EDIT: Moved the log of the failed omv-upgrade to an attached text file because I think I fixed it on my own. /etc/apt/apt.conf had "bullseye" as the default release, changed it back to buster. Now trying again...


    Seems to have worked!

  • Seems to have worked!

    If no errors show up and you have a working clone of the OS, try now the omv-release-upgrade command.


    Post its output

  • Please find the output attached! It is not a complete log, sorry - it seems PuTTY starts overwriting the first lines at some point and I was unaware of that.


    Before it completed, I didn't get the "graphical" message saying "Upgrade complete, please reboot" like I did yesterday with the update attempts where nothing happened - instead after the dkpg-related error, it just went back to the shell.


    I'm also a little bit worried about the ZFS-related error a few lines before the end:

    Quote

    Setting up zfs-zed (2.0.3-9+deb11u1) ...

    Setting up openmediavault-zfs (6.0.12) ...

    modprobe: FATAL: Module zfs not found in directory /lib/modules/5.10.0-0.deb10.16-amd64

    New plugin install, not inserting uuid property into existing datasets

    Is that something problematic?


    The system is still running, I won't reboot for now. OMV seems to have updated successfully as well, I just tried accessing the GUI and was greeted by the new OMV 6 interfaces. I didn't make any changes in the GUI of course.

  • Is that something problematic?

    Do you have any ZFS drives?

    I don't use it but from other threads, it's better to use the kernel plugin and with the proxmox kernel since it has built-in ZFS modules.

    SEARCH function

    The system is still running, I won't reboot for now.

    Right attitude since the log doesn't show the update-grub which might give issues on boot.

    Before rebooting, run update-grub to be on the safe side.


    As for the issues on the log, you can check the proftpd packages with:

    dpkg -l | grep proftp It's a lowercase L


    And also, the status of it's service:

    systemctl status proftpd.service


    If you use the SEARCH function, there's some post on this same situation.



    Now, check that OMV is updated and show v6.x

    dpkg -l | grep openm

    You can also run the fix5to6script (again, lot's of threads on this)

    wget -O - https://github.com/OpenMediaVault-Plugin-Developers/installScript/raw/master/fix5to6upgrade | sudo bash

    and it will try to fix some errors.


    If, no errors show up, test all you need on the GUI and then (after update-grub) reboot to see if all is OK.

    To be on the safe side, make another clone of the OS, prior rebooting, ;)

  • Thanks a lot! So, here's an update:


    update-grub worked fine:

    Packages seem to be there?

    Code
    root@NAS:~# dpkg -l | grep proftp
    iU  proftpd-basic                       1.3.7a+dfsg-12+deb11u2         all                                          Transitional dummy package for ProFTPD
    iF  proftpd-core                        1.3.7a+dfsg-12+deb11u2         amd64                                        Versatile, virtual-hosting FTP daemon - binaries
    iU  proftpd-mod-crypto                  1.3.7a+dfsg-12+deb11u2         amd64                                        Versatile, virtual-hosting FTP daemon - TLS/SSL/SFTP modules
    iU  proftpd-mod-wrap                    1.3.7a+dfsg-12+deb11u2         amd64                                        Versatile, virtual-hosting FTP daemon - tcpwrapper module

    Service doesn't seem to be running though:

    Although tbh that shouldn't prevent me from finally rebooting, right? I don't need FTP. I could simply uninstall and reinstall it later, I guess?


    OMV should be updated:

    Code
    root@NAS:~# dpkg -l | grep openm
    ii  openmediavault                      6.3.10-2                       all          openmediavault - The open network attached storage solution
    ii  openmediavault-autoshutdown         6.0.9                          all          OpenMediaVault AutoShutdown Plugin
    ii  openmediavault-diskstats            6.0.3-1                        all          openmediavault disk monitoring plugin
    ii  openmediavault-keyring              1.0                            all          GnuPG archive keys of the OpenMediaVault archive
    ii  openmediavault-omvextrasorg         6.1.1                          all          OMV-Extras.org Package Repositories for OpenMediaVault
    ii  openmediavault-usbbackup            6.0.2-1                        all          openmediavault USB/eSATA backup plugin
    ii  openmediavault-wakealarm            6.0.1                          all          wakealarm plugin for OpenMediaVault.
    ii  openmediavault-wol                  6.1.3                          all          OpenMediaVault WOL plugin
    ii  openmediavault-zfs                  6.0.12                         amd64        OpenMediaVault plugin for ZFS

    Then I ran the script and encountered some errors at the end. I attached the log... I ran a search on the forum and from that it looks like that's no concern? So am I safe to check in the GUI and then reboot?

  • Packages seem to be there?

    They are but with problems: when you have a capital letter, it means issues/bad configuration.
    command line - What do the various dpkg flags like 'ii' 'rc' mean? - Ask Ubuntu


    I recall votdev helped/advised some other user on this: removing offending proftpd packages.

    I think it was to uninstall and reinstall the plugin.

    So am I safe to check in the GUI and then reboot?

    I can assume yes.

    Make again, a clone of the OS for safe measures, ;)


    Good luck

  • Thank you so much for your help! Indeed, everything worked after a reboot and my NAS is back up and running on Debian 11 + OMV 6 :)


    The only issue remaining are the proftpd packages. From the GUI, I cannot remove the plugin (the delete option is greyed out) and apt-get install --reinstall or dpkg-reconfigure both fail. The problematic package seems to be proftpd-core since everything else depends on that. For example:

    Tried to download and install core manually:

    I found the following thread where a user had the identical issue (also a broken proftpd-core), although they started out with a nonfunctional OMV installation: Upgrade fail - `Package openmediavault is not configured yet.`

    The last suggestion was to completely uninstall OMV, purge proftpd, and then reinstall OMV, but there was no feedback afterwards...


    I found this post by votdev but not sure if this is what you mean? RE: RPC service 'FTP' not found error: 404

    I tried systemctl unmask proftpd.service but afterwards, I'm still unable to reconfigure or reinstall the package.


    EDIT: One more issue - something still appears to be wrong with my sources because I get this error from my security update cron job:

    Code
    CRON-APT RUN [/etc/cron-apt/config]: Tue May  9 23:18:32 CEST 2023 CRON-APT SLEEP: 2976, Wed May 10 00:08:08 CEST 2023 CRON-APT ACTION: 5-openmediavault-security CRON-APT LINE: /usr/bin/apt-get --option quiet=1 --option APT::Get::List-Cleanup=false --option Dir::Etc::SourceList=/etc/apt/sources.list.d/openmediavault-os-security.list --option Dir::Etc::SourceParts="/dev/null" --option DPkg::Options::=--force-confold dist-upgrade --yes --option APT::Get::Show-Upgraded=true Reading package lists...
    E: The value 'bullseye' is invalid for APT::Default-Release as such a release is not available in the sources

    Now everything is changed to "bullseye" - I am not sure why it would say that release is not available?

  • Thank you so much for your help! Indeed, everything worked after a reboot and my NAS is back up and running on Debian 11 + OMV 6 :)

    Your welcome, ;)



    As for the rest, it's above my knowledge.
    I'll tag ryecoaaron to see if he can give you pointers on it, sorry.

  • /etc/apt/sources.list.d/openmediavault-os-security.list

    Post the output of:

    cat /etc/apt/sources.list.d/openmediavault-os-security.list

    sudo omv-upgrade

  • I cannot upgrade from OMV5 to OMV6 because the repository seems not to have a "Release file". This is what I get from omv-upgrade:


    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-es

    Ign:4 file:/var/cache/openmediavault/archives Translation-es

    Get:5 file:/var/cache/openmediavault/archives Translation-en

    Ign:5 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-es

    Ign:4 file:/var/cache/openmediavault/archives Translation-es

    Get:5 file:/var/cache/openmediavault/archives Translation-en

    Ign:5 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-es

    Ign:4 file:/var/cache/openmediavault/archives Translation-es

    Get:5 file:/var/cache/openmediavault/archives Translation-en

    Ign:5 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-es

    Ign:4 file:/var/cache/openmediavault/archives Translation-es

    Get:5 file:/var/cache/openmediavault/archives Translation-en

    Ign:5 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-es

    Ign:4 file:/var/cache/openmediavault/archives Translation-es

    Get:5 file:/var/cache/openmediavault/archives Translation-en

    Ign:5 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-es

    Ign:4 file:/var/cache/openmediavault/archives Translation-es

    Get:5 file:/var/cache/openmediavault/archives Translation-en

    Ign:5 file:/var/cache/openmediavault/archives Translation-en

    Get:3 file:/var/cache/openmediavault/archives Packages

    Get:4 file:/var/cache/openmediavault/archives Translation-es

    Ign:4 file:/var/cache/openmediavault/archives Translation-es

    Get:5 file:/var/cache/openmediavault/archives Translation-en

    Ign:5 file:/var/cache/openmediavault/archives Translation-en

    Hit:6 http://deb.debian.org/debian buster InRelease

    Hit:7 http://deb.debian.org/debian buster-updates InRelease

    Hit:8 http://archive.debian.org/debian buster-backports InRelease

    Hit:10 http://security.debian.org/debian-security buster/updates InRelease

    Get:11 https://download.docker.com/linux/debian buster InRelease [53.9 kB]

    Ign:12 http://httpredir.debian.org/debian buster-backports InRelease

    Get:13 https://openmediavault-plugin-…github.io/packages/debian usul InRelease [3928 B]

    Get:14 https://openmediavault-plugin-…github.io/packages/debian usul-testing InRelease [3932 B]

    Get:15 https://openmediavault.github.io/packages usul InRelease [12.7 kB]

    Get:16 https://openmediavault-plugin-…github.io/packages/debian usul-extras InRelease [3918 B]

    Hit:17 http://packages.openmediavault.org/public usul InRelease

    Hit:9 https://linux.teamviewer.com/deb stable InRelease

    Err:18 http://httpredir.debian.org/debian buster-backports Release

    404 Not Found [IP: 151.101.134.132 80]

    Reading package lists... Done

    E: The repository 'http://httpredir.debian.org/debian buster-backports Release' no longer has 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.


    Any help would be apreciated

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!