Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] nscd initscript fails to start
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
cfgauss
l33t
l33t


Joined: 18 May 2005
Posts: 688
Location: USA

PostPosted: Mon Oct 15, 2012 6:03 pm    Post subject: [SOLVED] nscd initscript fails to start Reply with quote

I have sys-libs/glibc-2.15-r2 installed (which evidently installed /etc/init.d/nscd) on an amd64 system. The nscd initscript fails with this error in /var/log/messages:
Code:
Oct 15 12:52:22 localhost /etc/init.d/nscd[16796]: start-stop-daemon: caught an interrupt
Oct 15 12:52:22 localhost /etc/init.d/nscd[16796]: start-stop-daemon: /usr/sbin/nscd died
Oct 15 12:52:22 localhost nscd: 16798 cannot stat() file `/var/db/passwd.db': No such file or directory
Oct 15 12:52:22 localhost nscd: 16798 cannot stat() file `/var/db/group.db': No such file or directory
Oct 15 12:52:22 localhost /etc/init.d/nscd[16784]: ERROR: nscd failed to start

Any debugging hints would be gratefully received.

[SOLVED] Both consolekit and nscd failed to start (see below) with errors from the start-stop-daemon of openrc . Yesterday I emerged openrc-0.11.5 and all is well with both. [/SOLVED]


Last edited by cfgauss on Sun Nov 25, 2012 2:12 pm; edited 1 time in total
Back to top
View user's profile Send private message
trubicoid
Tux's lil' helper
Tux's lil' helper


Joined: 04 Aug 2009
Posts: 79

PostPosted: Fri Oct 26, 2012 11:22 am    Post subject: Reply with quote

try to edit /etc/nscd.conf and comment all the passwd and group options, I don't think you are using them anyway
Back to top
View user's profile Send private message
cfgauss
l33t
l33t


Joined: 18 May 2005
Posts: 688
Location: USA

PostPosted: Sat Oct 27, 2012 5:21 pm    Post subject: Reply with quote

trubicoid wrote:
try to edit /etc/nscd.conf and comment all the passwd and group options, I don't think you are using them anyway

I don't think I am, either. So I commented them out. Now I'm left with this in /var/log/messages:
Code:
Oct 27 12:11:47 localhost /etc/init.d/nscd[2799]: start-stop-daemon: caught an interrupt
Oct 27 12:11:47 localhost /etc/init.d/nscd[2799]: start-stop-daemon: /usr/sbin/nscd died
Oct 27 12:11:47 localhost /etc/init.d/nscd[2784]: ERROR: nscd failed to start

Any ideas?
Back to top
View user's profile Send private message
trubicoid
Tux's lil' helper
Tux's lil' helper


Joined: 04 Aug 2009
Posts: 79

PostPosted: Mon Oct 29, 2012 12:30 pm    Post subject: Reply with quote

ok, the warnings I had are gone. you have different problem.

have you tried to re-emerge glibc? my glibc version is 2.15-r3 on amd64

do you have exotic CFLAGS, etc?

have you tried revdep-rebuild?

what does nscd do, if you run directly from command-line? does it complain about some libraries?
Back to top
View user's profile Send private message
cfgauss
l33t
l33t


Joined: 18 May 2005
Posts: 688
Location: USA

PostPosted: Sun Nov 11, 2012 11:07 pm    Post subject: Reply with quote

trubicoid wrote:
have you tried to re-emerge glibc? my glibc version is 2.15-r3 on amd64
do you have exotic CFLAGS, etc?
have you tried revdep-rebuild?
what does nscd do, if you run directly from command-line? does it complain about some libraries?

I re-emerged glibc-2.15-r3 on my amd64 system but this didn't help.

In /etc/make.conf for my Intel quad-core system:
Code:
CFLAGS="-march=nocona -O2 -pipe"

I revdep-rebuild weekly when I emerge.

Code:
# /usr/sbin/nscd
/usr/sbin/nscd: already running

but rc-status shows nscd as stopped.

In fact, rc-status shows both nscd and consolekit as stopped even though /var/run has entries for both nscd and ConsoleKit.
In /var/log/rc.log:
Code:
* Starting ConsoleKit daemon ...
 * start-stop-daemon: did not create a valid pid in `/var/run/ConsoleKit/pid'
 [ !! ]
 * ERROR: consolekit failed to start
...
* Starting Name Service Cache Daemon ...
 * start-stop-daemon: caught an interrupt
 * start-stop-daemon: /usr/sbin/nscd died
 [ !! ]
 * ERROR: nscd failed to start

I have the stable version openrc-0.9.8.4 which provides start-stop-daemon.
Would emerging an unstable version be a solution to my consolekit and nscd problems?
Back to top
View user's profile Send private message
trubicoid
Tux's lil' helper
Tux's lil' helper


Joined: 04 Aug 2009
Posts: 79

PostPosted: Wed Nov 28, 2012 10:08 am    Post subject: Reply with quote

cfgauss wrote:

Code:
# /usr/sbin/nscd
/usr/sbin/nscd: already running

but rc-status shows nscd as stopped.


and is it really ruining, or is there only a stale pid file in /var/run ?
Code:
ps aux | grep nscd


if it is not running, remove the pid file and try again
if it is running just kill it and try to run again

cfgauss wrote:

I have the stable version openrc-0.9.8.4 which provides start-stop-daemon.
Would emerging an unstable version be a solution to my consolekit and nscd problems?


my stable openrc is 0.11.5 now
Back to top
View user's profile Send private message
lkraav
Tux's lil' helper
Tux's lil' helper


Joined: 13 Oct 2004
Posts: 129
Location: Estonia

PostPosted: Mon Jan 21, 2013 9:11 pm    Post subject: Reply with quote

Make sure NOT to have --background in the start-stop-daemon --start line.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum