***GOT REQUEST TO AUDIT HEALTH***Currently running OPNsense 24.1.4 at Thu Mar 21 08:45:43 UTC 2024>>> Root file system: /dev/gpt/rootfs>>> Check installed kernel versionVersion 24.1.2 is correct.>>> Check for missing or altered kernel filesNo problems detected.>>> Check installed base versionVersion 24.1.2 is correct.>>> Check for missing or altered base filesNo problems detected.>>> Check installed repositoriesOPNsense>>> Check installed pluginsos-theme-vicuna 1.45_1os-zerotier 1.3.2_4>>> Check locked packagesNo locks found.>>> Check for missing package dependenciesChecking all packages: .......... done>>> Check for missing or altered package filesChecking all packages: .......... done>>> Check for core packages consistencyCore package "opnsense" has 68 dependencies to check.Checking packages: ..................................................................... done***DONE***
Quote from: franco on March 18, 2024, 02:10:33 pmDid you guys install anything from the ports tree manually?Sorry, missed your reply: No, I don't have ports installed at all (and 24.1.4 didn't change anything)
Did you guys install anything from the ports tree manually?
pkg install -f py39-idna-3.6
import importlib.metadataimportlib.metadata.version('idna')import idnaidna.__path__
I expect the second line to crash with the same error as reported earlier, then we will import idna to check its actual location.
root@OPNsense-1:~ # pkg install -f py39-idna-3.6Updating OPNsense repository catalogue...OPNsense repository is up to date.All repositories are up to date.Checking integrity... done (0 conflicting)The following 1 package(s) will be affected (of 0 checked):Installed packages to be REINSTALLED: py39-idna-3.6Number of packages to be reinstalled: 1Proceed with this action? [y/N]: y[1/1] Reinstalling py39-idna-3.6...[1/1] Extracting py39-idna-3.6: 100%root@OPNsense-1:~ # python3Python 3.9.18 (main, Apr 3 2024, 19:59:28)[Clang 14.0.5 (https://github.com/llvm/llvm-project.git llvmorg-14.0.5-0-gc1238 on freebsd13Type "help", "copyright", "credits" or "license" for more information.>>> import importlib.metadata>>> importlib.metadata.version('idna')>>>>>> import idna>>> idna.__path__['/usr/local/lib/python3.9/site-packages/idna']
root@OPNsense-2:~ # pkg install -f py39-idna-3.6Updating OPNsense repository catalogue...OPNsense repository is up to date.All repositories are up to date.The following 1 package(s) will be affected (of 0 checked):Installed packages to be REINSTALLED: py39-idna-3.6Number of packages to be reinstalled: 165 KiB to be downloaded.Proceed with this action? [y/N]: y[1/1] Fetching py39-idna-3.6.pkg: 100% 65 KiB 66.8kB/s 00:01Checking integrity... done (0 conflicting)[1/1] Reinstalling py39-idna-3.6...[1/1] Extracting py39-idna-3.6: 100%root@OPNsense-2:~ # python3Python 3.9.18 (main, Apr 3 2024, 19:59:28)[Clang 14.0.5 (https://github.com/llvm/llvm-project.git llvmorg-14.0.5-0-gc1238 on freebsd13Type "help", "copyright", "credits" or "license" for more information.>>> import importlib.metadata>>> importlib.metadata.version('idna')'3.6'>>>>>> import idna>>> idna.__path__['/usr/local/lib/python3.9/site-packages/idna']
Ok, let's try to find where this is coming from, does reinstalling py-idna make a difference?Code: [Select]pkg install -f py39-idna-3.6If it doesn't, can you try to start python manually and run the following commands? (in python3)Code: [Select]import importlib.metadataimportlib.metadata.version('idna')import idnaidna.__path__I expect the second line to crash with the same error as reported earlier, then we will import idna to check its actual location.
# pkg install -f py39-idna-3.6Updating OPNsense repository catalogue...OPNsense repository is up to date.All repositories are up to date.Checking integrity... done (0 conflicting)The following 1 package(s) will be affected (of 0 checked):Installed packages to be REINSTALLED: py39-idna-3.6Number of packages to be reinstalled: 1Proceed with this action? [y/N]: y[1/1] Reinstalling py39-idna-3.6...[1/1] Extracting py39-idna-3.6: 100%# python3.9Python 3.9.18 (main, Apr 3 2024, 19:59:28)[Clang 14.0.5 (https://github.com/llvm/llvm-project.git llvmorg-14.0.5-0-gc1238 on freebsd13Type "help", "copyright", "credits" or "license" for more information.>>> import importlib.metadata>>> importlib.metadata.version('idna')>>>>>> import idna>>> idna.__path__['/usr/local/lib/python3.9/site-packages/idna']
but on these machines (after reinstalling the package), is unbound still crashing if you stop/start it from gui?
find /var/unbound/usr/local/lib/python3.9 -name "*idna*"
Code: [Select]find /var/unbound/usr/local/lib/python3.9 -name "*idna*"
root@OPNsense-1:~ # find /var/unbound/usr/local/lib/python3.9 -name "*idna*" | sort/var/unbound/usr/local/lib/python3.9/encodings/__pycache__/idna.cpython-39.opt-1.pyc/var/unbound/usr/local/lib/python3.9/encodings/__pycache__/idna.cpython-39.opt-2.pyc/var/unbound/usr/local/lib/python3.9/encodings/__pycache__/idna.cpython-39.pyc/var/unbound/usr/local/lib/python3.9/encodings/idna.py/var/unbound/usr/local/lib/python3.9/site-packages/idna/var/unbound/usr/local/lib/python3.9/site-packages/idna-3.4.dist-info/var/unbound/usr/local/lib/python3.9/site-packages/idna-3.6.dist-info/var/unbound/usr/local/lib/python3.9/site-packages/idna/__pycache__/idnadata.cpython-39.opt-1.pyc/var/unbound/usr/local/lib/python3.9/site-packages/idna/__pycache__/idnadata.cpython-39.pyc/var/unbound/usr/local/lib/python3.9/site-packages/idna/idnadata.py
root@OPNsense-2:~ # find /var/unbound/usr/local/lib/python3.9 -name "*idna*" | sort/var/unbound/usr/local/lib/python3.9/encodings/__pycache__/idna.cpython-39.opt-1.pyc/var/unbound/usr/local/lib/python3.9/encodings/__pycache__/idna.cpython-39.opt-2.pyc/var/unbound/usr/local/lib/python3.9/encodings/__pycache__/idna.cpython-39.pyc/var/unbound/usr/local/lib/python3.9/encodings/idna.py/var/unbound/usr/local/lib/python3.9/site-packages/idna/var/unbound/usr/local/lib/python3.9/site-packages/idna-3.6.dist-info/var/unbound/usr/local/lib/python3.9/site-packages/idna/__pycache__/idnadata.cpython-39.opt-1.pyc/var/unbound/usr/local/lib/python3.9/site-packages/idna/__pycache__/idnadata.cpython-39.pyc/var/unbound/usr/local/lib/python3.9/site-packages/idna/idnadata.py
root@OPNsense-1:/usr/local/lib/python3.9/site-packages # lsBabel-2.12.1-py3.9.egg-info cffi-1.16.0.dist-info idna requests-2.31.0-py3.9.egg-infoBabel-2.14.0-py3.9.egg-info charset_normalizer idna-3.6.dist-info service_identityBottleneck-1.3.8-py3.9.egg-info charset_normalizer-3.2.0-py3.9.egg-info jinja2 service_identity-23.1.0.dist-infoCython-0.29.36-py3.9.egg-info charset_normalizer-3.3.2-py3.9.egg-info markupsafe setuptoolsJinja2-3.1.3-py3.9.egg-info cryptography netaddr setuptools-63.1.0-py3.9.egg-infoMarkupSafe-2.1.5-py3.9.egg-info cryptography-3.4.8-py3.9.egg-info netaddr-0.8.0-py3.9.egg-info six-1.16.0-py3.9.egg-infoOpenSSL cryptography-42.0.5.dist-info netaddr-1.2.1.dist-info six.pyPySocks-1.7.1-py3.9.egg-info dateutil numexpr sniffioPyYAML-6.0-py3.9.egg-info distutils-precedence.pth numexpr-2.8.4-py3.9.egg-info sniffio-1.3.1.dist-infoPyYAML-6.0.1-py3.9.egg-info dns numexpr-2.9.0-py3.9.egg-info socks.pyREADME.txt dnspython-2.4.0.dist-info numpy sockshandler.py__pycache__ dnspython-2.6.1.dist-info numpy-1.25.0-py3.9.egg-info socksio_cffi_backend.cpython-39.so duckdb outcome socksio-1.0.0-py3.9.egg-info_distutils_hack duckdb-0.10.1-py3.9.egg-info outcome-1.2.0-py3.9.egg-info sortedcontainers_unbound.so duckdb-stubs outcome-1.3.0.post0-py3.9.egg-info sortedcontainers-2.4.0-py3.9.egg-info_yaml easy-install.pth packaging trioadbc_driver_duckdb easy-install.pth.dist packaging-23.2.dist-info trio-0.22.2-py3.9.egg-infoaioquic exceptiongroup pandas trio-0.25.0.dist-infoaioquic-0.9.21.dist-info exceptiongroup-1.1.2.dist-info pandas-2.0.3.dist-info typing_extensions-4.10.0.dist-infoaioquic-0.9.25.dist-info exceptiongroup-1.2.0.dist-info pkg_resources typing_extensions.pyanyio h11 pyOpenSSL-21.0.0-py3.9.egg-info tzdataanyio-3.7.1.dist-info h11-0.14.0-py3.9.egg-info pyOpenSSL-23.2.0-py3.9.egg-info tzdata-2023.3.dist-infoanyio-4.3.0.dist-info h2 pyasn1 tzdata-2024.1.dist-infoasync_generator h2-4.0.0-py3.9.egg-info pyasn1-0.5.0.dist-info ujson-5.8.0-py3.9.egg-infoasync_generator-1.10-py3.9.egg-info h2-4.1.0-py3.9.egg-info pyasn1_modules ujson-5.9.0-py3.9.egg-infoattr hpack pyasn1_modules-0.3.0.dist-info ujson.cpython-39.soattrs hpack-4.0.0-py3.9.egg-info pycparser unbound.pyattrs-23.2.0.dist-info httpcore pycparser-2.21-py3.9.egg-info unboundmodule.pybabel httpcore-0.17.3-py3.9.egg-info pylsqpack urllib3bottleneck httpcore-1.0.5.dist-info pylsqpack-0.3.17.dist-info urllib3-1.26.16-py3.9.egg-infocertifi httpx pylsqpack-0.3.18.dist-info urllib3-1.26.18-py3.9.egg-infocertifi-2023.5.7-py3.9.egg-info httpx-0.24.1.dist-info python_dateutil-2.9.0-py3.9.egg-info vicicertifi-2024.2.2-py3.9.egg-info httpx-0.27.0.dist-info pytz vici-5.9.11-py3.9.egg-infocffi hyperframe pytz-2024.1-py3.9.egg-info yamlcffi-1.15.1-py3.9.egg-info hyperframe-6.0.0-py3.9.egg-info requests