Closed psychogun closed 2 months ago
Installed packages to be REINSTALLED:
libgcrypt-1.11.0 [OPNsense]
libgpg-error-1.48 [SunnyValley]
I don't think mixing related libraries from different repositories is particularly good. Does it work properly once you have disabled all third-party repos?
You probably need libgpg-error-1.50 which is indeed in our repo...
Well the thing is it is not getting pulled in... Can readily reproduce the broken dependencies with another repo as well:
# pkg install os-ntopng
Updating OPNsense repository catalogue...
OPNsense repository is up to date.
Updating mimugmail repository catalogue...
mimugmail repository is up to date.
All repositories are up to date.
The following 19 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
groff: 1.23.0_3 [OPNsense]
hidapi: 0.14.0 [OPNsense]
hiredis: 1.2.0.15 [OPNsense]
libgcrypt: 1.11.0 [OPNsense]
libgpg-error: 1.49 [mimugmail]
libmaxminddb: 1.10.0 [OPNsense]
libpaper: 1.1.28_1 [OPNsense]
libunwind: 20240221 [OPNsense]
libzmq4: 4.3.5_2 [OPNsense]
lua54: 5.4.6_1 [OPNsense]
mysql80-client: 8.0.39 [OPNsense]
ndpi: 4.10.d20240807,1 [OPNsense]
norm: 1.5r6_3 [OPNsense]
ntopng: 6.2.d20240813,1 [OPNsense]
openpgm: 5.2.122_6 [OPNsense]
os-ntopng: 1.3 [OPNsense]
psutils: 1.17_6 [OPNsense]
uchardet: 0.0.8_1 [OPNsense]
zstd: 1.5.6 [OPNsense]
Number of packages to be installed: 19
The process will require 187 MiB more space.
17 MiB to be downloaded.
wrong priority on mimugmail? pkg used to ignore priority years ago and always tried to grab the latest packages. I don't see anything I can do from our side.
Apparently. Best to file a bug with those repos.
# grep priority /usr/local/etc/pkg/repos/*.conf
/usr/local/etc/pkg/repos/OPNsense.conf: priority: 11,
/usr/local/etc/pkg/repos/mimugmail.conf: priority: 190,
I asked @mimugmail to lower it below 11 a while ago, and indeed it is:
Fix it locally here. Apparently, these repos also keep stepping on each other's toes.
Not sure, wouldn't this be an item for some of those health audits? Spit out some warning if there are repositories added with higher priority than OPNsense. š¤
fair point, but it needs to be funnelled through opnsense-verify... meh, I'll do it by showing the priority for each repo enabled
https://github.com/opnsense/update/commit/acb13c2d4b
# opnsense-verify -l
FreeBSD (Priority: 0)
OPNsense (Priority: 11)
mimugmail (Priority: 5)
I did not notice that it was from different repositories. Is there a quick fix I can try?
The quick fix is setting priority in /usr/local/etc/pkg/repos/SunnyValley.conf
to 10 or lower.
# grep priority /usr/local/etc/pkg/repos/*.conf
/usr/local/etc/pkg/repos/OPNsense.conf: priority: 11,
/usr/local/etc/pkg/repos/SunnyValley.conf: priority: 7,
It is already < 10.
How I got it working was to add the force flag:
pkg install -f -r OPNsense libgcrypt libgpg-error
Updating OPNsense repository catalogue...
OPNsense repository is up to date.
All repositories are up to date.
The following 2 package(s) will be affected (of 0 checked):
Installed packages to be UPGRADED:
libgpg-error: 1.48 -> 1.50 [OPNsense]
Installed packages to be REINSTALLED:
libgcrypt-1.11.0 [OPNsense]
Number of packages to be upgraded: 1
Number of packages to be reinstalled: 1
168 KiB to be downloaded.
Proceed with this action? [y/N]: y
Ok, close then?
Important notices Before you add a new report, we ask you kindly to acknowledge the following:
Describe the bug My dashboard in Grafana which shows me individual traffic of devices and VLANs stopped working / reporting data after a update on my firewall. Grafana reads a bucket in InfluxDB v1. Data is flowing to InfluxDB from ntopng. I found out that ntopng is unable to start.
A clear and concise description of what the bug is, including last known working version (if any).
Tip: to validate your setup was working with the previous version, use opnsense-revert (https://docs.opnsense.org/manual/opnsense_tools.html#opnsense-revert)
To Reproduce Steps to reproduce the behavior:
Expected behavior
Screenshots If applicable, add screenshots to help explain your problem.
Relevant log files (Read the first section from bottom and up; at 00:47 Redis was not yet running)
Additional context
Maybe something wrong with
libgcrypt.so
? Let me reinstall it?Although the libraries are reinstalled, I am still not able to run ntopng. Probably has something to do with
ld-elf.so.1: /usr/local/lib/libgcrypt.so.20: Undefined symbol "gpgrt_add_post_log_func"
, but I do not know how to proceed.Environment