6 Star 0 Fork 11

src-openEuler / quota

 / 详情

【22.03 LTS SP1 RC1】【x86 】quota_nld.service服务启动之后,日志中会出现(偶现)“Can't open PID file /run/quota_nld.pid (yet?) after start: Operation not permitted”

已验收
缺陷
创建于  
2022-11-29 14:29

【标题描述】quota_nld.service服务启动之后,日志中会出现(偶现)“Can't open PID file /run/quota_nld.pid (yet?) after start: Operation not permitted”
【环境信息】
软件信息:
1) OS版本及分支:openEuler 22.03 (LTS-SP1)
2) 内核信息:5.10.0-126.0.0.66.oe2203sp1.x86_64
3) 发现问题的组件版本信息:quota-4.06-5.oe2203sp1.x86_64
【问题复现步骤】
具体操作步骤
dnf install -y quota
systemctl start quota_nld.service
systemctl status quota_nld.service
出现概率(是否必现,概率性错误):偶现
【预期结果】
服务启动成功,日志打印正常
【实际结果】
quota_nld.service服务启动之后,日志中会出现(偶现)“Can't open PID file /run/quota_nld.pid (yet?) after start: Operation not permitted”,如下图所示(建议在服务配置中增加等待时间):
输入图片说明
【附件信息】
比如系统message日志/组件日志、dump信息、图片等

评论 (3)

wenjun 创建了缺陷

Hi wenjunryou, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: Storage, and any of the maintainers: @louhongxiang , @linfeilong835 , @zero , @liuzhiqiang

openeuler-ci-bot 添加了
 
sig/Storage
标签
wenjun 负责人设置为swf504
wenjun 计划截止日期设置为2022-11-30
wenjun 计划开始日期设置为2022-11-29
wenjun 修改了描述
wenjun 修改了标题
wenjun 优先级设置为主要
lihaoxiang 通过src-openeuler/quota Pull Request !14任务状态待办的 修改为已完成

问题根本原因:
systemd在读取PID文件时,PID文件还未产生,故读取失败。
解决方案:
考虑到造成该情况是因为产生PID文件的过程是在daemon进程中执行的,因此quota_nld主进程退出时,daemon进程可能仍未创建PID文件。于是将创建PID文件放在quota_nld主进程中执行,保证程序退出时,PID文件必然存在。

【验收环境】
软件信息:
1) OS版本及分支:openEuler 22.03 (LTS-SP1)
2) 内核信息:5.10.0-132.0.0.73.oe2203sp1
3) 验收问题的组件版本信息:quota-4.06-6.oe2203sp1
【验收结果】
服务启动成功,日志打印正常,问题验收通过
输入图片说明

wenjun 任务状态已完成 修改为已验收

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(3)
5329419 openeuler ci bot 1632792936
1
https://gitee.com/src-openeuler/quota.git
git@gitee.com:src-openeuler/quota.git
src-openeuler
quota
quota

搜索帮助

14c37bed 8189591 565d56ea 8189591