Updates havent been possible in over a year

Started by fabrice, February 02, 2023, 05:27:51 PM

Previous topic - Next topic
Hi,

I have been using OPNsense for years but since 21.7 I've been unable to update with the error that the mirrors dont exist.

I've postponed this issue for a year as I always lack time and really didn't feel like reinstalling. Now I finally decided to tackle this issue as my ISP needs me to adjust other things anyways.

So I am getting the error message that the mirror dosent exists on either default or any mirror I've tried (See screenshot).

Is there anyways I can fix this and update or do I really need to reinstall ? If so whats the best way to backup and restore my config in the reinstall process ?

Thank you in advance.

February 02, 2023, 05:42:10 PM #1 Last Edit: February 02, 2023, 05:44:45 PM by debrucer
I would recommend starting with "system/firmware/settings" and pay attention to the "flavour" and "type" settings in particular. "OpenSSL" and "Community" are the two that I am currently using; but I experimented with the settings before getting there. Try different mirrors, first near your location, and then near the countries where there is more going on - like, well, I don't know. Do not rely on "default" or "custom"... Once we got over the hump, these were the only settings we need (clip attached).

Good luck!
David

Here is what I am doing right now trying to fix this

I enabled ssh on a new admin user
I am running minor updates from command line (This worked!)
I am running 22.1 updates from command line and this seams successful until it reboots back into 21.7.8
Tried about a dozen mirrors with openssh/community to no avail
Tried "pkg bootstrap -f" as the error message was suggesting but that also failed with:

pkg: Error fetching http://mirror.sfo12.us.leaseweb.net/opnsense/FreeBSD:13:amd64/21.7/latest/Latest/pkg.txz: Not Found
A pre-built version of pkg could not be found for your system.
Consider changing PACKAGESITE or installing it from ports: 'ports-mgmt/pkg'.


Any suggestions ?

I did backup my config to my google drive account but i'm not sure whats the best way to restore during install.

I don't know how or why the package string is being built that way, or if it meant to be but it won't work like that.
21.7 was built on freeBSD 12 and your string is looking for freeBSD13 and version 21.7 so it won't be found in any mirror IMHO.
You can verify by browsing or wget to the URI. Truncate the string back to where it starts not giving you a 404 and you'll see you can only get to /opnsense/FreeBSD:13:amd64/22.1 or 22.7 or 23.1 and not 21.7 which is part of freeBSD:12
How to fix it from here "the right way" I don't know.
I'd be tempted to save config, install 22.7 and restore config.


Versions
OPNsense 21.7.8-amd64
FreeBSD 13.0-STABLE
OpenSSL 1.1.1m 14 Dec 2021


Well somehow I'm running freebsd 13 with opnsense 21.7.

Must have crashed mid update somewhere and left me with a frankeninstall.

Ok. Not a bad place to be IMO. I would shutdown completely, power off for a few 30 secs, just in case. Then boot up and use the UI's Run an Audit. For health and then upgrade. It might take care of all magically.

21.7 doesn't exist on FreeBSD 13 so it seems something installed prevents the upgrade to it.

However, you can just force it via:

# opnsense-bootstrap -r 22.1


Cheers,
Franco

Entering this on the command line gave me the following message:


opnsense-bootstrap -r 22.1

Quote
Must be a FreeBSD 12 release.