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

    Unable to update repository pfSense

    Scheduled Pinned Locked Moved General pfSense Questions
    39 Posts 7 Posters 7.6k Views
    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.
    • yon 0Y
      yon 0 @stephenw10
      last edited by

      @stephenw10

      
      [23.09-DEVELOPMENT][admin@pf.xiaoyu.net]/root: pfSense-upgrade -dc6
      ERROR: It was not possible to determine pkg remote version
      >>> Updating repositories metadata...
      Updating pfSense-core repository catalogue...
      pkg-static: An error occured while fetching package
      pkg-static: Impossible to get the value from Last-Modified HTTP header
      pkg-static: An error occured while fetching package
      pkg-static: Impossible to get the value from Last-Modified HTTP header
      repository pfSense-core has no meta file, using default settings
      pkg-static: An error occured while fetching package
      pkg-static: Impossible to get the value from Last-Modified HTTP header
      pkg-static: An error occured while fetching package
      pkg-static: Impossible to get the value from Last-Modified HTTP header
      Unable to update repository pfSense-core
      Updating pfSense repository catalogue...
      pkg-static: An error occured while fetching package
      pkg-static: Impossible to get the value from Last-Modified HTTP header
      pkg-static: An error occured while fetching package
      pkg-static: Impossible to get the value from Last-Modified HTTP header
      repository pfSense has no meta file, using default settings
      pkg-static: An error occured while fetching package
      pkg-static: Impossible to get the value from Last-Modified HTTP header
      pkg-static: An error occured while fetching package
      pkg-static: Impossible to get the value from Last-Modified HTTP header
      Unable to update repository pfSense
      Error updating repositories!
      ERROR: It was not possible to determine pfSense remote version
      ERROR: It was not possible to determine pfSense-base remote version
      ERROR: It was not possible to determine pfSense-kernel-pfSense remote version
      Your system is up to date
      
      pfSense-upgrade -dc4
      ERROR: It was not possible to determine pkg remote version
      >>> Updating repositories metadata...
      Updating pfSense-core repository catalogue...
      pkg-static: An error occured while fetching package
      pkg-static: Impossible to get the value from Last-Modified HTTP header
      pkg-static: An error occured while fetching package
      pkg-static: Impossible to get the value from Last-Modified HTTP header
      repository pfSense-core has no meta file, using default settings
      pkg-static: An error occured while fetching package
      pkg-static: Impossible to get the value from Last-Modified HTTP header
      pkg-static: An error occured while fetching package
      pkg-static: Impossible to get the value from Last-Modified HTTP header
      Unable to update repository pfSense-core
      Updating pfSense repository catalogue...
      pkg-static: An error occured while fetching package
      pkg-static: Impossible to get the value from Last-Modified HTTP header
      pkg-static: An error occured while fetching package
      pkg-static: Impossible to get the value from Last-Modified HTTP header
      repository pfSense has no meta file, using default settings
      pkg-static: An error occured while fetching package
      pkg-static: Impossible to get the value from Last-Modified HTTP header
      pkg-static: An error occured while fetching package
      pkg-static: Impossible to get the value from Last-Modified HTTP header
      Unable to update repository pfSense
      Error updating repositories!
      ERROR: It was not possible to determine pfSense remote version
      ERROR: It was not possible to determine pfSense-base remote version
      ERROR: It was not possible to determine pfSense-kernel-pfSense remote version
      Your system is up to date
      
      1 Reply Last reply Reply Quote 0
      • E
        elvisimprsntr
        last edited by elvisimprsntr

        Sry to resurrect a zombie thread, but can't retrieve packages.

        GUI just pinwheels, so I ran the suggested command below.

        [2.7.2-RELEASE][root@pfSense.[redacted].com]/root: pkg update
        Updating pfSense-core repository catalogue...
        pkg: No SRV record found for the repo 'pfSense-core'
        
        
        [2.7.2-RELEASE][root@pfSense.[redacted].com]/root: pkg-static -d update
        DBG(1)[29255]> pkg initialized
        Updating pfSense-core repository catalogue...
        DBG(1)[29255]> PkgRepo: verifying update for pfSense-core
        DBG(1)[29255]> Pkgrepo, begin update of '/var/db/pkg/repo-pfSense-core.sqlite'
        DBG(1)[29255]> Request to fetch pkg+https://pkg.pfsense.org/pfSense_v2_7_2_amd64-core/meta.conf
        DBG(1)[29255]> curl_open
        pkg-static: No SRV record found for the repo 'pfSense-core'
        DBG(1)[29255]> Fetch: fetcher used: pkg+https
        DBG(1)[29255]> curl> fetching https://pkg.pfsense.org/pfSense_v2_7_2_amd64-core/meta.conf
        
        DBG(1)[29255]> CURL> No mirror set url to https://pkg.pfsense.org/pfSense_v2_7_2_amd64-core/meta.conf
        
        DBG(1)[29255]> CURL> attempting to fetch from https://pkg.pfsense.org/pfSense_v2_7_2_amd64-core/meta.conf, left retry 3
        
        * Couldn't find host pkg.pfsense.org in the .netrc file; using defaults
        * Resolving timed out after 30005 milliseconds
        
        
        patient0P 1 Reply Last reply Reply Quote 0
        • patient0P
          patient0 @elvisimprsntr
          last edited by

          @elvisimprsntr can you resolve other domain names?

          E 1 Reply Last reply Reply Quote 0
          • E
            elvisimprsntr @patient0
            last edited by elvisimprsntr

            @patient0

            From clients, yes.

            From pfSense GUI or CLI, no.

            Using Q9 for upstream DNS

            patient0P S 2 Replies Last reply Reply Quote 0
            • patient0P
              patient0 @elvisimprsntr
              last edited by

              @elvisimprsntr said in Unable to update repository pfSense:

              From pfSense GUI or CLI, no.
              Using Q9 for upstream DNS

              How have you configured DNS, resolver or forward? And your clients use pfSense for DNS lookup?

              E 1 Reply Last reply Reply Quote 0
              • S
                SteveITS Galactic Empire @elvisimprsntr
                last edited by

                @elvisimprsntr If forwarding, ensure DNSSEC is disabled.

                Any restrictions on unbound or is it set to listen on All interfaces?

                I would next restart DNS Resolver/unbound, or maybe pfSense.

                Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                Upvote 👍 helpful posts!

                1 Reply Last reply Reply Quote 0
                • E
                  elvisimprsntr @patient0
                  last edited by elvisimprsntr

                  @patient0

                  1. DNS Resolver
                  2. Yes Clients use pfSense

                  I tried starting unbound. same issue.
                  I remotely rebooted my fiber modem (NVG599), and released and renewed WAN interface.

                  Seems to be working again.

                  Running 2.7.2 with all the latest patches.

                  This just started happening since I applied the latest swath of patches.

                  It is behaving like something on pfSense crashed or stops working.

                  @SteveITS

                  When I disable DNSSEC can't resolve static mappings.

                  https://forum.netgate.com/topic/196269/att-fiber-dns-issue/13

                  patient0P 1 Reply Last reply Reply Quote 0
                  • patient0P
                    patient0 @elvisimprsntr
                    last edited by

                    @elvisimprsntr said in Unable to update repository pfSense:

                    This just started happening since I applied the latest swath of patches.

                    I know it is obvious but I'd revert patches regarding unbound and see what happens.

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

                      Are clients, which can resolve, using pfSense for DNS or being passed quad9 to use directly?

                      What is the DNS behaviour setting in General Setup?

                      E 1 Reply Last reply Reply Quote 0
                      • E
                        elvisimprsntr @stephenw10
                        last edited by

                        @stephenw10 said in Unable to update repository pfSense:

                        Are clients, which can resolve, using pfSense for DNS or being passed quad9 to use directly?

                        Client are served pfSense LAN IP address

                        What is the DNS behaviour setting in General Setup?

                        Screenshot 2025-02-08 at 10.53.22 AM.png

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

                          Hmm, and Diag > DNS Lookup just fails for all configured severs? For any fqdn?

                          E 1 Reply Last reply Reply Quote 0
                          • E
                            elvisimprsntr @stephenw10
                            last edited by elvisimprsntr

                            @stephenw10

                            Correct.

                            After rebooting my fiber modem, and releasing and renewing the WAN interface it is working again.

                            To see if it has any affect, I also deleted the IPv6 Q9 DNS servers.

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

                              Hmm, weird. Hard to imagine what could have caused that for pfSense but not clients behind it. 🤔

                              E 1 Reply Last reply Reply Quote 0
                              • E
                                elvisimprsntr @stephenw10
                                last edited by elvisimprsntr

                                @stephenw10

                                When I restart both kea-dhcp4 and unbound the problem persists.

                                When I head to Status -> Interfaces -> Click on WAN Release then Renew, everything starts working again.

                                Not sure if this error is related when pfSense is trying to get an IP address from my fiber modem, which is in DHCP passthrough mode.

                                Feb  9 13:45:55 pfSense dhclient[9122]: unknown dhcp option value 0x7d
                                
                                
                                Feb  9 13:45:55 pfSense dhclient[9122]: DHCPREQUEST on igc0 to 192.168.1.254 port 67
                                Feb  9 13:45:55 pfSense dhclient[9122]: DHCPACK from 192.168.1.254
                                Feb  9 13:45:55 pfSense dhclient[9122]: unknown dhcp option value 0x7d
                                Feb  9 13:45:55 pfSense dhclient[11337]: RENEW
                                Feb  9 13:45:55 pfSense dhclient[12245]: Creating resolv.conf
                                Feb  9 13:45:55 pfSense dhclient[9122]: bound to [redacted] -- renewal in 300 seconds.
                                

                                The behavior almost seems like it is losing a WAN route.

                                I piped the following script to a log file while it is working.

                                Will run again once symptoms reoccur.

                                #!/bin/sh
                                
                                ifconfig igc0
                                netstat -rWn
                                cat /var/db/dhclient.leases.igc0
                                
                                

                                What other logs should I comb through for any evidence?

                                patient0P 1 Reply Last reply Reply Quote 0
                                • patient0P
                                  patient0 @elvisimprsntr
                                  last edited by

                                  @elvisimprsntr said in Unable to update repository pfSense:

                                  Feb 9 13:45:55 pfSense dhclient[9122]: unknown dhcp option value 0x7d

                                  There exists a bug report for FreeBSD regarding this error: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281361

                                  Seems to be about unknown DHCP options send from upstream, more annoying then a real issue.

                                  E GertjanG 2 Replies Last reply Reply Quote 0
                                  • E
                                    elvisimprsntr @patient0
                                    last edited by

                                    @patient0 said in Unable to update repository pfSense:

                                    Seems to be about unknown DHCP options send from upstream, more annoying then a real issue.

                                    Unless it is somehow affecting KEA

                                    patient0P 1 Reply Last reply Reply Quote 0
                                    • patient0P
                                      patient0 @elvisimprsntr
                                      last edited by

                                      @elvisimprsntr said in Unable to update repository pfSense:

                                      Unless it is somehow affecting KEA

                                      Can't see how, two different applications on different interfaces, dhclient and KEA. But then it's computers and nothing is impossible.

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

                                        Yup Kea and Unbound are not dhclient so that's probably unrelated.

                                        Is unbound actually starting correctly?

                                        @elvisimprsntr said in Unable to update repository pfSense:

                                        The behavior almost seems like it is losing a WAN route.

                                        Is it actually losing a route? Is there a default route in the routing table? Can pfSense still ping out by IP address?

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

                                          @patient0 said in Unable to update repository pfSense:

                                          Feb 9 13:45:55 pfSense dhclient[9122]: unknown dhcp option value 0x7d
                                          

                                          There exists a bug report for FreeBSD regarding this error: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281361

                                          Seems to be about unknown DHCP options send from upstream, more annoying then a real issue.

                                          So shown on "bugs.freebsd.org" :

                                          The option in question is better known as 'DHCP Option 125' -- used for 'Vendor Specific Information'

                                          This options comes from an upstream DHCP (ISP ?!), server that gives this 'extra' option the the DHCP client (pfSense), who didn't asked for it. So, do panic, it will discarded.
                                          But a log line will tell the admin it did so. Not an error at all, imho, this is something between an INFO and WARNING messages, not an error.

                                          Because we're all networks admins, why not telling us what this option is all about ?
                                          Easy to find out (we have pfSense, remember ?!) :

                                          The settings (I presume none of them needs any introduction) :

                                          9cbdc76a-2320-485c-b7a8-3dc98e83a687-image.png

                                          and hit the start button.
                                          ( in short : WAN interface, DHCP is UDP, and the ports are 67 and 68 - and we want all the details)

                                          After after a while (and you can know upfront when it will happen) :
                                          The device (pfSense DHCP client) sends out a lease request :

                                          16:05:06.715857 a4:bb:6d:ba:16:a1 > 90:ec:77:29:39:2c, ethertype IPv4 (0x0800), length 342: (tos 0x0, ttl 128, id 31136, offset 0, flags [none], proto UDP (17), length 328)
                                              192.168.1.6.68 > 192.168.1.1.67: [udp sum ok] BOOTP/DHCP, Request from a4:bb:6d:ba:16:a1, length 300, xid 0x7dd77758, Flags [none] (0x0000)
                                          	  Client-IP 192.168.1.6
                                          	  Client-Ethernet-Address a4:bb:6d:ba:16:a1
                                          	  Vendor-rfc1048 Extensions
                                          	    Magic Cookie 0x63825363
                                          	    DHCP-Message (53), length 1: Request
                                          	    Client-ID (61), length 7: ether a4:bb:6d:ba:16:a1
                                          	    Hostname (12), length 7: "Gauche2"
                                          	    FQDN (81), length 10: "Gauche2"
                                          	    Vendor-Class (60), length 8: "MSFT 5.0"
                                          	    Parameter-Request (55), length 14: 
                                          	      Subnet-Mask (1), Default-Gateway (3), Domain-Name-Server (6), Domain-Name (15)
                                          	      Router-Discovery (31), Static-Route (33), Vendor-Option (43), Netbios-Name-Server (44)
                                          	      Netbios-Node (46), Netbios-Scope (47), Unknown (119), Classless-Static-Route (121)
                                          	      Classless-Static-Route-Microsoft (249), Unknown (252)
                                          

                                          Take note of the somewhat standard DHCP options 1,3,6,15,31,33,44,46,47,119,121.
                                          You saw the 43 ? 119 ? 252 ?

                                          a couple of ms later you'll see the answer from the server :

                                          16:05:06.722112 90:ec:77:29:39:2c > a4:bb:6d:ba:16:a1, ethertype IPv4 (0x0800), length 359: (tos 0x10, ttl 128, id 0, offset 0, flags [DF], proto UDP (17), length 345)
                                              192.168.1.1.67 > 192.168.1.6.68: [udp sum ok] BOOTP/DHCP, Reply, length 317, xid 0x7dd77758, Flags [none] (0x0000)
                                          	  Client-IP 192.168.1.6
                                          	  Your-IP 192.168.1.6
                                          	  Client-Ethernet-Address a4:bb:6d:ba:16:a1
                                          	  Vendor-rfc1048 Extensions
                                          	    Magic Cookie 0x63825363
                                          	    DHCP-Message (53), length 1: ACK
                                          	    Subnet-Mask (1), length 4: 255.255.255.0
                                          	    Default-Gateway (3), length 4: 192.168.1.1
                                          	    Domain-Name-Server (6), length 4: 192.168.1.1
                                          	    Domain-Name (15), length 20: "bhf.tld"
                                          	    Vendor-Option (43), length 6: 1.4.192.168.1.6
                                          	    Lease-Time (51), length 4: 21600
                                          	    Server-ID (54), length 4: 192.168.1.1
                                          	    FQDN (81), length 11: [N] "gauche2."
                                          

                                          So the DHCP server answered with option 1,3,6,15,43 (!) and 81.
                                          So some requested option from the client went unanswered.
                                          Other options, like 81 and 54 are sent without being asked for.
                                          Option 51 : the lease time, was unasked, but was given anyway ^^

                                          Btw : I faked somewhat the example, as the server is here pfSEnse, and the client one of my LAN DHCP clients, a MS PC. hence the typical MS option requests.
                                          I could stop the pfSense WAN DHCOP client lease, but that would 'break' my Internet connection, and I've a load of colleagues using it right now ...

                                          For every option, as these are extremely well documented, go and look them up.

                                          Now, your turn : what did you see ?

                                          Btw : my Kea pfSEnse server offers option 43, or by default, pfSense doesn't know about it.

                                          So I had to do this : https://redmine.pfsense.org/issues/15321 as 'extra' the option '43' is very known when you use Unifi equipment.

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

                                          E 1 Reply Last reply Reply Quote 0
                                          • E
                                            elvisimprsntr @Gertjan
                                            last edited by elvisimprsntr

                                            @Gertjan said in Unable to update repository pfSense:

                                            Now, your turn : what did you see ?

                                            Kit:

                                            • ATT NVG599 RG in passthrough mode
                                            • Protectli FW4C running 2.7.2 with all the latest patches.

                                            This is what I captured

                                            16:47:18.056463 64:62:66:21:95:XX > d4:04:cd:83:e9:XX, ethertype IPv4 (0x0800), length 342: (tos 0x10, ttl 128, id 59801, offset 0, flags [none], proto UDP (17), length 328)
                                                69.111.183.XX  > 192.168.1.254.67: [udp sum ok] BOOTP/DHCP, Request from 64:62:66:21:95:XX, length 300, xid 0x60716ba8, Flags [none] (0x0000)
                                            	  Client-IP 69.111.183.XX
                                            	  Client-Ethernet-Address 64:62:66:21:95:XX
                                            	  Vendor-rfc1048 Extensions
                                            	    Magic Cookie 0x63825363
                                            	    DHCP-Message (53), length 1: Request
                                            	    Client-ID (61), length 7: ether 64:62:66:21:95:XX
                                            	    Hostname (12), length 7: "pfSense"
                                            	    Parameter-Request (55), length 10: 
                                            	      Subnet-Mask (1), BR (28), Time-Zone (2), Classless-Static-Route (121)
                                            	      Default-Gateway (3), Domain-Name (15), Domain-Name-Server (6), Hostname (12)
                                            	      Unknown (119), MTU (26)
                                            16:47:18.098217 d4:04:cd:83:e9:XX > 64:62:66:21:95:XX, ethertype IPv4 (0x0800), length 382: (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 368)
                                                192.168.1.254.67 > 69.111.183.XX: [udp sum ok] BOOTP/DHCP, Reply, length 340, xid 0x60716ba8, Flags [none] (0x0000)
                                            	  Client-IP 69.111.183.XX
                                            	  Your-IP 69.111.183.XX
                                            	  Client-Ethernet-Address 64:62:66:21:95:XX
                                            	  Vendor-rfc1048 Extensions
                                            	    Magic Cookie 0x63825363
                                            	    DHCP-Message (53), length 1: ACK
                                            	    Server-ID (54), length 4: 192.168.1.254
                                            	    Lease-Time (51), length 4: 600
                                            	    RN (58), length 4: 300
                                            	    RB (59), length 4: 525
                                            	    Subnet-Mask (1), length 4: 255.255.252.0
                                            	    Default-Gateway (3), length 4: 69.111.180.1
                                            	    Domain-Name (15), length 12: "attlocal.net"
                                            	    Domain-Name-Server (6), length 4: 192.168.1.254
                                            	    Unknown (125), length 38: 0,3561,8452,1584,12337,17716,13829,3890,13107,12593,14128,14642,14643,12600,13622,1542,20054,18229,14649
                                            
                                            
                                            GertjanG 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.