LSF提示userName <thesre>. getpwnam() failed:Bad user ID

Posted 王万林 Ben

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了LSF提示userName <thesre>. getpwnam() failed:Bad user ID相关的知识,希望对你有一定的参考价值。

报错:

LSF提示userName <thesre>. getpwnam() failed:Bad user ID

原因:

由于LDAP在LSF进程之后启动,LSF无法获取到LDAP用户信息。参考:Jobs stuck pending on newly provisioned or diskless nodes using LDAP for user authentication. https://www.ibm.com/support/pages/jobs-stuck-pending-newly-provisioned-or-diskless-nodes-using-ldap-user-authentication

解决:

在出现这样问题的服务器,执行

badmin hrestart

摘抄,以防止源丢失:

Jobs stuck pending on newly provisioned or diskless nodes using LDAP for user authentication.

Troubleshooting

Problem

When provisioning diskless nodes via Xcat or the first time provisioning a diskfull node which are LDAP clients for user authentication, jobs may fail to start.

Symptom

Jobs fail to start with errors in the sbatchd log like:

acctMapTo: No valid user name found for job <240>, userName <username>. getpwnam() failed: Bad user ID

Cause

getpwnam() fails when LDAP client is started later in the startup process (after LSF).

Environment

Xcat provisioning of x86_64 machines that set up LDAP client for user authentication

Diagnosing The Problem

The aforementioned error message in the sbatchd log indicates the problem.

Resolving The Problem

For machines already experiencing the problem, restarting the sbatchd will resolve the issue:

badmin hrestart

Any stuck jobs will have to be killed and resubmitted.

To prevent the problem, LDAP client configuration needs to occur before LSF configuration in the startup sequence.

For example, if you are using the setupcnldaplient script to configure LDAP client and starting up using a postscript, then the setupcnldaplient script must be listed before the LSF startup script in the postbootscripts list. . In the following example the image profile is named "rhels7.1-x86_64-stateless-compute "and the only other postbootscipt being used is called KIT_phpc_lsf_config, which configures LSF.

# chdef -t osimage -o rhels7.1-x86_64-stateless-compute \\ postbootscripts=setupcnldaplient,KIT_phpc_lsf_config



There are other ways of ensuring the sequencing as well. In those cases the startup and configuration of the LDAP client must happen before the startup of LSF.

Document Information

More support for:
IBM Spectrum LSF

Software version:
10.1

Document number:
630603

Modified date:
17 June 2018

Close

Need support?

Contact IBM Privacy Terms of use Accessibility

以上是关于LSF提示userName <thesre>. getpwnam() failed:Bad user ID的主要内容,如果未能解决你的问题,请参考以下文章

Linux - C SHELL报错提示“Missing }.“

LSF - Cadence任务完毕了但显示RUN - daemon starter配置

本田带低速前车跟随(LSF)的主动巡航控制(ACC)图标亮了代表啥意思

NFS - LSF执行机跑VCS时报错No locks available

LSF - 基础 - 管理

LSF - LSF会使用什么cgroup子系统?