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

    23.01 Upgrade failed - dead in the water

    Problems Installing or Upgrading pfSense Software
    17
    59
    20.8k
    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.
    • R
      reggie14 @bitslammer
      last edited by

      @bitslammer
      Did you get 23.01 working, or did you fall back?

      I ran into this trying to do an upgrade from 2.6 CE. The 2.6 CE-> 22.01 upgrade seemed to go OK, but I got the same fatal error when doing the 23.01 update. It happened twice-- same problem when I restored a backup and tried again.

      B T 2 Replies Last reply Reply Quote 0
      • B
        bitslammer @reggie14
        last edited by

        @reggie14 Got it running but had to recover from USB and restore a backup.

        R 1 Reply Last reply Reply Quote 0
        • R
          reggie14 @bitslammer
          last edited by

          @bitslammer I see you're running on Netgate hardware. When you did a USB recovery, did you recover straight to 23.01, or did you recover to 22.01/22.05 and redo the upgrade to 23.01?

          I had to recover back to 2.6 CE and try the upgrade again, which failed again.

          B 1 Reply Last reply Reply Quote 0
          • B
            bitslammer @reggie14
            last edited by

            @reggie14 Went straight to 23.01.

            1 Reply Last reply Reply Quote 0
            • T
              tman222 @reggie14
              last edited by

              @reggie14 said in 23.01 Upgrade failed - dead in the water:

              @bitslammer
              Did you get 23.01 working, or did you fall back?

              I ran into this trying to do an upgrade from 2.6 CE. The 2.6 CE-> 22.01 upgrade seemed to go OK, but I got the same fatal error when doing the 23.01 update. It happened twice-- same problem when I restored a backup and tried again.

              @reggie14 - does the error also occur if you uninstall packages first, upgrade, and then reinstall packages?

              https://docs.netgate.com/pfsense/en/latest/install/upgrade-guide-prepare.html#packages

              R 1 Reply Last reply Reply Quote 0
              • R
                reggie14 @tman222
                last edited by

                @tman222
                I haven't tried that yet. I'd be surprised if the packages are mucking with certs.inc.

                I'm not sure what the mechanism would be, but I wonder if it has something to do with the CRL expiration bug system patch. That modifies certs.inc. I don't understand how those patches work, and whether pfSense tries to apply the same modifications to files in an update.

                I haven't disabled it, though, since the WebGUI seems to warn you against disabling patches after updates.

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

                  @reggie14 The patches just directly modify the PHP file (it's a diff, if you look at the details you can see which lines are removed and added). An update replaces the file. Normally all Recommended patches are including in the subsequent version. After updating the System Patches package it shouldn't offer the old ones anymore, IIRC.

                  Per the above diff, line 48 of certs.inc isn't modifed by the patch.

                  Per various Netgate posts when upgrading to 23.01 there will be PHP errors shown while PHP is being upgraded. Those can be ignored if the upgrade completes.

                  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
                  • R
                    reggie14
                    last edited by

                    @steveits
                    Thanks. The problem is (apparently) specifically with the call to the gettext function. I can't figure out where that function gets included/declared, but I'm definitely not a PHP guy.

                    It doesn't seem to be just a warning. pfSense doesn't seem to ever boot properly. I can get to the pfSense menu in the console, but the only thing that works is opening a shell. none of the other options in the pfSense menu work, nor does the network work. There's no obvious problem in the certs.inc file, particularly on line 48, but I don't see where gettext ever gets defined.

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

                      @reggie14 said in 23.01 Upgrade failed - dead in the water:

                      particularly on line 48, but I don't see where gettext ever gets defined.

                      gettext is a standard, build in PHP function.

                      If it's 'missing', don't waste your time : re install pfSense.

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

                      R 1 Reply Last reply Reply Quote 1
                      • R
                        reggie14 @Gertjan
                        last edited by

                        @gertjan

                        I did a reinstall, but the same problem happened again when I tried to update the software again.

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

                          @reggie14 said in 23.01 Upgrade failed - dead in the water:

                          @gertjan

                          I did a reinstall, but the same problem happened again when I tried to update the software again.

                          You mean : you install 23.01 - boot into it - no packages what so ever and you see this error ?

                          The gettext function is used :

                          grep -R 'gettext(' /etc/inc/* | wc -l
                          

                          a ... lot !! (+2300 times) as it is used to translate the GUI.
                          It only fails on this file : /etc/inc/certs.inc on line 48 ?

                          Do you use the 'native' language - or some other GUI language ?

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

                          R 1 Reply Last reply Reply Quote 0
                          • R
                            reggie14 @Gertjan
                            last edited by

                            @gertjan said in 23.01 Upgrade failed - dead in the water:

                            @reggie14 said in 23.01 Upgrade failed - dead in the water:

                            @gertjan

                            I did a reinstall, but the same problem happened again when I tried to update the software again.

                            You mean : you install 23.01 - boot into it - no packages what so ever and you see this error ?

                            The gettext function is used :

                            grep -R 'gettext(' /etc/inc/* | wc -l
                            

                            a ... lot !! (+2300 times) as it is used to translate the GUI.
                            It only fails on this file : /etc/inc/certs.inc on line 48 ?

                            Do you use the 'native' language - or some other GUI language ?

                            The webGUI doesn't work at all after the 23.01 update. Even the network doesn't seem to work. The error is displayed in the console when directly attached to the fitlet2.

                            1 Reply Last reply Reply Quote 0
                            • J
                              Jonb
                              last edited by

                              I am having the same issue upgrading on a virtual appliance from 22.01. I have also done a complete reinstall (deleted virtual disk) and gone 2.6 > 22.01 >23.01
                              2c5973a5-e11b-4d62-84a4-ebeb2e80fb45-image.png

                              Hosted desktops and servers with support without complication.
                              www.blueskysystems.co.uk

                              R morgensternM 2 Replies Last reply Reply Quote 1
                              • jimpJ
                                jimp Rebel Alliance Developer Netgate
                                last edited by

                                Something is causing it to fail partway through the upgrade. Is the disk full or nearly full?

                                What is in /conf/upgrade_log.txt and /conf/upgrade_log.latest.txt?

                                If you have a serial console on there, run the upgrade from the serial console and record the entire process to a file and post that.

                                Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                                Need help fast? Netgate Global Support!

                                Do not Chat/PM for help!

                                J 1 Reply Last reply Reply Quote 0
                                • R
                                  reggie14 @Jonb
                                  last edited by

                                  @jonb

                                  Yes, that seems to be the exact same set of boot screen messages that I got after attempting the 23.01 update.

                                  D 1 Reply Last reply Reply Quote 0
                                  • D
                                    Darkk @reggie14
                                    last edited by Darkk

                                    @reggie14 said in 23.01 Upgrade failed - dead in the water:

                                    @jonb

                                    Yes, that seems to be the exact same set of boot screen messages that I got after attempting the 23.01 update.

                                    This is happening to me as well. Lucky I've manually created a new boot environment before I did the upgrade so was able to recover from the bad upgrade.

                                    My plan is to wait for 2.7 CE release and then install using that version. Then upgrade to Plus and restore the configuration file.

                                    It's not ideal but at least with fresh install won't have these weird issues.

                                    R 1 Reply Last reply Reply Quote 0
                                    • R
                                      reggie14 @Darkk
                                      last edited by

                                      @darkk

                                      I still had it after doing a fresh reinstall/recovery, although that still means starting at 2.6 CE.

                                      I'm going to wait for 2.7, too. I filed a ticket hoping they had been able to identify the problem from the other reports, but it sounds like they only have a solution for the Netgate hardware, which is to directly install a 23.01 image.

                                      jimpJ 1 Reply Last reply Reply Quote 0
                                      • jimpJ
                                        jimp Rebel Alliance Developer Netgate @reggie14
                                        last edited by

                                        @reggie14 said in 23.01 Upgrade failed - dead in the water:

                                        @darkk

                                        I still had it after doing a fresh reinstall/recovery, although that still means starting at 2.6 CE.

                                        I'm going to wait for 2.7, too. I filed a ticket hoping they had been able to identify the problem from the other reports, but it sounds like they only have a solution for the Netgate hardware, which is to directly install a 23.01 image.

                                        That is a completely different problem and doesn't result in the kind of errors shown in this thread.

                                        Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                                        Need help fast? Netgate Global Support!

                                        Do not Chat/PM for help!

                                        R 1 Reply Last reply Reply Quote 0
                                        • R
                                          reggie14 @jimp
                                          last edited by

                                          @jimp said in 23.01 Upgrade failed - dead in the water:

                                          @reggie14 said in 23.01 Upgrade failed - dead in the water:

                                          @darkk

                                          I still had it after doing a fresh reinstall/recovery, although that still means starting at 2.6 CE.

                                          I'm going to wait for 2.7, too. I filed a ticket hoping they had been able to identify the problem from the other reports, but it sounds like they only have a solution for the Netgate hardware, which is to directly install a 23.01 image.

                                          That is a completely different problem and doesn't result in the kind of errors shown in this thread.

                                          Thanks. Any reason to think there would be a benefit to waiting until 2.7 CE comes out to try again?

                                          jimpJ 1 Reply Last reply Reply Quote 0
                                          • jimpJ
                                            jimp Rebel Alliance Developer Netgate @reggie14
                                            last edited by

                                            @reggie14 said in 23.01 Upgrade failed - dead in the water:

                                            Thanks. Any reason to think there would be a benefit to waiting until 2.7 CE comes out to try again?

                                            Without knowing why these upgrade attempts failed, it's hard to speculate about possible solutions or workarounds. We need more information about what happened.

                                            Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                                            Need help fast? Netgate Global Support!

                                            Do not Chat/PM for help!

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