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

Code: [Select]
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.

Code: [Select]
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

Code: [Select]
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
Code: [Select]
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