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

    OpenVPN / Cert Backup - Restore issue BUG!

    Scheduled Pinned Locked Moved OpenVPN
    6 Posts 3 Posters 3.0k 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.
    • X
      xupetas
      last edited by

      Hello All,

      I've made a full backup of my primary pfsense using the , but when i try to restore the OpenVPN settings using the https://pfsense01/diag_backup.php utility, i get this error:

      _The following input errors were detected:

      You have selected to restore an area but we could not locate the correct xml tag._

      Is this a known issue?
      Am i doing something wrong?

      Nuno

      1 Reply Last reply Reply Quote 0
      • P
        phil.davis
        last edited by

        Yep , it's a bug - https://github.com/pfsense/pfsense/commit/f3988c851b5950a689c10b64208a65c0fc3c6298

        As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
        If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

        1 Reply Last reply Reply Quote 0
        • X
          xupetas
          last edited by

          Hello,

          But if i do a full restore of the xml generated by the diag_backup.php utility i still get restored to all the CA's, CRT's and openvpn configs right?

          Thanks for your help. Wonderful product.

          Nuno.

          1 Reply Last reply Reply Quote 0
          • P
            phil.davis
            last edited by

            Yes, full backup and full restore are doing everything, including certificates, OpenVPN settings…
            It was just a bug in the code that was not matching and finding the <openvpn>section of the config that was causing it to not work when trying to do just that specific section.</openvpn>

            As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
            If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

            1 Reply Last reply Reply Quote 0
            • A
              Andyrue
              last edited by

              I needed to restore just the OpenVPN config, so I tried making the edit to that file myself and seemed to have broken something.  I changed ovpn to openvpn like the fix suggests but now when I go to the diag_backup.php page I get

              Warning: Invalid argument supplied for foreach() in /etc/inc/util.inc on line 796 Warning: Invalid argument supplied for foreach() in /etc/inc/util.inc on line 796 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /etc/inc/util.inc:796) in /etc/inc/auth.inc on line 1357
              
              No page assigned to this user! Click here to logout.
              

              UPDATE
              Ok, so putting it back to ovpn fixed it.  How can I apply the bug fix without breaking it?

              1 Reply Last reply Reply Quote 0
              • P
                phil.davis
                last edited by

                You really just need to type the 3 letters "pen" in the middle of "ovpn"to make "openvpn".
                I can only guess that you have accidentally deleted or added some syntax character when making the edit.
                This change is simple enough that I would just do it from Diagnostics->Edit, Load, type the 3 chars in the right place and press "Save". No need to mess with command line.

                As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
                If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

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