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

    Possibly a broken pkg database

    Scheduled Pinned Locked Moved pfSense Packages
    1 Posts 1 Posters 234 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.
    • T
      TheGOP
      last edited by TheGOP

      Hey everyone,
      I‘ve had strange issue with my pfSense install, which I‘d like to consult here, since I‘m unable to come up with any explanation.

      What happened
      Last week, we restarted our pfSense machine, needless to say without any prior major changes or upgrades (version is 2.4.4-RELEASE-p3, update to this version was done some time ago and I also did restart the machine right after the update, without any problems).
      After the restart was completed, however, the pfSense booted with multiple PHP errors and with no network. There were no IP addresses assigned to any of the interfaces. Any attempt to use pkg resulted in error „Shared object “libarchive.so.7” not found, required by pkg“, so I had to manually assign ip address to wan interface and add default route, which was fortunately enough to get pfSense connected to network.

      At first, I‘ve tried to reinstall pkg using pkg-static, which actually downgraded pkg from version 1.12.0 to 1.10.5 and fixed the aforementioned error. Then, I‘ve run all commands from this link:
      https://docs.netgate.com/pfsense/en/latest/packages/fixing-a-broken-pkg-database.html
      ..and restarted pfSense. This fixed the issue and everything began functioning as it should, without any errors.

      I have another pfSense installation identical to this one, used in a carp cluster with the pfSense machine I‘m having the problem with. I‘ve checked for the same issues – pkg version 1.12.0 and what I believe is a broken pkg database, but both issues are not present and restart didn‘t break anything.

      So, what could cause this to happen? I don‘t have any aditional repos added to the machine (like FreeBSD repositories), so where could the pkg 1.12.0 come from? I also didn‘t do any system updates prior to this reboot and I don‘t believe there is any auto-update mechanism.

      PHP crash log:
      PHP_errors.txt

      System log from that day:
      system_log.txt

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