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

Posted on 2007-08-06
Last Modified: 2013-12-16
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
Question by:satendrajain
    LVL 14

    Expert Comment

    ok, your squid is offline nad never starts....  what happend when you do a service squid start ??
    LVL 87

    Expert Comment

    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.
    LVL 10

    Expert Comment

    squid -k check

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

    /path/to/sbin/squid -DNYCd3

    LVL 30

    Accepted Solution


    it seems that your squid is dead but your pid file is that. Please check your /var/run directory for a stale and remove it if you spot it there.
    LVL 30

    Expert Comment

    by:Kerem ERSOY
    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..

    Author Comment

    @ 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.
    LVL 87

    Assisted Solution

    The pid files are left open if your PC crashes, or you shut it down without stopping the squid daemon before shutting it down.
    LVL 30

    Expert Comment

    by:Kerem ERSOY

    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:
    - modify the string such as:
    - 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.

    LVL 1

    Expert Comment

    Forced accept.

    EE Admin
    LVL 2

    Expert Comment

    check squid.log access.log and cache.log size they maybe over 1GB, delete them and restart squid.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Suggested Solutions

    Title # Comments Views Activity
    Cron jobs 12 63
    server would not shutdown and lots of lsmod procs.... any idea what this is? 5 62
    AWS linux AMI 3 43
    Sed question 2 25
    Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
    The purpose of this article is to demonstrate how we can use conditional statements using Python.
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now