[Solved (a hard way)] Update to 25.7.6 failed

Started by ednt, October 24, 2025, 08:14:50 AM

Previous topic - Next topic
October 24, 2025, 08:14:50 AM Last Edit: October 24, 2025, 10:58:09 AM by ednt
Hi,

I did the trick with second search for updates after pkg was updated.
Update starts then like normal, but suddenly stucks and an Warning message appeard that the update failed.
Unfortunatley I don't know exactly where, but I think it was packet 4 of ..

Nothing works.

After a reboot I see the login prompt, but when I try to login, I get:

sh: /usr/local/libexec/opnsense-auth not found

and I'm not able to login.

Any idea?

Ok,

I booted into single user

used mount -u /
to make it writable

and created the file with

vi /usr/local/libexec/opnsense-auth
content:
#!/bin/sh

exit 0

Then

chmod 755 /usr/local/libexec/opnsense-auth
Now I can login after a normal boot.
But up to now no internet.

The core package is missing and I suspect this is because the new package manager screws up by removing the core package early and then failing on some dependency before putting the core package back, see https://forum.opnsense.org/index.php?topic=49423.0


Cheers,
Franco

October 24, 2025, 09:19:23 AM #3 Last Edit: October 24, 2025, 09:26:21 AM by ednt
I used

ifconfig bce3 192.168.0.123 netmask 255.255.255.0
and

route add default 192.168.0.254
And I'm back on net.
/etc/resolve was still ok.
Now I started with

pkg update -f
and

pkg upgrade
This works now as expected. ( At the moment [122/127] Extracting ruby-3.3.9.1)

Next I will check if opnsense-update is available, then I will give it a try.


> pkg upgrade

Do you have that particular output for me to prove the theory?


Cheers,
Franco

Hm...

opnsense-update
results in

QuoteMissing /usr/local/etc/pkg/repos/OPNsense.conf

I will try to create it by hand now.

Ups... there is no directory /usr/local/etc/pkg

mkdir /usr/local/etc/pkg
mkdir /usr/local/etc/pkg/repos
vi /usr/local/etc/pkg/repos/OPNsense.conf
with content:

QuoteOPNsense: {
  fingerprints: "/usr/local/etc/pkg/fingerprints/OPNsense",
  url: "https://pkg.opnsense.org/${ABI}/25.7/latest",
  signature_type: "fingerprints",
  priority: 11,
  enabled: yes
}

Now opnsense-update results in

QuoteNothing to do.

How can I force it?

Quote from: franco on October 24, 2025, 09:22:02 AM> pkg upgrade

Do you have that particular output for me to prove the theory?

Sorry, I'm at the console and can not copy anything.
But the FreeBSD upgrade worked without any problems.

Hm...

when I run

opnsense-update -gI get a log from the update before.
I attached it.

Can I run

opnsense-bootstrap.sh.in -r 25.7
Without loosing my (maybe) still available configuration of the interfaces and so on?

opnsense-update needs an argument. opnsense-bootstrap can help but you're simply suffering from a partial upgrade it seems and steamrolling over it is not the best approach yet.

I suspect all you need to do is this if the opnsense repo configuration is there again.

# pkg install opnsense
# pkg upgrade


Cheers,
Franco

Quote from: ednt on October 24, 2025, 09:57:24 AMHm...

when I run

opnsense-update -gI get a log from the update before.
I attached it.

That's only the long from the previous update:

Currently running OPNsense 25.7.4 (amd64) at Wed Oct 15 07:50:31 CEST 2025
[...]
opnsense: 25.7.4 -> 25.7.5

and it went completely fine

October 24, 2025, 10:38:17 AM #12 Last Edit: October 24, 2025, 10:41:26 AM by ednt
As written: the log is not the last log, but was the output of opnsense-update -g

pkg install opnsense
Was Ok.

First run of

pkg upgrade
results in a segmentation fault.

A second try is now running. ( [99/104] Extracting ruby-3.3.9.1)

System is up and running again with original configuration!

Thank you Franco for your help.

But I think a wait an additional week, before I update the Master.
Maybe you will find something to prevent this behaviour.


Btw. I don't think that the before mentioned segmentation fault is comming from a RAM error.
The system is a HP Server DL360 with ECC RAM and the iLO Management of the Server shows no RAM error.
Also the tests at start are Ok.

Question is when this segfault occurred, because I fixed one in pkg 2.3.1 that FreeBSD didn't fix and if you have the FreeBSD version that would explain a few things.


Cheers,
Franco