opengauss2.1.0-oe2203sp3数据库容器“[FAILED] Failed to start User Login Management.”报错信息处理

26 篇文章 0 订阅
18 篇文章 0 订阅

opengauss2.1.0-oe2203sp3数据库容器运行正常,但检查其日志,发现存在“[FAILED] Failed to start User Login Management.”报错信息,本文记录了处理过程。

一、报错信息

[root@localhost ~]# docker logs opengauss                                      
4ec583f58a8c login: systemd v249-63.oe2203sp3 running in system mode (+PAM +AUDIT +SELINUX -APPARMOR +IMA -SMACK +SECCOMP +GCRYPT +GNUTLS -OPENSSL +ACL +BLKID -CURL -ELFUTILS -FIDO2 +IDN2 -IDN -IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY +P11KIT -QRENCODE +BZIP2 +LZ4 +XZ +ZLIB -ZSTD +XKBCOMMON +UTMP +SYSVINIT default-hierarchy=legacy)
Detected virtualization docker.
Detected architecture x86-64.
systemd v249-63.oe2203sp3 running in system mode (+PAM +AUDIT +SELINUX -APPARMOR +IMA -SMACK +SECCOMP +GCRYPT +GNUTLS -OPENSSL +ACL +BLKID -CURL -ELFUTILS -FIDO2 +IDN2 -IDN -IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY +P11KIT -QRENCODE +BZIP2 +LZ4 +XZ +ZLIB -ZSTD +XKBCOMMON +UTMP +SYSVINIT default-hierarchy=legacy)
Detected virtualization docker.
Detected architecture x86-64.

Welcome to openEuler 22.03 (LTS-SP3)!

Queued start job for default target Graphical Interface.
[  OK  ] Created slice Slice /system/getty.
[  OK  ] Created slice Slice /system/modprobe.
[  OK  ] Started Dispatch Password …ts to Console Directory Watch.
[  OK  ] Started Forward Password R…uests to Wall Directory Watch.
[  OK  ] Set up automount Arbitrary…s File System Automount Point.
[  OK  ] Reached target Network is Online.
[  OK  ] Reached target Path Units.
[  OK  ] Reached target Remote File Systems.
[  OK  ] Reached target Slice Units.
[  OK  ] Reached target Swaps.
[  OK  ] Reached target Local Verity Integrity Protected Volumes.
[  OK  ] Listening on Process Core Dump Socket.
[  OK  ] Listening on initctl Compatibility Named Pipe.
[  OK  ] Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket.
[  OK  ] Reached target Socket Units.
         Mounting Huge Pages File System...
         Mounting Kernel Debug File System...
         Mounting Kernel Trace File System...
         Mounting Temporary Directory /tmp...
         Starting Load Kernel Module configfs...
         Starting Load Kernel Module fuse...
systemd-journald.service: unit configures an IP firewall, but the local system does not support BPF/cgroup firewalling.
(This warning is only shown for the first unit using IP firewalling.)
         Starting Journal Service...
         Starting Apply Kernel Variables...
[  OK  ] Mounted Huge Pages File System.
[  OK  ] Mounted Temporary Directory /tmp.
modprobe@fuse.service: Deactivated successfully.
[  OK  ] Finished Load Kernel Module fuse.
[  OK  ] Reached target Local File Systems.
         Mounting FUSE Control File System...
[  OK  ] Mounted Kernel Trace File System.
modprobe@configfs.service: Deactivated successfully.
[  OK  ] Finished Load Kernel Module configfs.
[  OK  ] Mounted FUSE Control File System.
         Mounting Kernel Configuration File System...
[  OK  ] Mounted Kernel Debug File System.
[  OK  ] Mounted Kernel Configuration File System.
[  OK  ] Finished Apply Kernel Variables.
[  OK  ] Started Journal Service.
         Starting Flush Journal to Persistent Storage...
[  OK  ] Finished Flush Journal to Persistent Storage.
         Starting Create Volatile Files and Directories...
[  OK  ] Finished Create Volatile Files and Directories.
         Starting Record System Boot/Shutdown in UTMP...
[  OK  ] Finished Record System Boot/Shutdown in UTMP.
[  OK  ] Reached target System Initialization.
[  OK  ] Started dnf makecache --timer.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Reached target Basic System.
[  OK  ] Reached target Timer Units.
         Starting Update RTC With System Clock...
[  OK  ] Started Start openGauss server.
         Starting User Login Management...
         Starting Permit User Sessions...
[  OK  ] Finished Permit User Sessions.
[  OK  ] Started Console Getty.
[  OK  ] Started Getty on tty1.
[  OK  ] Reached target Login Prompts.
[  OK  ] Finished Update RTC With System Clock.
[FAILED] Failed to start User Login Management.
See 'systemctl status systemd-logind.service' for details.
[  OK  ] Reached target Multi-User System.
[  OK  ] Reached target Graphical Interface.
         Starting Record Runlevel Change in UTMP...
[  OK  ] Finished Record Runlevel Change in UTMP.

openEuler 22.03 (LTS-SP3)
Kernel 5.10.0-60.18.0.50.oe2203.x86_64 on an x86_64

二、报错分析

1、登录容器,查看报错原因
[root@localhost ~]# docker exec -it opengauss /bin/bash                            


Welcome to 5.10.0-60.18.0.50.oe2203.x86_64

System information as of time:  Mon Jan 15 17:31:33 CST 2024

System load:    0.11
Processes:      10
Memory used:    30.5%
Swap used:      2.5%
Usage On:       91%
Users online:   0


[root@4ec583f58a8c /]# systemctl disable systemd-logind
[root@4ec583f58a8c /]# systemctl status systemd-logind       
× systemd-logind.service - User Login Management
     Loaded: loaded (/usr/lib/systemd/system/systemd-logind.service; static)
     Active: failed (Result: exit-code) since Mon 2024-01-15 17:31:15 CST; 31s ago
       Docs: man:sd-login(3)
             man:systemd-logind.service(8)
             man:logind.conf(5)
             man:org.freedesktop.login1(5)
   Main PID: 31 (code=exited, status=1/FAILURE)

Jan 15 17:31:15 4ec583f58a8c systemd[1]: systemd-logind.service: Failed to schedule restart job: Unit dbus.socket not found.
Jan 15 17:31:15 4ec583f58a8c systemd[1]: systemd-logind.service: Failed with result 'exit-code'.
[root@4ec583f58a8c /]# systemctl status dbus
Unit dbus.service could not be found.
2、报错分析   

 提示“systemd-logind.service: Failed to schedule restart job: Unit dbus.socket not found.”,这个错误信息表明在尝试重新启动systemd-logind.service时遇到了问题,具体是因为找不到dbus.socket单元。dbus.socket是D-Bus系统的一个组成部分,用于进程间通信。应该是容器部署过程中少装了dbus服务。

三、问题解决

1、安装dbus

[root@4ec583f58a8c /]# yum install dbus
OS                                                                                  4.1 kB/s | 1.8 kB     00:00    
everything                                                                          1.0 kB/s | 1.8 kB     00:01    
EPOL                                                                                5.4 kB/s | 1.8 kB     00:00    
debuginfo                                                                           4.8 kB/s | 1.8 kB     00:00    
source                                                                              5.3 kB/s | 1.8 kB     00:00    
update                                                                              5.6 kB/s | 1.8 kB     00:00    
update-source                                                                       5.7 kB/s | 1.8 kB     00:00    
Dependencies resolved.
====================================================================================================================
 Package                     Architecture           Version                                Repository          Size
====================================================================================================================
Installing:
 dbus                        x86_64                 1:1.12.20-10.oe2203sp3                 OS                  62 k
Installing dependencies:
 dbus-common                 noarch                 1:1.12.20-10.oe2203sp3                 OS                  12 k
 dbus-daemon                 x86_64                 1:1.12.20-10.oe2203sp3                 OS                 172 k
 dbus-tools                  x86_64                 1:1.12.20-10.oe2203sp3                 OS                  27 k

Transaction Summary
====================================================================================================================
Install  4 Packages

Total download size: 273 k
Installed size: 769 k
Is this ok [y/N]: y
Downloading Packages:
(1/4): dbus-common-1.12.20-10.oe2203sp3.noarch.rpm                                   50 kB/s |  12 kB     00:00    
(2/4): dbus-1.12.20-10.oe2203sp3.x86_64.rpm                                         223 kB/s |  62 kB     00:00    
(3/4): dbus-tools-1.12.20-10.oe2203sp3.x86_64.rpm                                   320 kB/s |  27 kB     00:00    
(4/4): dbus-daemon-1.12.20-10.oe2203sp3.x86_64.rpm                                  503 kB/s | 172 kB     00:00    
--------------------------------------------------------------------------------------------------------------------
Total                                                                               402 kB/s | 273 kB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                            1/1 
  Installing       : dbus-tools-1:1.12.20-10.oe2203sp3.x86_64                                                   1/4 
  Installing       : dbus-common-1:1.12.20-10.oe2203sp3.noarch                                                  2/4 
  Running scriptlet: dbus-daemon-1:1.12.20-10.oe2203sp3.x86_64                                                  3/4 
  Installing       : dbus-daemon-1:1.12.20-10.oe2203sp3.x86_64                                                  3/4 
  Running scriptlet: dbus-daemon-1:1.12.20-10.oe2203sp3.x86_64                                                  3/4 
  Installing       : dbus-1:1.12.20-10.oe2203sp3.x86_64                                                         4/4 
  Running scriptlet: dbus-1:1.12.20-10.oe2203sp3.x86_64                                                         4/4 
  Verifying        : dbus-1:1.12.20-10.oe2203sp3.x86_64                                                         1/4 
  Verifying        : dbus-common-1:1.12.20-10.oe2203sp3.noarch                                                  2/4 
  Verifying        : dbus-daemon-1:1.12.20-10.oe2203sp3.x86_64                                                  3/4 
  Verifying        : dbus-tools-1:1.12.20-10.oe2203sp3.x86_64                                                   4/4 

Installed:
  dbus-1:1.12.20-10.oe2203sp3.x86_64                       dbus-common-1:1.12.20-10.oe2203sp3.noarch               
  dbus-daemon-1:1.12.20-10.oe2203sp3.x86_64                dbus-tools-1:1.12.20-10.oe2203sp3.x86_64                

Complete!
[root@4ec583f58a8c /]# systemctl restart systemd-logind                         
[root@4ec583f58a8c /]# systemctl status systemd-logind       
● systemd-logind.service - User Login Management
     Loaded: loaded (/usr/lib/systemd/system/systemd-logind.service; static)
     Active: active (running) since Mon 2024-01-15 17:34:19 CST; 6s ago
       Docs: man:sd-login(3)
             man:systemd-logind.service(8)
             man:logind.conf(5)
             man:org.freedesktop.login1(5)
   Main PID: 289 (systemd-logind)
     Status: "Processing requests..."
     CGroup: /docker/4ec583f58a8cdb0ae4136d46f8610aed5946f901b9784e712142790fa846ebdf/system.slice/systemd-logind.service
             └─ 289 /usr/lib/systemd/systemd-logind

Jan 15 17:34:19 4ec583f58a8c systemd[1]: Starting User Login Management...
Jan 15 17:34:19 4ec583f58a8c systemd-logind[289]: New seat seat0.
Jan 15 17:34:19 4ec583f58a8c systemd[1]: Started User Login Management.
2、退出容器,重置容器日志
[root@4ec583f58a8c /]# exit
exit
[root@localhost ~]# echo > $(docker inspect --format='{{.LogPath}}'  opengauss)
[root@localhost ~]# docker logs opengauss
[root@localhost ~]#
3、重启容器,察看问题解决情况
[root@localhost ~]# docker restart opengauss                                      
opengauss
[root@localhost ~]# docker logs opengauss                                      
4ec583f58a8c login: systemd v249-63.oe2203sp3 running in system mode (+PAM +AUDIT +SELINUX -APPARMOR +IMA -SMACK +SECCOMP +GCRYPT +GNUTLS -OPENSSL +ACL +BLKID -CURL -ELFUTILS -FIDO2 +IDN2 -IDN -IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY +P11KIT -QRENCODE +BZIP2 +LZ4 +XZ +ZLIB -ZSTD +XKBCOMMON +UTMP +SYSVINIT default-hierarchy=legacy)
Detected virtualization docker.
Detected architecture x86-64.
/usr/lib/systemd/system/dbus.socket:5: ListenStream= references a path below legacy directory /var/run/, updating /var/run/dbus/system_bus_socket → /run/dbus/system_bus_socket; please update the unit file accordingly.
systemd v249-63.oe2203sp3 running in system mode (+PAM +AUDIT +SELINUX -APPARMOR +IMA -SMACK +SECCOMP +GCRYPT +GNUTLS -OPENSSL +ACL +BLKID -CURL -ELFUTILS -FIDO2 +IDN2 -IDN -IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY +P11KIT -QRENCODE +BZIP2 +LZ4 +XZ +ZLIB -ZSTD +XKBCOMMON +UTMP +SYSVINIT default-hierarchy=legacy)
Detected virtualization docker.
Detected architecture x86-64.

Welcome to openEuler 22.03 (LTS-SP3)!

/usr/lib/systemd/system/dbus.socket:5: ListenStream= references a path below legacy directory /var/run/, updating /var/run/dbus/system_bus_socket → /run/dbus/system_bus_socket; please update the unit file accordingly.
Queued start job for default target Graphical Interface.
[  OK  ] Created slice Slice /system/getty.
[  OK  ] Created slice Slice /system/modprobe.
[  OK  ] Created slice User and Session Slice.
[  OK  ] Started Dispatch Password …ts to Console Directory Watch.
[  OK  ] Started Forward Password R…uests to Wall Directory Watch.
[  OK  ] Set up automount Arbitrary…s File System Automount Point.
[  OK  ] Reached target Network is Online.
[  OK  ] Reached target Path Units.
[  OK  ] Reached target Remote File Systems.
[  OK  ] Reached target Slice Units.
[  OK  ] Reached target Swaps.
[  OK  ] Reached target Local Verity Integrity Protected Volumes.
[  OK  ] Listening on Process Core Dump Socket.
[  OK  ] Listening on initctl Compatibility Named Pipe.
[  OK  ] Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket.
         Mounting Huge Pages File System...
         Mounting Kernel Debug File System...
         Mounting Kernel Trace File System...
         Mounting Temporary Directory /tmp...
         Starting Load Kernel Module configfs...
         Starting Load Kernel Module drm...
         Starting Load Kernel Module fuse...
systemd-journald.service: unit configures an IP firewall, but the local system does not support BPF/cgroup firewalling.
(This warning is only shown for the first unit using IP firewalling.)
         Starting Journal Service...
         Starting Apply Kernel Variables...
[  OK  ] Mounted Huge Pages File System.
[  OK  ] Mounted Kernel Trace File System.
[  OK  ] Mounted Temporary Directory /tmp.
[  OK  ] Reached target Local File Systems.
modprobe@fuse.service: Deactivated successfully.
[  OK  ] Finished Load Kernel Module fuse.
         Mounting FUSE Control File System...
modprobe@configfs.service: Deactivated successfully.
[  OK  ] Finished Load Kernel Module configfs.
         Mounting Kernel Configuration File System...
[  OK  ] Mounted Kernel Debug File System.
modprobe@drm.service: Deactivated successfully.
[  OK  ] Finished Load Kernel Module drm.
[  OK  ] Mounted Kernel Configuration File System.
[  OK  ] Mounted FUSE Control File System.
[  OK  ] Finished Apply Kernel Variables.
[  OK  ] Started Journal Service.
         Starting Flush Journal to Persistent Storage...
[  OK  ] Finished Flush Journal to Persistent Storage.
         Starting Create Volatile Files and Directories...
[  OK  ] Finished Create Volatile Files and Directories.
         Starting Record System Boot/Shutdown in UTMP...
[  OK  ] Finished Record System Boot/Shutdown in UTMP.
[  OK  ] Reached target System Initialization.
[  OK  ] Started dnf makecache --timer.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Reached target Timer Units.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Reached target Socket Units.
[  OK  ] Reached target Basic System.
         Starting D-Bus System Message Bus...
         Starting Update RTC With System Clock...
[  OK  ] Started Start openGauss server.
         Starting User Login Management...
         Starting Permit User Sessions...
[  OK  ] Started D-Bus System Message Bus.
[  OK  ] Finished Permit User Sessions.
[  OK  ] Started Console Getty.
[  OK  ] Started Getty on tty1.
[  OK  ] Reached target Login Prompts.
[  OK  ] Finished Update RTC With System Clock.
[  OK  ] Started User Login Management.
[  OK  ] Reached target Multi-User System.
[  OK  ] Reached target Graphical Interface.
         Starting Record Runlevel Change in UTMP...
[  OK  ] Finished Record Runlevel Change in UTMP.

openEuler 22.03 (LTS-SP3)
Kernel 5.10.0-60.18.0.50.oe2203.x86_64 on an x86_64

[root@localhost ~]# 

 可以看到,容器日志已完全正常,没有报错信息了。

  • 8
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
apache-atlas-2.1.0-hive-hook.tar.gz是Apache Atlas项目中的一个软件包。Apache Atlas是一个开源的数据治理和元数据框架,用于收集、集成、索引和搜索数据资产。它提供了一个统一的视图来管理企业中的所有数据资产,包括表、列、模式、实体和关系等。而apache-atlas-2.1.0-hive-hook.tar.gz是Atlas项目为了与Hive集成而提供的一个插件。 Hive是一个构建在Hadoop之上的数据仓库基础设施工具,用于处理大规模的结构化数据。它提供了类似于SQL的查询和分析功能,可以将数据批量导入、导出和查询。通过与Apache Atlas的集成,可以实现对Hive中数据资产的元数据管理和治理。 在实际的应用中,apache-atlas-2.1.0-hive-hook.tar.gz可以被部署到Hive的服务器上,并与Hive的插件机制进行集成。通过配置Hive的元数据存储URL、用户名和密码等信息,Atlas可以自动从Hive中提取元数据,并将其索引到Atlas的元数据仓库中。这样,用户可以在Atlas的界面中浏览和搜索Hive中的表、列和关系,并进行数据资产的管理和治理。 此外,apache-atlas-2.1.0-hive-hook.tar.gz还提供了一些其他功能,如基于分类标签的权限控制、数据血缘追踪、数据脱敏等。通过这些功能,用户可以更好地理解和管理Hive中的数据资产,提高数据治理的效率和质量。 总之,apache-atlas-2.1.0-hive-hook.tar.gz是Apache Atlas项目中用于与Hive集成的插件,通过它可以实现对Hive中数据资产的元数据管理和数据治理。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

代先生.重庆

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值