I restored a config of pfSense 2.6 and much to my surprise it spewed out an error, see below.
I don’t even know how I can have made an error in my backup process, but my query is does anyone know how I can test a config file ? Or is the only way to just do a restore ? I did notice that from my good config whatever was the error was carried forward as no config after would reinstall.
Fatal error: Uncaught Exception: XML error: SSHDATA at line 8010 cannot occur more than once in /etc/inc/xmlparse.inc:89 Stack trace: #0 [internal function]: startElement(Resource id #21, ‘SSHDATA’, Array) #1 /etc/inc/xmlparse.inc(188): xml_parse(Resource id #21, ‘RzHg02WGLQczHk8…’, 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 /usr/local/pfSense/include/www/backup.inc(309): parse_config(true) #5 /usr/local/www/diag_backup.php(63): execPost(Array, Array) #6 {main} thrown 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 8010 cannot occur more than once in /etc/inc/xmlparse.inc:89 Stack trace: #0 [internal function]: startElement(Resource id #21, ‘SSHDATA’, Array) #1 /etc/inc/xmlparse.inc(188): xml_parse(Resource id #21, ‘RzHg02WGLQczHk8…’, 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 /usr/local/pfSense/include/www/backup.inc(309): parse_config(true) #5 /usr/local/www/diag_backup.php(63): execPost(Array, Array) #6 {main} thrown