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

    2.4.4 generated config file cannot be parsed by unbound.

    Scheduled Pinned Locked Moved DHCP and DNS
    13 Posts 2 Posters 1.3k 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.
    • M
      MagicCamera
      last edited by

      Please correct the following errors:
      /usr/local/lib/libpython2.7.so.1: invalid file format

      When I look at the file it is empty, there is no content and therefore my DNS resolver is broken. Any ideas on how to rectify this?

      M 1 Reply Last reply Reply Quote 0
      • M
        MagicCamera @MagicCamera
        last edited by MagicCamera

        Not being one to wait for an answer but to continue to try and solve the issue. I believe I did.

        There's a hidden file .libpython2.7.so.1.XGFh3Z56cUEc yours may be different, anyway I copied that file as libpython2.7.so.1 after moving the blank one to a different name. And all was well.

        Didn't try the -gdb.py extension file first one on hidden list.

        Re-installed my backup config and everything back as it was before blindly updating to 2.4.4 from 2.4.3. Something broke during the installation.

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

          If the file was empty/corrupt I'd be wary of a disk issue. A reinstall was the safest way to correct that as you have no idea what else may have been corrupted on the disk.

          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!

          M 1 Reply Last reply Reply Quote 0
          • M
            MagicCamera @jimp
            last edited by MagicCamera

            @jimp True, and frankly I will do that, but was not practical at the time. I have the SG 2440 unit, so I'd have to get a copy of the image file to flash it to a usb stick in order to boot my unit from it. Not sure where I can get it right now. Oh and I did do re-installs but not a full wipe of the disk.

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

              You can login to the portal and download the image if you had registered your system. If you can't login or you didn't register, contact support at https://go.netgate.com and someone can get you the image.

              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!

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

                Also, if you can't reinstall right now, a few things to try:

                1. Have pkg check if things are OK
                pkg check -s |& egrep -v '(Checking all packages|local/man|local/share/doc|local/info|local/share/aclocal)'
                
                1. Do an mtree check of the base files -- but be aware not everything flagged here is a problem, especially differences noted vs default config files. But if you see things like random PHP or .inc files modified then you might worry.
                /usr/sbin/mtree -e -f /usr/local/share/pfSense/base.mtree -p /
                

                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!

                M 2 Replies Last reply Reply Quote 0
                • M
                  MagicCamera @jimp
                  last edited by

                  @jimp Thanks for that. Well technically I did register at pfsense portal and account is active, but there is no link to any downloads. I had the gold account for 1 year about 3 to 4 years ago but didn't renew. I might be missing the point of the new NETGATE and pfSense support program.

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

                    @magiccamera said in 2.4.4 generated config file cannot be parsed by unbound.:

                    @jimp Thanks for that. Well technically I did register at pfsense portal and account is active, but there is no link to any downloads. I had the gold account for 1 year about 3 to 4 years ago but didn't renew. I might be missing the point of the new NETGATE and pfSense support program.

                    If you ping the support crew they can make sure your account is setup to see the images you need. One of the drawbacks to the portal system is that it makes things like ongoing image access more painful than it needs to be. We'll hopefully have a more flexible system in place there before too long.

                    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
                    • M
                      MagicCamera @jimp
                      last edited by

                      @jimp Good idea. I'll be sure to try that. But FYI, everything is running as it was before upgrading to 2.4.4 from 2.4.3, just that libpython2.7.so.1 file didn't generate correctly. So my quick solution worked. Then I restored the config and all my settings like peer to peer vpn to my other pfSense virtual box on my dedicated server across the pond reconnected without any interaction from me. Can still access my virtual machines via LAN over SSH and the 2 pfSense systems are functioning just fine. I haven't upgraded my remote pfSense box because I do have a couple of client servers running that need the pfSense router to access a database on my backend.

                      For now I'll monitor my home pfSense hardware box and decide later to upgrade the remote if all checks out.

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

                        OK, I would at least run the pkg and mtree commands above to be sure.

                        It is possible that only the python pkg was interrupted, you could force that to reinstall with pkg upgrade -f python27

                        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!

                        M 2 Replies Last reply Reply Quote 0
                        • M
                          MagicCamera @jimp
                          last edited by

                          @jimp good info my friend. Noted.

                          1 Reply Last reply Reply Quote 0
                          • M
                            MagicCamera @jimp
                            last edited by

                            @jimp Well just ran those commands... looks like I need to roll up my sleeves and do a fresh install from a usb stick. I'll try and connect with netgate support as you suggested so I can get the download.

                            Thanks for your help jimp.

                            1 Reply Last reply Reply Quote 0
                            • M
                              MagicCamera @jimp
                              last edited by

                              @jimp Got the image file flashed a usb stick clean reinstall succeeded. Restored my config and rebooted everything back to normal. :D Thanks again jimp.

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