已关闭
【26.09-alpha】【x86】gdm服务启动后,日志中存在报错Failed to allocate UID for greeter: User 'gdm-greeter' not preallocated and sys tem lacks userdb #25
ga_beng_cui创建于  8月18日关闭于  21 天前
ga_beng_cui
ga_beng_cui成员
8月18日 创建

【缺陷描述】:请补充详细的缺陷问题现象描述

gdm服务启动后,日志中存在报错Failed to allocate UID for greeter: User 'gdm-greeter' not preallocated and sys tem lacks userdb

一、缺陷信息

gdm-49.3-2.oe2609

【缺陷所属的os版本】

openEuler-26.09

【内核版本】

6.6.0-163.0.0.1.oe2609

【缺陷所属软件及版本号】

gdm-49.3-2.oe2609

【环境信息】

软件信息

  • 跟缺陷所属软件相关的其它软件版本信息(如软件包构建失败由gcc引起,请填写gcc的版本号)

gdm-49.3-2.oe2609

【问题复现步骤】

  1. dnf install gdm
  2. systemctl start gdm

【实际结果】

服务启动日志中存在报错
8月 18 15:10:54 localhost.localdomain gdm[4005]: Gdm: Failed to lock passwd database, ignoring: Permission denied
8月 18 15:10:54 localhost.localdomain gdm[4005]: Gdm: GdmDisplay: Failed to allocate UID for greeter: User 'gdm-greeter' not preallocated and sys
tem lacks userdb
8月 18 15:10:54 localhost.localdomain gdm[4005]: Gdm: GdmDisplay: Session never registered, fa

【期望结果】

服务启动成功,且日志无报错

【其他相关附件信息】

image.png

【缺陷详情及分析指导参考链接】

二、缺陷分析结构反馈
影响性分析说明:

缺陷严重等级:(Critical/High/Moderate/Low)

缺陷根因说明:

受影响版本排查(受影响/不受影响):
openEuler-20.03-LTS-SP4
openEuler-22.03-LTS-SP3
openEuler-22.03-LTS-SP4
openEuler-24.03-LTS
openEuler-24.03-LTS-SP1
openEuler-24.03-LTS-SP2

修复是否涉及abi变化(是/否):
openEuler-20.03-LTS-SP4
openEuler-22.03-LTS-SP3
openEuler-22.03-LTS-SP4
openEuler-24.03-LTS
openEuler-24.03-LTS-SP1
openEuler-24.03-LTS-SP2

likedislike
ga_beng_cuiga_beng_cui成员
8月18日 关联了里程碑:openEuler-26.09-DevStation-alpha
openeuler-ci-botopeneuler-ci-bot成员
8月18日 将 dwl301 设为负责人
openeuler-ci-botopeneuler-ci-bot成员
8月18日 修改了issue 的描述
openeuler-ci-botopeneuler-ci-bot成员
8月18日 添加了label:sig/Desktop
openeuler-ci-bot
openeuler-ci-bot成员
8月18日 评论:

Welcome To openEuler Community

Hey @ga_beng_cui , thanks for your contribution to the community.

Bot Usage Manual

I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands.

Contact Guide

If you have any questions, please contact the SIG: Desktop ,
and any of the maintainers: @cherry530, @dou33, @dwl301, @lipingEmmaSiguyi, @lostway1, @lw520203, @openbot, @robert-xingwang, @small_leek, @starlet-dx, @t_feng, @technology208, @wangxp006, @weidongkl, @yanan-rock ,
and any of the committers: @dwl301, @lostway1, @small_leek, @zhang__3125 .

likedislike
openeuler-ci-bot
openeuler-ci-bot成员
8月18日 评论:

以下的要求不是强制性的, 未按模板评论时对issue无任何影响
issue处理注意事项:
1. 当前issue受影响的分支提交pr时, 须在pr描述中填写当前issue编号进行关联, 否则无法关闭当前issue;
2. 模板内容需要填写完整, 无论是受影响或者不受影响都需要填写完整内容,未引入的分支不需要填写, 否则无法关闭当前issue;
3. 以下为模板中需要填写完整的内容, 请复制到评论区回复, 注: 内容的标题名称(影响性分析说明, 缺陷严重等级, 受影响版本排查(受影响/不受影响), 修复是否涉及abi变化(是/否))不能省略,省略后defect-manager将无法正常解析填写内容.
评论区可能使用到的指令说明:

指令 指令说明 使用权限
/check-issue 触发defect-manager校验 不限
/reason xxx /reason +挂起或取消条件 不限

影响性分析说明:

缺陷严重等级:(Critical/High/Moderate/Low)

缺陷根因说明:

受影响版本排查(受影响/不受影响):

  1. openEuler-20.03-LTS-SP4:
  2. openEuler-22.03-LTS-SP3:
  3. openEuler-22.03-LTS-SP4:
  4. openEuler-24.03-LTS:
  5. openEuler-24.03-LTS-SP1:
  6. openEuler-24.03-LTS-SP2:

abi变化(是/否):

  1. openEuler-20.03-LTS-SP4:
  2. openEuler-22.03-LTS-SP3:
  3. openEuler-22.03-LTS-SP4:
  4. openEuler-24.03-LTS:
  5. openEuler-24.03-LTS-SP1:
  6. openEuler-24.03-LTS-SP2:

缺陷issue处理具体操作请参考:
https://atomgit.com/openeuler/cve-manager/blob/master/cve-vulner-manager/doc/md/defect-manager-manual.md
pr关联issue具体操作请参考:
https://docs.atomgit.com/docs/help/home/org_project/pullrequests/pr-related-issue

likedislike
openeuler-ci-botopeneuler-ci-bot成员
8月18日 添加了label:DEFECT/UNFIXED
lw5202031成员
28 天前 评论:

该问题本质上是动态用户问题。上游社区gdm使用的是动态用户机制,openEuler社区systemd明确禁用了动态用户机制,导致gdm创建用户失败
image.png
image.png

解决方案:
治标: 在gdm仓库中创建gdm(当前社区就是这么做的)与gdm-greeter(新增)
治本: 需社区systemd相关maintainer 分析开启动态用户机制影响面(当前测试过开启Duserdb选项后系统会有问题)---- 开源社区主流

likedislike
Llw5202031成员
28 天前 关联了pull request:update: 更新文件 gdm.sysusers add gdm-greeter user
openeuler-ci-botopeneuler-ci-bot成员
27 天前 关闭了 issue
openeuler-ci-botopeneuler-ci-bot成员
27 天前 issue状态由 待办的 改变为 已完成
openeuler-ci-botopeneuler-ci-bot成员
27 天前 删除了label:DEFECT/UNFIXED
openeuler-ci-bot
openeuler-ci-bot成员
27 天前 评论:

@dwl301 未对受影响版本排查/abi变化进行分析

likedislike
openeuler-ci-botopeneuler-ci-bot成员
27 天前 关联了pull request:[sync] PR-92: update: 更新文件 gdm.sysusers add gdm-greeter user
ga_beng_cui
ga_beng_cui成员
23 天前 评论:

使用最新版本验证,还存在以下报错日志
image.png
image.png

likedislike
ga_beng_cuiga_beng_cui成员
23 天前 issue状态由 已完成 改变为 待办的
此处折叠了5条事件消息 查看更多
Llw5202031成员
21 天前 删除了关联的pull request:[sync] PR-92: update: 更新文件 gdm.sysusers add gdm-greeter user
lw5202031成员
21 天前 评论:

使用最新版本验证,还存在以下报错日志
image.png
image.png

@ga_beng_cui

这个问题上述已明确:动态用户需社区system底层支持;当前解决方案为手动创建gdm-greeter能保证功能正常使用。Permission denied不影响功能

likedislike
Llw5202031成员
21 天前 关联了pull request:update: 更新文件 gdm.sysusers add gdm-greeter user
Llw5202031成员
21 天前 关联了pull request:[sync] PR-92: update: 更新文件 gdm.sysusers add gdm-greeter user
Llw5202031成员
21 天前 issue状态由 待办的 改变为 已完成
Llw5202031成员
21 天前 关闭了 issue
openeuler-ci-botopeneuler-ci-bot成员
21 天前 删除了label:DEFECT/UNFIXED
openeuler-ci-bot
openeuler-ci-bot成员
21 天前 评论:

@dwl301 未对受影响版本排查/abi变化进行分析

likedislike
openeuler-ci-bot
openeuler-ci-bot成员
21 天前 评论:

@dwl301 未对受影响版本排查/abi变化进行分析

likedislike
ga_beng_cuiga_beng_cui成员
20 天前 issue状态由 已完成 改变为 已验收
openeuler-ci-bot
openeuler-ci-bot成员
20 天前 评论:

@dwl301 未对受影响版本排查/abi变化进行分析

likedislike