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

    Update of Netgate SG-1100 completed, multiple errors on reboot

    Scheduled Pinned Locked Moved Official Netgate® Hardware
    3 Posts 2 Posters 443 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.
    • J
      jonathan66
      last edited by

      Update of Netgate SG-1100 completed, multiple errors on reboot.

      Now neither Restore recent configuration or Reset to factory defaults will succeed from the console.

      The update DID complete, and the webUI would not start, however after connecting via usb to console I was able to log in.

      Output from Restore is as follows:

      [code]
      Enter an option: 15

      Warning: PHP Startup: Unable to load dynamic library 'xml.so' (tried: /usr/local/lib/php/20190902/xml.so (/usr/local/lib/php/20190902/xml.so: invalid file format), /usr/local/lib/php/20190902/xml.so.so (/usr/local/lib/php/20190902/xml.so.so: invalid file format)) in Unknown on line 0

      Warning: PHP Startup: Unable to load dynamic library 'zlib.so' (tried: /usr/local/lib/php/20190902/zlib.so (/usr/local/lib/php/20190902/zlib.so: invalid file format), /usr/local/lib/php/20190902/zlib.so.so (/usr/local/lib/php/20190902/zlib.so.so: invalid file format)) in Unknown on line 0

      Fatal error: Uncaught Error: Call to undefined function xml_parser_create() in /etc/inc/xmlparse.inc:176
      Stack trace:
      #0 /etc/inc/xmlparse.inc(149): parse_xml_config_raw('/conf/config.xm...', Array, 'false')
      #1 /etc/inc/config.lib.inc(134): parse_xml_config('/conf/config.xm...', Array)
      #2 /etc/inc/config.gui.inc(56): parse_config()
      #3 /etc/inc/auth.inc(33): require_once('/etc/inc/config...')
      #4 /etc/inc/ipsec.inc(26): require_once('/etc/inc/auth.i...')
      #5 /etc/inc/gwlb.inc(27): require_once('/etc/inc/ipsec....')
      #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.inc(51): require_once('/etc/inc/notice...')
      #9 /etc/rc.restore_config_backup(25): require_once('/etc/inc/config...')
      #10 {main}
      thrown in /etc/inc/xmlparse.inc on line 176
      PHP ERROR: Type: 1, File: /etc/inc/xmlparse.inc, Line: 176, Message: Uncaught Error: Call to undefined function xml_parser_create() in /etc/inc/xmlparse.inc:176
      Stack trace:
      #0 /etc/inc/xmlparse.inc(149): parse_xml_config_raw('/conf/config.xm...', Array, 'false')
      #1 /etc/inc/config.lib.inc(134): parse_xml_config('/conf/config.xm...', Array)
      #2 /etc/inc/config.gui.inc(56): parse_config()
      #3 /etc/inc/auth.inc(33): require_once('/etc/inc/config...')
      #4 /etc/inc/ipsec.inc(26): require_once('/etc/inc/auth.i...')
      #5 /etc/inc/gwlb.inc(27): require_once('/etc/inc/ipsec....')
      #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.inc(51): require_once('/etc/inc/notice...')
      #9 /etc/rc.restore_config_backup(25): require_once('/etc/inc/config...')
      #10 {main}
      thrown
      Warning: PHP Startup: Unable to load dynamic library 'xml.so' (tried: /usr/local/lib/php/20190902/xml.so (/usr/local/lib/php/20190902/xml.so: invalid file format), /usr/local/lib/php/20190902/xml.so.so (/usr/local/lib/php/20190902/xml.so.so: invalid file format)) in Unknown on line 0

      Warning: PHP Startup: Unable to load dynamic library 'zlib.so' (tried: /usr/local/lib/php/20190902/zlib.so (/usr/local/lib/php/20190902/zlib.so: invalid file format), /usr/local/lib/php/20190902/zlib.so.so (/usr/local/lib/php/20190902/zlib.so.so: invalid file format)) in Unknown on line 0

      Fatal error: Uncaught Error: Call to undefined function xml_parser_create() in /etc/inc/xmlparse.inc:176
      Stack trace:
      #0 /etc/inc/xmlparse.inc(149): parse_xml_config_raw('/conf/config.xm...', Array, 'false')
      #1 /etc/inc/config.lib.inc(134): parse_xml_config('/conf/config.xm...', Array)
      #2 /etc/inc/config.gui.inc(56): parse_config()
      #3 /etc/inc/auth.inc(33): require_once('/etc/inc/config...')
      #4 /etc/inc/ipsec.inc(26): require_once('/etc/inc/auth.i...')
      #5 /etc/inc/gwlb.inc(27): require_once('/etc/inc/ipsec....')
      #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.inc(51): require_once('/etc/inc/notice...')
      #9 /etc/rc.banner(27): require_once('/etc/inc/config...')
      #10 {main}
      thrown in /etc/inc/xmlparse.inc on line 176
      PHP ERROR: Type: 1, File: /etc/inc/xmlparse.inc, Line: 176, Message: Uncaught Error: Call to undefined function xml_parser_create() in /etc/inc/xmlparse.inc:176
      Stack trace:
      #0 /etc/inc/xmlparse.inc(149): parse_xml_config_raw('/conf/config.xm...', Array, 'false')
      #1 /etc/inc/config.lib.inc(134): parse_xml_config('/conf/config.xm...', Array)
      #2 /etc/inc/config.gui.inc(56): parse_config()
      #3 /etc/inc/auth.inc(33): require_once('/etc/inc/config...')
      #4 /etc/inc/ipsec.inc(26): require_once('/etc/inc/auth.i...')
      #5 /etc/inc/gwlb.inc(27): require_once('/etc/inc/ipsec....')
      #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.inc(51): require_once('/etc/inc/notice...')
      #9 /etc/rc.banner(27): require_once('/etc/inc/config...')
      #10 {main}
      thrown
      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 +
        Warning: PHP Startup: Unable to load dynamic library 'xml.so' (tried: /usr/local/lib/php/20190902/xml.so (/usr/local/lib/php/20190902/xml.so: invalid file format), /usr/local/lib/php/20190902/xml.so.so (/usr/local/lib/php/20190902/xml.so.so: invalid file format)) in Unknown on line 0

      Warning: PHP Startup: Unable to load dynamic library 'zlib.so' (tried: /usr/local/lib/php/20190902/zlib.so (/usr/local/lib/php/20190902/zlib.so: invalid file format), /usr/local/lib/php/20190902/zlib.so.so (/usr/local/lib/php/20190902/zlib.so.so: invalid file format)) in Unknown on line 0
      [/code]

      pfSense-upgrade yields the following:

      [code]
      [21.02-RELEASE][admin@]/root: pfSense-upgrade

      Setting vital flag on php74... done.
      Updating repositories metadata...
      Updating pfSense-core repository catalogue...
      pkg-static: https://repo.netgate.com/pkg/pfSense_plus-v21_02_aarch64-core/meta.txz: Non-recoverable resolver failure
      repository pfSense-core has no meta file, using default settings
      pkg-static: https://repo.netgate.com/pkg/pfSense_plus-v21_02_aarch64-core/packagesite.txz: Non-recoverable resolver failure
      Unable to update repository pfSense-core
      Updating pfSense repository catalogue...
      pkg-static: https://repo.netgate.com/pkg/pfSense_plus-v21_02_aarch64-pfSense_plus-v21_02/meta.txz: Non-recoverable resolver failure
      repository pfSense has no meta file, using default settings
      pkg-static: https://repo.netgate.com/pkg/pfSense_plus-v21_02_aarch64-pfSense_plus-v21_02/packagesite.txz: Non-recoverable resolver failure
      Unable to update repository pfSense
      Error updating repositories!
      ERROR: Unable to compare version of pfSense-repo
      [/code]

      1 Reply Last reply Reply Quote 0
      • J
        jonathan66
        last edited by

        It's worth noting that for both of the above commands the WAN was connected. All was working previous to the update.

        GertjanG 1 Reply Last reply Reply Quote 0
        • GertjanG
          Gertjan @jonathan66
          last edited by

          @jonathan66

          Reboot using the console.
          Chose option 5.
          When asked, use option F = Reboot and run a filesystem check

          After the reboot, the file system is checked and repaired.
          Changes are these files :
          /usr/local/lib/php/20190902/zlib.so
          /usr/local/lib/php/20190902/xml.so

          will not get repaired. Maybe even removed because invalid.
          A re install is in the case the fastest way out.
          Or, from the install file - extract these two files and copy them over.

          What happens is that your config file can't be read, so pfSense defaults to default settings.
          For WAN, this is DHCP on WAN - so it works out of the box.
          For LAN it is 192.168.1.1/24 etc - but you probably changed that, so LAN does not seem to work now (tip : keep LAN to the default settings, so, in case of emergency, LAN works ^^)

          Btw : tip : before you upgrade, reboot using the console and do a "sanity" file check. That way you are sure all is well. Check the GUI logs after the reboot. See for any suspect messages.

          File system inconsistencies go undetected while booting from the GUI (except when the block the booting process).
          They are normally introduced when there is a power failure (aka : no clean shu tdown) and very comparable what will happen with your PC when you ripe out the power.

          No "help me" PM's please. Use the forum, the community will thank you.
          Edit : and where are the logs ??

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