View Issue Details

IDProjectCategoryView StatusLast Update
0017544CentOS-8systemdpublic2020-06-27 22:47
Reporterpetersch 
PrioritynormalSeveritymajorReproducibilityalways
Status newResolutionopen 
Product Version8.2.2004 
Target VersionFixed in Version 
Summary0017544: systemd fails to start User Manager service under NIS authentication
DescriptionOn a system under NIS (configured with "authselect select nis" remote login for nis users via ssh
gets delayed by around 25 sec, but opens a normal session after the delay.

systemd fails to start the corresponding user service:

# systemctl --failed
  UNIT LOAD ACTIVE SUB DESCRIPTION
* user@10042.service loaded failed failed User Manager for UID 10042

At this point a manual start also fails:
[root ~]# systemctl start user@10042.service
Job for user@10042.service failed because the service did not take the steps required by its unit configuration.
See "systemctl status user@10042.service" and "journalctl -xe" for details.

Messages shown by "systemctl status user@10042.service":

systemd[1]: Starting User Manager for UID 10042...
systemd[563]: pam_unix(systemd-user:session): session opened for user username by (uid=0)
systemd[1]: user@10042.service: Processes still around after SIGKILL. Ignoring.
systemd[1]: user@10042.service: Failed with result 'protocol'.
systemd[1]: Failed to start User Manager for UID 10042.
systemd[1183]: Failed to create /user.slice/user-10042.slice/user@10042.service/init.scope control group: Permission denied
systemd[1183]: Failed to allocate manager object: Permission denied
systemd[808]: Failed to create /user.slice/user-10042.slice/user@10042.service/init.scope control group: Permission denied
systemd[808]: Failed to allocate manager object: Permission denied
systemd[809]: pam_unix(systemd-user:session): session closed for user username





Steps To Reproduceremote login via ssh
Additional InformationOutput from "strace systemctl start user@10042.service"

...
recvmsg(3, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="l\4\1\1\251\2\0\0\34\0\0\0\276\0\0\0\1\1o\0005\0\0\0", iov_len=24}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 24
recvmsg(3, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="/org/freedesktop/systemd1/unit/u"..., iov_len=865}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 865
recvmsg(3, {msg_namelen=0}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
clock_gettime(CLOCK_MONOTONIC, {tv_sec=1748, tv_nsec=49590580}) = 0
ppoll([{fd=3, events=POLLIN}], 1, {tv_sec=24, tv_nsec=999264000}, NULL, 8) = 1 ([{fd=3, revents=POLLIN}], left {tv_sec=24, tv_nsec=999153650})
recvmsg(3, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="l\4\1\1\34\3\0\0\35\0\0\0\276\0\0\0\1\1o\0005\0\0\0", iov_len=24}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 24
recvmsg(3, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="/org/freedesktop/systemd1/unit/u"..., iov_len=980}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 980
recvmsg(3, {msg_namelen=0}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
clock_gettime(CLOCK_MONOTONIC, {tv_sec=1748, tv_nsec=50084503}) = 0
ppoll([{fd=3, events=POLLIN}], 1, {tv_sec=24, tv_nsec=998770000}, NULL, 8) = 1 ([{fd=3, revents=POLLIN}], left {tv_sec=24, tv_nsec=998421349})
recvmsg(3, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="l\4\1\1O\0\0\0\36\0\0\0\231\0\0\0\1\1o\0\31\0\0\0", iov_len=24}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 24
recvmsg(3, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="/org/freedesktop/systemd1\0\0\0\0\0\0\0"..., iov_len=231}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 231
recvmsg(3, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="l\2\1\1\21\0\0\0\37\0\0\0007\0\0\0\5\1u\0\4\0\0\0", iov_len=24}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 24
recvmsg(3, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\7\1s\0\30\0\0\0org.freedesktop.systemd1"..., iov_len=65}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 65
writev(2, [{iov_base="Job for user@10042.service faile"..., iov_len=112}, {iov_base="\n", iov_len=1}], 2Job for user@10042.service failed because the service did not take the steps required by its unit configuration.
) = 113
TagsCentos8 NIS systemd usersession

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2020-06-27 22:47 petersch New Issue
2020-06-27 22:47 petersch Tag Attached: Centos8 NIS systemd usersession