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

    Upgrade 2.3 to 2.7.2 issues with config restore

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    18 Posts 3 Posters 603 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.
    • S
      sneakking
      last edited by

      Similar to a few others, got some php errors I cannot identify when restoring my config on 2.7.2. All interfaces aren't mapped upon boot up and return to that state after a reboot.

      PHP ERROR: Type: 1, File: /etc/inc/upgrade_config.inc, Line: 5444, Message: Uncaught TypeError: Cannot access offset of type string on string in /etc/inc/upgrade_config.inc:5444
      Stack trace:
      #0 /etc/inc/config.lib.inc(519): upgrade_172_to_173()
      #1 /usr/local/pfSense/include/www/backup.inc(405): convert_config()
      #2 /usr/local/www/diag_backup.php(63): execPost(Array, Array)
      #3 {main}
      thrown @ 2025-02-15 20:48:21config-20250215051619-donotbackuppackageor-rrd-data-sanitized-to-share.xml

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

        Hmm, interesting since you don't have any ppp interfaces. First thing I would try is simply removing the <ppps/> line from your old config before importing it.

        S 1 Reply Last reply Reply Quote 0
        • S
          sneakking @stephenw10
          last edited by

          @stephenw10
          Thanks for the tip! I removed the entire <ppps><ppps/> line and no luck, same experience when restoring.

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

            Hmm, where did the sanitized config above come from then? I was assuming that's what you're trying to import? But that only has a single <ppps/> line.

            S 1 Reply Last reply Reply Quote 0
            • S
              sneakking @stephenw10
              last edited by

              @stephenw10

              It's mine. I took a backup before the upgrade. One with package and rrd data and one without them. Not sure which one i should be restoring with. I tried both at first. Neither one worked.

              I only tried without package and rrd data with your modified suggestion so far. Which is the sanitized config.xml I shared.

              Should I be restoring with package data and rrd data?

              Thank you.

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

                Hmm, it shouldn't make any difference.

                Did you ever try importing it into any other version?

                S 1 Reply Last reply Reply Quote 0
                • S
                  sneakking @stephenw10
                  last edited by

                  @stephenw10
                  I did not, yet. Couldn't find a recommended upgrade path for going between the versions, and read i should be able to restore from most any version.

                  If there is a recommended upgrade path from 2.3.x to 2.7.x I would try to go down to something else in the iterim, if it helps at all?

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

                    Indeed, you should be able to import that directly.

                    Are you able to upload the full config to us to run some tests?

                    S 1 Reply Last reply Reply Quote 0
                    • S
                      sneakking @stephenw10
                      last edited by

                      @stephenw10
                      Yes, full config meaning...un-sanitized? or not a config.xml?

                      Is there a safe way to share that?

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

                        Yes the full config if you can. If not then at least soemthing that still hit's this error when you try to recover it.

                        You can upload files here: https://nc.netgate.com/nextcloud/s/myLNdL9CbWeKWqT

                        S 1 Reply Last reply Reply Quote 0
                        • S
                          sneakking @stephenw10
                          last edited by

                          @stephenw10
                          Thank you! I dropped 2 unsantized config.xmls there, one with the package & rrd data and one without.

                          S 1 Reply Last reply Reply Quote 1
                          • S
                            sneakking @sneakking
                            last edited by

                            @sneakking said in Upgrade 2.3 to 2.7.2 issues with config restore:

                            @stephenw10

                            Any luck with my configs I uploaded?

                            Thank you.

                            M 1 Reply Last reply Reply Quote 0
                            • M
                              mvbif @sneakking
                              last edited by

                              @sneakking Hello, how do you are trying the update?
                              Did you try a clean install then a restore from gui? Instead updating an old version with conf on?
                              If doesn't work (you may need to refit interfaces) you may take the clean conf from new install, and take the parts of config you need from the old one and override the sections.

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

                                Ah, sorry this got swamped. Let me test....

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

                                  Yup seeing that error. Digging....

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

                                    Ok so this is fixed in newer versions. It was fixed between 24.03 and 24.11 which means it will be fixed in 2.8 but that doesn't help much in 2.7.2! unfortunately there were a lot of changes went in at that time so it's not straight forward to patch in 2.7.2.

                                    However I was able to workaround it by manually updating the vlan config format and removing the ppp line from the config file. It then imported successfully.

                                    So replace _vlan with . and remove <ppps></ppps>.

                                    I have a modified file I can send you if you need it.

                                    S 1 Reply Last reply Reply Quote 0
                                    • S
                                      sneakking @stephenw10
                                      last edited by

                                      @stephenw10
                                      Thank you! I have been running on a modified version of my old config that I updated to what I needed most, but afraid to reboot because of the issue I was seeing before.

                                      I exported my current modified config, edited the file with your suggestions to _vlan and ppps and it seems to hold the config now after being restored/rebooted. Darn that formatting.

                                      Not seeing the PHP error anymore like I was persistently seeing.

                                      Thank you again for all your help!

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

                                        No worries. It is a legitimate bug. You should just be able to import it. But because it's already fixed it's unlikely to see much traction in 2.7.2. At least there's a relatively easy workaround. 😉

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