社区版部署过程中报[ERROR] OBD-1007错误The value of the ulimit parameter "open files" must not be less than 20000 (Current value: 1024)

【 使用环境 】测试环境
【 OB or 其他组件 】(OceanBase All in One)4.5.0
【 使用版本 】社区版 4.5.0
【问题描述】部署过程中,安装执行命令obd demo 时报OBD-1007错误。按照系统提示1、已执行echo -e “* soft nofile 20000\n* hard nofile 20000” >> /etc/security/limits.d/nofile.conf,执行前nofile.conf里已有soft nofile 655350 hard nofile 655350
2、确认/etc/ssh/sshd_config里 UsePAM 是yes。
再次执行命令obd demo 报同样的错误。
【复现路径】问题出现前后相关操作
【附件及日志】推荐使用OceanBase敏捷诊断工具obdiag收集诊断信息,详情参见链接(右键跳转查看):
[ERROR] OBD-1007: (127.0.0.1) The value of the ulimit parameter “open files” must not be less than 20000 (Current value: 1024), Please execute echo -e "* soft nofile 20000\n* hard nofile 20000" >> /etc/security/limits.d/nofile.conf as root in 127.0.0.1. if it dosen’t work, please check whether UsePAM is yes in /etc/ssh/sshd_config.
[WARN] OBD-1007: (127.0.0.1) The recommended number of stack size is unlimited (Current value: 8192)
[WARN] OBD-1012: (127.0.0.1) clog and data use the same disk (/run)
You can use the obd cluster init4env demo command to automatically configure system parametersSee> 【SOP系列 22 】——故障诊断第一步(自助诊断和诊断信息收集)

【备注】基于 LLM 和开源文档 RAG 的论坛小助手已开放测试,在发帖时输入 [@论坛小助手] 即可召唤小助手,欢迎试用!

1 个赞

内核参数问题,执行下面echo命令即可
Please execute echo -e "* soft nofile 20000\n* hard nofile 20000" >> /etc/security/limits.d/nofile.conf as root in 127.0.0.1. if it dosen’t work, please check whether UsePAM is yes in /etc/ssh/sshd_config.

照着执行了
按照系统提示已执行echo -e “* soft nofile 20000\n* hard nofile 20000” >> /etc/security/limits.d/nofile.conf,执行前nofile.conf里已有soft nofile 655350 hard nofile 655350
2、确认/etc/ssh/sshd_config里 UsePAM 是yes。
再次执行命令obd demo 报同样的错误。

参考这个帖子解决方法试一下呢

1 个赞

修改系统参数ulimit -n 655350;ulimit -s unlimited;上述错误没有了,又报了OBD-2002:Failed to start 127.0.0.1 observer。

OBD-2002:failed to start x.x.x.x observer

错误原因:出现该报错的原因有很多,常见的原因有以下两种。

  • memory_limit 小于 8G。
  • system_memory 太大或太小。通常情况下 memory_limt/3 ≤ system_memory ≤ memory_limt/2

从哪里查看memory_limit和system_memory
我的服务器配置:CPU:2颗鲲鹏920处理器, 32 核 2.6GHz 32 线程内存:4条 DDR4 32GB内存,总容量128GB
硬盘:2 块 480GB SSD,3块8TB HDD

虚拟机?