Upgrade Scripts for non-interactive major release upgrades (2->3, 3->4, 4->5)

  • I would try to fix the repos in /etc/apt/sources.list and /etc/apt/sources.list./* and upgrade manually, but the info you give is a bit space, so I do not know the state the system is in. The post scripts migrate the database, which may not happen, if you update manually, so you may have to to it manually too.

    Fixed the duplicate repos and tried run-parts through the run.d scripts (in hopes of a simple repair) but no upgrades occured. Guess it's off to search on the manual upgrade process. Thanks for the pointers!

  • apt update should pull omv5 if the repo is correct.

    Well, I had some missing dependencies so naturally I had a beer and clicked through.. and installed Chrony which removed OMV4. *sigh*


    If I install OMV5 at this point is it basically a fresh start? No way to transfer the OMV4 settings (not that I had customized much)? I still see my several TB of hosted data, I assume the install won't mess up any existing volumes and I'll just have to re-present them to the network.


    root@filer:/etc/apt/sources.list.d# apt-get upgrade openmediavault -s

    Reading package lists... Done

    Building dependency tree

    Reading state information... Done

    Calculating upgrade... Done

    The following NEW packages will be installed:

    openmediavault

    0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.

    Inst openmediavault (5.6.26-1 openmediavault.org archive:usul [all])

    Conf openmediavault (5.6.26-1 openmediavault.org archive:usul [all])


    EDIT: dpkg shows 4.x installed, is it possible to do a `dpkg -i openmediavault` to upgrade?


    dpkg -s openmediavault

    Package: openmediavault

    Status: deinstall ok config-files

    Priority: optional

    Section: admin

    Installed-Size: 11983

    Maintainer: Volker Theile <volker.theile@openmediavault.org>

    Architecture: all

    Version: 4.1.36-1

    Config-Version: 4.1.36-1

    Depends: perl:any, libjs-extjs6, php-fpm, libpam-modules, php-json, php-cgi, php-cli, php-mbstring, php-pam, sudo, ethtool, python3-dialog, acl, ifenslave, resolvconf, iproute2, xfsprogs, jfsutils, ntfs-3g, hdparm, sdparm, ifupdown, mdadm, postfix, libsasl2-modules, bsd-mailx, python3-dbus, cpufrequtils, rsyslog, logrotate, smartmontools, openssl, openssh-server, uuid, tzdata, nfs-kernel-server, proftpd-basic, lsb-release, sshpass, wget, util-linux, samba, samba-common-bin, rsync, apt-utils, wsdd (>= 0.3-2), avahi-daemon, libnss-mdns, iptables, monit, acpid, beep, php-bcmath, gdisk, rrdtool, collectd, cron, anacron, cron-apt, quota, php-xml, quotatool, whiptail, lvm2, watchdog, ca-certificates, perl, libjson-perl, liblocale-po-perl, proftpd-mod-vroot, libjavascript-minifier-xs-perl, coreutils, xmlstarlet, mount, parted, bash, diffutils, lsof, socat, rrdcached, locales, nginx, bash-completion, python3, python3-apt, pm-utils, wpasupplicant, systemd, systemd-sysv, btrfs-progs, samba-vfs-modules, pciutils, python3-pyudev, python3-natsort, jq, ntp, python3-netifaces, udev, apt-transport-https, python3-lxml, debconf (>= 0.5) | debconf-2.0

    Conffiles:

    /etc/apt/apt.conf.d/99openmediavault-apt-hooks 6f86688582c8e64a1383c69b02ba74e0

    ...

  • Just to leave a resolution on my issue, successfully performed the upgrade (apt upgrade openmediavault) and selectively ran files in post.d (skipping deborphan) to restore configuration. Services are working as expected under OMV5 just in time for buster EOL. Will do a fresh install on a new RPi4 once OMV6 goes final.

  • Will do a fresh install on a new RPi4 once OMV6 goes final.

    OMV6 is final for some time now see https://openmediavault.readthe…o/en/stable/releases.html

    omv 6.9.6-2 (Shaitan) on RPi CM4/4GB with 64bit Kernel 6.1.21-v8+

    2x 6TB 3.5'' HDDs (CMR) formatted with ext4 via 2port PCIe SATA card with ASM1061R chipset providing hardware supported RAID1


    omv 6.9.3-1 (Shaitan) on RPi4/4GB with 32bit Kernel 5.10.63 and WittyPi 3 V2 RTC HAT

    2x 3TB 3.5'' HDDs (CMR) formatted with ext4 in Icy Box IB-RD3662-C31 / hardware supported RAID1

    For Read/Write performance of SMB shares hosted on this hardware see forum here

  • Hello guys,


    sorry to bother you again with another issue.


    I am in the update process from 4 -> 5 with the scripts mentioned at the beginning of this thread.


    So i followed the procedure and ended all servicese but ssh,


    uninstalled all not used plugins, checked that the grub is still pointing to the right device. I also did the post #9 (omv-extras to github) from


    Then i startet the update:


    First i got the following error 11 and the following errorlog: For me it seems something was still wrong with omv-extras to github.

    omv_release_upgrade_to_buster.2022-06-20-223302.txt


    Can you check somehow, if omv-extras is switched correctly to github?

    Because of the error i uninstalled additionally to the not used plugins my needed plugins, also omv-extras.


    Then i started the script again and got a different errorlog, now without bintray. Unfortunately it stops again with code 11

    omv_release_upgrade_to_buster.2022-06-21-003152.txt


    Another thing is that now all plugins, i uninstalled before, do even not show up anymore in the plugin list. So i don´t know, if this is the reason i got no bintray issues in the log?



    i really would appreciate any help on this matter, as i don´t know how to proceed with the update.


    thank you so much for your help.


    Frank

    • Official Post

    What are my options for upgrading to OMV 5?

    You should be on OMV 6. So, that would a 3 to 4 to 5 to 6 set of upgrades. I never released an omv-extras 4.x package. You would have to uninstall omv-extras and do the upgrades then reinstall omv-extras. Sure would be easier to do a fresh install of OMV 6.x.

    omv 8.0.6-2 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.2 | compose 8.1.2 | cterm 8.0 | borgbackup 8.0.2 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • You should be on OMV 6. So, that would a 3 to 4 to 5 to 6 set of upgrades. I never released an omv-extras 4.x package. You would have to uninstall omv-extras and do the upgrades then reinstall omv-extras. Sure would be easier to do a fresh install of OMV 6.x.

    Thank you so much for the advice- I will look into a fresh install :)

  • Hi,

    i'm thinking about upgrading from OMV 4.1.36-1 and Linux 4.19 to something newer.

    I know about the pro's, but my con's are: OMV is running fine, not accessible from the internet and I have only litte time to care about possible problems. Additional services are running as Docker-Container (urbackup, plex, vpn, pihole) but I made some changes to some configs, so I'm not sure if the automatic upgrade process would be painless. Backing up OMV is a given, but restoring could also be risky, although I've done it before.


    As preparation i had a look at

    debconf-show grub-pc | grep -w grub-pc/install_devices

    from the initial post and

    debconf-show grub-pc

    But those give me no return, just a new promt. - This is not the expected result?


    The System is running from a SDD on a Intel Celeron System (amd64). And according to

    [ -d /sys/firmware/efi ] && echo UEFI || echo BIOS

    booted from efi.

    • Official Post

    You would have to go from OMV4 to OMV5 to OMV6 to OMV7. Each step comes with a different Debian version. Most of them are end of life.

    This will be a pain. You should make screenshots from your settings and do a fresh install.

  • Phew, if you say so yourself.... I wouldn't want to have the very latest version, but a bit newer would be nice for me. But it doesn't make it any easier that the old package sources no longer exist.

    If the undertaking is so difficult, I'll stick with 4 and set it up again at some point when I have new hardware.

    • Official Post

    I wouldn't want to have the very latest version, but a bit newer would be nice for me

    Why? Everything older than OMV 7 is not supported/EOL. OMV 7 has been out for 6+ months. It is not bleeding edge.

    omv 8.0.6-2 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.2 | compose 8.1.2 | cterm 8.0 | borgbackup 8.0.2 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Because of the effort.

    If the upgrades are easy - no problem, then I'll go to the latest version. But if every version jump causes problems, involves breaking changes and requires manual intervention, I simply don't have the time. I don't run OMV as a hobby, but out of necessity.


    I would like to come back to my question above.

    As far as I understand it, the following command is supposed to provide a return and is a prerequisite to be able to use the upgrade script without problems.

    debconf-show grub-pc

    But this gives me no return, just an empty promt. Is this expected? (see preceding post #331 for my systems details)

    • Official Post

    I don't run OMV as a hobby, but out of necessity.

    If you run it out of necessity, you should stay up to date.


    debconf-show grub-pc

    But this gives me no return, just an empty promt. Is this expected?

    As macom said, this is expected on an UEFI system.


    Code
    # debconf-show grub-pc
    # dpkg -l | grep grub
    ii  grub-common                          2.12-1~bpo12+1                         amd64        GRand Unified Bootloader (common files)
    ii  grub-efi-amd64                       2.12-1~bpo12+1                         amd64        GRand Unified Bootloader, version 2 (EFI-AMD64 version)
    ii  grub-efi-amd64-bin                   2.12-1~bpo12+1                         amd64        GRand Unified Bootloader, version 2 (EFI-AMD64 modules)
    ii  grub2-common                         2.12-1~bpo12+1                         amd64        GRand Unified Bootloader (common files for version 2)
    #

    omv 8.0.6-2 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.2 | compose 8.1.2 | cterm 8.0 | borgbackup 8.0.2 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • ok, thanks!


    I ran the script "omv-release-upgrade-5" but it finished with error code 100, while processing

    run-parts: executing /home/openmediavault-upgrade-4.7/run.d/10-apt-update.


    There were many "Ign" while fetching new packages and some "Err". The logfile finishes with the following lines:


    I didn't get the impression that much happened. Therefore, and because I had nothing to lose, I started the script a second time.

    This time much more happend, Things were upgraded, configs were changed (nor not, because of manual changes) and I saw "buster" multiple times. Eventually the script finished with the same error as before.


    After a reboot OMV was broken. I couldn't log into the GUI due to "software error/wrong password". I cleared the browser cache, tried a different browser, resetted user lock and changed Password with omv-firstaid, but no cure.


    At this point I gave up and restored my backup.

    If you have a definite tip and a simple solution as to what is causing the errors, I would try again. Otherwise.... not.

  • I'll help my myself:


    The original debain stretch repositorys are no longer available.

    I made the edits to /etc/apt/sources.list as described in this post:


    Additionally I followed the instructions in this post (RE: omv-extras repos moving to github) literally. I had done this before, but I tried to be smart and didn't delete/rename the file, but edited it because I didn't want to lose the other entries in it. That was wrong. Follow the instructions! The file will be recreated later by OMV anyway.


    Now i can run sudo apt-get update without errors. That takes me a small step further.

Participate now!

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