Solved - Trying to upgrade - Error Mirror read failed

Started by jackiebrown, February 07, 2024, 02:44:21 PM

Previous topic - Next topic
February 07, 2024, 02:44:21 PM Last Edit: February 09, 2024, 03:58:20 PM by jackiebrown
I've been trying to upgrade for a few days now. For a while, i was getting "release opnsens not found on mirror" or something very similair.

This would go away if I changed to development but the upgrade would fail with pkg errors.

Now, no matter what mirror or verison I choose, i get
"Mirror Read Failed."

I have tried updating on the gui and shell. Any ideas where to look to fix this?

I have a lot of plug ins that say missing as well which may be the cause of the orginal pkg errors.

I rebooted annd am back to the original error

Currently running OPNsense 23.7.12_5 at Wed Feb  7 08:42:16 CST 2024
Fetching changelog information, please wait... Mirror read failed.
Missing /usr/local/etc/pkg/repos/OPNsense.conf.sample
fetch: /sets/changelog.txz: No such file or directory
self: No packages available to install matching 'opnsense'

I tried coping the OPNsense.conf to OPNsense.conf.sample


***GOT REQUEST TO CHECK FOR UPDATES***
Currently running OPNsense 23.7.12_5 at Wed Feb  7 08:52:38 CST 2024
Fetching changelog information, please wait... Mirror read failed.
Mirror read failed.
fetch: /sets/changelog.txz: No such file or directory
self: No packages available to install matching 'opnsense'

The mirror is blank in the status page under firmware no mater what i change it to.

I am assuming the repo it's using is at /usr/local/etc/pkg/repos/OPNsense.conf

That's from googling. I am used to debians /etc/apt.

In the file, the url shows url://file///var/cache/opnsense-update/.sets.pending/packages-24.1

Changing the mirror using the web gui doesn't seem to change anything here.

I also tried opnsense-bootstrap
It downlaods but then tells me "pkg already bootstrapped at /usr/local/sbin/pkg" and then does nothing

Googling that error helped

This fixed it for me

pkg-static install pkg
fetch https://raw.githubusercontent.com/opnsense/update/master/src/bootstrap/opnsense-bootstrap.sh.in
sh ./opnsense-bootstrap.sh.in -r 24.1

Not sure if I needed the one in git but wanted to make sure I had the newest.