Wind River Support Network

HomeDefectsLIN10-2071
Fixed

LIN10-2071 : nscd: some "No such file or directory" messages when start nscd.service

Created: Sep 27, 2017    Updated: Feb 11, 2019
Resolved Date: Dec 21, 2017
Found In Version: 10.17.41.1
Fix Version: 10.17.41.3
Severity: Standard
Applicable for: Wind River Linux LTS 17
Component/s: Userspace

Description

1. Steps to reproduce:

1) ./wrlinux-10/setup.sh --machine qemux86-64 --kernel standard --templates  feature/target-toolchain --dl-layers 
. ./environment-setup-x86_64-wrlinuxsdk-linux
. ./oe-init-build-env
bitbake wrlinux-image-glibc-std

2) boot qemu

3) # systemctl start nscd.service
    # systemctl status nscd.service 

Problem Description
======================
some "No such file or directory" messages when start nscd.service

log:
root@qemux86-64:/var/log# systemctl status nscd.service
\u25cf nscd.service - Name Service Cache Daemon
   Loaded: loaded (/lib/systemd/system/nscd.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2017-09-22 06:36:45 UTC; 5 days ago
  Process: 161 ExecStart=/usr/sbin/nscd (code=exited, status=0/SUCCESS)
 Main PID: 165 (nscd)
   CGroup: /system.slice/nscd.service
           \u2514\u2500165 /usr/sbin/nscd

Sep 27 07:56:25 qemux86-64 nscd[165]: 165 checking for monitored file `/var/db/passwd.db': No such file or directory
Sep 27 07:56:40 qemux86-64 nscd[165]: 165 checking for monitored file `/var/db/passwd.db': No such file or directory
Sep 27 08:00:10 qemux86-64 nscd[165]: 165 checking for monitored file `/var/db/passwd.db': No such file or directory
Sep 27 08:00:25 qemux86-64 nscd[165]: 165 checking for monitored file `/var/db/passwd.db': No such file or directory
Sep 27 08:02:19 qemux86-64 nscd[165]: 165 monitored file `/etc/resolv.conf` was deleted, removing watch
Sep 27 08:02:19 qemux86-64 nscd[165]: 165 monitored file `/etc/resolv.conf` was created, adding watch
Sep 27 08:02:19 qemux86-64 nscd[165]: 165 monitored file `/etc/resolv.conf` was written to
Sep 27 08:05:27 qemux86-64 nscd[165]: 165 checking for monitored file `/var/db/group.db': No such file or directory
Sep 27 08:05:42 qemux86-64 nscd[165]: 165 checking for monitored file `/var/db/group.db': No such file or directory
Sep 27 08:10:27 qemux86-64 nscd[165]: 165 checking for monitored file `/var/db/passwd.db': No such file or directory

Workaround

Disable the check-files in nscd.conf:
$ grep check-files /etc/nscd.conf
#       check-files             <service> <yes|no>
        check-files             passwd          no
        check-files             group           no
        check-files             hosts           no
        check-files             services        no
        check-files             netgroup        no

Steps to Reproduce

1, /lpg-build/cdc/fast_prod/wrlinux100/WRL100_GIT/wrlinux-10/setup.sh --machine qemux86-64 --kernel standard --templates feature/LAMP feature/acl feature/gcc-sanitizers feature/ipv6 feature/mariadb feature/mysql-odbc feature/system-stats feature/target-toolchain feature/test feature/test feature/xfce --dl-layers --layers meta-filesystems meta-xfce
. ./environment-setup-x86_64-wrlinuxsdk-linux
. ./oe-init-build-env
bitbake wrlinux-image-glibc-std
2, boot qemu
3, # systemctl start nscd.service
    # systemctl status nscd.service 

Other Downloads


Live chat
Online