目录

Centos8部署mongodb报错记录

Centos8部署mongodb报错记录

使用mongo ops安装mongodb6.0.4副本集报错

error while loading shared libraries: libnetsnmpmibs.so.35: cannot open shared object file: No such file or directory

解决

 yum install net-snmp net-snmp-devel -y

建议:初始化系统时把官网上的依赖包都装一遍 即

yum install -y bash-completion unzip conntrack ntpdate ntp curl sysstat libseccomp wget vim net-tools git nfs-utils rpcbind nload htop tree telnet python-devel python-pip numactl dstat net-snmp net-snmp-devel

centos8 stream部署mms agent报错

报错内容

panic: Failed to load Linux flavor and version.  err=Error getting linux flavor and version : Error determining version of rhel linux that we're running on : Could not find version in from release reader for linux flavor rhel.  number of submatches=0 : Error getting linux flavor and version : Error determining version of rhel linux that we're running on : Could not find version in from release reader for linux flavor rhel.  number of submatches=0

TroubleShooting

在ecs上更换不同的mms agent测试

大概步骤

  1. 使用curl从mongo官网下载新版本的ops agent,
  2. 使用cpio命令提取出其中对应的rpm包,
  3. 安装启动测试
rpm -qpl mongodb-mms-7.0.14.500.20250121T1020Z.x86_64.rpm

[root@iv-xx mms]# rpm2cpio mongodb-mms-7.0.14.500.20250121T1020Z.x86_64.rpm | cpio -idmv "./opt/mongodb/mms/agent/automation/mongodb-mms-automation-agent-manager-107.0.13.8702-1.x86_64.rhel8.rpm"
cpio: ./opt/mongodb/mms/agent/automation/mongodb-mms-automation-agent-manager-107.0.13.8702-1.x86_64.rhel8.rpm not created: newer or same age version exists
./opt/mongodb/mms/agent/automation/mongodb-mms-automation-agent-manager-107.0.13.8702-1.x86_64.rhel8.rpm
4620532 blocks
[root@iv-xxautomation]# file /opt/mongodb/mms/agent/automation/mongodb-mms-automation-agent-manager-107.0.13.8702-1.x86_64.rhel8.rpm 
mongodb-mms-automation-agent-manager-107.0.13.8702-1.x86_64.rhel8.rpm: RPM v3.0 bin i386/x86_64 mongodb-mms-automation-agent-manager-107.0.13.8702-1

[root@iv-xx mms]# rpm -U mongodb-mms-automation-agent-manager-107.0.13.8702-1.x86_64.rhel8.rpm 

# 结论:启动后同样的报错

解决

经过在ecs上更换操作不同版本操作系统得出:mms agent不支持 centos stream系列,操作系统版本换成centos 8.x系列即可