Opnsense corrupt after update

Started by waxhead, May 23, 2024, 01:27:30 AM

Previous topic - Next topic
May 23, 2024, 01:27:30 AM Last Edit: May 23, 2024, 01:31:14 AM by waxhead
I ran the latest update as of writing this and my opnsense box is now simply not working anymore.
All services are apparently gone and the ui only shows partly things.

I can ssh to the opnsense box and dmesg shows a never ending stream of lines with  pid+Python 3.11 with signal.4
The pid shows various numbers.
If i start unbound from the shell I can get access to the outside world and run pkg for example.

I am of the penguin kind so freebsd is not my regular environment.

Is there some way of repairing my nonsense box via the tools or do I have to reinstall from scratch?
E.g. what can I do to get the system back up to a working state from the shell??

(Sorry for lack of detail but I am writing this from my phone due to lack of connectivity)

(Ps! The box is a intel core 2 machine just for the record)


Frequent signal 4 - illegal instruction - smells like a severe memory or CPU failure to me. Is the unit cooled properly?
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Absolutely. It is well cooled and memtest is good as well. Voltages is also checked.
I doubt it is a hardware problem.

Reinstall, restore configuration.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Reinstalled and configuration restored (and since everything is working nicely there is definitively no hardware issue).

It is a shame, because since the FreeBSD part of the OS was working with pkg and everything one would think it would be possible to re-install from a half-broken system. Is not OPNsense "just" a package over FreeBSD? It would have been nice to recover the system without doing a full reinstall.

That being said to put a positive spin on this , reinstalling and restoring the configuration is done rather quickly and I got to play with ZFS as root as well.

Quote from: waxhead on May 24, 2024, 12:01:35 PM
Is not OPNsense "just" a package over FreeBSD?
No.

Quote from: waxhead on May 24, 2024, 12:01:35 PM
It would have been nice to recover the system without doing a full reinstall.
You could have tried opnsense-bootstrap, but I would not trust a system in such a broken state, so I recommended a fresh install.

ZFS is much more resilient to corruption by e.g. power loss, and you get snapshots and boot environments.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)