Multiple missing dependency and iflib_netmap_config errors after update to 22.1

Started by zauopn, January 30, 2022, 08:15:34 AM

Previous topic - Next topic
I'm getting the following dependency errors after upgrading to 22.1, does any one know how to fix those issues? Also, internet is no longer working. Any help would be appreciated . Thanks.


***GOT REQUEST TO AUDIT HEALTH***
Currently running OPNsense 22.1 (amd64/OpenSSL) at Sat Jan 29 22:48:14 PST 2022
>>> Check installed kernel version
Version 22.1 is correct.
>>> Check for missing or altered kernel files
No problems detected.
>>> Check installed base version
Version 22.1 is correct.
>>> Check for missing or altered base files
No problems detected.
>>> Check for missing package dependencies
Checking all packages: .......... done
py37-markupsafe has a missing dependency: python37
py37-markupsafe has a missing dependency: py37-setuptools
py37-markupsafe is missing a required shared library: libpython3.7m.so.1.0
py37-pymongo has a missing dependency: python37
py37-pymongo has a missing dependency: py37-setuptools
py37-pymongo is missing a required shared library: libpython3.7m.so.1.0
>>> Check for missing or altered package files
Checking all packages: .......... done
>>> Check for core packages consistency
Core package "opnsense" has 65 dependencies to check.
Checking packages: ................................................................... done
***DONE***



Also, the following errors show up in the console / terminal:

FreeBSD/amd64 (OPNsense.localdomain) (ttgv8)

login: [ 849] iflib_netmap_config txr 1 rxr 1 txd 1824 rxd 1824
rbufsz 2848

[ 849] iflib_netmap_config txr 1 rxr 1 txd 1824 rxd 1824 rbufsz
2848

-m8: link state changed to DUNN

[ 849] iflib_netmap_config txr 1 rxr 1 txd 1824 rxd 1824 rbufsz
2848

-m8: link state changed to UP

reeBSDIamd64 (OPNsense.localdomain) (ttgv8)

login: 7

We haven't shipped Python 3.7 for quite some time now so your issue lies with a third party repo or manual ports install.

The netmap message is not an error. Netmap unfortunately has a number of this debug/informational message that don't make much sense to anyone but the authors / those who know the internals by heart most likely.


Cheers,
Franco

I also get these messages about Python37 after the upgrade to 22.1

I can not remember to have installed any third party repo / manual ports. Never seen these messages before although I always update on the console.

'pkg updating' does not help me out...

# pkg updating
pkg: Unable to open: /usr/ports/UPDATING


Any hints on how to fix this appreciated, TIA.


Checking all packages: .......... done
py37-markupsafe has a missing dependency: python37
py37-markupsafe has a missing dependency: py37-setuptools
py37-markupsafe is missing a required shared library: libpython3.7m.so.1.0

>>> Missing package dependencies were detected.
>>> Found 2 issue(s) in the package database.

pkg-static: No packages available to install matching 'python37' have been found in the repositories
pkg-static: No packages available to install matching 'py37-setuptools' have been found in the repositories
>>> Summary of actions performed:

python37 dependency failed to be fixed
py37-setuptools dependency failed to be fixed

>>> There are still missing dependencies.
>>> Try fixing them manually.

>>> Also make sure to check 'pkg updating' for known issues.



Quote from: zauopn on January 30, 2022, 08:15:34 AM
Any help would be appreciated . Thanks.
After some reading I came to the conclusion, that py37-markupsafe is no longer needed. So I removed it:

# pkg delete py37-markupsafe
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
        py37-markupsafe: 1.1.1_1

Number of packages to be removed: 1

Proceed with deinstalling packages? [y/N]: y
[1/1] Deinstalling py37-markupsafe-1.1.1_1...
[1/1] Deleting files for py37-markupsafe-1.1.1_1: 100%


... I did this on my backup machine first to see if any side–effects occur. If not, I will do this on my production box after upgrading that one too.

I ran the firmware healthcheck and noticed I had the same missing dependency on my system.

sudo pkg info -dx py37-markupsafe                                                                                                                                                                                                               ─╯
py37-markupsafe-1.1.1_1:
        python37-(null)
        py37-setuptools-(null)


Looks like it was depended on by the 2 above packages which are no longer installed.

I just deleted it like NUeb.

I reran the health check and nothing flagged.

Cheers,

Quote from: Koldnitz on January 30, 2022, 06:15:20 PM
I ran the firmware healthcheck and noticed I had the same missing dependency on my system.

Thanks for the hint. I've now checked this on my box, under OPNsense 21.7.8 the dependencies are alright:

# pkg info -dx py37-markupsafe
py37-markupsafe-1.1.1_1:
        python37-3.7.11
        py37-setuptools-57.0.0


but after upgrading to 22.1 it's broken just like you reported (and has to be removed manually as shown before).

As I can not remember to have had any "3rd party" stuff installed and I know that I didn't install anything manual, I do blame OPNsense update / upgrade for not cleaning this up in the first place: While 22.1 was being installed, the very first steps were removing all Python3.7 stuff, except for that package (sadly I was too slow to grab a screenshot of that).

Quote from: franco on January 30, 2022, 10:50:02 AM

The netmap message is not an error. Netmap unfortunately has a number of this debug/informational message that don't make much sense to anyone but the authors / those who know the internals by heart most likely.


Cheers,
Franco

Get as well still the 809.618885 [ 849] iflib_netmap_config       txr 4 rxr 4 txd 1024 rxd 1024 rbufsz 2048 messages...

If they are not errors, how to disable them permanently?

Thx!
Cheers,
Crissi

Quote from: franco on January 30, 2022, 10:50:02 AM
We haven't shipped Python 3.7 for quite some time now so your issue lies with a third party repo or manual ports install.

Cheers,
Franco

Quote from: NUeB on January 30, 2022, 05:01:58 PM
After some reading I came to the conclusion, that py37-markupsafe is no longer needed. So I removed it:

# pkg delete py37-markupsafe
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
        py37-markupsafe: 1.1.1_1
...


... I did this on my backup machine first to see if any side–effects occur. If not, I will do this on my production box after upgrading that one too.

I assume NUeB did this at the console with a keyboard.

I have approximately 20 remote opnsense boxes that I am seeing this message on, and I'm wondering if anybody (Franco?) has suggestions as to the best way to proceed.  They are all at different clients.  SSH has not been enabled.  I can enable SSH on each, but I'm wondering if there is a better way that I am unaware of.

Thanks in Advance!
d.