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

    [WORKAROUND] Unable to update and package install (ERROR: It was not possible to identify which pfSense kernel is installed)

    Scheduled Pinned Locked Moved General pfSense Questions
    repobackupsshfresh install2.7.0-dev
    67 Posts 4 Posters 13.4k 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.
    • Sergei_ShablovskyS
      Sergei_Shablovsky @stephenw10
      last edited by

      @stephenw10 said in Unable to update and package install (ERROR: It was not possible to identify which pfSense kernel is installed):

      The part that matters is the config version. So if you look in the config file you will see:

      <?xml version="1.0"?>
      <pfsense>
      	<version>22.6</version>
      

      When you import an older config into a newer pfSense version it runs it through a series of upgrade scripts for each version change so that the final imported config is compatible with the system. However the config version only appears once in the file so if you import only a section of it that won't contain the version and it will not be upgraded. You may end up with a config that cannot be loaded.
      I personally never import sections of config, it's far safer to import only the complete config file.

      See: https://docs.netgate.com/pfsense/en/latest/backup/restore.html#restore-options

      Thank You for so detailed explanation. Of course, I re-read ALL Docs again carefully with a cup of tee.

      Thank You again for patience and attention to my problem.

      —
      CLOSE SKY FOR UKRAINE https://youtu.be/_tU1i8VAdCo !
      Help Ukraine to resist, save civilians people’s lives !
      (Take an active part in public protests, push on Your country’s politics, congressmans, mass media, leaders of opinion.)

      1 Reply Last reply Reply Quote 0
      • Sergei_ShablovskyS
        Sergei_Shablovsky @stephenw10
        last edited by

        @stephenw10
        So now the main question now are: how to manually ensure that settings from backup successfully restored ?, this mean step by step check each settings in backup config...

        Because a lot of settings in each package, I do not remember exactly settings, of course. (May be needed to make PDF copy of each page of settings next time ;)

        —
        CLOSE SKY FOR UKRAINE https://youtu.be/_tU1i8VAdCo !
        Help Ukraine to resist, save civilians people’s lives !
        (Take an active part in public protests, push on Your country’s politics, congressmans, mass media, leaders of opinion.)

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

          All the package settings are stored in the main config file. If you restore the complete config file all the package settings will come with it.
          The settings shown in the GUI are only what is loaded from the config at boot.

          Steve

          1 Reply Last reply Reply Quote 1
          • Sergei_ShablovskyS
            Sergei_Shablovsky @stephenw10
            last edited by

            @stephenw10 said in Unable to update and package install (ERROR: It was not possible to identify which pfSense kernel is installed):

            The part that matters is the config version. So if you look in the config file you will see:

            <?xml version="1.0"?>
            <pfsense>
            	<version>22.6</version>
            

            When you import an older config into a newer pfSense version it runs it through a series of upgrade scripts for each version change so that the final imported config is compatible with the system. However the config version only appears once in the file so if you import only a section of it that won't contain the version and it will not be upgraded. You may end up with a config that cannot be loaded.
            I personally never import sections of config, it's far safer to import only the complete config file.

            See: https://docs.netgate.com/pfsense/en/latest/backup/restore.html#restore-options

            Thank You for suggestions, Steve!

            So, I check double twice: install pfSense on a bare metal, reboot, then install all needed packages (reboot after each package), then backup from .xml backup file, wait 2h, then reboot, the result are the same: packages disappear from installed, not possible to update/upgrade from menu or manually, ping from pfSense CLI on monitoring 1.1.1.1 / 8.8.8.8 are ok, but ping / traceroute on other sites - no, LAN are working (surfing web as test), but sometimes some images not loaded...

            Your suggestion?

            P.S.

            $ host -t srv _https._tcp.packages.netgate.com
            ;;connection timed out; no servers could be reached;
            
            $ host files01.netgate.com.
            ;;connection timed out; no servers could be reached;
            
            $ host files00.netgate.com.
            ;;connection timed out; no servers could be reached;
            
            # pkg-static update -f
            Updating pfSense-core repository catalogue...
            pkg-static: https://packages-beta.netgate.com/packages/pfSense_master_amd64-core/meta.txz: No address record
            repository pfSense-core has no meta file, using default settings
            pkg-static: https://packages-beta.netgate.com/packages/pfSense_master_amd64-core/packagesite.pkg: No address record
            pkg-static: https://packages-beta.netgate.com/packages/pfSense_master_amd64-core/packagesite.txz: No address record
            Unable to update repository pfSense-core
            Updating pfSense repository catalogue...
            pkg-static: https://packages-beta.netgate.com/packages/pfSense_master_amd64-pfSense_devel/meta.txz: No address record
            repository pfSense has no meta file, using default settings
            pkg-static: https://packages-beta.netgate.com/packages/pfSense_master_amd64-pfSense_devel/packagesite.pkg: No address record
            pkg-static: https://packages-beta.netgate.com/packages/pfSense_master_amd64-pfSense_devel/packagesite.txz: No address record
            Unable to update repository pfSense
            Error updating repositories!
            

            —
            CLOSE SKY FOR UKRAINE https://youtu.be/_tU1i8VAdCo !
            Help Ukraine to resist, save civilians people’s lives !
            (Take an active part in public protests, push on Your country’s politics, congressmans, mass media, leaders of opinion.)

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

              Are you installing 2.7?

              The config you are restoring is setting the repo to next-dev-version so if you are installing 2.6 and then restoring that it will cause it to try to use the wrong repo and fail.

              You don't need to install packages before restoring is will pull them in at the first boot after the install.

              But it looks like you have some more general connectivity issue happening there. Those SRV records should resolve:

              steve@steve-MMLP7AP-00 ~ $ host -t srv _https._tcp.packages.netgate.com
              _https._tcp.packages.netgate.com has SRV record 10 10 443 pkg00-atx.netgate.com.
              _https._tcp.packages.netgate.com has SRV record 10 10 443 pkg01-atx.netgate.com.
              steve@steve-MMLP7AP-00 ~ $ host -t srv _https._tcp.packages-beta.netgate.com
              _https._tcp.packages-beta.netgate.com has SRV record 10 10 443 pkg01-atx.netgate.com.
              _https._tcp.packages-beta.netgate.com has SRV record 10 10 443 pkg00-atx.netgate.com.
              

              Steve

              Sergei_ShablovskyS 1 Reply Last reply Reply Quote 0
              • NollipfSenseN
                NollipfSense
                last edited by NollipfSense

                Please see Jim's note here below and why it's important to post in development section.

                https://forum.netgate.com/topic/171891/update-failure-2-7-0-development-amd64-built-on-tue-apr-26-06-13-40-utc-2022-freebsd-12-3-stable

                pfSense+ 23.09 Lenovo Thinkcentre M93P SFF Quadcore i7 dual Raid-ZFS 128GB-SSD 32GB-RAM PCI-Intel i350-t4 NIC, -Intel QAT 8950.
                pfSense+ 23.09 VM-Proxmox, Dell Precision Xeon-W2155 Nvme 500GB-ZFS 128GB-RAM PCIe-Intel i350-t4, Intel QAT-8950, P-cloud.

                Sergei_ShablovskyS 1 Reply Last reply Reply Quote 1
                • Sergei_ShablovskyS
                  Sergei_Shablovsky @stephenw10
                  last edited by

                  @stephenw10 said in Unable to update and package install (ERROR: It was not possible to identify which pfSense kernel is installed):

                  Are you installing 2.7?

                  Yes, pfSense 2.7 CE

                  The config you are restoring is setting the repo to next-dev-version so if you are installing 2.6 and then restoring that it will cause it to try to use the wrong repo and fail.

                  You don't need to install packages before restoring is will pull them in at the first boot after the install.

                  I trying several times with and without installing packages before restoring from .xml backup file.
                  Result are the same.

                  But it looks like you have some more general connectivity issue happening there. Those SRV records should resolve:

                  steve@steve-MMLP7AP-00 ~ $ host -t srv _https._tcp.packages.netgate.com
                  _https._tcp.packages.netgate.com has SRV record 10 10 443 pkg00-atx.netgate.com.
                  _https._tcp.packages.netgate.com has SRV record 10 10 443 pkg01-atx.netgate.com.
                  steve@steve-MMLP7AP-00 ~ $ host -t srv _https._tcp.packages-beta.netgate.com
                  _https._tcp.packages-beta.netgate.com has SRV record 10 10 443 pkg01-atx.netgate.com.
                  _https._tcp.packages-beta.netgate.com has SRV record 10 10 443 pkg00-atx.netgate.com.
                  

                  Because ping/traceroute not working for anything excluding LANs, and ping are ok only for 1.1.1.1/8.8.8.8 I come with the same conclusion.

                  But where is the source of problem and how to find them?

                  —
                  CLOSE SKY FOR UKRAINE https://youtu.be/_tU1i8VAdCo !
                  Help Ukraine to resist, save civilians people’s lives !
                  (Take an active part in public protests, push on Your country’s politics, congressmans, mass media, leaders of opinion.)

                  1 Reply Last reply Reply Quote 0
                  • Sergei_ShablovskyS
                    Sergei_Shablovsky @NollipfSense
                    last edited by

                    @nollipfsense said in Unable to update and package install (ERROR: It was not possible to identify which pfSense kernel is installed):

                    Please Jim's note here below and why it's important to post in development section.

                    https://forum.netgate.com/topic/171891/update-failure-2-7-0-development-amd64-built-on-tue-apr-26-06-13-40-utc-2022-freebsd-12-3-stable

                    Thank You that point me.

                    Hm, I never imagine that Netgate was making so unstable upgrade...

                    —
                    CLOSE SKY FOR UKRAINE https://youtu.be/_tU1i8VAdCo !
                    Help Ukraine to resist, save civilians people’s lives !
                    (Take an active part in public protests, push on Your country’s politics, congressmans, mass media, leaders of opinion.)

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

                      @sergei_shablovsky said in Unable to update and package install (ERROR: It was not possible to identify which pfSense kernel is installed):

                      I never imagine that Netgate was making so unstable upgrade...

                      What?!

                      We specifically stopped updating the snapshot servers in order to shield end users from any instability these significant changes might introduce. The snapshot servers are still there and you can still pull pkgs from them. They are just not being updated currently. It will not prevent you accessing the servers.

                      You might be seeing an IPv6 issue. Try:

                      host -4t srv _https._tcp.packages-beta.netgate.com
                      

                      Steve

                      Sergei_ShablovskyS 1 Reply Last reply Reply Quote 1
                      • Sergei_ShablovskyS
                        Sergei_Shablovsky @stephenw10
                        last edited by Sergei_Shablovsky

                        @stephenw10 said in Unable to update and package install (ERROR: It was not possible to identify which pfSense kernel is installed):

                        @sergei_shablovsky said in Unable to update and package install (ERROR: It was not possible to identify which pfSense kernel is installed):

                        I never imagine that Netgate was making so unstable upgrade...

                        What?!

                        We specifically stopped updating the snapshot servers in order to shield end users from any instability these significant changes might introduce. The snapshot servers are still there and you can still pull pkgs from them. They are just not being updated currently. It will not prevent you accessing the servers.

                        According stopping to updating snapshots to end users - totally agree with you.

                        You might be seeing an IPv6 issue. Try:

                        host -4t srv _https._tcp.packages-beta.netgate.com
                        

                        Thank You, Steve.

                        The result are:

                        ;;connection timed out; no servers could be reached
                        

                        —
                        CLOSE SKY FOR UKRAINE https://youtu.be/_tU1i8VAdCo !
                        Help Ukraine to resist, save civilians people’s lives !
                        (Take an active part in public protests, push on Your country’s politics, congressmans, mass media, leaders of opinion.)

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

                          Can it resolve anything?

                          Didn't you have an issue very similar to this previously?

                          Sergei_ShablovskyS 3 Replies Last reply Reply Quote 0
                          • Sergei_ShablovskyS
                            Sergei_Shablovsky @stephenw10
                            last edited by

                            @stephenw10 said in Unable to update and package install (ERROR: It was not possible to identify which pfSense kernel is installed):

                            Can it resolve anything?

                            Unfortunately, NO

                            Also I check ipv6 settings everywhere,- nothing used.

                            Didn't you have an issue very similar to this previously?

                            No any similar...

                            —
                            CLOSE SKY FOR UKRAINE https://youtu.be/_tU1i8VAdCo !
                            Help Ukraine to resist, save civilians people’s lives !
                            (Take an active part in public protests, push on Your country’s politics, congressmans, mass media, leaders of opinion.)

                            1 Reply Last reply Reply Quote 0
                            • Sergei_ShablovskyS
                              Sergei_Shablovsky @stephenw10
                              last edited by Sergei_Shablovsky

                              @stephenw10

                              The problem come right after update from .xml backup file. Because of this I try to determine which section of .xml backup file impact on this: as I describe before, installing one-by-one. Trying installing packages before, and after restoring... But results are the same: all looks like ok, but after System section restoring - going to wrong state, and connection to outside partially loss..

                              I more than sure that with .xml backup file are all ok, because I make 3 copy of them on 3 different media.

                              —
                              CLOSE SKY FOR UKRAINE https://youtu.be/_tU1i8VAdCo !
                              Help Ukraine to resist, save civilians people’s lives !
                              (Take an active part in public protests, push on Your country’s politics, congressmans, mass media, leaders of opinion.)

                              1 Reply Last reply Reply Quote 0
                              • Sergei_ShablovskyS
                                Sergei_Shablovsky @stephenw10
                                last edited by Sergei_Shablovsky

                                @stephenw10

                                Today I found that:

                                • if disable DNS Resolver
                                • reboot
                                • when enabling DNS Resolver
                                  After pressing Save button on DNS Resolver webGUI page, the follow error appear on top of the page (not on separate pop-up or info/alert part of page, just on upper background):
                                Warning: file_put_contents(/var/unbound/sslcert.crt): failed to open stream: No such file or directory in /etc/inc/unbound.inc on line 314
                                Warning: chmod(): No such file or directory in /etc/inc/unbound.inc on line 315
                                Warning: file_put_contents(/var/unbound/sslcert.key): failed to open stream: No such file or directory in /etc/inc/unbound.inc on line 316
                                Warning: chmod(): No such file or directory in /etc/inc/unbound.inc on line 317
                                

                                —
                                CLOSE SKY FOR UKRAINE https://youtu.be/_tU1i8VAdCo !
                                Help Ukraine to resist, save civilians people’s lives !
                                (Take an active part in public protests, push on Your country’s politics, congressmans, mass media, leaders of opinion.)

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

                                  You have pfBlocker in the config but not installed perhaps?

                                  Sergei_ShablovskyS 1 Reply Last reply Reply Quote 0
                                  • NollipfSenseN
                                    NollipfSense
                                    last edited by

                                    It's saying update available today but still unable to update. I also tried installing pfBlockerNG, no luck.

                                    Screen Shot 2022-05-10 at 8.56.52 AM.png

                                    Screen Shot 2022-05-10 at 8.56.28 AM.png

                                    pfSense+ 23.09 Lenovo Thinkcentre M93P SFF Quadcore i7 dual Raid-ZFS 128GB-SSD 32GB-RAM PCI-Intel i350-t4 NIC, -Intel QAT 8950.
                                    pfSense+ 23.09 VM-Proxmox, Dell Precision Xeon-W2155 Nvme 500GB-ZFS 128GB-RAM PCIe-Intel i350-t4, Intel QAT-8950, P-cloud.

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

                                      Hmm, you should be able to update the to April 26th snap. What does pkg -d update show?

                                      NollipfSenseN Sergei_ShablovskyS 2 Replies Last reply Reply Quote 0
                                      • NollipfSenseN
                                        NollipfSense @stephenw10
                                        last edited by NollipfSense

                                        @stephenw10 Still does nothing then eventually goes back to the shell prompt.
                                        Screen Shot 2022-05-10 at 3.54.35 PM.png

                                        pfSense+ 23.09 Lenovo Thinkcentre M93P SFF Quadcore i7 dual Raid-ZFS 128GB-SSD 32GB-RAM PCI-Intel i350-t4 NIC, -Intel QAT 8950.
                                        pfSense+ 23.09 VM-Proxmox, Dell Precision Xeon-W2155 Nvme 500GB-ZFS 128GB-RAM PCIe-Intel i350-t4, Intel QAT-8950, P-cloud.

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

                                          Looks like a general connectivity issue then. Try: pkg -d4 update

                                          Sergei_ShablovskyS NollipfSenseN 3 Replies Last reply Reply Quote 0
                                          • Sergei_ShablovskyS
                                            Sergei_Shablovsky @stephenw10
                                            last edited by Sergei_Shablovsky

                                            @stephenw10 said in Unable to update and package install (ERROR: It was not possible to identify which pfSense kernel is installed):

                                            You have pfBlocker in the config but not installed perhaps?

                                            Yes, in .xml backup file must be settings for pfBlockerNG. But now there are no any packages installed, due error in connectivity...

                                            —
                                            CLOSE SKY FOR UKRAINE https://youtu.be/_tU1i8VAdCo !
                                            Help Ukraine to resist, save civilians people’s lives !
                                            (Take an active part in public protests, push on Your country’s politics, congressmans, mass media, leaders of opinion.)

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