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

    PHP Error on update from 2.4p2 to 2.5 in /etc/inc/certs.inc and /etc/inc/config.lib.inc

    Scheduled Pinned Locked Moved 2.5 Development Snapshots (Retired)
    27 Posts 9 Posters 3.7k 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.
    • ManateeM
      Manatee
      last edited by Manatee

      Same issue trying to upgrade from a fresh installation of 2.4.4-RELEASE-p1 on the DEVELOPMENT branch.

      Log file of pfSense-upgrade (2.4.4): upgrade_log.txt
      Log file of the first boot log after the botched upgrade (2.5.0): boot_log.txt

      Edit: Connected to the internet (dhclient em0 for me), re-run pfSense-upgrade and I can now boot, but not without issues. Current boot log looks like this (2.5.0): boot_log.txt

      1 Reply Last reply Reply Quote 0
      • M
        maverick_slo
        last edited by

        Filed redmine bug: https://redmine.pfsense.org/issues/9431

        1 Reply Last reply Reply Quote 0
        • M
          maverick_slo
          last edited by

          Bump :)

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

            Actually it isn't the PHP errors causing the problem, those are only a symptom.

            I updated the Redmine issue. What packages do you have installed on systems that hit this?

            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
            • M
              maverick_slo
              last edited by

              Same as now :)
              Attached.
              Capture.JPG

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

                What does this output?

                pkg info -r aws-sdk-php73
                

                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
                • M
                  maverick_slo
                  last edited by

                  @jimp said in PHP Error on update from 2.4p2 to 2.5 in /etc/inc/certs.inc and /etc/inc/config.lib.inc:

                  pkg info -r aws-sdk-php73

                  [2.4.5-DEVELOPMENT][root@.local]/root: pkg info -r aws-sdk-php73
                  pkg: No package(s) matching aws-sdk-php73

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

                    Did you have a different package installed before attempting the upgrade that is missing now? The aws-sdk package wasn't installed before (it was listed as new to install) so it must have been pulled in as a dependency of something.

                    It also wants to install postgresql95-client which is not a base system requirement and wasn't on there before, so it must be coming from a package.

                    Also the problem stated 2.4.4 to 2.5.0, not 2.4.5. 2.4.5 could be something different.

                    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
                    • M
                      maverick_slo
                      last edited by

                      No, I have same packages as when I tried the upgrade.

                      I can try to upgrade again since this is VM it can be done very quickly :)
                      Will try in 1-2 hours when I return home.

                      1 Reply Last reply Reply Quote 0
                      • M
                        maverick_slo
                        last edited by

                        Same error...upg.txt

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

                          @maverick_slo said in PHP Error on update from 2.4p2 to 2.5 in /etc/inc/certs.inc and /etc/inc/config.lib.inc:

                          Same error...upg.txt

                          That didn't include the actual error from the next boot.

                          I checked all the package dependencies and I don't see any for CE that require aws-sdk-php73 so I'm still puzzled as to how it's deciding that is necessary to pull that in on the next boot.

                          We're shifting things to the next quarterly ports branch today, so it may be worth trying the upgrade again once a new snapshot shows up later today / tomorrow.

                          EDIT: Something else to try would be to remove all pfSense packages (pkg delete pfSense-pkg-\*) and then try the upgrade again. Then add the packages back if that worked. If that does work then it has to be from a package, then we just need to figure out which one...

                          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!

                          B 1 Reply Last reply Reply Quote 0
                          • M
                            maverick_slo
                            last edited by

                            Yeah ok, will wait :)

                            1 Reply Last reply Reply Quote 0
                            • B
                              bsquared @jimp
                              last edited by

                              @jimp

                              Same issue here as well from 2.4.4_2 to the latest 2.5 snapshot as of April 10.

                              RRD and VMTools packages installed. RRD looks to be the common one from above.

                              1 Reply Last reply Reply Quote 0
                              • M
                                maverick_slo
                                last edited by

                                Hi!

                                I have:

                                a) Removed all packages via GUI and upgraded, same error
                                b) Used command "pkg delete pfSense-pkg-*", same error

                                I dont think its a package thing.

                                L 1 Reply Last reply Reply Quote 0
                                • L
                                  LostInIgnorance @maverick_slo
                                  last edited by LostInIgnorance

                                  @maverick_slo Unfortunately I was coming to the same conclusion and had opened a ticket and was sited as a duplicate. I was working off of a fresh install, all packages uninstalled and then executing an upgrade. Seems to only be tied to any of my arm based systems to me. All of my Intel based ones seem to be working just fine. I abandoned the upgrading on any of my arm systems and am sticking with 2.4.4-p2 for now.

                                  Fatal error: Uncaught Error: Call to undefined function gettext() in /etc/inc/certs.inc:46
                                  
                                  Stack trace:
                                  
                                  #0 /etc/inc/functions.inc(32): require_once()
                                  
                                  #1 /etc/ecl.php(21): require_once('/etc/inc/functi...')
                                  
                                  #2 {main}
                                  
                                    thrown in /etc/inc/certs.inc on line 46
                                  
                                  
                                  1 Reply Last reply Reply Quote 0
                                  • M
                                    maverick_slo
                                    last edited by

                                    For me it`s a Hyper-V machineso no arm...

                                    1 Reply Last reply Reply Quote 0
                                    • rbgargaR
                                      rbgarga Developer Netgate Administrator
                                      last edited by

                                      There was a bug in pfSense-upgrade. It should be fixed on version 0.67

                                      Renato Botelho

                                      M 1 Reply Last reply Reply Quote 0
                                      • M
                                        maverick_slo @rbgarga
                                        last edited by

                                        @rbgarga
                                        Great!
                                        So next snap should be ok?

                                        rbgargaR 1 Reply Last reply Reply Quote 0
                                        • rbgargaR
                                          rbgarga Developer Netgate Administrator @maverick_slo
                                          last edited by

                                          @maverick_slo said in PHP Error on update from 2.4p2 to 2.5 in /etc/inc/certs.inc and /etc/inc/config.lib.inc:

                                          @rbgarga
                                          Great!
                                          So next snap should be ok?

                                          yes

                                          Renato Botelho

                                          B 1 Reply Last reply Reply Quote 0
                                          • B
                                            bsquared @rbgarga
                                            last edited by

                                            @rbgarga said in PHP Error on update from 2.4p2 to 2.5 in /etc/inc/certs.inc and /etc/inc/config.lib.inc:

                                            @maverick_slo said in PHP Error on update from 2.4p2 to 2.5 in /etc/inc/certs.inc and /etc/inc/config.lib.inc:

                                            @rbgarga
                                            Great!
                                            So next snap should be ok?

                                            yes

                                            Excellent, thank you!

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