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

    tried to recover from a backup - got a fatal error message

    Scheduled Pinned Locked Moved General pfSense Questions
    7 Posts 3 Posters 931 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.
    • N
      nevolex
      last edited by

      Hi
      Yesterday i tried to recover from a back up and got as soon as the file was loaded to "Restore" section of pfsense (not even clicked restore) just literally - added via file upload - immediately I got this - reboot did not help/ web interfaces broke with web page showing this on the front page

      Fatal error: Uncaught Exception: XML error: SSHDATA at line 3980 cannot occur more than once in /etc/inc/xmlparse.inc:89 Stack trace: #0 [internal function]: startElement(Resource id #24, 'SSHDATA', Array) #1 /etc/inc/xmlparse.inc(188): xml_parse(Resource id #24, 'Fxo4VBmDNkJVOup...', false) #2 /etc/inc/xmlparse.inc(149): parse_xml_config_raw('/conf/config.xm...', Array, 'false') #3 /etc/inc/config.lib.inc(134): parse_xml_config('/conf/config.xm...', Array) #4 /etc/inc/config.inc(144): parse_config() #5 /etc/inc/gwlb.inc(25): require_once('/etc/inc/config...') #6 /etc/inc/functions.inc(35): require_once('/etc/inc/gwlb.i...') #7 /etc/inc/notices.inc(26): require_once('/etc/inc/functi...') #8 /etc/inc/config.gui.inc(39): require_once('/etc/inc/notice...') #9 /etc/inc/auth.inc(33): require_once('/etc/inc/config...') #10 /etc/inc/authgui.inc(27): include_once('/etc/inc/auth.i...') #11 /usr/local/www/guiconfig.inc(60): require_once('/etc/inc/authgu...') #12 /usr/local/www/index.php(46): require_once('/usr/local/www/...') #13 in /etc/inc/xmlparse.inc on line 89 PHP ERROR: Type: 1, File: /etc/inc/xmlparse.inc, Line: 89, Message: Uncaught Exception: XML error: SSHDATA at line 3980 cannot occur more than once in /etc/inc/xmlparse.inc:89 Stack trace: #0 [internal function]: startElement(Resource id #24, 'SSHDATA', Array) #1 /etc/inc/xmlparse.inc(188): xml_parse(Resource id #24, 'Fxo4VBmDNkJVOup...', false) #2 /etc/inc/xmlparse.inc(149): parse_xml_config_raw('/conf/config.xm...', Array, 'false') #3 /etc/inc/config.lib.inc(134): parse_xml_config('/conf/config.xm...', Array) #4 /etc/inc/config.inc(144): parse_config() #5 /etc/inc/gwlb.inc(25): require_once('/etc/inc/config...') #6 /etc/inc/functions.inc(35): require_once('/etc/inc/gwlb.i...') #7 /etc/inc/notices.inc(26): require_once('/etc/inc/functi...') #8 /etc/inc/config.gui.inc(39): require_once('/etc/inc/notice...') #9 /etc/inc/auth.inc(33): require_once('/etc/inc/config...') #10 /etc/inc/authgui.inc(27): include_once('/etc/inc/auth.i...') #11 /usr/local/www/guiconfig.inc(60): require_once('/etc/inc/authgu...') #12 /usr/local/www/index.php(46): require_once('/usr/local/www/...') #13

      via console - non of the options worked and simply reload the same error in the loop

      FreeBSD/amd64 (Amnesiac) (ttyu0)

      Fatal error: Uncaught Exception: XML error: SSHDATA at line 3978 cannot occur more than once
      in /etc/inc/xmlparse.inc:89
      Stack trace:
      #0 [internal function]: startElement(Resource id #26, 'SSHDATA', Array)
      #1 /etc/inc/xmlparse.inc(188): xml_parse(Resource id #26, 'HF5oXrsyqo7aFwE...', false)
      #2 /etc/inc/xmlparse.inc(149): parse_xml_config_raw('/conf/config.xm...', Array, 'false')
      #3 /etc/inc/config.lib.inc(134): parse_xml_config('/conf/config.xm...', Array)
      #4 /etc/inc/config.gui.inc(56): parse_config()
      #5 /etc/inc/auth.inc(33): require_once('/etc/inc/config...')
      #6 /etc/inc/openvpn.inc(35): require_once('/etc/inc/auth.i...')
      #7 /etc/inc/filter.inc(30): require_once('/etc/inc/openvp...')
      #8 /etc/inc/ipsec.inc(25): require_once('/etc/inc/filter...')
      #9 /etc/inc/gwlb.inc(27): require_once('/etc/inc/ipsec....')
      #10 /etc/inc/functions.inc(35): require_once('/etc/inc/gwlb.i...')
      #11 /etc/inc/notices.inc(26): require_once('/etc/inc/functi...')
      #12 /etc/inc/config.inc(51): require_once('/etc/inc/notice...')
      #13 /etc/rc.banner(2 in /etc/inc/xmlparse.inc on line 89
      PHP ERROR: Type: 1, File: /etc/inc/xmlparse.inc, Line: 89, Message: Uncaught Exception: XML error: SSHDATA at line 3978 cannot
      in /etc/inc/xmlparse.inc:89
      Stack trace:
      #0 [internal function]: startElement(Resource id #26, 'SSHDATA', Array)
      #1 /etc/inc/xmlparse.inc(188): xml_parse(Resource id #26, 'HF5oXrsyqo7aFwE...', false)
      #2 /etc/inc/xmlparse.inc(149): parse_xml_config_raw('/conf/config.xm...', Array, 'false')
      #3 /etc/inc/config.lib.inc(134): parse_xml_config('/conf/config.xm...', Array)
      #4 /etc/inc/config.gui.inc(56): parse_config()
      #5 /etc/inc/auth.inc(33): require_once('/etc/inc/config...')
      #6 /etc/inc/openvpn.inc(35): require_once('/etc/inc/auth.i...')
      #7 /etc/inc/filter.inc(30): require_once('/etc/inc/openvp...')
      #8 /etc/inc/ipsec.inc(25): require_once('/etc/inc/filter...')
      #9 /etc/inc/gwlb.inc(27): require_once('/etc/inc/ipsec....')
      #10 /etc/inc/functions.inc(35): require_once('/etc/inc/gwlb.i...')
      #11 /etc/inc/notices.inc(26): require_once('/etc/inc/functi...')
      #12 /etc/inc/config.inc(51): require_once('/etc/inc/notice...')
      #13 /etc/rc.banner(2
      0) Logout (SSH only) 9) pfTop

      1. Assign Interfaces 10) Filter Logs
      2. Set interface(s) IP address 11) Restart webConfigurator
      3. Reset webConfigurator password 12) PHP shell + Netgate pfSense Plus tools
      4. Reset to factory defaults 13) Update from console
      5. Reboot system 14) Enable Secure Shell (sshd)
      6. Halt system 15) Restore recent configuration
      7. Ping host 16) Restart PHP-FPM
      8. Shell

      what is that?
      i was not able to fix it and had to reinstall the whole thing and restore from the different back up file taken a few hours earlier

      1 Reply Last reply Reply Quote 0
      • N
        nevolex
        last edited by

        Could be this?

        https://redmine.pfsense.org/issues/13132

        R 1 Reply Last reply Reply Quote 0
        • R
          rcoleman-netgate Netgate @nevolex
          last edited by

          @nevolex yes, remove the extra SSHDATA and you can import the config.

          Ryan
          Repeat, after me: MESH IS THE DEVIL! MESH IS THE DEVIL!
          Requesting firmware for your Netgate device? https://go.netgate.com
          Switching: Mikrotik, Netgear, Extreme
          Wireless: Aruba, Ubiquiti

          N 1 Reply Last reply Reply Quote 1
          • N
            nevolex @rcoleman-netgate
            last edited by

            @rcoleman-netgate

            thank you, you are correct, corrupted backups did have sshdata listed 2 twice, however it just breaks everything it's not a Vm if it was I would just do snap shot but it breaks everting beyond recover?

            is there a way to fix it permanently on a hardware without reinstalling everything ?

            Alex

            R 1 Reply Last reply Reply Quote 0
            • R
              rcoleman-netgate Netgate @nevolex
              last edited by

              @nevolex Three choices:

              1. Wait for 2.7-RELEASE or
              2. the next iteration of Plus or
              3. Apply the patch in the redmine. https://redmine.pfsense.org/projects/pfsense/repository/1/revisions/6600b09f72ca2fddfaae0f834b211689c3d32655

              Ryan
              Repeat, after me: MESH IS THE DEVIL! MESH IS THE DEVIL!
              Requesting firmware for your Netgate device? https://go.netgate.com
              Switching: Mikrotik, Netgear, Extreme
              Wireless: Aruba, Ubiquiti

              1 Reply Last reply Reply Quote 1
              • jimpJ jimp moved this topic from Problems Installing or Upgrading pfSense Software on
              • jimpJ
                jimp Rebel Alliance Developer Netgate
                last edited by

                Just load the backup in a text editor that supports UNIX line endings (pretty much anything but Notepad on Windows) and remove the second <sshdata>...</sshdata> section, then restore it.

                No need to fuss with patches.

                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 1
                • N
                  nevolex
                  last edited by

                  thank you for everyone's support

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