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

pfSense 2.7 with an old 2.4.5 config failing to upgrade

Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
27 Posts 3 Posters 2.6k 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.
  • D
    davin.landry @stephenw10
    last edited by Nov 20, 2023, 6:45 PM

    config-router.xml

    1 Reply Last reply Reply Quote 0
    • S
      stephenw10 Netgate Administrator
      last edited by Nov 20, 2023, 7:12 PM

      That appears to be only the ipsec config. What matters here is the gateway section like:

      	<gateways>
      		<gateway_item>
      			<interface>opt9</interface>
      			<gateway>172.27.116.1</gateway>
      			<name>WG0GW</name>
      			<weight>1</weight>
      			<ipprotocol>inet</ipprotocol>
      			<descr></descr>
      			<monitor_disable></monitor_disable>
      			<gw_down_kill_states></gw_down_kill_states>
      		</gateway_item>
      		<gateway_item>
      			<interface>opt14</interface>
      			<gateway>dynamic</gateway>
      			<name>GIF0_TUNNELV4</name>
      			<weight>1</weight>
      			<ipprotocol>inet</ipprotocol>
      			<descr><![CDATA[Interface GIF0_TUNNELV4 Gateway]]></descr>
      		</gateway_item>
      		<gateway_item>
      			<interface>opt17</interface>
      			<gateway>dynamic</gateway>
      			<name>WWAN0_PPP</name>
      			<weight>1</weight>
      			<ipprotocol>inet</ipprotocol>
      			<interval>5000</interval>
      			<time_period>100000</time_period>
      			<alert_interval>20000</alert_interval>
      			<descr><![CDATA[Interface WWAN0_PPP Gateway]]></descr>
      			<monitor>1.1.1.1</monitor>
      			<loss_interval>19995</loss_interval>
      		</gateway_item>
      		<gateway_item>
      			<interface>opt25</interface>
      			<gateway>10.0.2.1</gateway>
      			<name>WG_GW0</name>
      			<weight></weight>
      			<ipprotocol>inet</ipprotocol>
      			<descr><![CDATA[Wireguard gateway]]></descr>
      			<gw_down_kill_states></gw_down_kill_states>
      		</gateway_item>
      		<defaultgw4>WAN_DHCP</defaultgw4>
      		<defaultgw6></defaultgw6>
      	</gateways>
      
      D 1 Reply Last reply Nov 20, 2023, 8:08 PM Reply Quote 0
      • D
        davin.landry @stephenw10
        last edited by Nov 20, 2023, 8:08 PM

        Sorry. Here you go.

        config-router.xml

        1 Reply Last reply Reply Quote 0
        • S
          stephenw10 Netgate Administrator
          last edited by Nov 20, 2023, 10:24 PM

          Great. Nothing jumps out at me there, I've raised it with our devs.

          1 Reply Last reply Reply Quote 1
          • S
            stephenw10 Netgate Administrator
            last edited by Nov 21, 2023, 9:25 PM

            Hmm, OK are you able to retest that?

            If so try removing the <interval/> lines from the config before importing it. If that prevents the error we should be able to add something to allow it.

            D 2 Replies Last reply Nov 22, 2023, 1:48 PM Reply Quote 0
            • D
              davin.landry @stephenw10
              last edited by Nov 22, 2023, 1:48 PM

              Yes I can retry, I'll let you know something after the holiday.

              1 Reply Last reply Reply Quote 1
              • D
                davin.landry @stephenw10
                last edited by Nov 28, 2023, 3:08 PM

                Test was successful most of the settings are now in the new system. A few things aren't working, like the openVPN service and DHCP service won't start but I think it might be because it doesn't have any real connections.
                I'm also getting the following error now.

                PHP Errors:
                [28-Nov-2023 03:29:20 America/Chicago] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /etc/inc/upgrade_config.inc:4290
                Stack trace:
                #0 /etc/inc/config.lib.inc(513): upgrade_136_to_137()
                #1 /etc/rc.bootup(135): convert_config()
                #2 {main}
                thrown in /etc/inc/upgrade_config.inc on line 4290

                1 Reply Last reply Reply Quote 0
                • S
                  stephenw10 Netgate Administrator
                  last edited by Nov 28, 2023, 5:11 PM

                  Still into 2.7.0 not 2.7.1?
                  https://github.com/pfsense/pfsense/blob/RELENG_2_7_0/src/etc/inc/upgrade_config.inc#L4290

                  if (!is_array($dhcpd['numberoptions']['item'])) {
                  

                  Do you have custom numbered options in your dhcp server config?

                  Steve

                  D 1 Reply Last reply Nov 28, 2023, 5:51 PM Reply Quote 0
                  • D
                    davin.landry @stephenw10
                    last edited by Nov 28, 2023, 5:51 PM

                    Yes I have 10 total different networks(vlans) with different scopes and 7 of those use the DHCP server.

                    1 Reply Last reply Reply Quote 0
                    • S
                      stephenw10 Netgate Administrator
                      last edited by Nov 28, 2023, 6:31 PM

                      Right but do any of them have numbered options set like:
                      Screenshot from 2023-11-28 18-30-57.png

                      D 1 Reply Last reply Nov 28, 2023, 9:35 PM Reply Quote 0
                      • D
                        davin.landry @stephenw10
                        last edited by davin.landry Nov 28, 2023, 9:38 PM Nov 28, 2023, 9:35 PM

                        Yeah, "66" on my phone VLAN.

                        Oh and yeah I must have downloaded this before the update to 2.7.1, It's been on the workbench a little while. I'll update it.

                        1 Reply Last reply Reply Quote 0
                        • S
                          stephenw10 Netgate Administrator
                          last edited by Nov 28, 2023, 10:08 PM

                          Ok, I don't expect 2.7.1 to be any different but the line numbers in the php error might have changed.

                          1 Reply Last reply Reply Quote 0
                          27 out of 27
                          • First post
                            27/27
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                            This community forum collects and processes your personal information.
                            consent.not_received