root@OPNsense:~ # df -hFilesystem Size Used Avail Capacity Mounted onzroot/ROOT/24.1.10_8 207G 2.3G 205G 1% /devfs 1.0K 1.0K 0B 100% /dev/dev/gpt/efiboot0 260M 1.8M 258M 1% /boot/efizroot 205G 96K 205G 0% /zrootzroot/usr/home 205G 96K 205G 0% /usr/homezroot/var/crash 205G 96K 205G 0% /var/crashzroot/var/audit 205G 96K 205G 0% /var/auditzroot/tmp 205G 624K 205G 0% /tmpzroot/usr/ports 205G 96K 205G 0% /usr/portszroot/var/mail 205G 136K 205G 0% /var/mailzroot/var/log 206G 1.4G 205G 1% /var/logzroot/var/tmp 205G 100K 205G 0% /var/tmpzroot/usr/src 205G 96K 205G 0% /usr/srcdevfs 1.0K 1.0K 0B 100% /var/dhcpd/devdevfs 1.0K 1.0K 0B 100% /var/unbound/dev/usr/local/lib/python3.11 207G 2.3G 205G 1% /var/unbound/usr/local/lib/python3.11/lib 207G 2.3G 205G 1% /var/unbound/libroot@OPNsense:~ # zpool listNAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOTzroot 224G 12.3G 212G - - 16% 5% 1.00x ONLINE -
***GOT REQUEST TO AUDIT HEALTH***Currently running OPNsense 24.1.10_8 at Sat Aug 31 11:02:32 EDT 2024>>> Root file system: zroot/ROOT/24.1.10_8>>> Check installed kernel versionVersion 24.1.8 is correct.>>> Check for missing or altered kernel filesNo problems detected.>>> Check installed base versionVersion 24.1.8 is correct.>>> Check for missing or altered base filesNo problems detected.>>> Check installed repositoriesOPNsense>>> Check installed pluginsos-api-backup 1.1os-ddclient 1.22os-igmp-proxy 1.5_2os-iperf 1.0_1os-mdns-repeater 1.1_1os-net-snmp 1.5_4os-nut 1.8.1_2os-realtek-re 1.0os-telegraf 1.12.11os-udpbroadcastrelay 1.0_3os-upnp 1.5_6os-wol 2.4_2>>> Check locked packagesNo locks found.>>> Check for missing package dependenciesChecking all packages: .......... done>>> Check for missing or altered package filesChecking all packages: .......... done>>> Check for core packages consistencyCore package "opnsense" has 68 dependencies to check.Checking packages: ..................................................................... done***DONE***
/usr/local/lib/ipsec /usr/local/lib/perl5/5.36/mach/CORE32-bit compatibility ldconfig path:done.>>> Invoking early script 'upgrade'!!!!!!!!!!!! ATTENTION !!!!!!!!!!!!!!!! A critical upgrade is in progress. !! Please do not turn off the system. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!/usr/local/sbin/opnsense-update: /var/cache/opnsense-update/.sets.pending/base-freebsd-version/bin/freebsd-version: Permission denied!!!!!!!!!!!! ATTENTION !!!!!!!!!!!!!!!! A critical upgrade is in progress. !! Please do not turn off the system. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Installing packages-24.7-amd64.tar...pkg-1.19.2_1: already unlockedUpdating OPNsense repository catalogue...pkg-static: Repository OPNsense has a wrong packagesite, need to re-create databaseFetching meta.conf: . doneFetching packagesite.pkg: .......... doneProcessing entries:pkg-static: wrong architecture: FreeBSD:14:amd64 instead of FreeBSD:13:amd64pkg-static: repository OPNsense contains packages with wrong ABI: FreeBSD:14:amd64Processing entries... doneUnable to update repository OPNsenseError updating repositories!Rebooting now.Waiting (max 60 seconds) for system process `vnlru' to stop... doneWaiting (max 60 seconds) for system process `syncer' to stop...Syncing disks, vnodes remaining... 0 0 0 0 0 0 0 doneAll buffers synced.Uptime: 34suhub1: detacheduhub0: detached
root@OPNsense:~ # ls -al /var/cache/opnsense-update/total 10drwxr-x--- 3 root wheel 3 Aug 31 08:50 .drwxr-xr-x 6 root wheel 6 May 28 08:51 ..drwxr-x--- 2 root wheel 4 Aug 31 08:50 77836
Here is the ls:Code: [Select]root@OPNsense:~ # ls -al /var/cache/opnsense-update/total 10drwxr-x--- 3 root wheel 3 Aug 31 08:50 .drwxr-xr-x 6 root wheel 6 May 28 08:51 ..drwxr-x--- 2 root wheel 4 Aug 31 08:50 77836I didn't touch anything in /var
opnsense-update -bkr 24.7.3
I tried to update from 24.1 to 24.7 multiple times and got the same weird issue after reboot that OP described as well (kernel showing an update to 24.1 from 24.7) as well as internet not working. I tried it from the Web UI first, then via SSH, also tested live boot as well.Updating from web UI - the update "completes" but after reboot incorrect versions shows and the Internet doesn't work (though local access to devices like home assistant does) and a kernel "update" is available from from 27.1 to 24.1.Update via SSH shell update as well (option 12) - after reboot, same as above, no internet, and webUI shows incorrect versionsI also tried a live boot of the new version and importing my current config, which also fails in that internet doesn't work, though this might be because of services not aligning with settings (I use unbound and adguard DNS both as packages on OPNsense)my ssd has tons of space - just found this thread so haven't tried another mirror yet, but i did try a health audit which yielded a checksum mismatch with my adguard home package though i don't think this is related (i assume it's since i hit update in the adguard webUI rather than letting opnsense package manager update adguard).Additional note:I first noticed this some weeks ago, and i wasn't even on 24.1.10 yet - and one thing i tried was declining the major update and instead trying to do the latest minor update (to 24.1.10), and that one was successful.
Before anything, make a copy of the config file first.Since you know how to use bectl, what's the output for this command ? Code: [Select]opnsense-update -bkr 24.7.3If it exits cleanly asking for a reboot do as it says, ssh in and check for updates to sync the rest of the packages.Whatever output you can post here - no matter how irrelevant it may seem - could be helpful. This is what I would do anyway before either a) Franco chimes in with a better solution OR b) time is of the essence and installing 24.7 from scratch and importing the config is something that cannot be avoided anymore
Quote from: jcsp101 on August 31, 2024, 10:28:38 pmI tried to update from 24.1 to 24.7 multiple times and got the same weird issue after reboot that OP described as well (kernel showing an update to 24.1 from 24.7) as well as internet not working. I tried it from the Web UI first, then via SSH, also tested live boot as well.Updating from web UI - the update "completes" but after reboot incorrect versions shows and the Internet doesn't work (though local access to devices like home assistant does) and a kernel "update" is available from from 27.1 to 24.1.Update via SSH shell update as well (option 12) - after reboot, same as above, no internet, and webUI shows incorrect versionsI also tried a live boot of the new version and importing my current config, which also fails in that internet doesn't work, though this might be because of services not aligning with settings (I use unbound and adguard DNS both as packages on OPNsense)my ssd has tons of space - just found this thread so haven't tried another mirror yet, but i did try a health audit which yielded a checksum mismatch with my adguard home package though i don't think this is related (i assume it's since i hit update in the adguard webUI rather than letting opnsense package manager update adguard).Additional note:I first noticed this some weeks ago, and i wasn't even on 24.1.10 yet - and one thing i tried was declining the major update and instead trying to do the latest minor update (to 24.1.10), and that one was successful.It is unlikely you have the same issue, better open another thread for this - could be AGH causing the lack of Internet and that may be an easy fix allowing you to recover and complete the 24.7 upgrade
I really appreciate you guys looking into this! Thank you!I know how to use bectl, I'm quite nerdy but on the Linux side of things not bsd As far as I understand, this command triggers the update; why is it 24.7.3, not 24.7_9 ? I prepared two USB drives already to install a fresh 24.7, haha, but I really want to avoid the downtime.