LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 06-11-2004, 05:47 PM   #1
Dawyea
LQ Newbie
 
Registered: May 2004
Distribution: Fedora Core 1
Posts: 11

Rep: Reputation: 0
Unhappy Squid terminates shortly after starting


I have been using squid for several weeks now without any problems. However, earlier today I rebooted my computer and had to restart squid. Ever since then, I can't get it to run for more than a few seconds before it terminates. I've checked the logs, but they haven't been written to since I rebooted. The number in the pid file doesn't even change when I restart squid. Does anyone know why this is happening? I've even tried reinstalling squid, but that doesn't work either. Thanks a lot!
 
Old 06-11-2004, 06:24 PM   #2
goldeneyexs
LQ Newbie
 
Registered: Jan 2004
Distribution: SuSE 9 Pro
Posts: 29

Rep: Reputation: 15
I'm having a similar problem on my test squid box at work. I installed the latest squid stable (don't remember version...stable 6 maybe...) on Suse 9.0 and pulled the config file off of the working squid box at work...

problem is when running it...just kills itself (disappears from ps) after a few seconds...any ideas would be apprecieated.
 
Old 06-11-2004, 06:52 PM   #3
Dawyea
LQ Newbie
 
Registered: May 2004
Distribution: Fedora Core 1
Posts: 11

Original Poster
Rep: Reputation: 0
Fixed

I managed to fix my problem. I hope this works for you as well. This solution was somewhat time-consuming, but it seems to have worked. I first made backups of my important files, then completely deleted the squid directory. I reinstalled squid, but it still wouldn't work. I temporarily changed the permissions on the var folder and its contents to allow anyone to read, write and execute. I then ran squid with the -z switch and it everything seemed to be working. I went through the new conf file and, using my backup of the old one as a reference, changed all the parameters back to the way they had been. Every time I changed a setting I restarted squid just to make sure it was working. I expected that after changing some setting in the conf file squid would stop working and I would know what was causing the trouble. However, this never happened. The only thing different in my new conf file is the disk space used by the cache. I wonder if I could have been running low on space or something. I also changed the cache_effective_user to 'nobody' and set the var folder and its contents to only allow write access to 'nobody,' whereas in my original configuration I didn't even use the directive. I'm not really sure why it works, but it does, and I hope it does for you.
 
Old 06-11-2004, 08:08 PM   #4
goldeneyexs
LQ Newbie
 
Registered: Jan 2004
Distribution: SuSE 9 Pro
Posts: 29

Rep: Reputation: 15
maybe it has something to do with the /var permissions...did you re-set them back once squid was running again?

dunno...maybe I'll look at it when I get to work on monday...right now I really do not care

Last edited by goldeneyexs; 06-11-2004 at 08:10 PM.
 
Old 06-12-2004, 02:55 PM   #5
Dawyea
LQ Newbie
 
Registered: May 2004
Distribution: Fedora Core 1
Posts: 11

Original Poster
Rep: Reputation: 0
Smile

Once squid was working I set the permissions so it is only accessible to the cache_effective_user, which is 'nobody,' and it still works.
 
  


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
Squid not starting..... Ricky Linux - Networking 5 05-31-2006 06:54 AM
Error starting Squid mrpc_cambodia Red Hat 2 07-20-2004 03:45 AM
Squid starting error abhram Linux - Networking 1 10-12-2003 07:17 AM
Squid starting problem?? deepika Linux - Networking 4 10-10-2003 11:13 AM
Starting squid from boot? kabads Linux - Software 3 02-14-2003 06:23 AM

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

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