OPNsense Forum

Archive => 24.1, 24.4 Legacy Series => Topic started by: eitch on February 01, 2024, 02:54:31 PM

Title: Upgrade to 24.1 fails
Post by: eitch on February 01, 2024, 02:54:31 PM
Upgrade failed from 23.7.12_5 to 24.1:


***GOT REQUEST TO UPGRADE***
Currently running OPNsense 23.7.12_5 at Thu Feb  1 14:47:47 CET 2024
Fetching packages-24.1-amd64.tar: ......... done
Fetching base-24.1-amd64.txz: ... done
Fetching kernel-24.1-amd64.txz: ... done
Extracting packages-24.1-amd64.tar...rm: /var/cache/opnsense-update/.sets.pending/packages-24.1/Latest: Device not configured
rm: /var/cache/opnsense-update/.sets.pending/packages-24.1: Directory not empty
***DONE***


This was the second try, the first time it failed also with an error message "Device not configured".

Previous updates worked, and just before this i upgraded to 23.7.12_5 from 23.7.11

Does anyone have an idea?
Title: Re: Upgrade to 24.1 fails
Post by: newsense on February 01, 2024, 02:59:56 PM
What does a healthckeck say there ? And how much free space do you have ?
Title: Re: Upgrade to 24.1 fails
Post by: eitch on February 01, 2024, 03:12:32 PM
Hi, thanks for replying.

I've got 44GB free, so should be more than enough.

Which health check would that be? Reporting / Health only shows me charts.
Title: Re: Upgrade to 24.1 fails
Post by: newsense on February 01, 2024, 03:17:34 PM
In the console press 12 and when asked the y/n question press h

In the GUI - Firmware section - Audit Health
Title: Re: Upgrade to 24.1 fails
Post by: eitch on February 01, 2024, 03:21:18 PM
Looks ok:


***GOT REQUEST TO AUDIT HEALTH***
Currently running OPNsense 23.7.12_5 at Thu Feb  1 15:19:39 CET 2024
>>> Root file system: /dev/gpt/rootfs
>>> Check installed kernel version
Version 23.7.10 is correct.
Unverified consistency check for kernel: invalid /usr/local/opnsense/version/kernel.mtree.sig
>>> Check for missing or altered kernel files
No problems detected.
>>> Check installed base version
Version 23.7.10 is correct.
Unverified consistency check for base: invalid /usr/local/opnsense/version/base.mtree.sig
>>> Check for missing or altered base files
No problems detected.
>>> Check installed repositories
OPNsense
mimugmail
>>> Check installed plugins
os-ddclient 1.20
os-igmp-proxy 1.5_2
os-intrusion-detection-content-pt-open 1.0_1
os-intrusion-detection-content-snort-vrt 1.1_1
os-speedtest-community 0.9_4
os-wireguard 2.6
>>> Check locked packages
No locks found.
>>> Check for missing package dependencies
Checking all packages: .......... done
>>> Check for missing or altered package files
Checking all packages: .......... done
>>> Check for core packages consistency
Core package "opnsense" has 69 dependencies to check.
Checking packages: ...................................................................... done
***DONE***
Title: Re: Upgrade to 24.1 fails
Post by: newsense on February 01, 2024, 09:22:55 PM
QuoteUnverified consistency check for kernel: invalid /usr/local/opnsense/version/kernel.mtree.sig

Unverified consistency check for base: invalid /usr/local/opnsense/version/base.mtree.sig


First of all I'd reinstall kernel and base. I something goes wrong post it here before rebooting, else reboot, do a health check again and try to update

opnsense-update -fbkr 24.1
Title: Re: Upgrade to 24.1 fails
Post by: eitch on February 05, 2024, 10:12:00 AM
So it seems my disk failed. I tried to do a reboot and the system never came back up, so i check and the disk was "empty". I reinstalled everything and now it works again.

Does Opnsense have some kind of S.M.A.R.T reporting? Maybe i could have seen this coming.

Thanks anyhow for the help.
Title: Re: Upgrade to 24.1 fails
Post by: Patrick M. Hausen on February 05, 2024, 10:18:43 AM
Install the os-smart plugin  ;)

There's a dashboard widget, a manual test and report function in "Services" and various cron job options.
Title: Re: Upgrade to 24.1 fails
Post by: eitch on February 05, 2024, 10:42:58 AM
Right you are! Thanks!