Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
vcron won't 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
hairyfeet
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jan 2003
Posts: 118
Location: Århus, Denmark

PostPosted: Tue Nov 11, 2003 10:24 am    Post subject: vcron won't start. Reply with quote

I just discovered that cron has died on one of the machines and it wont restart.

Code:

x init.d # /etc/init.d/vcron restart
 * Starting vcron...                                                                              [ !! ]

x init.d # start-stop-daemon --start --exec /usr/sbin/cron
/usr/sbin/cron already running

x init.d # cat /var/run/cron.pid
cat: /var/run/cron.pid: No such file or directory


The last change to crontab was made nearly a month ago.

Any hints?
Back to top
View user's profile Send private message
fleed
l33t
l33t


Joined: 28 Aug 2002
Posts: 756
Location: London

PostPosted: Tue Nov 11, 2003 10:31 am    Post subject: Reply with quote

Have you done:
Code:
ps -elf | grep vcron

to see if there's really a vcron running?

If there is do a
Code:
killall vcron

and then
Code:
/etc/init.d/vcron start


You might also need to do
Code:
/etc/init.d/vcron zap

before the start if the vcron left other stale files around.
Back to top
View user's profile Send private message
hairyfeet
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jan 2003
Posts: 118
Location: Århus, Denmark

PostPosted: Tue Nov 11, 2003 10:39 am    Post subject: Reply with quote

Thank you a quick reply. I had already made sure that vcron was not running. But when using your arguments to ps I get a strange error.

Code:

x init.d # ps -elf | grep vcron
Warning: /usr/src/linux/System.map has an incorrect kernel version.
0 R root     19560 32097  0  76   0 -   350      -  2004 pts/0    00:00:00 grep vcron
Back to top
View user's profile Send private message
fleed
l33t
l33t


Joined: 28 Aug 2002
Posts: 756
Location: London

PostPosted: Tue Nov 11, 2003 10:46 am    Post subject: Reply with quote

Hmm... strange. I've seen that warning before. I think I had /boot mounted and had an incorrect System.map file there. Somehow the kernel was looking at that. Since I don't know what the System.map is for and never usually need it, I just deleted that one from /boot but I don't recommend you do the same since it could bork your system.

When you run the zap command does it allow your vcron to start?
Back to top
View user's profile Send private message
hairyfeet
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jan 2003
Posts: 118
Location: Århus, Denmark

PostPosted: Tue Nov 11, 2003 11:00 am    Post subject: Reply with quote

Code:

x init.d # ps aux | grep vcron
root     21814  0.0  0.0  1400  496 pts/0    R     2004   0:00 grep vcron

x init.d # /etc/init.d/vcron zap
x init.d # /etc/init.d/vcron start
 * Starting vcron...                                                                                     [ !! ]





No go :(
Back to top
View user's profile Send private message
fleed
l33t
l33t


Joined: 28 Aug 2002
Posts: 756
Location: London

PostPosted: Tue Nov 11, 2003 11:04 am    Post subject: Reply with quote

Have you looked for clues in your logs? See if there are any references to vcron... there should at least be a line from the /etc/init.d/vcron script. Look for errors after that.

Also, if that doesn't show you what's wrong, try running cron from the command line to see if it tells you what's going on.
Back to top
View user's profile Send private message
hairyfeet
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jan 2003
Posts: 118
Location: Århus, Denmark

PostPosted: Tue Nov 11, 2003 11:13 am    Post subject: Reply with quote

A manual restart seems to be working though this is far from a perfect solution.

Code:

x log # /etc/init.d/vcron status
 * status:  stopped

x log # ps aux | grep cron
root     25369  0.0  0.0  1452  648 ?        S     2004   0:00 /usr/sbin/cron
root     25492  0.0  0.0  1400  496 pts/0    R     2004   0:00 grep cron


Now I just hope it will keep running :wink:

Thank you for the help if you get any ideas about what is wrong I would really like to fix this in a nicer way.
Back to top
View user's profile Send private message
fleed
l33t
l33t


Joined: 28 Aug 2002
Posts: 756
Location: London

PostPosted: Tue Nov 11, 2003 11:18 am    Post subject: Reply with quote

Did you look in your logs for any clues? Anything if you run dmesg?
Back to top
View user's profile Send private message
hairyfeet
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jan 2003
Posts: 118
Location: Århus, Denmark

PostPosted: Tue Nov 11, 2003 11:44 am    Post subject: Reply with quote

No clues in any of the log files. CRON just quietly dies :cry:

The system has been up for nearly a month I cannot see what I should use dmesg for?
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