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.8k 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.
    • 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
                                  • T
                                    tandyuk
                                    last edited by

                                    Just had a very similar, if not the same problem today, after deciding to test out 2.5.

                                    From 2.4.4-p2, using the gui to upgrade.
                                    System rebooted, but threw all manner of issues on the boot, leaving the system broken.

                                    Root cause was at some point during the initial boot php-fpm crashed, and tried to write its core dump to /var/run/php-fpm.core
                                    /var/run however is a 3.4MB ramdisk, so it failed to write the dump, and subsequently a lot of the upgrade process failed due to lack of disk space.

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

                                      I just upgraded to 2.5 with no issues.

                                      Thanks it`s fixed.

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

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

                                        Just had a very similar, if not the same problem today, after deciding to test out 2.5.

                                        From 2.4.4-p2, using the gui to upgrade.
                                        System rebooted, but threw all manner of issues on the boot, leaving the system broken.

                                        Root cause was at some point during the initial boot php-fpm crashed, and tried to write its core dump to /var/run/php-fpm.core
                                        /var/run however is a 3.4MB ramdisk, so it failed to write the dump, and subsequently a lot of the upgrade process failed due to lack of disk space.

                                        This sounds like a different issue. I never heard about php-fpm crash during upgrade before

                                        Renato Botelho

                                        1 Reply Last reply Reply Quote 0
                                        • S
                                          strangegopher
                                          last edited by

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