Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    check_upgrade: "Updating repositories metadata" returned error code 1

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    193 Posts 46 Posters 33.6k Views 42 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P Offline
      pfpv
      last edited by

      I want to add that I had this problem when I updated to 2.8.0 and changed DHCP server to KEA, and I switched from the DNS Forwarder to DNS Resolver.

      I switched from the DNS Forwarder to DNS Resolver only because the new KEA settings state: "DNS Registration. When checked, DHCP leases will automatically be registered with the DNS Resolver." So, I thought if I kept using the DNS Forwarder I'd lose DHCP lease registration. I wanted to use KEA but didn't want to lose DHCP lease registration and I wanted to use my pi-holes on my LAN that run unbound anyway. I used the forward-zone:
      setting in pfSense's unbound to forward all DNS queries to my pi-hole(s).

      With this setup I had the aforementioned error frequently. I have to say that I had had it before I made the changes in the unbound settings, i.e., when unbound was running without predefined upstream resolver.

      When I realized that my DHCP leases will still be registered when I use the DNS Forwarder I switched to it and haven't seen this error ever since. So,

      1. This error has something to do with unbound. I think the culprit has already been found (some kind of a race condition).
      2. Please change the description in the DHCP Server settings from "When checked, DHCP leases will automatically be registered with the DNS Resolver" to "When checked, DHCP leases will automatically be registered with the DNS Resolver or Forwarder."
      GertjanG 1 Reply Last reply Reply Quote 0
      • stephenw10S Offline
        stephenw10 Netgate Administrator
        last edited by

        Hmm, so you hit it even using Unbound in forwarding mode?

        P 1 Reply Last reply Reply Quote 0
        • P Offline
          pfpv @stephenw10
          last edited by

          @stephenw10 Yes, that is correct. I thought maybe because I pointed to IPs on my LAN but it should work.

          1 Reply Last reply Reply Quote 0
          • GertjanG Offline
            Gertjan @pfpv
            last edited by

            @pfpv

            The recent kea DHCP server supported fully automated DNS hist name integration into local pfSense DNS system, 'unbound'.
            This is a new solution to a very old problem.
            New solutions are often most not perfect the first time, so ... why do you want to deal with the issues known to 2.8.0 when the way better 2.8.1 is available (since a couple of months now) ? My advise : easy : get the latest version.
            I'm using myself the 2.8.1 equivalent, 25.07.1, and it works fine for me.

            "unbound" is by nature a resolver, but you can tell it to 'forward'. That will be like doing your daily shoppings with a Ferrari, but why not, you decide ^^ And I get it, you have another 'DNS' device, the pi-hole.

            You can also consider disabling unbound, and activate the original 'ancient' forwarder that came with pfSense, also called dnsmasq :

            2eea2f88-46e7-4f43-abd6-27888741d5fd-image.png

            and forward this forwader to your LAN pi-hilo.
            This forwarder can't do 'DHCP host name integration' though ...

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

            P 1 Reply Last reply Reply Quote 0
            • P Offline
              pfpv @Gertjan
              last edited by pfpv

              @Gertjan I think you misread my post or didn't read it fully.

              I was providing historical information when I was on 2.8.0. I updated to 2.8.1 next day it came out.

              I used to use DNS Forwarder, then for the reasons given I switched to DNS Resolver and then switched back to DNS Forwarder. Contrary to what I also believed KEA DHCP Server does register DHCP leases with DNS Forwarder just like ISC did. It's all good now. No errors and local DNS is working.

              GertjanG 1 Reply Last reply Reply Quote 0
              • GertjanG Offline
                Gertjan @pfpv
                last edited by

                @pfpv said in check_upgrade: "Updating repositories metadata" returned error code 1:

                misread my post

                This post ? is what I see/have.

                No "help me" PM's please. Use the forum, the community will thank you.
                Edit : and where are the logs ??

                1 Reply Last reply Reply Quote 0
                • fireodoF Offline
                  fireodo
                  last edited by

                  Hi,

                  since today 21.11.2025 I get this error too:

                  check_upgrade: "Updating repositories metadata" returned error code 1 @ 2025-11-21 12:10:06
                  

                  😢

                  Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                  SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                  pfsense 2.8.1 CE
                  Packages: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

                  1 Reply Last reply Reply Quote 0
                  • stephenw10S Offline
                    stephenw10 Netgate Administrator
                    last edited by

                    Like repeatedly? Only at boot? Can you see packages?

                    fireodoF S 2 Replies Last reply Reply Quote 0
                    • fireodoF Offline
                      fireodo @stephenw10
                      last edited by

                      @stephenw10 said in check_upgrade: "Updating repositories metadata" returned error code 1:

                      Like repeatedly? Only at boot? Can you see packages?

                      Repeatedly, in normal running mode, yes - packages are visible!

                      Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                      SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                      pfsense 2.8.1 CE
                      Packages: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

                      1 Reply Last reply Reply Quote 0
                      • S Offline
                        siemek @stephenw10
                        last edited by

                        @stephenw10 On my side, repeatedly over 4000 entries in the log, in normal running mode.
                        Packages installed: There are no packages currently installed.
                        Packages available: Unable to retrieve package information.

                        1 Reply Last reply Reply Quote 0
                        • K Offline
                          Kelpie
                          last edited by

                          It started again today 340

                          check_upgrade: "Updating repositories metadata" returned error code 1 @ 2025-11-21 08:21:34

                          1 Reply Last reply Reply Quote 0
                          • G Offline
                            ghc88
                            last edited by

                            After not having any since my last post, I started seeing a few come through last night and this morning I’ve woken up to a few hundred of them. Version 2.8.1 and I can see packages.

                            1 Reply Last reply Reply Quote 0
                            • stephenw10S Offline
                              stephenw10 Netgate Administrator
                              last edited by

                              Are you still seeing them now if you clear the existing alerts?

                              S fireodoF G 3 Replies Last reply Reply Quote 0
                              • S Offline
                                siemek @stephenw10
                                last edited by

                                @stephenw10 After I cleared them and checked for updates manually, no.
                                But the same happened yesterday: I cleared around 1500, and it looked like no more were coming, then today I found over 4500.

                                1 Reply Last reply Reply Quote 0
                                • fireodoF Offline
                                  fireodo @stephenw10
                                  last edited by fireodo

                                  @stephenw10 said in check_upgrade: "Updating repositories metadata" returned error code 1:

                                  Are you still seeing them now if you clear the existing alerts?

                                  At the moment Nov 21 13:12:33 (CEST), No!

                                  Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                                  SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                                  pfsense 2.8.1 CE
                                  Packages: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

                                  1 Reply Last reply Reply Quote 0
                                  • G Offline
                                    ghc88 @stephenw10
                                    last edited by

                                    @stephenw10 My last one was at 1132 GMT, so circa 45 mins ago.

                                    1 Reply Last reply Reply Quote 0
                                    • stephenw10S Offline
                                      stephenw10 Netgate Administrator
                                      last edited by

                                      Ok thanks. It looks like there was a backend change. Digging....

                                      1 Reply Last reply Reply Quote 0
                                      • stephenw10S Offline
                                        stephenw10 Netgate Administrator
                                        last edited by

                                        Ok reverted whilst we did into the root cause. You shouldn't see any further alerts.

                                        JeGrJ 1 Reply Last reply Reply Quote 1
                                        • S Offline
                                          stevo11811
                                          last edited by

                                          Looks like I am another user of the same problem on a few of our firewalls, one says the license is expired which is confusing since it doesn't expire for another two months. it says Community support now instead of PFSense + even though its clearly still on Plus.

                                          If I review the rest of the fleet and find this same issue its going to be the nail in the coffin for us.

                                          stephenw10S 1 Reply Last reply Reply Quote 0
                                          • JeGrJ Offline
                                            JeGr LAYER 8 Moderator @stephenw10
                                            last edited by

                                            @stephenw10 said in check_upgrade: "Updating repositories metadata" returned error code 1:

                                            Ok reverted whilst we did into the root cause. You shouldn't see any further alerts.

                                            I have to add me to the choir. Had the same problem some time ago, then was silent until today. Now I'm getting a message every time the system does an update check or package check etc.
                                            System shows it's registered, so no license issue (latest plus is on) and package manager shows packages to install.

                                            3f697461-6973-4768-9eee-b1b99a5e36ae-image.png

                                            System Update flip/flops between unable to check and no updates available, but every time something with "pkg" in the background is done, the counter hops up:

                                            49c7347b-0ec7-43a7-bc20-ba737d81fce5-image.png

                                            Every click in the package manager adds another one etc.

                                            Opened the WebGUI to 1421 messages -.-

                                            Don't forget to upvote 👍 those who kindly offered their time and brainpower to help you!

                                            If you're interested, I'm available to discuss details of German-speaking paid support (for companies) if needed.

                                            stephenw10S 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.