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

    Unable to Backup and Restore after upgrade to 2.5.2

    Scheduled Pinned Locked Moved General pfSense Questions
    8 Posts 3 Posters 1.3k Views 3 Watching
    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.
    • B Offline
      boomramada
      last edited by

      I'm getting following error after the upgrade from 2.5.1 to 2.5.2, when I try to click on Backup and Restore under Diagnostic

      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/')

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

        That file should exist as /usr/local/pfSense/include/www/backup.inc and it does on all 2.5.2 installations I have here, both fresh installations and upgrades.

        It's possible the upgrade did not fully complete on your system if that is missing. or you may have a more subtle issue such as a filesystem problem.

        The fastest and easiest way to ensure you have a fully working and consistent system will be to reinstall and restore the configuration from backup.

        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!

        B 1 Reply Last reply Reply Quote 0
        • B Offline
          boomramada @jimp
          last edited by boomramada

          @jimp
          Hi there,
          Unfortunately, I cant get into the backup and restore page, that is where I'm getting that error. So what would be the best way to re apply the upgrade to get that file /usr/local/pfSense/include/www/backup.inc? (ie how do I reinstall the system? )

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

            You can connect as root with an scp client like scp or FileZilla and download /conf/config.xml or even download it via Diagnostics > Command Prompt.

            If you have enabled AutoConfigBackup you can download it from there as well, from the Restore tab.

            Also during the installation process there is an option to "Recover config.xml" which will read it off the existing installation. I'd keep an off-firewall copy of the config just in case, but that is easy and fast to use as well.

            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!

            B 1 Reply Last reply Reply Quote 1
            • B Offline
              boomramada @jimp
              last edited by

              @jimp

              What would be the best way to reinstall. Boot up with the USB, that is how I install the pfsense before?

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

                If you used the memstick installer before, use the same method this time.

                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
                • A Offline
                  alpaca
                  last edited by

                  Hello,

                  I ran into the same problem while trying to ran a backup.
                  But on my pfsense (AMD G-T40E Processor) I do not even find a directory /usr/local/pfsense. Also I can not find "backup.inc".
                  The WebGUI tells me to update to 2.6.0. Could this be a solution to restore the missing file / directory or will this lead to a total crash?

                  Regards,
                  Sebastian

                  A 1 Reply Last reply Reply Quote 0
                  • A Offline
                    alpaca @alpaca
                    last edited by

                    @alpaca EDIT: Sorry, but I had cleared my packages - and had deleted Backup/Restore pkg. How embarrassing!
                    Reinstalled pkg, updated and everything is OK. Shame on me ...

                    Regards,
                    Sebastian

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