LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-27-2006, 03:30 PM   #1
hard_wired_00
LQ Newbie
 
Registered: Jun 2006
Posts: 7

Rep: Reputation: 0
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
 
Old 06-27-2006, 05:51 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
It could be the user that Squid is running as doesn't have permissions to access the location of the cache (or config directories).
 
Old 06-28-2006, 10:04 AM   #3
saavik
Member
 
Registered: Nov 2001
Location: NRW, Germany
Distribution: SLES / FC/ OES / CentOS
Posts: 614

Rep: Reputation: 32
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?
 
Old 06-28-2006, 03:54 PM   #4
hard_wired_00
LQ Newbie
 
Registered: Jun 2006
Posts: 7

Original Poster
Rep: Reputation: 0
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!

Last edited by hard_wired_00; 06-28-2006 at 03:56 PM.
 
Old 06-28-2006, 05:48 PM   #5
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Are there any errors in your squid logs?
 
Old 06-29-2006, 12:48 AM   #6
saavik
Member
 
Registered: Nov 2001
Location: NRW, Germany
Distribution: SLES / FC/ OES / CentOS
Posts: 614

Rep: Reputation: 32
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?)
 
Old 06-29-2006, 03:39 AM   #7
hard_wired_00
LQ Newbie
 
Registered: Jun 2006
Posts: 7

Original Poster
Rep: Reputation: 0
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
 
Old 06-29-2006, 03:58 AM   #8
saavik
Member
 
Registered: Nov 2001
Location: NRW, Germany
Distribution: SLES / FC/ OES / CentOS
Posts: 614

Rep: Reputation: 32
can you make a "tail -f /var/log/messages" ?
 
Old 07-01-2006, 12:40 PM   #9
hard_wired_00
LQ Newbie
 
Registered: Jun 2006
Posts: 7

Original Poster
Rep: Reputation: 0
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
 
  


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
runing commands asheesh.tyagi Linux - Newbie 9 06-07-2006 07:28 AM
Runing a program on startup extremebfn Linux - General 3 01-15-2005 04:57 AM
how to know shorewall is runing? shams Fedora 2 12-26-2004 09:41 AM
runing .out files What Gives? 1337 Twinkie Fedora 4 07-26-2004 11:00 PM
Installing/Runing Wine Tenover Linux - Newbie 7 08-22-2003 04:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:20 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