tried to recover from a backup - got a fatal error message
-
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 pageFatal 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- Assign Interfaces 10) Filter Logs
- Set interface(s) IP address 11) Restart webConfigurator
- Reset webConfigurator password 12) PHP shell + Netgate pfSense Plus tools
- Reset to factory defaults 13) Update from console
- Reboot system 14) Enable Secure Shell (sshd)
- Halt system 15) Restore recent configuration
- Ping host 16) Restart PHP-FPM
- 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 -
Could be this?
https://redmine.pfsense.org/issues/13132
-
@nevolex yes, remove the extra SSHDATA and you can import the config.
-
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
-
@nevolex Three choices:
- Wait for 2.7-RELEASE or
- the next iteration of Plus or
- Apply the patch in the redmine. https://redmine.pfsense.org/projects/pfsense/repository/1/revisions/6600b09f72ca2fddfaae0f834b211689c3d32655
-
J jimp moved this topic from Problems Installing or Upgrading pfSense Software on
-
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.
-
thank you for everyone's support
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginPrivacy Policy · Cookie Policy