2.4.4 generated config file cannot be parsed by unbound.



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



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


  • Rebel Alliance Developer Netgate

    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.



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


  • Rebel Alliance Developer Netgate

    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.


  • Rebel Alliance Developer Netgate

    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 /
    


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


  • Rebel Alliance Developer Netgate

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



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


  • Rebel Alliance Developer Netgate

    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



  • @jimp good info my friend. Noted.



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



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