当前位置: 首页 > article >正文

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系列即可


http://www.kler.cn/a/577622.html

相关文章:

  • Linux 基础---重定向命令(>、>>)、echo
  • 正版Windows10/11系统盘制作详细教程
  • Linux设备驱动开发之摄像头驱动移植(OV5640)
  • 尚硅谷爬虫note14
  • 【后端开发面试题】每日 3 题(九)
  • PDF 分割工具
  • 请谈谈 HTTP 中的重定向,如何处理 301 和 302 重定向?
  • 在Go语言中,判断变量是否为“空”(零值或未初始化状态)的方法总结
  • K8s 1.27.1 实战系列(六)Pod
  • 穿梭车与机器人协同作业:构建高效仓储物流系统的关键
  • 计算机网络:计算机网络的概念
  • 279.完全平方数
  • PHP的Workerman 和 Java 常驻内存的相似性
  • 中国视频生成 AI 开源潮:腾讯阿里掀技术普惠革命,重塑内容创作格局
  • UE5从入门到精通之如何创建自定义插件
  • 分布式锁—5.Redisson的读写锁二
  • 人工智能引领技术革命:ChatGPT与深度学习的突破性进展
  • 【瞎折腾/ragflow】构建docker镜像并部署使用ragflow
  • MySQL语法总结
  • hadoop集群环境配置