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



  • 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!




  • Netgate Administrator

    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



  • @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