Unable to check for updates (SOLVED)
-
@jare-0 said in Unable to check for updates (SOLVED):
would doing a clean install of 22.05 and uploading my 22.01 config file clear up this issue?
Yes. An that's also probably quickest if you have local access to the firewall.
-
@techpro2004 thanks for your fix.
I was running stable 22.05.14 and since then I couldn't update to any version.With your fix, I can update mine to development version without any issues.
-
@stephenw10
I'm having a similar issue. Running pkg info pfSense-upgrade gives me the following:pfSense-upgrade-1.0_27 Name : pfSense-upgrade Version : 1.0_27 Installed on : Fri Sep 16 19:30:36 2022 EDT Origin : sysutils/pfSense-upgrade Architecture : FreeBSD:12:armv7 Prefix : /usr/local Categories : sysutils Licenses : APACHE20 Maintainer : coreteam@pfsense.org WWW : https://www.pfsense.org/ Comment : pfSense upgrade script Annotations : FreeBSD_version: 1203506 build_timestamp: 2022-09-08T00:04:38+0000 built_by : poudriere-git-3.3.99.20220831 port_checkout_unclean: no port_git_hash : 83c4d6dbf695 ports_top_checkout_unclean: yes ports_top_git_hash: 8065fbca4d5a repo_type : binary repository : pfSense Flat size : 63.7KiB Description : pfSense upgrade script
And running pkg-static update -f gives me the following output:
Updating pfSense-core repository catalogue... pkg-static: Repository pfSense-core has a wrong packagesite, need to re-create database Fetching meta.conf: . done Fetching packagesite.pkg: . done Processing entries: pkg-static: wrong architecture: FreeBSD:12:amd64 instead of FreeBSD:12:armv7 pkg-static: repository pfSense-core contains packages with wrong ABI: FreeBSD:12:amd64 Processing entries... done Unable to update repository pfSense-core Updating pfSense repository catalogue... pkg-static: Repository pfSense has a wrong packagesite, need to re-create database Fetching meta.conf: . done Fetching packagesite.pkg: .......... done Processing entries: pkg-static: wrong architecture: FreeBSD:12:amd64 instead of FreeBSD:12:armv7 pkg-static: repository pfSense contains packages with wrong ABI: FreeBSD:12:amd64 Processing entries... done Unable to update repository pfSense Error updating repositories!
I have also tried the fix pinned at the top of this page. I do not have local access to the system. Running an SG-3100.
-
Ah, OK. That manual fix should not be required for any users any longer but also it would never have applied to the 3100 because it's an armv7 device not amd64. Hence the errors you see there. You need to revert that change did you keep a copy of the original file?
It should be:
FreeBSD: { enabled: no } pfSense-core: { url: "pkg+https://firmware.netgate.com/pkg/pfSense_plus-v22_05_armv7-core", mirror_type: "srv", signature_type: "fingerprints", fingerprints: "/usr/local/share/pfSense/keys/pkg", enabled: yes } pfSense: { url: "pkg+https://firmware.netgate.com/pkg/pfSense_plus-v22_05_armv7-pfSense_plus_v22_05", mirror_type: "srv", signature_type: "fingerprints", fingerprints: "/usr/local/share/pfSense/keys/pkg", enabled: yes }
What error are you seeing trying to update with that file in place?
-
@stephenw10
That seems to have worked. Thanks! -
Is it too much to ask for, to just release the installer for the latest version of pfsense plus. Here I am trying to resolve an issue with PFSense Plus 22.5 resulting in me having to do a fresh install. As other recovery methods aren't working, And in normal circumstances with my situation, The easiest method would be to just do a fresh install, and use my backup config to recover and go on with my day. But I cant simply install PFSense Plus, restore my backup. and get back to where I was and what I was working on. Instead I have to install an out outdated version of CE, upgrade that, Then upgrade that to PFSense Plus, 22.1 Then upgrade that again to 22.5. But for whatever reason, CE is having issues unable to check for updates. So, 5 fresh installs failed attempts later, multiple issues during one required update process or the next. An hour+ of my time wasted dealing with update issues trying to get an outdated version of CE to update Just so I can get to the point where I get PFSense Plus to install, so I can update that and Finally get to the current Non BETA version.
-
It should be possible to go from 2.6 to 23.01 directly once it's released. It will probably be possible to go from 2.7 but that is a moving target.
Other options are in development. -
@stephenw10 im in the same boat where i have remote sites, and to backdate firmware, i have to travel to site, backup, and install firmware from USB. I think it should be as easy to roll back firmware as it is to update. PS Sense is constantly informing you that there is an update, only to update and them find out there are issues.
-
If you're running a ZFS install and update from 22.05 to 23.01 it will automatically create a snapshot before the update and you can roll back it simply by selecting it.
-
@techpro2004 This just worked for me also. Was on 22.01-RELEASE and getting the "unable to check" error, 22.05 now shows as available.
-
I am having a similar issue on 5100. The difference being, I can see my installed packages, but the Available Packages is empty, nor is it able to check for system updates.
I have checked the pfSense.conf file. It looks to be correct (from what others have posted).
I have also tried switching to the development branch, then back.
pkg -d update
DBG(1)[96943]> pkg initialized
Updating pfSense-core repository catalogue...
DBG(1)[96943]> PkgRepo: verifying update for pfSense-core
DBG(1)[96943]> PkgRepo: need forced update of pfSense-core
DBG(1)[96943]> Pkgrepo, begin update of '/var/db/pkg/repo-pfSense-core.sqlite'
DBG(1)[96943]> Request to fetch pkg+https://firmware.netgate.com/pkg/pfSense_plus-v22_05_amd64-core/meta.conf
DBG(1)[96943]> opening libfetch fetcher
DBG(1)[96943]> Fetch > libfetch: connecting
DBG(1)[96943]> Fetch: fetching from: https://firmware.netgate.com/pkg/pfSense_plus-v22_05_amd64-core/meta.conf with opts "i"
DBG(1)[96943]> Fetch: fetching from: https://firmware.netgate.com/pkg/pfSense_plus-v22_05_amd64-core/meta.conf with opts "i"
DBG(1)[96943]> Fetch: fetching from: https://firmware.netgate.com/pkg/pfSense_plus-v22_05_amd64-core/meta.conf with opts "i"
DBG(1)[96943]> Request to fetch pkg+https://firmware.netgate.com/pkg/pfSense_plus-v22_05_amd64-core/meta.txz
DBG(1)[96943]> opening libfetch fetcher
DBG(1)[96943]> Fetch > libfetch: connecting
DBG(1)[96943]> Fetch: fetching from: https://firmware.netgate.com/pkg/pfSense_plus-v22_05_amd64-core/meta.txz with opts "i"
DBG(1)[96943]> Fetch: fetching from: https://firmware.netgate.com/pkg/pfSense_plus-v22_05_amd64-core/meta.txz with opts "i"
DBG(1)[96943]> Fetch: fetching from: https://firmware.netgate.com/pkg/pfSense_plus-v22_05_amd64-core/meta.txz with opts "i"
pkg: https://firmware.netgate.com/pkg/pfSense_plus-v22_05_amd64-core/meta.txz: No address record
repository pfSense-core has no meta file, using default settings
DBG(1)[96943]> Request to fetch pkg+https://firmware.netgate.com/pkg/pfSense_plus-v22_05_amd64-core/packagesite.pkg
DBG(1)[96943]> opening libfetch fetcher
DBG(1)[96943]> Fetch > libfetch: connecting
DBG(1)[96943]> Fetch: fetching from: https://firmware.netgate.com/pkg/pfSense_plus-v22_05_amd64-core/packagesite.pkg with opts "i"
DBG(1)[96943]> Fetch: fetching from: https://firmware.netgate.com/pkg/pfSense_plus-v22_05_amd64-core/packagesite.pkg with opts "i"
DBG(1)[96943]> Fetch: fetching from: https://firmware.netgate.com/pkg/pfSense_plus-v22_05_amd64-core/packagesite.pkg with opts "i"
pkg: https://firmware.netgate.com/pkg/pfSense_plus-v22_05_amd64-core/packagesite.pkg: No address record
DBG(1)[96943]> Request to fetch pkg+https://firmware.netgate.com/pkg/pfSense_plus-v22_05_amd64-core/packagesite.txz
DBG(1)[96943]> opening libfetch fetcher
DBG(1)[96943]> Fetch > libfetch: connecting
DBG(1)[96943]> Fetch: fetching from: https://firmware.netgate.com/pkg/pfSense_plus-v22_05_amd64-core/packagesite.txz with opts "i"
DBG(1)[96943]> Fetch: fetching from: https://firmware.netgate.com/pkg/pfSense_plus-v22_05_amd64-core/packagesite.txz with opts "i"
DBG(1)[96943]> Fetch: fetching from: https://firmware.netgate.com/pkg/pfSense_plus-v22_05_amd64-core/packagesite.txz with opts "i"
pkg: https://firmware.netgate.com/pkg/pfSense_plus-v22_05_amd64-core/packagesite.txz: No address record
Unable to update repository pfSense-core
Updating pfSense repository catalogue...
DBG(1)[96943]> PkgRepo: verifying update for pfSense
DBG(1)[96943]> PkgRepo: need forced update of pfSense
DBG(1)[96943]> Pkgrepo, begin update of '/var/db/pkg/repo-pfSense.sqlite'
DBG(1)[96943]> Request to fetch pkg+https://firmware.netgate.com/pkg/pfSense_plus-v22_05_amd64-pfSense_plus_v22_05/meta.conf
DBG(1)[96943]> opening libfetch fetcher
DBG(1)[96943]> Fetch > libfetch: connecting
DBG(1)[96943]> Fetch: fetching from: https://firmware.netgate.com/pkg/pfSense_plus-v22_05_amd64-pfSense_plus_v22_05/meta.conf with opts "i"
DBG(1)[96943]> Fetch: fetching from: https://firmware.netgate.com/pkg/pfSense_plus-v22_05_amd64-pfSense_plus_v22_05/meta.conf with opts "i"
DBG(1)[96943]> Fetch: fetching from: https://firmware.netgate.com/pkg/pfSense_plus-v22_05_amd64-pfSense_plus_v22_05/meta.conf with opts "i"
DBG(1)[96943]> Request to fetch pkg+https://firmware.netgate.com/pkg/pfSense_plus-v22_05_amd64-pfSense_plus_v22_05/meta.txz
DBG(1)[96943]> opening libfetch fetcher
DBG(1)[96943]> Fetch > libfetch: connecting
DBG(1)[96943]> Fetch: fetching from: https://firmware.netgate.com/pkg/pfSense_plus-v22_05_amd64-pfSense_plus_v22_05/meta.txz with opts "i"
DBG(1)[96943]> Fetch: fetching from: https://firmware.netgate.com/pkg/pfSense_plus-v22_05_amd64-pfSense_plus_v22_05/meta.txz with opts "i"
DBG(1)[96943]> Fetch: fetching from: https://firmware.netgate.com/pkg/pfSense_plus-v22_05_amd64-pfSense_plus_v22_05/meta.txz with opts "i"
pkg: https://firmware.netgate.com/pkg/pfSense_plus-v22_05_amd64-pfSense_plus_v22_05/meta.txz: No address record
repository pfSense has no meta file, using default settings
DBG(1)[96943]> Request to fetch pkg+https://firmware.netgate.com/pkg/pfSense_plus-v22_05_amd64-pfSense_plus_v22_05/packagesite.pkg
DBG(1)[96943]> opening libfetch fetcher
DBG(1)[96943]> Fetch > libfetch: connecting
DBG(1)[96943]> Fetch: fetching from: https://firmware.netgate.com/pkg/pfSense_plus-v22_05_amd64-pfSense_plus_v22_05/packagesite.pkg with opts "i"
DBG(1)[96943]> Fetch: fetching from: https://firmware.netgate.com/pkg/pfSense_plus-v22_05_amd64-pfSense_plus_v22_05/packagesite.pkg with opts "i"
DBG(1)[96943]> Fetch: fetching from: https://firmware.netgate.com/pkg/pfSense_plus-v22_05_amd64-pfSense_plus_v22_05/packagesite.pkg with opts "i"
pkg: https://firmware.netgate.com/pkg/pfSense_plus-v22_05_amd64-pfSense_plus_v22_05/packagesite.pkg: No address record
DBG(1)[96943]> Request to fetch pkg+https://firmware.netgate.com/pkg/pfSense_plus-v22_05_amd64-pfSense_plus_v22_05/packagesite.txz
DBG(1)[96943]> opening libfetch fetcher
DBG(1)[96943]> Fetch > libfetch: connecting
DBG(1)[96943]> Fetch: fetching from: https://firmware.netgate.com/pkg/pfSense_plus-v22_05_amd64-pfSense_plus_v22_05/packagesite.txz with opts "i"
DBG(1)[96943]> Fetch: fetching from: https://firmware.netgate.com/pkg/pfSense_plus-v22_05_amd64-pfSense_plus_v22_05/packagesite.txz with opts "i"
DBG(1)[96943]> Fetch: fetching from: https://firmware.netgate.com/pkg/pfSense_plus-v22_05_amd64-pfSense_plus_v22_05/packagesite.txz with opts "i"
pkg: https://firmware.netgate.com/pkg/pfSense_plus-v22_05_amd64-pfSense_plus_v22_05/packagesite.txz: No address record
Unable to update repository pfSense
Error updating repositories!I also made sure ".pfsense.org" & ".netgate.com" were in the DNSBL whitelist.
Any ideas for me to try?
Thanks
-
@jossk said in Unable to check for updates (SOLVED):
pkg: https://firmware.netgate.com/pkg/pfSense_plus-v22_05_amd64-pfSense_plus_v22_05/packagesite.txz: No address record
Unable to update repository pfSense
Error updating repositories!No address record means it cannot resolve the repo server so you have a DNS issue on the firewall. Go to Diag > DNS Lookup and resolving
firmware.netgate.com
. Make sure you are seeing results from the configures servers.Steve
-
Host "firmware.netgate.com" could not be resolved.
Name Servers:
127.0.0.1 ----> No ResponseSystem > Gen. Setup set to "Use Local DNS, ignore remote DNS Servers".
So I guess I have a misconfiguration in the DNS Resolver, then?
-
Yes, I would think so. And you have no other servers configured or being passed? They won't be used with that setting in general setup though.
-
I added all of my interfaces as DNS servers in General Setup. Only 2 interfaces are having issues, the loopback (127.0.0.1), and one other network.
With any of those added, pfS can check for system updates, and the Package Manager can load the Available Packages.
Knowing that, I'm more inclined to think that the more likely cause is a firewall config.
Cursory glance at my firewall rules doesn't show anything that should block these 2 interfaces.
I'll have to keep investigating.
Thank you for the idea. Now I have a direction and a stop-gap solution until I get it working properly.
-
@jossk said in Unable to check for updates (SOLVED):
I added all of my interfaces as DNS servers in General Setup.
Not sure exactly what you did but that's probably not what you want. The list there should contain other remote DNS servers that pfSense itself can use. It doesn't need to contain localhost, that is used anyway. The behaviour it uses those in can be set there but by default it will try localhost (Unbound on the firewall) and fall back to others in the list or servers passed by dhcp.
But since making any change there allowed it to work it's definitely a DNS problem.
Steve
-
Sorry, I should have clarified. I did that just to test all of my interfaces to see if my other interfaces were working or not. After verifying they worked, I deleted those from the list.
Also, changing to "Use local DNS (127.0.0.1), fall back to remote DNS", it tests localhost without me having to add it manually.
If that's the case, here is screenshots of my DNS Resolver config. Is there anything that stands out that could be the cause?
Note: I have a firewall rule to block external DNS servers. Mostly so IoT devices with hard coded DNS will be forced to use mine.
-
Try disabling SSL/TLS for outgoing queries. That should only ever be set in conjunction with forwarding mode.
Also you are filtering responses there using pfBlocker/DNSBL. Check the pfBlocker alerts. -
Disabled SSL/TLS for outgoing. No change in DNS Lookup (will leave off).
To be honest, I don't know what I should be looking for in the alerts.
I did try disabling pfBlocker. No change in DNS Lookup.
I can try turning off "Keep Settings", and uninstalling the pfBlocker package.
I'm still confused as to why DNS resolution works on my VLAN interfaces work, while not working on my LAN and loopback.
-
Check Status > DNS Resolver after you try to look it up. You should see entries for netgate.com.
Otherwise you can try turning up the logging in Unbound to see the individual queries and failures.
Steve