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

解决

bash 复制代码
 yum install net-snmp net-snmp-devel -y

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

bash 复制代码
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报错

报错内容

bash 复制代码
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. 安装启动测试
bash 复制代码
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系列即可

相关推荐
网络深处的易某某6 个月前
MongoDB-副本集-Replica Sets
java·开发语言·数据库·mongodb·oracle·tomcat·mongo
littleschemer8 个月前
docker搭建mongo分片集群
docker·mongo·分片集·水平扩展
上善若水-学者至上10 个月前
Mongo 实现简单全文检索
全文检索·mongo
胡斌附体1 年前
数据库之迁移常规操作(Mongodb篇)
linux·windows·docker·json·mongo·导入导出
sensorsen1 年前
mongo Payload document size is larger than maximum of 16777216. 如何处理
mongo
Like_wen1 年前
mongo常用操作符及查询例子
java·开发语言·mongodb·golang·mongo
Wielun2 年前
Docker部署MongoDB 5.0.5
mongodb·docker·容器·mongo