OPNsense Forum

Archive => 23.7 Legacy Series => Topic started by: andrema2 on July 31, 2023, 03:48:54 PM

Title: Error after upgrade - PHP Startup: Unable to load dynamic library 'mongodb.so
Post by: andrema2 on July 31, 2023, 03:48:54 PM
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 ?
Title: Re: Error after upgrade - PHP Startup: Unable to load dynamic library 'mongodb.so
Post by: AdiH on July 31, 2023, 03:56:25 PM
I have the same problem after upgrading from 23.1.11
...but beside the crash report everything seems to work fine ;)
Title: Re: Error after upgrade - PHP Startup: Unable to load dynamic library 'mongodb.so
Post by: 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
Title: Re: Error after upgrade - PHP Startup: Unable to load dynamic library 'mongodb.so
Post by: AdiH on July 31, 2023, 04:06:12 PM
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.
Title: Re: Error after upgrade - PHP Startup: Unable to load dynamic library 'mongodb.so
Post by: andrema2 on July 31, 2023, 04:26:57 PM
I got it working after removing mongodb. I guess it was something Zenarmor left behind after I uninstalled it.
Title: Re: Error after upgrade - PHP Startup: Unable to load dynamic library 'mongodb.so
Post by: opnsenseuser on July 31, 2023, 04:54:50 PM
i stopped zenamor and mongodb and restartet both. after this everything was working again without any problems
Title: Re: Error after upgrade - PHP Startup: Unable to load dynamic library 'mongodb.so
Post by: AdiH on July 31, 2023, 04:55:53 PM
Completely removing Zenarmor and reinstalling it does the trick for me :)
Title: Re: Error after upgrade - PHP Startup: Unable to load dynamic library 'mongodb.so
Post by: snoopy78 on August 04, 2023, 07:48:28 PM
yes..i can confirm....completely uninstalling and re-installing it solved the issue....btw...i wan't using mongodb but elastisearch instead
Title: Re: Error after upgrade - PHP Startup: Unable to load dynamic library 'mongodb.so
Post by: 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
Title: Re: Error after upgrade - PHP Startup: Unable to load dynamic library 'mongodb.so
Post by: simu on September 20, 2023, 06:37:31 PM
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
Title: Re: Error after upgrade - PHP Startup: Unable to load dynamic library 'mongodb.so
Post by: newsense on September 20, 2023, 08:34:00 PM
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