Many PHP errors after config backup restore



  • I did a restore of a very recent configuration.
    Machine did come back, did reinstall all packages, and then has thrown these errors.

    amd64
    11.1-RELEASE-p10
    FreeBSD 11.1-RELEASE-p10 #13 r313908+293707af843(RELENG_2_4): Thu May 10 15:09:24 CDT 2018 root@buildbot2.netgate.com:/builder/ce-243/tmp/obj/builder/ce-243/tmp/FreeBSD-src/sys/pfSense

    Crash report details:

    PHP Errors:
    [13-Feb-2019 06:50:35 UTC] PHP Warning: Failed loading Zend extension 'opcache.so' (tried: /usr/local/lib/php/20131226/opcache.so (Cannot open "/usr/local/lib/php/20131226/opcache.so"), /usr/local/lib/php/20131226/opcache.so.so (Cannot open "/usr/local/lib/php/20131226/opcache.so.so")) in Unknown on line 0
    [13-Feb-2019 06:50:35 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'session.so' (tried: /usr/local/lib/php/20131226/session.so (Cannot open "/usr/local/lib/php/20131226/session.so"), /usr/local/lib/php/20131226/session.so.so (Cannot open "/usr/local/lib/php/20131226/session.so.so")) in Unknown on line 0
    [13-Feb-2019 06:50:35 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'bcmath.so' (tried: /usr/local/lib/php/20131226/bcmath.so (Cannot open "/usr/local/lib/php/20131226/bcmath.so"), /usr/local/lib/php/20131226/bcmath.so.so (Cannot open "/usr/local/lib/php/20131226/bcmath.so.so")) in Unknown on line 0
    [13-Feb-2019 06:50:35 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'bz2.so' (tried: /usr/local/lib/php/20131226/bz2.so (Cannot open "/usr/local/lib/php/20131226/bz2.so"), /usr/local/lib/php/20131226/bz2.so.so (Cannot open "/usr/local/lib/php/20131226/bz2.so.so")) in Unknown on line 0
    [13-Feb-2019 06:50:35 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'ctype.so' (tried: /usr/local/lib/php/20131226/ctype.so (Cannot open "/usr/local/lib/php/20131226/ctype.so"), /usr/local/lib/php/20131226/ctype.so.so (Cannot open "/usr/local/lib/php/20131226/ctype.so.so")) in Unknown on line 0
    [13-Feb-2019 06:50:35 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'curl.so' (tried: /usr/local/lib/php/20131226/curl.so (Cannot open "/usr/local/lib/php/20131226/curl.so"), /usr/local/lib/php/20131226/curl.so.so (Cannot open "/usr/local/lib/php/20131226/curl.so.so")) in Unknown on line 0
    [13-Feb-2019 06:50:35 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'dom.so' (tried: /usr/local/lib/php/20131226/dom.so (Cannot open "/usr/local/lib/php/20131226/dom.so"), /usr/local/lib/php/20131226/dom.so.so (Cannot open "/usr/local/lib/php/20131226/dom.so.so")) in Unknown on line 0
    [13-Feb-2019 06:50:35 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'filter.so' (tried: /usr/local/lib/php/20131226/filter.so (Cannot open "/usr/local/lib/php/20131226/filter.so"), /usr/local/lib/php/20131226/filter.so.so (Cannot open "/usr/local/lib/php/20131226/filter.so.so")) in Unknown on line 0
    [13-Feb-2019 06:50:35 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'gettext.so' (tried: /usr/local/lib/php/20131226/gettext.so (Cannot open "/usr/local/lib/php/20131226/gettext.so"), /usr/local/lib/php/20131226/gettext.so.so (Cannot open "/usr/local/lib/php/20131226/gettext.so.so")) in Unknown on line 0
    [13-Feb-2019 06:50:35 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'hash.so' (tried: /usr/local/lib/php/20131226/hash.so (Cannot open "/usr/local/lib/php/20131226/hash.so"), /usr/local/lib/php/20131226/hash.so.so (Cannot open "/usr/local/lib/php/20131226/hash.so.so")) in Unknown on line 0
    [13-Feb-2019 06:50:35 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'intl.so' (tried: /usr/local/lib/php/20131226/intl.so (Cannot open "/usr/local/lib/php/20131226/intl.so"), /usr/local/lib/php/20131226/intl.so.so (Cannot open "/usr/local/lib/php/20131226/intl.so.so")) in Unknown on line 0
    [13-Feb-2019 06:50:35 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'json.so' (tried: /usr/local/lib/php/20131226/json.so (Cannot open "/usr/local/lib/php/20131226/json.so"), /usr/local/lib/php/20131226/json.so.so (Cannot open "/usr/local/lib/php/20131226/json.so.so")) in Unknown on line 0
    [13-Feb-2019 06:50:35 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'ldap.so' (tried: /usr/local/lib/php/20131226/ldap.so (Cannot open "/usr/local/lib/php/20131226/ldap.so"), /usr/local/lib/php/20131226/ldap.so.so (Cannot open "/usr/local/lib/php/20131226/ldap.so.so")) in Unknown on line 0
    [13-Feb-2019 06:50:35 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'mbstring.so' (tried: /usr/local/lib/php/20131226/mbstring.so (Cannot open "/usr/local/lib/php/20131226/mbstring.so"), /usr/local/lib/php/20131226/mbstring.so.so (Cannot open "/usr/local/lib/php/20131226/mbstring.so.so")) in Unknown on line 0
    [13-Feb-2019 06:50:35 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'mcrypt.so' (tried: /usr/local/lib/php/20131226/mcrypt.so (Cannot open "/usr/local/lib/php/20131226/mcrypt.so"), /usr/local/lib/php/20131226/mcrypt.so.so (Cannot open "/usr/local/lib/php/20131226/mcrypt.so.so")) in Unknown on line 0
    [13-Feb-2019 06:50:35 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'openssl.so' (tried: /usr/local/lib/php/20131226/openssl.so (Cannot open "/usr/local/lib/php/20131226/openssl.so"), /usr/local/lib/php/20131226/openssl.so.so (Cannot open "/usr/local/lib/php/20131226/openssl.so.so")) in Unknown on line 0
    [13-Feb-2019 06:50:35 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'pcntl.so' (tried: /usr/local/lib/php/20131226/pcntl.so (Cannot open "/usr/local/lib/php/20131226/pcntl.so"), /usr/local/lib/php/20131226/pcntl.so.so (Cannot open "/usr/local/lib/php/20131226/pcntl.so.so")) in Unknown on line 0
    [13-Feb-2019 06:50:35 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'pdo.so' (tried: /usr/local/lib/php/20131226/pdo.so (Cannot open "/usr/local/lib/php/20131226/pdo.so"), /usr/local/lib/php/20131226/pdo.so.so (Cannot open "/usr/local/lib/php/20131226/pdo.so.so")) in Unknown on line 0
    [13-Feb-2019 06:50:35 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'pfSense.so' (tried: /usr/local/lib/php/20131226/pfSense.so (Cannot open "/usr/local/lib/php/20131226/pfSense.so"), /usr/local/lib/php/20131226/pfSense.so.so (Cannot open "/usr/local/lib/php/20131226/pfSense.so.so")) in Unknown on line 0
    [13-Feb-2019 06:50:35 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'posix.so' (tried: /usr/local/lib/php/20131226/posix.so (Cannot open "/usr/local/lib/php/20131226/posix.so"), /usr/local/lib/php/20131226/posix.so.so (Cannot open "/usr/local/lib/php/20131226/posix.so.so")) in Unknown on line 0
    [13-Feb-2019 06:50:35 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'radius.so' (tried: /usr/local/lib/php/20131226/radius.so (Cannot open "/usr/local/lib/php/20131226/radius.so"), /usr/local/lib/php/20131226/radius.so.so (Cannot open "/usr/local/lib/php/20131226/radius.so.so")) in Unknown on line 0
    [13-Feb-2019 06:50:35 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'readline.so' (tried: /usr/local/lib/php/20131226/readline.so (Cannot open "/usr/local/lib/php/20131226/readline.so"), /usr/local/lib/php/20131226/readline.so.so (Cannot open "/usr/local/lib/php/20131226/readline.so.so")) in Unknown on line 0
    [13-Feb-2019 06:50:35 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'rrd.so' (tried: /usr/local/lib/php/20131226/rrd.so (Cannot open "/usr/local/lib/php/20131226/rrd.so"), /usr/local/lib/php/20131226/rrd.so.so (Cannot open "/usr/local/lib/php/20131226/rrd.so.so")) in Unknown on line 0
    [13-Feb-2019 06:50:35 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'shmop.so' (tried: /usr/local/lib/php/20131226/shmop.so (Cannot open "/usr/local/lib/php/20131226/shmop.so"), /usr/local/lib/php/20131226/shmop.so.so (Cannot open "/usr/local/lib/php/20131226/shmop.so.so")) in Unknown on line 0
    [13-Feb-2019 06:50:35 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'simplexml.so' (tried: /usr/local/lib/php/20131226/simplexml.so (Cannot open "/usr/local/lib/php/20131226/simplexml.so"), /usr/local/lib/php/20131226/simplexml.so.so (Cannot open "/usr/local/lib/php/20131226/simplexml.so.so")) in Unknown on line 0

    And many, many, many more of these. I restarted the system and it did not come back again.
    I just copied a complete tar over the system and now it is up again. The system feels like a trashcan now, so I believe I have to reinstall (with new version of pfsense).

    But what about the backup? Is it still usable?
    What was happening? Can someone please help?

    Thanks a lot!


  • Banned

    https://redmine.pfsense.org/issues/8938

    Don't be dumb and try to use outdated and unsupported pfSense versions.


  • LAYER 8 Rebel Alliance

    Download and install the latest 2.4.4-p1 release, update to 2.4.4-p2, restore your backup and everything will be fine.

    -Rico



  • @grimson I was not aware that I need to update before restoring the configuration. I was not aware that it reinstalls the packages. I was not aware that this could result in an unusable system.
    Life long learning...



  • Thank you very much. I will do a complete reinstall with the latest version and will then restore my config backup.


  • Banned

    @demux said in Many PHP errors after config backup restore:

    Life long learning...

    Your first lesson is to RTFM and follow the forums, then you would have been aware of all this.

    Also keep up to date with your security software, and yes this includes pfSense. pfSense 2.4 was released on October 12, 2017 and there have been multiple security issues fixed since then. Running such an old version is simply moronic.


  • LAYER 8 Rebel Alliance

    FreeBSD 11.1-RELEASE-p10 is pfSense 2.4.3-p1 released 2018-05-14 😀

    -Rico


  • Banned

    @rico said in Many PHP errors after config backup restore:

    FreeBSD 11.1-RELEASE-p10 is pfSense 2.4.3-p1 released 2018-05-14 😀

    -Rico

    Still heavily outdated and doesn't change the result.



  • I also got such issue (a lot of php warnings) with latest 2.4.4-p2.
    https://docs.netgate.com/pfsense/en/latest/packages/fixing-a-broken-pkg-database.html
    That's worked for me)


  • Rebel Alliance Moderator

    @Renat said in Many PHP errors after config backup restore:

    I also got such issue (a lot of php warnings) with latest 2.4.4-p2.

    You normally don't "get" these errors out of the blue sky. Especially not the PHP ones that clearly indicate that someone installed packages from/for a newer version of pfSense to an old base system, the got force-updated only partially to some new packages throwing the system in a fit.

    Also changelogs and update notes/warnings clearly state those "problems".



  • @JeGr thanks for your reply. In fact there was unexpected issue. No updates, no upgrades.


Log in to reply