rezza Veteran Posted October 31, 2003 Veteran Share Posted October 31, 2003 Well, this has just started happening to me. I emerged the new version of Abiword (2.0.1), and after the emerge, it just hung on "Caching service dependancies..." for hours. Normally that takes a few seconds. I ^C'ed out after a couple of hours, and tried something else which calls /sbin/depscan.sh - I added SSHD to my default runlevel with rc-update add sshd default. Again, it hung on caching service dependancies. For hours. So I killed that, too. Now, when I try running sshd, I get the following error: /etc/init.d/sshd start * Dependency info is missing! Please run * # /sbin/depscan.sh * to fix this. * Could not get dependency info for "sshd"! * Please run: * # /sbin/depscan.sh * to fix this. * Could not get dependency info for "sshd"! * Please run: * # /sbin/depscan.sh * to fix this. * Starting sshd... [ ok ] As you can see, the SSH server starts anyway, and it works fine, too (Abiword also works fine by the way). I'm just rather worried that other services won't work, and that I've just been lucky with sshd. My gentoo system has been running absolutely fine for over 6 months, with no sign of problems. This just started happening last night. So anyway, does anybody have any idea whats going wrong here? Link to comment Share on other sites More sharing options...
Chineseyes Posted October 31, 2003 Share Posted October 31, 2003 Uumm the answer is right in front of you the beauty of linux is it always gives you meaningful errors the error specifially tells you to execute "/sbin/depscan.sh" so do it Link to comment Share on other sites More sharing options...
rezza Veteran Posted October 31, 2003 Author Veteran Share Posted October 31, 2003 Uumm the answer is right in front of you the beauty of linux is it always gives you meaningful errorsthe error specifially tells you to execute "/sbin/depscan.sh" so do it Umm... the bit where I said it hangs at "Caching service dependancies..."? Thats where the script thats running at the moment invokes the /sbin/depscan.sh script. Things like emerge and rc-update call the depscan.sh script themselves anyway. It makes no difference if I run it manually - it still hangs in the same place. Link to comment Share on other sites More sharing options...
Chineseyes Posted October 31, 2003 Share Posted October 31, 2003 re-emerge your baselayout if that does not work just replace the code in your /etc/init.d/sshd file with the code below try again depend() { ? ? ? ?use logger dns ? ? ? ?need net } checkconfig() { ? ? ? ?if [ ! -e /etc/ssh/sshd_config ]; then ? ? ? ? ? ? ? ?eerror "You need an /etc/ssh/sshd_config file to run sshd" ? ? ? ? ? ? ? ?eerror "There is a sample file in ?/usr/share/doc/openssh" ? ? ? ? ? ? ? ?return 1 ? ? ? ?fi ? ? ? ?gen_keys } gen_keys() { ? ? ? ?if [ ! -e /etc/ssh/ssh_host_key ]; then ? ? ? ? ? ? ? ?einfo "Generating Hostkey..." ? ? ? ? ? ? ? ?/usr/bin/ssh-keygen -t rsa1 -b 1024 -f /etc/ssh/ssh_host_key -N '' ? ? ? ?fi ? ? ? ?if [ ! -e /etc/ssh/ssh_host_dsa_key ]; then ? ? ? ? ? ? ? ?einfo "Generating DSA-Hostkey..." ? ? ? ? ? ? ? ?/usr/bin/ssh-keygen -d -f /etc/ssh/ssh_host_dsa_key -N '' ? ? ? ?fi ? ? ? ?if [ ! -e /etc/ssh/ssh_host_rsa_key ]; then ? ? ? ? ? ? ? ?einfo "Generating RSA-Hostkey..." ? ? ? ? ? ? ? ?/usr/bin/ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N '' ? ? ? ?fi } start() { ? ? ? ?checkconfig || return 1 ? ? ? ?ebegin "Starting sshd" ? ? ? ?start-stop-daemon --start --quiet --pidfile /var/run/sshd.pid \ ? ? ? ? ? ? ? ?--startas /usr/sbin/sshd ? ? ? ?eend $? } stop() { ? ? ? ?ebegin "Stopping sshd" ? ? ? ?start-stop-daemon --stop --quiet --pidfile /var/run/sshd.pid ? ? ? ?eend $? } if that doesn't work I have one more thing but its involves more typing so try these first Link to comment Share on other sites More sharing options...
rezza Veteran Posted October 31, 2003 Author Veteran Share Posted October 31, 2003 (edited) Thats exactly what my /etc/init.d/sshd file looks like. What exactly do you mean by "re-emerge your baselayout"? thanks for the help so far (Y) EDIT: got it fixed now, thanks. Even though I was a little wary of rebooting, because I thought init would have all kinds of trouble bringing things up, I tried restarting anyway. Of course I got the * Dependency info is missing! Please run * # /sbin/depscan.sh * to fix this. error, and it hung there, but I just got ****ed off and forced a hard reset. And the first thing that happened was Caching service dependancies... [ok] hahaha. typical, eh? I was worried about nothing. Damn. Edited October 31, 2003 by rezza Link to comment Share on other sites More sharing options...
Recommended Posts