mongodb issue

Started by aimdev, August 06, 2022, 03:08:43 PM

Previous topic - Next topic
/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.


August 07, 2022, 07:33:15 PM #1 Last Edit: August 07, 2022, 07:34:57 PM by aimdev
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.

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

August 13, 2022, 12:48:44 AM #3 Last Edit: August 13, 2022, 01:14:58 AM by rudiservo
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

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!

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!

Same problem, but no package found.
Running pkg list | grep mongo showed that for me its pkg remove php80-pecl-mongodb

Hi,
Please run the following commands

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


February 21, 2025, 03:20:40 PM #8 Last Edit: February 21, 2025, 03:22:19 PM by tek411
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