OPNsense Forum

English Forums => Zenarmor (Sensei) => Topic started by: aimdev on August 06, 2022, 03:08:43 PM

Title: mongodb issue
Post by: aimdev on August 06, 2022, 03:08:43 PM
/local/lib/php/20200930/mongodb.so.so (Cannot open "/usr/local/lib/php/20200930/mongodb.so.so")) in Unknown on line 0
[06-Aug-2022 08:25:45 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'mongodb.so' (tried: /usr/local/lib/php/20200930/mongodb.so (Cannot open "/usr/local/lib/php/20200930/mongodb.so"), /usr/local/lib/php/20200930/mongodb.so.so (Cannot open "/usr/local/lib/php/20200930/mongodb.so.so")) in Unknown on line 0

Getting these since upgrade to 22.7_4-amd64 05-Aug-2022.
Report has been raised and sent, also a post in the German section
https://forum.opnsense.org/index.php?topic=29717.msg143542#msg143542
appears to have a similiar issue.
Zenamor was removed a few weeks ago and not reinstalled.
Is mongodb used anywhere else?
All other processes are function correctly as far as I can tell.

Title: Re: mongodb issue
Post by: aimdev on August 07, 2022, 07:33:15 PM
It may be that this issue is related to Zenarmour (based on further investigation).
If this is found to be correct, then Zenamour should be tasked with cleaning up
after their product is removed or updated.
Title: Re: mongodb issue
Post by: franco on August 08, 2022, 11:32:04 AM
The problem looks to be that the mongodb package(s) were added without "automatic" flag from the install script which makes a cleanup from the firmware update side impossible as FreeBSD package manager will not clear an abandoned package without automatic flag.

I'm moving this to Zenarmor forum where it belongs.


Cheers,
Franco
Title: Re: mongodb issue
Post by: rudiservo on August 13, 2022, 12:48:44 AM
have you tried on CLI

pkg install -fy os-sensei

edit:
Tried it, didn't work.

check on another post if you are on version 22.7.1 check if you have a single package for php7.4 (php74-pecl-mongodb) and remove it.

pkg remove php74-pecl-mongodb

IF and only IF this is the only thing of php 7.4, nothing else, do not remove anything from php8
Title: Re: mongodb issue
Post by: paschtin on August 13, 2022, 02:53:37 PM
Quote from: rudiservo on August 13, 2022, 12:48:44 AM

pkg remove php74-pecl-mongodb


I had the same issue and this solved it.
Thank you!
Title: Re: mongodb issue
Post by: balrog on December 01, 2022, 08:25:45 AM
Quote from: rudiservo on August 13, 2022, 12:48:44 AM
pkg remove php74-pecl-mongodb

I also had this problem, but uninstalling the package was the solution. Thank you very much!
Title: Re: mongodb issue
Post by: DoTheEvo on January 31, 2023, 11:24:13 PM
Same problem, but no package found.
Running pkg list | grep mongo showed that for me its pkg remove php80-pecl-mongodb
Title: Re: mongodb issue
Post by: sy on February 01, 2023, 02:06:14 PM
Hi,
Please run the following commands

pkg install -fy mongodb40
pkg install -fy php81-pecl-mongodb

Title: Re: mongodb issue
Post by: tek411 on February 21, 2025, 03:20:40 PM
Sorry pulling this one out from the archives.  I ran into same issue, same backstory:

Installed ZenArmor early on for testing then removed it.  After upgrading to 25.1 I started seeing errors referencing mongodb telling me to submit a bug report.

pkg list | grep mongo

Listed both mongodb40 and php82-pecl-mongodb

They are also viewable in the packages list when you filter for mongo

pkg remove for both has resolved the issue for me
Title: Re: mongodb issue
Post by: Erutan409 on April 04, 2025, 12:38:03 AM
Quote from: tek411 on February 21, 2025, 03:20:40 PMSorry pulling this one out from the archives.  I ran into same issue, same backstory:

Installed ZenArmor early on for testing then removed it.  After upgrading to 25.1 I started seeing errors referencing mongodb telling me to submit a bug report.

pkg list | grep mongo

Listed both mongodb40 and php82-pecl-mongodb

They are also viewable in the packages list when you filter for mongo

pkg remove for both has resolved the issue for me

Yeah, same exact issue for me. Thank you, this steered me in the right direction to correct this for me as well.