LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-21-2005, 11:44 AM   #1
dpirvulescu
LQ Newbie
 
Registered: Jan 2005
Location: Bucharest, Romania
Distribution: Mandrake
Posts: 9

Rep: Reputation: 0
crond dead but subsys locked


I try to start crond but when i run crond status I received

crond dead but subsys locked

I deleted /var/lock/subsys/crond but still the same

In the /var/log/message I found Mar 21 18:09:15 simco3 squid[4797]: error: bind: Address already in use
Mar 21 18:09:15 simco3 squid[4797]: fatal: Bind to port 22 failed: Transport endpoint is not connected.
Mar 21 18:09:15 simco3 crond: crond startup succeeded


Any suggestion?
 
Old 03-21-2005, 12:04 PM   #2
Technoslave
Member
 
Registered: Dec 2003
Location: Northern VA
Posts: 493

Rep: Reputation: 30
From what it looks like, you have multiple things going on.

1. Cron is running, short of the 4th line saying cron died, but no 4th line present.

2. Squid is trying to do something that is already being used, my guess would be by sshd.

If you're not doing squid proxy type stuff, then I'd suggest turning that service off.
 
Old 03-22-2005, 03:47 AM   #3
dpirvulescu
LQ Newbie
 
Registered: Jan 2005
Location: Bucharest, Romania
Distribution: Mandrake
Posts: 9

Original Poster
Rep: Reputation: 0
I deleted squid

Now in the /var/log/messages i have only:
Mar 21 18:09:15 simco3 crond: crond startup succeeded

but /etc/init.d/status return
crond dead but subsys locked

I don't know what's happent.
The server worked ok for more then a half of year but Monday morning i received all that problem.
 
Old 03-22-2005, 08:01 AM   #4
Technoslave
Member
 
Registered: Dec 2003
Location: Northern VA
Posts: 493

Rep: Reputation: 30
Instead of relying on whatever it is you're relying on ( i have no idea what /etc/init.d/status is ), ps auxw | grep cron

If you see it, it's running.

You might also want to tail -f /var/log/cron as well as tail -f /var/log/messages when you go to start-up/restart cron and provide some more information.
 
Old 03-22-2005, 08:33 AM   #5
dpirvulescu
LQ Newbie
 
Registered: Jan 2005
Location: Bucharest, Romania
Distribution: Mandrake
Posts: 9

Original Poster
Rep: Reputation: 0
Sorry I mean:
/etc/init.d/crond status (get the crond staus) ant it return "crond dead but subsys locked"

I run ps auxw | grep cron and no process running.

I run tail -f /var/log/messages when I tried to start crond but everithing looks ok:
Mar 22 16:24:42 simco3 crond: crond startup succeeded

tail -f /var/log/crond/info , tail -f /var/log/crond/error , tail -f /var/log/crond/error , don't return anything.

I run top when I tried to start crond and I see the process running for a few seconds.

Everithing is OK but It don't work.
 
Old 03-22-2005, 12:28 PM   #6
Technoslave
Member
 
Registered: Dec 2003
Location: Northern VA
Posts: 493

Rep: Reputation: 30
My only guess is that it's dying because it can't write to the logs that it needs to write to, that's why you're also not seeing any of the error logs.

Check permissions on the logs, I'm guessing that cron should be run by root, since I haven't run Mandrake in a really long time, I don't remember.

Another possibility might be looking at the startup script and how it's called...start crond on the command line and see if you get any error messages that way.
 
Old 03-23-2005, 02:44 AM   #7
dpirvulescu
LQ Newbie
 
Registered: Jan 2005
Location: Bucharest, Romania
Distribution: Mandrake
Posts: 9

Original Poster
Rep: Reputation: 0
I solved the problem:
I don't know what was wrong. The logs was OK and when I tried to start manually still no error.

In this case I compared the crond application from the server with problem with crond application from another server. I saw that the size and last modified date was different.

On the server with problem
*crond | 12000 | Feb 28 10:00 (the hour and size are from my memory)

On the good server
*crond | 23160 | Feb 13 2003

The problem appeared on Mar 21 maybe when I restarted the server.
I think that the problem comes when I made an system update and when I restarted the system I see it.

Thank you Technoslave for all your support.
 
Old 04-20-2005, 11:55 PM   #8
jporpilla
LQ Newbie
 
Registered: Apr 2005
Posts: 9

Rep: Reputation: 0
When I try ro restart squid it displays the following:

squid dead but subsys locked
2005/04/21 12:51:29 | parse ConfigFile: line 2174 unrecognized: 'delay_pools 0'
squid: ERROR: no running copy

What can I do to fix this?
 
Old 04-21-2005, 06:20 AM   #9
dpirvulescu
LQ Newbie
 
Registered: Jan 2005
Location: Bucharest, Romania
Distribution: Mandrake
Posts: 9

Original Poster
Rep: Reputation: 0
Angry

It looks like you have some problem in your squid configuration. If you made any recent changes look at them and try to find where the problem is.
Usually when a problem appear you must look at the most recent changes.
 
Old 04-23-2005, 09:09 AM   #10
jporpilla
LQ Newbie
 
Registered: Apr 2005
Posts: 9

Rep: Reputation: 0
re:

That's why I'm asking here. By the way I had already solved my own problem I deleted the delay pools on the last line of squid.conf.tnx
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
httpd dead but subsys locked paleogryph Linux - Software 3 05-18-2016 10:37 AM
proftpd dead but subsys locked Mikessu Linux - Networking 2 08-25-2011 01:24 AM
Crond Dead But Subsys Locked, cannot restart cron services jmm8142 Linux - Software 4 05-23-2005 12:41 PM
httpd dead but subsys locked x2000koh Linux - General 5 03-21-2005 05:26 PM
vsftpd dead but subsys locked ??? markstevens Linux - Software 43 03-18-2004 10:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration