Closed StarkZarn closed 1 year ago
Quick update just for thoroughness: I updated the ntopng package this morning and the problem still remains. I am now running version/revision: 5.7.230204
5.7.230205, same thing
same for me root@fw:~ # pkg info | grep ntop ntop-1.0 ntop Vendor Repository ntopng-5.7.230207 High speed network traffic monitor os-ntopng-enterprise-5.7.230207 ntopng is a high-speed web-based network traffic analysis and flow collection tool root@fw:~ # ntopng -v ld-elf.so.1: Shared object "libldap_r-2.4.so.2" not found, required by "ntopng"
and same on
5.7.230208
Devs is there anything we can do to help out here, provide more data?
Came up with the following workaround (not pretty):
# cd /tmp
# fetch https://pkg.opnsense.org/FreeBSD:12:amd64/21.7/MINT/21.7.2/OpenSSL/All/openldap-client-2.4.59_1.txz
# /usr/local/etc/rc.d/ntopng stop
# tar xvf openldap-client-2.4.59_1.txz -C /tmp/
# cp -v /tmp/usr/local/lib/libldap_r-2.4.so.2.11.7 /usr/local/lib/
# ln -s /usr/local/lib/libldap_r-2.4.so.2.11.7 /usr/local/lib/libldap_r-2.4.so.2
# cp -v /tmp/usr/local/lib/liblber-2.4.so.2.11.7 /usr/local/lib/
# ln -s /usr/local/lib/liblber-2.4.so.2.11.7 /usr/local/lib/liblber-2.4.so.2
# /usr/local/etc/rc.d/ntopng start
Same issue here, with the latest version of OPNsense (23.1.1.2) and the latest build of ntopng (5.7.230220)
I have the same problem with the latest version of opnsense (23.1.1.2) and with an ntopng entreprise
I'm sure this issue is easy to fix, but it seems like no one is maintaining the OPNsense ntopng package anymore. Too bad :(
Sorry for the delay: OPNsense is a moving target and we forgot about this ticket. We'll fix it by Monday. we apologise for the delay.
Thanks @lucaderi :)
The ldap dependency on OPNsense 23.x has been fixed, please update and let us know. Thank you.
It's working! ntopng build 5.7.230307, tested on OPNsense 23.1.2 (released today).
Thanks for fixing it! :)
Thank you! Closing this
Just a small issue:
In Services: ntopng Enterprise: Settings, DNS Mode - the selected DNS mode is not saved (and I'm not sure it apply).
On OPNSense 24.1.8 "libsodium.so.23" is superseded by libsodium.so.26.1.0 (and ./usr/local/lib/libsodium.so.26), I just installed latest version (6.1.240606) of os-ntopng-enterprise and I get the error
/usr/local/bin/ntopng --version ld-elf.so.1: Shared object "libsodium.so.23" not found, required by "ntopng"
ntopng on my opnsense has been failing to start for me for some time due to the same issue.
Will there be an update for opnsense plugin to fix this?
There is a workaround for this at https://www.ntop.org/guides/ntopng/third_party_integrations/opnsense.html Short answer: ln -s /usr/local/lib/libsodium.so.26 /usr/local/lib/libsodium.so.23
I am having the same issue on pfsense plus (freebsd 15). I followed this guide https://packages.ntop.org/FreeBSD/
Starting ntopng. ld-elf.so.1: Shared object "libsodium.so.26" not found, required by "ntopng" /usr/local/etc/rc.d/ntopng: WARNING: failed to start ntopng
I also don't see n2disk pkg in the repo but it is listed in the install guide.
I have been running this on a linux VM to test an enterprise license and wanted to migrate that to a pfsense box. removed the existing ntop packages on pfsense and started your guide.
Please provide the output of ls -al /usr/local/lib/libsodium.so.*
ls -al /usr/local/lib/libsodium.so.*
/root: ls -al /usr/local/lib/libsodium.so.* lrwxr-xr-x 1 root wheel 19 Apr 23 09:57 /usr/local/lib/libsodium.so.23 -> libsodium.so.23.3.0 -rwxr-xr-x 1 root wheel 452016 Apr 23 09:57 /usr/local/lib/libsodium.so.23.3.0
Thanks for the feedback!
Please provide the output of ls -al /usr/local/lib/libsodium.so.*
Wanted to follow up on this. Looks like the issue for Pfsense is reversed. is there a reason I should not upgrade this to libsodium.so.26 on the pfsense freebsd install? I am assuming if I symlink from 26 to 23 (installed), I would introduce more opportunities for error than installing 26 and then symlinking 23 to 26. I recognize you all might not be able to speak for the pfsense side of this. Thanks!
Hi did you manage to get this going on pfSense? I just update pf to FreeBSD 15 and now having issues with this latest release of ntopn, same error.
Thanks
This is such a mess.
In my case, libsodium was looking for version 26. Here is what I did to resolve this.
Find your version of libsodium, in my case, 23.3.0
ls /usr/local/lib/libsodium.so.*
Then symlink your current version to 26.
ln -s /usr/local/lib/libsodium.so.23.3.0 /usr/local/lib/libsodium.so.26
In my case, libsodium was looking for version 26. Here is what I did to resolve this.
Find your version of libsodium, in my case, 23.3.0
ls /usr/local/lib/libsodium.so.*
Then symlink your current version to 26.
ln -s /usr/local/lib/libsodium.so.23.3.0 /usr/local/lib/libsodium.so.26
Thanks for posting. I have been running ntop on a dedicated VM and importing flows from pfsense. I will try the steps you lined out.
Environment:
What happened: ntopng fails to start with the error:
ld-elf.so.1: Shared object "libldap_r-2.4.so.2" not found, required by "ntopng"
How did you reproduce it?
ntopng
from the command line.Debug Information:
This leads me to believe dependency versioning is off, as the error complains of libldap 2.4 but the current version is 2.6.