Update issue after updating zo 27.7

Started by greaman, July 30, 2024, 06:30:06 AM

Previous topic - Next topic
July 30, 2024, 06:30:06 AM Last Edit: July 30, 2024, 06:42:47 AM by greaman
Good morning, seems the update in my remote opnsense didn't complete properly as the status says
OPNsense 24.1.10_8-amd64
FreeBSD 14.1-RELEASE-p2
OpenSSL 3.0.14

The kernel however seems to be on 24.7 already
root@insharam:~ # uname -a
FreeBSD insharam 14.1-RELEASE-p2 FreeBSD 14.1-RELEASE-p2 stable/24.7-n267758-4ad7ad40bc77 SMP amd64

when I try to update it can't find the version on the mirror and I get a warning
pkg: Warning: Major OS version upgrade detected.  Running "pkg bootstrap -f" recommended
pkg: Repository OPNsense has a wrong packagesite, need to re-create database
pkg: Repository OPNsense cannot be opened. 'pkg update' required

I have tried a ppg update/pkg bootstrap and seeting the packagesite via ENV - no joy so far. Anything I could still try except for driving there and reinstall/update?

Update:
found this thread https://forum.opnsense.org/index.php?topic=27062.msg131362#msg131362
opnsense-update -pA 24.7 seemed to have done the trick

Ok, second report. I'm not sure why it refused to install the packages set the first time since you clearly landed on 24.7 for both base and kernel. Disk space low maybe?


Cheers,
Franco

August 17, 2024, 11:22:41 PM #2 Last Edit: August 17, 2024, 11:26:19 PM by Simon42
Hi,
I updated 3 opnsense vms today as well and experienced this issue on 1 of them.
I don't know if it's just a coincidence, but the one that broke is using zfs (other 2 still use ufs).
Fixed it using:
- opnsense-update -sn "24\.7\/latest"
- pkg update
- opnsense-update -pA 24.7

PS:
were at something like 24.1.6 before (don't remember the exact version)
update to 24.1.10 went through without issues
then proceeded with the update to 24.7

nothing reproduceable, just sharing some thinking to try and help track this down:
maybe something related to the recent zsh over ufs / zfs installer script changes?

@greaman do you use zsf or ufs?

> opnsense-update -pA 24.7

Should be all you need give that it does the same as the other two commands you posted before it.

From what I've seen this is due to

(1) pkg-upgrade leaving temporary files behind that it trips over on the next call, or
(2) "opnsense" core package not installed due to package manager database corruption.

I've worked on both problems for 24.7.2 but we'll only really see after 25.1 is out...

FWIW, I don't think anything really changed there over the years.


Cheers,
Franco