Cannot upgrade from 24.1.10_8 to 24.7

Started by Blatancy2409, August 31, 2024, 04:38:37 PM

Previous topic - Next topic
Nonsense, the only mandatory update is the last one in the series which in turn unlocks the path to the newly released major one.

Skipping a minor, whether accidentally or by choice, has no impact on the system, the same code will be present on a machine that did all the updates as they came out and on another that leap frogged from major release to latest minor release.

Quote from: NonGough on September 01, 2024, 11:19:32 PM
A question for the OPNsense maintainers is whether OPNsense should prevent skipping of even minor update releases to insure that all updates require and may assume that all the prior updates have been executed in chronological sequence.

That's certainly true for major releases, but not at all for minor releases. The package location is shared during minor releases making updates accumulative. Like all those people saying there are too many updates there is just one mandatory minor release to get to the next major release.  ;)


Cheers,
Franco

opnsense-update -bkr 24.7

This did not work. 24.1 booted again, but in an unusable state. I could not even log in to the console. Reverted back using bectl.

I attached the complete console log, but I don't see anything useful there...

Any further advice?


Wrong again, you're booting 14.1, so success so far

--<<BOOT>>---
Copyright (c) 1992-2023 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 14.1-RELEASE-p3 stable/24.7-n267778-bb2c86773c1b SMP amd64
FreeBSD clang version 18.1.5 (https://github.com/llvm/llvm-project.git llvmorg-18.1.5-0-g617a15a9eac9)
VT(vga): resolution 640x480
CPU: Intel(R) Atom(TM) CPU C3558 @ 2.20GHz (2200.21-MHz K8-class CPU)



Now you have a few lingering issues which may prevent successfully updating all the packages


Starting osudpbroadcastrelay.
osudpbroadcastrelay is not running.
Starting osudpbroadcastrelay.
eval: /usr/local/opnsense/scripts/OPNsense/Bind/setup.sh: not found
/usr/local/etc/rc.d/named: WARNING: failed to setup named
Starting named.
Starting flowd_aggregate.
Starting telegraf
su: pam_start: System error
/usr/local/etc/rc.d/snmpd: WARNING: snmpd configuration file /usr/local/share/snmp/snmpd.conf not readable by snmpd user
Starting snmpd.
ld-elf.so.1: Shared object "libssl.so.111" not found, required by "libpkg.so.4"
/usr/local/etc/rc.d/snmpd: WARNING: failed to start snmpd


The libssl line is the most concerning, makes me wonder if there are preexisting conditions there on 24.1. Absent that error message you would have moved on to upgrading all the packages and that would have been the end of it, but I doubt pkg is even working on 24.1 right now.


Probably best to save all configurations you have there outside config.xml and do a fresh install on 24.7

pkg works on 24.1...


root@OPNsense:~ # pkg search -o postfix
opnsense/os-postfix            SMTP mail relay
opnsense/os-postfix-devel      SMTP mail relay
mail/postfix                   Secure alternative to widely-used Sendmail

Just a partial upgrade here. Either opnsense-bootstrap works or you need to use an image to recover.


Cheers,
Franco