OPNsense Forum

English Forums => 25.1, 25.4 Production Series => Topic started by: NW4FUN on January 29, 2025, 05:01:03 PM

Title: Strange CRASH
Post by: NW4FUN on January 29, 2025, 05:01:03 PM
Anyone else dealing with this?

[29-Jan-2025 15:51:23 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'mongodb.so' (tried: /usr/local/lib/php/20230831/mongodb.so (Cannot open "/usr/local/lib/php/20230831/mongodb.so"), /usr/local/lib/php/20230831/mongodb.so.so (Cannot open "/usr/local/lib/php/20230831/mongodb.so.so")) in Unknown on line 0
Title: Re: Strange CRASH
Post by: franco on January 29, 2025, 05:13:19 PM
Zenarmor isn't ready. As always.
Title: Re: Strange CRASH
Post by: NW4FUN on January 29, 2025, 05:16:47 PM
I no longer have Zenarmor...it had been decommissioned nearly a year ago.

How to fix that?
Title: Re: Strange CRASH
Post by: franco on January 29, 2025, 05:21:51 PM
Perhaps this...

# pkg remove php82-pecl-mongodb

As long as Zenarmor continues to install packages without the automatic flag these packages will linger and eventually break updates...
Title: Re: Strange CRASH
Post by: NW4FUN on January 29, 2025, 05:25:26 PM
Thanks, that did the trick!

How can Zenarmor install packages if it had been installed? I'm puzzled
Title: Re: Strange CRASH
Post by: franco on January 29, 2025, 05:30:34 PM
It's scripting the install of said package but not setting the automatic flag with a proper dependency on it. So when you remove Zenarmor and it will not remove that package it will be fine until the next PHP upgrade comes along.
Title: Re: Strange CRASH
Post by: davidfi01 on January 31, 2025, 06:40:48 PM
I had the same problem.  The solution above worked.  Is there a log file that needs to be cleaned up or deleted?

D
Title: Re: Strange CRASH
Post by: Maginos on February 01, 2025, 10:12:12 AM
I also got this message after the upgrade to 25.1.

The execution of the pkg remove php82-pecl-mongodb gave me this answer:

No packages matched for pattern 'php82-pecl-mongodb'

Checking integrity... done (0 conflicting)
1 packages requested for removal: 0 locked, 1 missing


I then looked under System > Firmware > Packages and saw that I only have php83-pecl-mongodb installed. Not php82, but php83. What can I do to resolve this?
Title: Re: Strange CRASH
Post by: terry274 on February 01, 2025, 11:16:29 AM
@Maginos
Post 5 in this thread:
https://forum.opnsense.org/index.php?topic=45483.0

This command in the terminal:
opnsense-update -ur 25.1 -A 25.1
Title: Re: Strange CRASH
Post by: Tismofied on February 03, 2025, 03:43:39 PM
Thank you @NW4fun for making this post and @franco for the quick fix. I was puzzled as well since I uninstalled zenarmor before upgrade. I always have a feeling that it breaks upgrades
Title: Re: Strange CRASH
Post by: Maginos on February 07, 2025, 06:11:41 PM
Quote from: terry274 on February 01, 2025, 11:16:29 AM@Maginos
Post 5 in this thread:
https://forum.opnsense.org/index.php?topic=45483.0

This command in the terminal:
opnsense-update -ur 25.1 -A 25.1

Thank you @terry274. I got no messages in the Audits (System > Firmware > Updates > Status > Run audit).
Title: Re: Strange CRASH
Post by: Hephaistos on March 17, 2025, 05:32:12 PM
Quote from: franco on January 29, 2025, 05:21:51 PMPerhaps this...

# pkg remove php82-pecl-mongodb

As long as Zenarmor continues to install packages without the automatic flag these packages will linger and eventually break updates...

Thank you! That fixed my problem.