LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Problem runing squid (https://www.linuxquestions.org/questions/linux-networking-3/problem-runing-squid-458887/)

hard_wired_00 06-27-2006 03:30 PM

Problem runing squid
 
I know i had this some time ago but i just can't remember how i fixed it... squid starts withought errors but it dies in a fiew seconds(it dissapears from the proccesses list) .. i have RedHad 9 and squid 2.5stable14
if anyone has any idea about this.. i am open to suggestions
thnx

gilead 06-27-2006 05:51 PM

It could be the user that Squid is running as doesn't have permissions to access the location of the cache (or config directories).

saavik 06-28-2006 10:04 AM

We have that problem when

a) The cache is broken ( so rebuild the cache )
b) the cache volume is out of space ( where is you cache placed, and how much space is left)
c) squid could not find an internet connection (only with isdn!)

Maybe this helps?

hard_wired_00 06-28-2006 03:54 PM

well.. squid is installed in /usr/local/squid the cache/ and logs/ are located in /usr/local/squid/var i have chowned var to be owned by nobody. in squid.conf the cache_effective_user is nobody.. also i have created a user and chowned the logs and cache dirs and i set squid to run as that user.. i don't think it's a permissions problem... i tryed to rebild the cache with squid -z.. it works. i also set the visible_hostname to localhost in squid.conf because it returned error about beeing unable to determine hostname or something.. i am not shure why this is.. i even tryed to chown the entire squid dir.. no luck(maybe it tryes to write somewhere else?) i have cable connection /w DHCP.. everhing fine here.. i'm not shure about disk space, i think i have fiew hundreds(i donno how to find that out).... it just dies withought even serving a single request.. damn squid!

gilead 06-28-2006 05:48 PM

Are there any errors in your squid logs?

saavik 06-29-2006 12:48 AM

1.)maybe you trie df to find out how many space is left on the device.
2.)what does messages say
3.)is the internet connection still up at that time (maybe the internet connection is going down and you don`t have "dial on demand" activated?)

hard_wired_00 06-29-2006 03:39 AM

i have 3.6 gigabytes available, and my internet connection is up(because i have this windows computer and it's connected tru the linux box wich acts as router) also i have tried to flush all the firewall rules.. i thought it might be it.. but not.. not that.. in squid/var/logs thre is nothing, no file, nothing... and it still keeps on dieing

saavik 06-29-2006 03:58 AM

can you make a "tail -f /var/log/messages" ?

hard_wired_00 07-01-2006 12:40 PM

thanx for all your help, found the problem and as you said it was an access problem.. for some reason it couldn't write in var/logs but when i chowned cache and var i forgot about logs, stupid me, thanks for help, it working now


All times are GMT -5. The time now is 03:35 PM.