issue update half failed

Started by helpede11, July 26, 2024, 03:54:10 PM

Previous topic - Next topic
I seem to be on the new build but im getting this error when updating

***GOT REQUEST TO REINSTALL***
Currently running OPNsense 24.1.10_8 at Fri Jul 26 08:49:29 CDT 2024
Fetching base-24.7-amd64.txz: ..[fetch: https://pkg.opnsense.org/FreeBSD:14:amd64/24.1/sets/base-24.7-amd64.txz.sig: Not Found] failed, no signature found


seems my update half way updated. it shows
Versions   OPNsense 24.1.10_8-amd64

but it also shows I have

   Version   Size   Repository   License   Comment   
base   24.7   640.7MiB   OPNsense   BSD2CLAUSE   FreeBSD userland set   
kernel   24.7   175.2MiB   OPNsense   BSD2CLAUSE   FreeBSD kernel set


I also have the new dashboard

You seem to be the first one. Congrats. Can you share the upgrade log? You can access it from the firmware status tab.


Cheers,
Franco

***GOT REQUEST TO CHECK FOR UPDATES***
Currently running OPNsense 24.1.10_8 at Fri Jul 26 10:56:02 CDT 2024
Fetching changelog information, please wait... fetch: https://pkg.opnsense.org/FreeBSD:14:amd64/24.1/sets/changelog.txz: Not Found
Updating OPNsense repository catalogue...
pkg: https://pkg.opnsense.org/FreeBSD:14:amd64/24.1/latest/meta.txz: Not Found
repository OPNsense has no meta file, using default settings
pkg: https://pkg.opnsense.org/FreeBSD:14:amd64/24.1/latest/packagesite.pkg: Not Found
pkg: https://pkg.opnsense.org/FreeBSD:14:amd64/24.1/latest/packagesite.txz: Not Found
Unable to update repository OPNsense
Updating mimugmail repository catalogue...
Fetching meta.conf: . done
Fetching packagesite.pkg: ........ done
Processing entries: .......... done
mimugmail repository update completed. 202 packages processed.
Error updating repositories!
pkg: Repository OPNsense cannot be opened. 'pkg update' required
pkg: No packages available to upgrade matching 'pkg' have been found in the repositories
***DONE***

No, "Run an audit" -> "Upgrade"

***GOT REQUEST TO AUDIT HEALTH***
Currently running OPNsense 24.1.10_8 at Fri Jul 26 11:03:03 CDT 2024
>>> Root file system: /dev/gpt/rootfs
>>> Check installed kernel version
Version 24.7 is correct.
>>> Check for missing or altered kernel files
No problems detected.
>>> Check installed base version
Version 24.7 is correct.
>>> Check for missing or altered base files

No, the "upgrade" one. If you don't have it you can say that please.



Ok, then...

# opnsense-update -ur 24.7 -A 24.7

And reboot


Good luck,
Franco


Can you add a DNS server in system-settings-general and try again ?

I'm sorry but it does something yet aborts which you're not showing so I can't help. If it's not even producing an upgrade log it is something small and you should see it in the console screen.

That being said I don't even know what the update command said you ran because depending on what it does it may be important.


Cheers,
Franco

Upgrade log
os-adguardhome-maxit-1.12: already unlocked
Updating OPNsense repository catalogue...
pkg-static: Repository OPNsense has a wrong packagesite, need to re-create database
Fetching meta.conf: . done
Fetching packagesite.pkg: .......... done
Processing entries: .......... done
OPNsense repository update completed. 837 packages processed.
All repositories are up to date.
Updating OPNsense repository catalogue...
OPNsense repository is up to date.
All repositories are up to date.
Checking for upgrades (1 candidates): . done
Processing candidates (1 candidates): . done
Checking integrity... done (0 conflicting)
Your packages are up to date.
Checking all packages: . done

Ok I see the issue: along the way your package database got trashed and now it has no "opnsense" package installed that it seems even though all the files are there. This leads the system to keep working but the package manager refuses to do anything, which is quite problematic.

I'm not sure how to recover this being stuck between versions. I guess the easiest thing to try is:

# opnsense-update -sA 24.7
# pkg update -f
# pkg install opnsense
# pkg upgrade -f

Reboot to make sure it works properly.


Cheers,
Franco