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

    Failed package install: How to perform a full restore from shell / command

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    4 Posts 3 Posters 661 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.
    • S
      stats2909
      last edited by

      Hi,

      first up, love my SG-2440, never had any issues until today! Today I was on the VPN, and tried to install the ACME package... long story short it failed and now the device is throwing a hissy fit. It seems to still perform routing etc but i cannot get into the GUI. The Console works, but only the shell can be used, all others throw up a number of fatal errors! Trying to load a recent config (console option 15) gives the following:

      Warning: PHP Startup: Unable to load dynamic library 'xml.so' (tried: /usr/local/lib/php/20131226/xml.so (Cannot open "/usr/local/lib/php/20131226/xml.so"), /usr/local/lib/php/20131226/xml.so.so (Cannot open "/usr/local/lib/php/20131226/xml.so.so")) in Unknown on line 0

      Warning: PHP Startup: Unable to load dynamic library 'zlib.so' (tried: /usr/local/lib/php/20131226/zlib.so (Cannot open "/usr/local/lib/php/20131226/zlib.so"), /usr/local/lib/php/20131226/zlib.so.so (Cannot open "/usr/local/lib/php/20131226/zlib.so.so")) in Unknown on line 0

      Fatal error: Uncaught Error: Call to undefined function gettext() in /etc/inc/certs.inc:44
      Stack trace:
      #0 /etc/inc/functions.inc(32): require_once()
      #1 /etc/inc/notices.inc(24): require_once('/etc/inc/functi...')
      #2 /etc/inc/config.inc(49): require_once('/etc/inc/notice...')
      #3 /etc/rc.restore_config_backup(23): require_once('/etc/inc/config...')
      #4 {main}
      thrown in /etc/inc/certs.inc on line 44

      Warning: PHP Startup: Unable to load dynamic library 'xml.so' (tried: /usr/local/lib/php/20131226/xml.so (Cannot open "/usr/local/lib/php/20131226/xml.so"), /usr/local/lib/php/20131226/xml.so.so (Cannot open "/usr/local/lib/php/20131226/xml.so.so")) in Unknown on line 0

      Warning: PHP Startup: Unable to load dynamic library 'zlib.so' (tried: /usr/local/lib/php/20131226/zlib.so (Cannot open "/usr/local/lib/php/20131226/zlib.so"), /usr/local/lib/php/20131226/zlib.so.so (Cannot open "/usr/local/lib/php/20131226/zlib.so.so")) in Unknown on line 0

      Fatal error: Uncaught Error: Call to undefined function gettext() in /etc/inc/certs.inc:44
      Stack trace:
      #0 /etc/inc/functions.inc(32): require_once()
      #1 /etc/inc/notices.inc(24): require_once('/etc/inc/functi...')
      #2 /etc/inc/config.inc(49): require_once('/etc/inc/notice...')
      #3 /etc/rc.banner(24): require_once('/etc/inc/config...')
      #4 {main}
      thrown in /etc/inc/certs.inc on line 44

      I can use the shell however... how do I restore the device from a full back up. Please note I am not an expert, if possible a full worked example would be much appreciated!

      1 Reply Last reply Reply Quote 0
      • GrimsonG
        Grimson Banned
        last edited by

        RTFM: https://www.netgate.com/docs/pfsense/install/upgrade-troubleshooting.html#forced-pkg-reinstall

        1 Reply Last reply Reply Quote 1
        • stephenw10S
          stephenw10 Netgate Administrator
          last edited by

          Yes, if you have a config file you can use I would just re-install. It will be far quicker and guarantees a clean install at the end of it:

          https://www.netgate.com/docs/pfsense/solutions/sg-2440/reinstall-pfsense.html

          Steve

          S 1 Reply Last reply Reply Quote 1
          • S
            stats2909 @stephenw10
            last edited by stats2909

            @stephenw10, @Grimson Thanks both :)

            I fiddled and somehow it came back to life... its not 100% so will take a config back up and do a clean install to be sure its all right.

            thanks for your help

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