Pkg stopped working and can't update 2.4.3-RELEASE-p1
-
One day I saw that the update stopped working and tried manually updating it. But all the sudden pkg in the console stopped working. It prints out nothing in the console. It's like its corupted somehow. I've tried all pkg commands, but all of them returns nothing. Just a new line.
Anyone else experienced this and know how to fix it? I would really hate to install pfsense again...
Release version: 2.4.3-RELEASE-p1
Best regards,
Claus -
It looks like you have no WAN IP there, do you have a default route even?
You might try using
pkg-static
instead of pkg.Steve
-
I've experienced it on a couple of our production servers. No idea what is causing this problem. Had to reinstall the server. First I thought it might had been a hdd problem, but turns out it happen on 2 computers now. First it stops being able to update and the pkg stops working at all.
PS: I added a black mask over the ip
-
Next best possibility : DNS setup hosed.
Try
pkg-static -d update
this should return info like :DBG(1)[6473]> pkg initialized Updating pfSense-core repository catalogue... DBG(1)[6473]> PkgRepo: verifying update for pfSense-core DBG(1)[6473]> Pkgrepo, begin update of '/var/db/pkg/repo-pfSense-core.sqlite' DBG(1)[6473]> Fetch: fetching from: https://files01.netgate.com/pfSense_v2_4_3_amd64-core/meta.txz with opts "i" DBG(1)[6473]> Fetch: fetching from: https://files01.netgate.com/pfSense_v2_4_3_amd64-core/packagesite.txz with opts "i" pfSense-core repository is up to date. Updating pfSense repository catalogue... DBG(1)[6473]> PkgRepo: verifying update for pfSense DBG(1)[6473]> Pkgrepo, begin update of '/var/db/pkg/repo-pfSense.sqlite' DBG(1)[6473]> Fetch: fetching from: https://files01.netgate.com/pfSense_v2_4_3_amd64-pfSense_v2_4_3/meta.txz with opts "i" DBG(1)[6473]> Fetch: fetching from: https://files01.netgate.com/pfSense_v2_4_3_amd64-pfSense_v2_4_3/packagesite.txz with opts "i" pfSense repository is up to date.
Also : check if another instance is already running :
ps -ax | grep 'pkg'
-
You are on 2.4.3-p1, there are no new updates from that yet (2.4.4 will be out soon, but not yet).
Before you make any other changes, go to System > Update, Update Settings tab, then set Branch to Latest Stable Version.
Next, force an update and do a little cleanup:
$ pkg-static update -f $ pkg-static clean -ay $ pkg-static install -fy pkg pfSense-repo pfSense-upgrade $ pkg-static update -f
-
@cbadk said in Pkg stopped working and can't update 2.4.3-RELEASE-p1:
2.4.3-RELEASE-p1
lol ....
Like Windows Update : if all is up to date it shows ... nothing -
It should still return that:
[2.4.3-RELEASE][root@pfsense.fire.box]/root: pkg update Updating pfSense-core repository catalogue... pfSense-core repository is up to date. Updating pfSense repository catalogue... pfSense repository is up to date. All repositories are up to date.
We haven't seen if
pkg-static
responds yet though.Steve
-
We "image" the pfsense routers once a week. As far as I remember none of the pkg commands worked - pkg-static ..etc, and thats why we werent able to install any packages either. But as said before, since I have reinstalled the server it works again. If it happens again I will try and look at the image and see what changed and maybe get an idea why it stops working.
Thanks for the help anyway.