Error after failed update
-
Hey there - I'm a bit stuck with a CE 2.6.0 > 2.7.0 which failed on me (I can provide the upgrade_log.latest.txt but would probably need to scour it for identifiers to snip first)
Following other advice on the forum, I can run "pkg-static -d update" with the following result
DBG(1)[83560]> pkg initialized Updating pfSense-core repository catalogue... DBG(1)[83560]> PkgRepo: verifying update for pfSense-core DBG(1)[83560]> Pkgrepo, begin update of '/var/db/pkg/repo-pfSense-core.sqlite' DBG(1)[83560]> Request to fetch pkg+https://pkg.pfsense.org/pfSense_v2_6_0_amd64-core/meta.conf DBG(1)[83560]> opening libfetch fetcher DBG(1)[83560]> Fetch > libfetch: connecting DBG(1)[83560]> Fetch: fetching from: https://pkg00-atx.netgate.com/pfSense_v2_6_0_amd64-core/meta.conf with opts "i" DBG(1)[83560]> Fetch: fetcher chosen: https DBG(1)[83560]> Request to fetch pkg+https://pkg.pfsense.org/pfSense_v2_6_0_amd64-core/packagesite.pkg DBG(1)[83560]> opening libfetch fetcher DBG(1)[83560]> Fetch > libfetch: connecting DBG(1)[83560]> Fetch: fetching from: https://pkg00-atx.netgate.com/pfSense_v2_6_0_amd64-core/packagesite.pkg with opts "i" DBG(1)[83560]> Fetch: fetcher chosen: https DBG(1)[83560]> Request to fetch pkg+https://pkg.pfsense.org/pfSense_v2_6_0_amd64-core/packagesite.txz DBG(1)[83560]> opening libfetch fetcher DBG(1)[83560]> Fetch > libfetch: connecting DBG(1)[83560]> Fetch: fetching from: https://pkg00-atx.netgate.com/pfSense_v2_6_0_amd64-core/packagesite.txz with opts "i" DBG(1)[83560]> Fetch: fetcher chosen: https pfSense-core repository is up to date. Updating pfSense repository catalogue... DBG(1)[83560]> PkgRepo: verifying update for pfSense DBG(1)[83560]> Pkgrepo, begin update of '/var/db/pkg/repo-pfSense.sqlite' DBG(1)[83560]> Request to fetch pkg+https://pkg.pfsense.org/pfSense_v2_6_0_amd64-pfSense_v2_6_0/meta.conf DBG(1)[83560]> opening libfetch fetcher DBG(1)[83560]> Fetch > libfetch: connecting DBG(1)[83560]> Fetch: fetching from: https://pkg00-atx.netgate.com/pfSense_v2_6_0_amd64-pfSense_v2_6_0/meta.conf with opts "i" DBG(1)[83560]> Fetch: fetcher chosen: https DBG(1)[83560]> Request to fetch pkg+https://pkg.pfsense.org/pfSense_v2_6_0_amd64-pfSense_v2_6_0/packagesite.pkg DBG(1)[83560]> opening libfetch fetcher DBG(1)[83560]> Fetch > libfetch: connecting DBG(1)[83560]> Fetch: fetching from: https://pkg00-atx.netgate.com/pfSense_v2_6_0_amd64-pfSense_v2_6_0/packagesite.pkg with opts "i" DBG(1)[83560]> Fetch: fetcher chosen: https DBG(1)[83560]> Request to fetch pkg+https://pkg.pfsense.org/pfSense_v2_6_0_amd64-pfSense_v2_6_0/packagesite.txz DBG(1)[83560]> opening libfetch fetcher DBG(1)[83560]> Fetch > libfetch: connecting DBG(1)[83560]> Fetch: fetching from: https://pkg00-atx.netgate.com/pfSense_v2_6_0_amd64-pfSense_v2_6_0/packagesite.txz with opts "i" DBG(1)[83560]> Fetch: fetcher chosen: https pfSense repository is up to date. All repositories are up to date.
Running the upgrade from shell gives
pfSense-repoc-static: si_get_packages: failed to run the pkg info command: /usr/local/sbin/pkg-static info -R --raw-format json-compact pfSense-pkg-\* 2>&1 pfSense-repoc-static: no pfSense packages installed ERROR: It was not possible to identify which pfSense kernel is installed
I've set the branch in the GUI to "Latest stable version (v2.7.0), saving, then setting back to v2.6.0. I have also run the commands "pfSense-repoc-static"
pfSense-repoc-static: si_get_packages: failed to run the pkg info command: /usr/local/sbin/pkg-static info -R --raw-format json-compact pfSense-pkg-\* 2>&1 pfSense-repoc-static: no pfSense packages installed
And then "pfSense-upgrade -d"
pfSense-repoc-static: si_get_packages: failed to run the pkg info command: /usr/local/sbin/pkg-static info -R --raw-format json-compact pfSense-pkg-\* 2>&1 pfSense-repoc-static: no pfSense packages installed ERROR: It was not possible to identify which pfSense kernel is installed
So, now I'm out of ideas, the firewall is still functioning, I'm hoping for a command line fix so I can avoid deracking the device and finding a keyboard/monitor to do a full install and restore... help?
-
@NZRob said in Error after failed update:
So, now I'm out of ideas,
Hi,
What does it say?
truss -o /root/truss_pkg_upgrade.log pkg upgrade
-
@DaddyGo sorry - I ended up doing the config backup, clean install, config restore. 5 mins thing a few days ago when I could finally get to the site. Would have preferred a remote fix, but sometimes you need physical fingers and thumbs :)