Possibly a broken pkg database
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.
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:
..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:
System log from that day: