View previous topic :: View next topic |
Author |
Message |
catphish n00b
Joined: 05 Apr 2003 Posts: 33
|
Posted: Fri Apr 18, 2003 12:18 pm Post subject: Crash during caching service dependancies |
|
|
I have been running a system with no problems for several weeks, however, following an unexplained crash, my system crashes during "caching service dependancies" section of boot. I have tried with two compiled versions of my kernel, with the same effect. No errors are displayed up to the point at which it freezes. |
|
Back to top |
|
|
acidreign Tux's lil' helper
Joined: 21 Apr 2002 Posts: 122 Location: Brisbane, Australia
|
Posted: Mon Apr 21, 2003 11:23 pm Post subject: Getting the same thing |
|
|
Did you get this sorted.. Man.. i feel stupid. _________________ Gentoo Server Project
http://www.subverted.net |
|
Back to top |
|
|
catphish n00b
Joined: 05 Apr 2003 Posts: 33
|
Posted: Mon Apr 21, 2003 11:28 pm Post subject: oh well |
|
|
no i didn't get it sorted. horrible as it may be i ended up wiping my whole disk and recompiling everything, but go on, tell me how simple fixing it would have been. |
|
Back to top |
|
|
sordid n00b
Joined: 22 Nov 2002 Posts: 26 Location: Brisbane, Australia
|
Posted: Sun Apr 27, 2003 11:34 am Post subject: |
|
|
I have this exact problem at the moment. I've run e2fsck on all my drives and it still hasnt fixed my problem.
I simply don't know what could have gone wrong. It just happened. |
|
Back to top |
|
|
catphish n00b
Joined: 05 Apr 2003 Posts: 33
|
Posted: Sun Apr 27, 2003 11:46 am Post subject: The bad news |
|
|
I never got this sorted, somebody suggested renaming the folder where the services are stored, i dont remember where it is off the top of my head, but that didn't work for me |
|
Back to top |
|
|
sordid n00b
Joined: 22 Nov 2002 Posts: 26 Location: Brisbane, Australia
|
Posted: Sun Apr 27, 2003 12:31 pm Post subject: |
|
|
I just tried nuking that folder. It doesn't want to recreate any of the directories that it should when the script is run. I am at a loose end on this one. |
|
Back to top |
|
|
sordid n00b
Joined: 22 Nov 2002 Posts: 26 Location: Brisbane, Australia
|
Posted: Sun Apr 27, 2003 12:40 pm Post subject: |
|
|
it seems to crash on that second gawk command in /sbin/depscan.sh |
|
Back to top |
|
|
catphish n00b
Joined: 05 Apr 2003 Posts: 33
|
Posted: Sun Apr 27, 2003 1:26 pm Post subject: Sorry |
|
|
I can't be of any more help with this, i gave up with it |
|
Back to top |
|
|
acidreign Tux's lil' helper
Joined: 21 Apr 2002 Posts: 122 Location: Brisbane, Australia
|
Posted: Sun Apr 27, 2003 1:31 pm Post subject: Same thing |
|
|
Amazingly, i had the same thing, I couldnt figure it out.. I rsynced, relayed out the base layout, checked permissions on the directories rmed the directories .init.d or whatever it was.
Basically, had to dd the disk and start again, nobody online on irc seemed to have these problems.
I hope that someone does figure this out, because this really hurt the uptime of the server that I was working on and had lost a clients faith in linux.
Maybe this post will just remain here for historical reasons. _________________ Gentoo Server Project
http://www.subverted.net |
|
Back to top |
|
|
sordid n00b
Joined: 22 Nov 2002 Posts: 26 Location: Brisbane, Australia
|
Posted: Sun Apr 27, 2003 2:02 pm Post subject: |
|
|
ok... I'm able to get this far in the script:
i modified /sbin/depscan.sh to include /bin/cat {$svcdir}/depcache
it contains all the init.d dependencys
seems the gawk script just dies when it tries to process this... I might pickup on this tomorrow as it is late here. If anyone has any advice on how to fix this without nuking my setup, please let me know |
|
Back to top |
|
|
sordid n00b
Joined: 22 Nov 2002 Posts: 26 Location: Brisbane, Australia
|
Posted: Sun Apr 27, 2003 11:09 pm Post subject: |
|
|
i get segfaults on rm and chmod and a few other commands i found out. I have no idea why... i think this is whats causing it all to crash. |
|
Back to top |
|
|
sordid n00b
Joined: 22 Nov 2002 Posts: 26 Location: Brisbane, Australia
|
Posted: Mon Apr 28, 2003 12:10 am Post subject: |
|
|
i just found out i got owned and someone has installed a virus or something like that. it changes the filesize of all the binutils stuff
argh... |
|
Back to top |
|
|
JonnyRo Tux's lil' helper
Joined: 07 Apr 2003 Posts: 120
|
Posted: Sat Jul 19, 2003 5:59 pm Post subject: How did you determine that you got a virus |
|
|
Hello,
You said that you got a virus and it messed with your system enough to make the "caching dependencies" fail.
How did you determine that this was the reason that the script was failing. My system is having similar problems. _________________ Jonathan S. Romero
Gentoo Fanatic
http://jonnyro.com |
|
Back to top |
|
|
Inte Veteran
Joined: 15 Jul 2003 Posts: 1387 Location: Mannheim, GER
|
Posted: Fri Jul 25, 2003 10:38 am Post subject: Crash during caching service dependencies |
|
|
catphish wrote: | I have been running a system with no problems for several weeks, however, following an unexplained crash, my system crashes during "caching service dependancies" section of boot. I have tried with two compiled versions of my kernel, with the same effect. No errors are displayed up to the point at which it freezes. |
I've absolutly the same problem.
Quote: | * Caching service dependencies... |
I waited for several minutes, but nothing happened. After a Ctrl + C the following lines appeared:
Quote: | * Dependency info is missing! Please run
* # /sbin/depscan.sh
* to fix this. |
So I've done it. I booted of the LiveCD and used the following code:
Code: | e2fsck /dev/hda3
swapon /dev/hda2
mount /dev/hda3 /mnt/gentoo
mount /dev/hda1 /mnt/gentoo/boot
mount -t proc proc /mnt/gentoo/proc
chroot /mnt/gentoo /bin/bash
/sbin/depscan.sh |
Quote: | * Caching service dependencies... [ ok ] |
Then I rebooted after:
Code: | exit
umount /mnt/gentoo/proc
umount /mnt/gentoo/boot
umount /mnt/gentoo |
The problem wasn't solved, so I thought: "Let's take a look to the Gentoo Forums."
1. gentoo hangs at boot
2. hang after "caching service dependencies"
3. Suddenly unable to boot
4. cahcing service dependencies
5. im anus
6. Systemboot hängt --> Caching Services dependencies
7. This is disturbing: Dependency info missing!
8. Depscan and boot load problems
I still got no solution.
Do you?
EDIT: I've got it!
During editing of various .conf-files I inserted an instruction in my /etc/rc.conf which should be inserted to /etc/conf.d/local.start Shame on me.
-=Inte=- _________________ Gentoo Linux - Die Metadistribution |
|
Back to top |
|
|
JonnyRo Tux's lil' helper
Joined: 07 Apr 2003 Posts: 120
|
Posted: Sat Jul 26, 2003 3:07 am Post subject: Got it fixed |
|
|
I did an emerge rsync, followed by an emerge -u system.
etc-update caused several boot scripts to be modified, and after that the problem was fixed.
Remember though that if this is the case for you, then you have to make sure that you let etc-update replace the originals with the updates in those cases. I even let it take out make.conf and re-edited it later. _________________ Jonathan S. Romero
Gentoo Fanatic
http://jonnyro.com |
|
Back to top |
|
|
liryon n00b
Joined: 21 Aug 2003 Posts: 21 Location: Boston, MA
|
Posted: Thu Aug 21, 2003 8:24 pm Post subject: similar problem resolved |
|
|
After using gentoo for a few days i too aquired this caching system dependencies halting problem. I backtracked my steps to the lastr time i did anything with the /etc/init.d scripts.
To resolve the problem i deleted the scripts that i might have manually eddited while trying to get something to work. Then i re-emerged those programs. I also found that i had two empty files in the directroy. Given their names i know that i somehow created them. The names were -K and kl which was a switch i was trying to turn on. I didn't purposfully make them, but aparently i fumbled into it. Anyways removing those solved the problem.
Aparently the depscan script file is eassily fouled up. Another thing i discovered which has not appeared here was
# /ect/init.d/deamon-name broken
which should tell you what dependacies, if any, in the given deamon are notr present or functioning. It seems that this symptom is caused by a variety of ailments, and that my be helpful. |
|
Back to top |
|
|
JonnyRo Tux's lil' helper
Joined: 07 Apr 2003 Posts: 120
|
Posted: Thu Aug 21, 2003 10:43 pm Post subject: broken command |
|
|
That's a cool command to the service name. I hadnt used broken before.
I recently found out about zap, where you would do:
/etc/init.d/servicename zap
To force the system to mark this service as stopped, useful for killing zombie services that refuse to restart. _________________ Jonathan S. Romero
Gentoo Fanatic
http://jonnyro.com |
|
Back to top |
|
|
|