Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4945
  • Last Modified:

red hat linux, squid, 2.3, ERROR: Could not send signal 0 to process 5229: (3) No such process

i have configured squid sometime back and it was runing perfectly but now its not working . i really dont know the cause of all the errors.

if i run the command #service squid status ,i get the error:
squid dead but subsys locked
squid: ERROR: Could not send signal 0 to process 5229: (3) No such process

if i run the command #service squid restart , i get the error:
Stopping /etc/squid/sbin/squid: squid: ERROR: Could not send signal 0 to process 5229: (3) No such process
0
satendrajain
Asked:
satendrajain
2 Solutions
 
pablouruguayCommented:
ok, your squid is offline nad never starts....  what happend when you do a service squid start ??
0
 
rindiCommented:
Check your /var/log/messages file, and if you have a separate Log file for squid, that file too after you have rebooted the PC. It should tell you whether squid has started, and if not, there should be error messages which tell you what the reason could.

Often the reason for squid not starting is that the disk is full, so check for the amount of empty space on your PC.
0
 
ssvlCommented:
squid -k check

or
Also try starting Squid interactively to see if any errors is seen


/path/to/sbin/squid -DNYCd3


0
Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

 
Kerem ERSOYPresidentCommented:
Hi,

it seems that your squid is dead but your pid file is that. Please check your /var/run directory for a stale squid.pid and remove it if you spot it there.
0
 
Kerem ERSOYPresidentCommented:
then check for squid status
service squid status

if you get a amessage like this:
squid dead but subsys locked

then go to /var/lock/subsys
and remove 0 byte squid file there too.

Then it should run without a problem..
0
 
satendrajainAuthor Commented:
@ KeremE:

I did a lot of R&D which include some from the above mentioned also and somehow am able to start the squid service, but can anybody tell me what cud be the reason behind that, why my squid service is failing quite often. I am running squid squid-2.5.STABLE1-2 on linux9.
0
 
rindiCommented:
The pid files are left open if your PC crashes, or you shut it down without stopping the squid daemon before shutting it down.
0
 
Kerem ERSOYPresidentCommented:
Hi,

As rindi indicated. To see the files there indicates although you start your service succcessfully at some point the squid is crashed without properly removing the service created files. You need to inspect the reasons behind.

The best starting point will be to initialize your cache with "squid -z" command. Then you might want to modify your startup script and add -X (enable ful debug to it):

- edit the file /etc/init.d/squid
- locate this variable here:
SQUID_OPTS=${SQUID_OPTS:-"-D"}
- modify the string such as:
SQUID_OPTS=${SQUID_OPTS:-"-D -X"}
- Restart the service
service squid restart

Then it will create lots of debugigng information in /var/log/squid. Watch the files to see the reason.
Don't forget to restore the switch once you've got results becasue it will take op sso much disk space, although lo rotate indexes and comresesses them.

0
 
Computer101Commented:
Forced accept.

Computer101
EE Admin
0
 
JasemElayebCommented:
check squid.log access.log and cache.log size they maybe over 1GB, delete them and restart squid.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now