Error after upgrade - PHP Startup: Unable to load dynamic library 'mongodb.so

Started by andrema2, July 31, 2023, 03:48:54 PM

Previous topic - Next topic
After upgrading I'm seeing crash report with the message below

Quote[31-Jul-2023 13:43:51 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'mongodb.so' (tried: /usr/local/lib/php/20220829/mongodb.so (Cannot open "/usr/local/lib/php/20220829/mongodb.so"), /usr/local/lib/php/20220829/mongodb.so.so (Cannot open "/usr/local/lib/php/20220829/mongodb.so.so")) in Unknown on line 0

The system seems ok. But even after submiting the report and clearing it, it keeps happening...

Any ideas ?

I have the same problem after upgrading from 23.1.11
...but beside the crash report everything seems to work fine ;)
NRG Systems IPU882 System, Intel Core i5-8260U 1,6 GHz, 32GB ECC Memory
Western Digital Red SN700 250 GByte M.2 NVMe SSD

Its Zenarmor, after a visit in the menu there it got fixed on both my nodes

Quote from: fayelund on July 31, 2023, 04:01:55 PM
Its Zenarmor, after a visit in the menu there it got fixed on both my nodes

I can´t confirm this... after visiting Zenarmor menu (and still restarting everything) the error persists.
Beside this i´m using ElasticSearch for Zenarmor and not MongoDB.
NRG Systems IPU882 System, Intel Core i5-8260U 1,6 GHz, 32GB ECC Memory
Western Digital Red SN700 250 GByte M.2 NVMe SSD

I got it working after removing mongodb. I guess it was something Zenarmor left behind after I uninstalled it.

i stopped zenamor and mongodb and restartet both. after this everything was working again without any problems
Supermicro A2SDi-4C-HLN4F
Team Rebellion Member (sidebar / themes: tukan, cicada & vicuna)

Completely removing Zenarmor and reinstalling it does the trick for me :)
NRG Systems IPU882 System, Intel Core i5-8260U 1,6 GHz, 32GB ECC Memory
Western Digital Red SN700 250 GByte M.2 NVMe SSD

yes..i can confirm....completely uninstalling and re-installing it solved the issue....btw...i wan't using mongodb but elastisearch instead

Any suggestions on how to proceed if removing and reinstalling Zenarmor does not work? I'm getting the following error and I've removed all Zenarmor packages and reinstalled them and the error persists.

[14-Sep-2023 03:45:16 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'mongodb.so' (tried: /usr/local/lib/php/20220829/mongodb.so (Cannot open "/usr/local/lib/php/20220829/mongodb.so"), /usr/local/lib/php/20220829/mongodb.so.so (Cannot open "/usr/local/lib/php/20220829/mongodb.so.so")) in Unknown on line 0

Hi there

I had that very same errors over and over, and just went and reinstalled Package mongodb40. And the errors were gone... maybe helps with your issue.

BR

Quote from: diode_ee on September 14, 2023, 05:23:07 PM
Any suggestions on how to proceed if removing and reinstalling Zenarmor does not work? I'm getting the following error and I've removed all Zenarmor packages and reinstalled them and the error persists.

[14-Sep-2023 03:45:16 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'mongodb.so' (tried: /usr/local/lib/php/20220829/mongodb.so (Cannot open "/usr/local/lib/php/20220829/mongodb.so"), /usr/local/lib/php/20220829/mongodb.so.so (Cannot open "/usr/local/lib/php/20220829/mongodb.so.so")) in Unknown on line 0

This should fix it.

https://forum.opnsense.org/index.php?topic=35695.msg173609#msg173609