OPNsense Forum

English Forums => 26.7, 26.10 Series => Topic started by: dunxd on October 30, 2026, 10:30:12 PM

Title: Crash report: PHP unable to load dynamic library mongodb.so
Post by: dunxd on October 30, 2026, 10:30:12 PM
After updating to 26.7.8 from 26.7.7 today, I get a crash report every second with these errors:
PHP Warning:  PHP Startup: Unable to load dynamic library 'mongodb.so' (tried: /usr/local/lib/php/20250925/mongodb.so (Cannot open "/usr/local/lib/php/20250925/mongodb.so"), /usr/local/lib/php/20250925/mongodb.so.so (Cannot open "/usr/local/lib/php/20250925/mongodb.so.so")) in Unknown on line 0OPNsense seems to be working fine otherwise.
Title: Re: Crash report: PHP unable to load dynamic library mongodb.so
Post by: dunxd on October 30, 2026, 11:26:13 PM
I saw #msg270385 (https://forum.opnsense.org/index.php?topic=52393.msg270385#msg270385)

It mentions php83-pecl-mongodb and that some people had that left over from a previous install of zenarmor. I had zenarmor till a few months ago. I suspect this was left over from then, and I didn't notice the crash error as the messages indicator isn't visible on the web interface on a small mobile phone screen which I use most of the time.

Anyway, I went ahead and deleted the package and restarted the webgui and the message is now gone.
Title: Re: Crash report: PHP unable to load dynamic library mongodb.so
Post by: (MARLOO) on October 31, 2026, 01:35:23 AM
In my case mongodb.so was a leftover from an older ZenArmor install. ZenArmor itself is still installed but no longer uses MongoDB: as of v2.5 (September 2025) MongoDB and Elasticsearch 5 were dropped as reporting backends, so the current reporting runs on SQLite or Elasticsearch 8.

Removing the package had no effect on filtering.

I removed it anyway rather than keep an unused extension around: it carries its own update and CVE surface, and an extension nobody needs is just extra code loaded into every PHP process.

best