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

    Missing files after update to 2.5.2

    Scheduled Pinned Locked Moved General pfSense Questions
    4 Posts 4 Posters 739 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
      juppin
      last edited by

      Hello,

      I've updated pfSense 2.5.1 to 2.5.2 and facing now some errors at the web gui...

      1. If I open System -> Advanced I get the following error:
      PHP ERROR: Type: 64, File: /usr/local/www/system_advanced_admin.php, Line: 40, Message: require_once(): Failed opening required 'system_advanced_admin.inc' (include_path='.:/etc/inc:/usr/local/pfSense/include/www:/usr/local/www:/usr/local/captiveportal:/usr/local/pkg:/usr/local/www/classes:/usr/local/www/classes/Form:/usr/local/share/pear:/usr/local/share/openssl_x509_crl/')
      
      1. If I open Diagnostics -> Bachup & Retore I get the following message:
      PHP ERROR: Type: 64, File: /usr/local/www/diag_backup.php, Line: 43, Message: require_once(): Failed opening required 'backup.inc' (include_path='.:/etc/inc:/usr/local/pfSense/include/www:/usr/local/www:/usr/local/captiveportal:/usr/local/pkg:/usr/local/www/classes:/usr/local/www/classes/Form:/usr/local/share/pear:/usr/local/share/openssl_x509_crl/')
      

      Probably there are more pages in the WebGUI that throws similar errors.

      My approach now would be to backup the configuration, reinstall pfSense and restore the configuration.
      However, this is not possible due to error 2...

      Is there any way to restore the files or at least backup the configuration?

      Many thanks in advance.

      1 Reply Last reply Reply Quote 0
      • RicoR
        Rico LAYER 8 Rebel Alliance
        last edited by

        You can SSH into your pfSense and copy the config file, location is /conf/config.xml

        -Rico

        1 Reply Last reply Reply Quote 2
        • J
          jpv9
          last edited by jpv9

          Team
          I'm seeing a similar problem with php calls to .inc files (failing to call /vendor/autoconf.php after forced remote upgrade of packages via CLI.

          The include_path in the machine that wasn't upgraded has an extra variable in the include_path, which I notice is also missing in juppin's error message.

          On the machine that is working, I'm seeing an additional variable in the path.
          /usr/local/pfSense/include

          not-working
          include_path='.:/etc/inc:/usr/local/pfSense/include/www:/usr/local/www:/usr/local/captiveportal:/usr/local/pkg:/usr/local/www/classes:/usr/local/www/classes/Form:/usr/local/share/pear:/usr/local/share/openssl_x509_crl/'

          working
          include_path='.:/etc/inc:/usr/local/pfSense/include:/usr/local/pfSense/include/www:/usr/local/www:/usr/local/captiveportal:/usr/local/pkg:/usr/local/www/classes:/usr/local/www/classes/Form:/usr/local/share/pear:/usr/local/share/openssl_x509_crl/'

          This difference also seen in the /etc/rc.php_setup_initial file as well. Whilst this looks like a simple bug that been introduced - it probably isn't - simply putting the missing variable didn't seem to fix the problem (for me it's the disks.inc widget failing on the dashboard - crashing that page).

          JP.

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            discs.inc is a new file on 21.02 and 2.6.0 snapshots, it is not on 2.5.2.

            Sounds to me like your system pulled in some parts of snapshots, likely from selecting the snapshot update branch and then making a change to packages without upgrading the firmware first.

            There isn't likely a bug here, but something broken locally on your system.

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

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