Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Crash during caching service dependancies
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
catphish
n00b
n00b


Joined: 05 Apr 2003
Posts: 33

PostPosted: Fri Apr 18, 2003 12:18 pm    Post subject: Crash during caching service dependancies Reply with quote

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
View user's profile Send private message
acidreign
Tux's lil' helper
Tux's lil' helper


Joined: 21 Apr 2002
Posts: 122
Location: Brisbane, Australia

PostPosted: Mon Apr 21, 2003 11:23 pm    Post subject: Getting the same thing Reply with quote

Did you get this sorted.. Man.. i feel stupid.
_________________
Gentoo Server Project
http://www.subverted.net
Back to top
View user's profile Send private message
catphish
n00b
n00b


Joined: 05 Apr 2003
Posts: 33

PostPosted: Mon Apr 21, 2003 11:28 pm    Post subject: oh well Reply with quote

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. :x :x :x
Back to top
View user's profile Send private message
sordid
n00b
n00b


Joined: 22 Nov 2002
Posts: 26
Location: Brisbane, Australia

PostPosted: Sun Apr 27, 2003 11:34 am    Post subject: Reply with quote

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
View user's profile Send private message
catphish
n00b
n00b


Joined: 05 Apr 2003
Posts: 33

PostPosted: Sun Apr 27, 2003 11:46 am    Post subject: The bad news Reply with quote

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
View user's profile Send private message
sordid
n00b
n00b


Joined: 22 Nov 2002
Posts: 26
Location: Brisbane, Australia

PostPosted: Sun Apr 27, 2003 12:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
sordid
n00b
n00b


Joined: 22 Nov 2002
Posts: 26
Location: Brisbane, Australia

PostPosted: Sun Apr 27, 2003 12:40 pm    Post subject: Reply with quote

it seems to crash on that second gawk command in /sbin/depscan.sh
Back to top
View user's profile Send private message
catphish
n00b
n00b


Joined: 05 Apr 2003
Posts: 33

PostPosted: Sun Apr 27, 2003 1:26 pm    Post subject: Sorry Reply with quote

I can't be of any more help with this, i gave up with it :(
Back to top
View user's profile Send private message
acidreign
Tux's lil' helper
Tux's lil' helper


Joined: 21 Apr 2002
Posts: 122
Location: Brisbane, Australia

PostPosted: Sun Apr 27, 2003 1:31 pm    Post subject: Same thing Reply with quote

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
View user's profile Send private message
sordid
n00b
n00b


Joined: 22 Nov 2002
Posts: 26
Location: Brisbane, Australia

PostPosted: Sun Apr 27, 2003 2:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
sordid
n00b
n00b


Joined: 22 Nov 2002
Posts: 26
Location: Brisbane, Australia

PostPosted: Sun Apr 27, 2003 11:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
sordid
n00b
n00b


Joined: 22 Nov 2002
Posts: 26
Location: Brisbane, Australia

PostPosted: Mon Apr 28, 2003 12:10 am    Post subject: Reply with quote

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
View user's profile Send private message
JonnyRo
Tux's lil' helper
Tux's lil' helper


Joined: 07 Apr 2003
Posts: 120

PostPosted: Sat Jul 19, 2003 5:59 pm    Post subject: How did you determine that you got a virus Reply with quote

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
View user's profile Send private message
Inte
Veteran
Veteran


Joined: 15 Jul 2003
Posts: 1387
Location: Mannheim, GER

PostPosted: Fri Jul 25, 2003 10:38 am    Post subject: Crash during caching service dependencies Reply with quote

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. :evil:

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? :idea:

EDIT: I've got it!
:arrow: 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 :oops: Shame on me.

-=Inte=-
_________________
Gentoo Linux - Die Metadistribution
Back to top
View user's profile Send private message
JonnyRo
Tux's lil' helper
Tux's lil' helper


Joined: 07 Apr 2003
Posts: 120

PostPosted: Sat Jul 26, 2003 3:07 am    Post subject: Got it fixed Reply with quote

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
View user's profile Send private message
liryon
n00b
n00b


Joined: 21 Aug 2003
Posts: 21
Location: Boston, MA

PostPosted: Thu Aug 21, 2003 8:24 pm    Post subject: similar problem resolved Reply with quote

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
View user's profile Send private message
JonnyRo
Tux's lil' helper
Tux's lil' helper


Joined: 07 Apr 2003
Posts: 120

PostPosted: Thu Aug 21, 2003 10:43 pm    Post subject: broken command Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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