Config not retained during upgrade on i386 1.2.3->2.0RC1



  • I have this problem here.

    upgrading an i386 1.2.3 RELEASE to 2.0 RC1 nanobsd 4g.

    everything fine until first reboot, after I get this ;

    • I must reassign my interfaces
    • my config was not retained
    • trying to restore my 1.2.3 config backup fails
    • And those errors at boot time
    Warning: Cannot use a scalar value as an array in /etc/inc/config.console.inc on line 323
    Warning: Cannot use a scalar value as an array in /etc/inc/config.console.inc on line 324
    Warning: Cannot use a scalar value as an array in /etc/inc/config.console.inc on line 325
    Warning: Cannot use a scalar value as an array in /etc/inc/config.console.inc on line 382
    Warning: Cannot use a scalar value as an array in /etc/inc/config.console.inc on line 383
    Warning: Cannot use a scalar value as an array in /etc/inc/config.console.inc on line 384
    Warning: Cannot use a scalar value as an array in /etc/inc/config.console.inc on line 396
    Warning: Cannot use a scalar value as an array in /etc/inc/config.console.inc on line 398
    Warning: Cannot unset offset in a non-array variable in /etc/inc/config.console.inc on line 405
    Warning: Cannot unset offset in a non-array variable in /etc/inc/config.console.inc on line 408
    Warning: Cannot use a scalar value as an array in /etc/inc/config.console.inc on line 409
    Writing configuration...
    Warning: Cannot use a scalar value as an array in /etc/inc/config.lib.inc on line 495
    Warning: Cannot use a scalar value as an array in /etc/inc/config.lib.inc on line 498
    Warning: Cannot use a scalar value as an array in /etc/inc/config.lib.inc on line 504
    Warning: Cannot use a scalar value as an array in /etc/inc/config.lib.inc on line 505
    

    I looked at my config file and the XML seems fine, no strange character. What can I do ?

    Thanks


  • Rebel Alliance Developer Netgate

    Something in the old config is causing it to be tossed out. Can you send me a copy of your config so I can look it over?

    jimp (at) pfsense [dot] org.



  • email sent. thanks.


  • Rebel Alliance Developer Netgate

    Out of curiosity, can you try to restore that config without the OpenVPN section, to see if that works?



  • I can try that but I'm at work right now, can't test it until later tonight.

    I just delete the whole <openvpnserver>section ?

    Will post here tonight.</openvpnserver>


  • Rebel Alliance Developer Netgate

    Yeah, everything between that opening and closing tag.



  • just tested this, restore config works fine without the openvpn part.

    Does that mean that there's a little bug in the upgrade script ? Should I wait to upgrade ?

    Having new certs for my vpn would be a pita…

    Thanks!


  • Rebel Alliance Developer Netgate

    There must be a bug somewhere, but it works fine for many other people, so it must be something specific to your config (and others that I have which seem to be problematic)



  • Should I test another restore with the latest nightly snap ?

    Current version: 2.0-RC1
      NanoBSD Size : 4g
           Built On: Sat Feb 26 16:33:51 EST 2011
        New version: Mon Mar 14 17:33:11 EDT 2011
    
      Update source: http://snapshots.pfsense.org/FreeBSD_RELENG_8_1/i386/pfSense_HEAD/.updaters/
    

  • Rebel Alliance Developer Netgate

    I don't think there have been any changes to the OpenVPN portions of the upgrade code since the RC1 image, so it probably wouldn't make a difference, but feel free to try if you want.



  • you were right, same problem with the latest snapshot.

    Keep up the good work! ;)


Log in to reply