[SERVER-16983] mongod: error while loading shared libraries: libnetsnmpagent.so.20 Created: 21/Jan/15  Updated: 22/Jan/15  Resolved: 22/Jan/15

Status: Closed
Project: Core Server
Component/s: Packaging
Affects Version/s: 2.6.4
Fix Version/s: None

Type: Question Priority: Major - P3
Reporter: Dharmaraj Narayan Assignee: Ernie Hershey
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

Mongo binaries are -
mongodb-linux-x86_64-enterprise-rhel62-2.6.4.tar.gz installed on x86-64 box.
----------------------------------------------------------------------
OS Red Hat linux -
$ uname -a
Linux 2.6.18-398.el5 x86_64
----------------------------------------------------------------------
Mongo configuration file in YAML format.

daycare2:/dbahome/mongo/configs >
$ cat t0lab.conf
net:
bindIp: 10.250.114.71
port: 29000
processManagement:
fork: true
storage:
dbPath: /data/db/mongo_inst0/t0lab
directoryPerDB: true
smallFiles: true
journal:
enabled: true

systemLog:
destination: file
timeStampFormat: iso8601-local
logAppend: false
path: /msglog/mongo_inst0/msg.log
quiet: true
----------------------------------------------------------------------
Error on attempt to start mongo instance

daycare2:/ >
$ mongod -f /dbahome/mongo/configs/t0lab.conf
mongod: error while loading shared libraries: libnetsnmpagent.so.20: cannot open shared object file: No such file or directory

----------------------------------------------------------------------

daycare2:/dbahome/mongo >
$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.11 (Tikanga) <= release of Linux on daycare2.
----------------------------------------------------------------------
$ rpm -qa |grep snmp <= determines all rpm packages with the name snmp that are installed on the box.
net-snmp-libs-5.3.2.2-25.el5_11
net-snmp-5.3.2.2-25.el5_11
net-snmp-utils-5.3.2.2-25.el5_11
----------------------------------------------------------------------
[root@daycare2 ~]# rpm -ql net-snmp-libs |grep snmp <= to see what is in the package
/usr/lib64/libnetsnmp.so.10
/usr/lib64/libnetsnmp.so.10.0.3
/usr/lib64/libnetsnmpagent.so.10
/usr/lib64/libnetsnmpagent.so.10.0.3
/usr/lib64/libnetsnmphelpers.so.10
/usr/lib64/libnetsnmphelpers.so.10.0.3
/usr/lib64/libnetsnmpmibs.so.10
/usr/lib64/libnetsnmpmibs.so.10.0.3
/usr/lib64/libnetsnmptrapd.so.10
/usr/lib64/libnetsnmptrapd.so.10.0.3
/usr/lib64/libsnmp.so.10
/usr/lib64/libsnmp.so.10.0.3
/usr/lib/libnetsnmp.so.10
/usr/lib/libnetsnmp.so.10.0.3
/usr/lib/libnetsnmpagent.so.10
/usr/lib/libnetsnmpagent.so.10.0.3
/usr/lib/libnetsnmphelpers.so.10
/usr/lib/libnetsnmphelpers.so.10.0.3
/usr/lib/libnetsnmpmibs.so.10
/usr/lib/libnetsnmpmibs.so.10.0.3
/usr/lib/libnetsnmptrapd.so.10
/usr/lib/libnetsnmptrapd.so.10.0.3
/usr/lib/libsnmp.so.10
/usr/lib/libsnmp.so.10.0.3

so appears we do not have the libnetsnmp.so.20 file in RHEL 5.11
----------------------------------------------------------------------

$ rpm -ql net-snmp-libs-5.5-49.el6_5.4.x86_64 |grep -i libnetsnmp
/usr/lib64/libnetsnmp.so.20 <= seems like present in a higher version of net-snmp-libs e.g. RHLinux 6+

----------------------------------------------------------------------
The mongo website says RH linux 5.6 is supported so why this problem ? how do we obtain net-snmp-libs-5.5-49.el6_5.4.x86_64 for RHEL 5.6 ? or is the issue because of some other problem ?



 Comments   
Comment by Ernie Hershey [ 22/Jan/15 ]

No problem!

Here's the link for 2.6.4.

Comment by Dharmaraj Narayan [ 22/Jan/15 ]

in the mean time I did find the link to mongodb-linux-x86_64-enterprise-rhel57-2.6.7.tgz. . Thanks a lot ...my bad with the earlier rhel6 binary download.

Comment by Dharmaraj Narayan [ 21/Jan/15 ]

please point me to the link mongo enterprise version 2.6.4 "Archive" file for RHEL 5.7+ ( we are at 5.11) . This is for testing purposes only
Thanks

Dharmaraj Narayan

Comment by Ernie Hershey [ 21/Jan/15 ]

Hi - you're running the rhel6 binaries in rhel5. Please download the rhel5 binaries instead. I can point you to them if you can't find them in the same location you downloaded those from.

Generated at Thu Feb 08 03:42:55 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.