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

    1.2.3 to 2.0 upgrade loses vlans/interface configuration

    Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
    39 Posts 7 Posters 10.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

      I merged the threads together so it wouldn't be a duplicate. :-)

      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
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        Looking back and this and trying it out, my ALIX upgrades fine with VLANs. I suspect you were hitting this issue due to having the snort package installed:
        http://forum.pfsense.org/index.php/topic,28543.msg150170/topicseen.html#msg150170

        And that should be fixed now on newer versions of snort.

        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
        • L
          louis-m
          last edited by

          i was thinking the same as snort cocked up on resetting to the original slice but…..
          i've tried again tonight and no success.
          i've cleaned out my packages and package config and at one stage thought it was down to an old vnstat package but......

          on a reboot
          "invalid argument supplied for each() in /etc/inc/util.inc on line 708" and there ain't no line 708

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

            At this point I would just do a fresh image of the card with 2.0 and restore your configuration. Something has to have gotten corrupted somewhere along the line.

            To be safe, I'd remove the package data from the backup file.

            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
            • L
              louis-m
              last edited by

              aha…...
              are you saying i can do a fresh install and then use my 1.23 config to bring the v2 to how it was under v1.23? i didn't realise that you could do that.

              if so, can't i just temporarily configure a lan at the moment after the upgrade and then import the 1.23 config?

              1 Reply Last reply Reply Quote 0
              • E
                Efonnes
                last edited by

                If that was a recent snapshot, that error would suggest that you have no interfaces section in your config.xml at all when it is happening or that there was an error parsing config.xml.

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

                  yeah, backup the config, write out a card with 2.0, drop that in and connect to LAN, then restore config, and when it reboots it will be ready with all your other configuration. Still not sure I'd trust packages in that scenario just yet but it might be safe.

                  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
                  • L
                    louis-m
                    last edited by

                    just checked and there are interfaces there. i'll keep ploding on just to see incase it helps anybody later on but any help or pointers would be appreciated.

                    1 Reply Last reply Reply Quote 0
                    • E
                      Efonnes
                      last edited by

                      Maybe something invalid got into your config.xml somehow so that it wasn't able to parse it?  Something could somehow be going wrong with the config upgrade process, making a configuration that causes it to error out when parsing.  If this is happening, I think it would cause the equivalent of having a blank config.xml.

                      1 Reply Last reply Reply Quote 0
                      • L
                        louis-m
                        last edited by

                        ummm….
                        i'll probably have to go to a fresh v2 as jimp says but that's giving up to me so i wanna keep trying. i notice when it boots up it looks for packages, says it reinstalling packages and then says done. and there's no packages there in the gui or when you run pkg_info.
                        what i did try was clearing all my backups & cache out and then upgrade to v2.
                        still the same so i then name the interfaces vr0, vr1 & vr2 (thinking i'd get it going and then do the config import) but then i got:
                        cannot use a scalar value as an array in /etc/inc/config.console
                        cannot unset offset in a non-array variable in /etc/inc/config.console

                        1 Reply Last reply Reply Quote 0
                        • E
                          Efonnes
                          last edited by

                          Have you kept a backup of the working configuration from before the upgrade so that you can reproduce this at any time?

                          1 Reply Last reply Reply Quote 0
                          • L
                            louis-m
                            last edited by

                            yes, i backup using an "all" & "all without packages" config. still the same result.

                            1 Reply Last reply Reply Quote 0
                            • L
                              louis-m
                              last edited by

                              sorry to bring this up again but i'm looking for advice as we draw ever closer to v2.
                              i tried this again the other night (with latest snapshot) and still had the same issue. so i suppose the only way i'm gonna get v2 going is with a fresh install.
                              problem is, pfsense is configured with 5 vlans, ipsec tunnels etc and i don't want to lose the config or start from scratch.

                              can i do a fresh install and then restore from config?
                              i'm thinking of doing multiple backups eg one for packages, one for firewall, one for ipsec etc and restoring them (if i can) one by one in case there is anything in there.
                              would this be the way to go?

                              i don't want to buy another industrial grade cf card so i may use a normal cf just to see if it goes prior to switching over to the working card.

                              1 Reply Last reply Reply Quote 0
                              • C
                                cmb
                                last edited by

                                Please email me your config that won't upgrade.  cmb at pfsense dot org

                                1 Reply Last reply Reply Quote 0
                                • L
                                  louis-m
                                  last edited by

                                  sent the config. thank you for your time with this.

                                  1 Reply Last reply Reply Quote 0
                                  • L
                                    lustenbe
                                    last edited by

                                    I see exactly the same behavior at my side: after the upgrade the boot process asks for assigning interfaces which fails due to the "scalar problem". I was working for some time with 1.2.3 but had problems with voip phone disconnects and since nothing helped so far my last resort was giving 2.0 Beta 4 a try. But as reported, no luck so far. I would be really happy to get some help with the upgrade process…

                                    Thanks a lot!

                                    1 Reply Last reply Reply Quote 0
                                    • E
                                      eri--
                                      last edited by

                                      Please give full error message and config.xml if possible.

                                      1 Reply Last reply Reply Quote 0
                                      • L
                                        lustenbe
                                        last edited by

                                        Here is the section of the log when it jumps into the interface configuration after the "network interface mismatch"…

                                        *** Start LOG ***
                                        The interfaces will be assigned as follows:

                                        LAN  -> vr1
                                        WAN  -> vr0
                                        OPT1 -> vr2

                                        Do you want to proceed [y|n]?y

                                        Warning: Cannot use a scalar value as an array in /etc/inc/config.console.inc on line 322

                                        Warning: Cannot use a scalar value as an array in /etc/inc/config.console.inc on line 323

                                        Warning: Cannot unset offset in a non-array variable in /etc/inc/config.console.inc on line 375

                                        Warning: Cannot use a scalar value as an array in /etc/inc/config.console.inc on line 378

                                        Warning: Cannot use a scalar value as an array in /etc/inc/config.console.inc on line 379

                                        Warning: Cannot unset offset in a non-array variable in /etc/inc/config.console.inc on line 385

                                        Warning: Cannot use a scalar value as an array in /etc/inc/config.console.inc on line 390

                                        Warning: Cannot use a scalar value as an array in /etc/inc/config.console.inc on line 392

                                        Warning: Cannot unset offset in a non-array variable in /etc/inc/config.console.inc on line 399

                                        Warning: Cannot unset offset in a non-array variable in /etc/inc/config.console.inc on line 402

                                        Warning: Cannot use a scalar value as an array in /etc/inc/config.console.inc on line 403

                                        Writing configuration…
                                        Warning: Cannot use a scalar value as an array in /etc/inc/config.lib.inc on line 488

                                        Warning: Cannot use a scalar value as an array in /etc/inc/config.lib.inc on line 494

                                        Warning: Cannot use a scalar value as an array in /etc/inc/config.lib.inc on line 495

                                        Warning: Invalid argument supplied for foreach() in /etc/inc/xmlparse.inc on line 211
                                        done.

                                        Network interface mismatch -- Running interface assignment option.

                                        Valid interfaces are:

                                        vr0  00:0d:b9:1f:db:90  (up)  VIA VT6105M Rhine III 10/100BaseTX
                                        vr1  00:0d:b9:1f:db:91  (up)  VIA VT6105M Rhine III 10/100BaseTX
                                        vr2  00:0d:b9:1f:db:92  (up)  VIA VT6105M Rhine III 10/100BaseTX

                                        Do you want to set up VLANs first?

                                        If you are not going to use VLANs, or only for optional interfaces, you should
                                        say no here and use the webConfigurator to configure VLANs later, if required.

                                        Do you want to set up VLANs now [y|n]?

                                        *** End LOG ***

                                        1 Reply Last reply Reply Quote 0
                                        • E
                                          eri--
                                          last edited by

                                          I added some more checks for the errors you mentioned to code so you can try with latest snapshots.

                                          But without posting the config i cannot tell.

                                          1 Reply Last reply Reply Quote 0
                                          • L
                                            lustenbe
                                            last edited by

                                            Unfortunately, the new build with the additional debug messages did not help. Still exactly the same errors when the router boots into the image and then restarts assigning interfaces. Please find below the extract of the 1.2.3 config.xml file. Anyone any ideas?

                                            <interfaces><lan><if>vr1</if>
                                            <ipaddr>192.168.100.1</ipaddr>
                                            <subnet>24</subnet>
                                            <media><mediaopt><bandwidth>100</bandwidth>
                                            <bandwidthtype>Mb</bandwidthtype></mediaopt></media></lan>
                                            <wan><if>vr0</if>
                                            <mtu><ipaddr>dhcp</ipaddr>
                                            <subnet><gateway><blockpriv>on</blockpriv>
                                            <blockbogons>on</blockbogons>
                                            <disableftpproxy><dhcphostname><media><mediaopt><bandwidth>100</bandwidth>
                                            <bandwidthtype>Mb</bandwidthtype>
                                            <spoofmac></spoofmac></mediaopt></media></dhcphostname></disableftpproxy></gateway></subnet></mtu></wan>
                                            <opt1><if>vr2</if>
                                            <descr>OPT1</descr>
                                            <bridge>lan</bridge>
                                            <enable><ipaddr>dhcp</ipaddr>
                                            <subnet>32</subnet>
                                            <gateway><spoofmac><mtu><dhcphostname></dhcphostname></mtu></spoofmac></gateway></enable></opt1></interfaces>

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