+ Post New Thread
Page 1 of 3 123 LastLast
Results 1 to 15 of 40
*nix Thread, Squid Proxy Server Keeps Stopping in Technical; I have just inherited a squid proxy server (on linux)that i have never worked or had any experience on. I ...
  1. #1
    wellscs's Avatar
    Join Date
    Apr 2008
    Posts
    75
    Thank Post
    7
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Squid Proxy Server Keeps Stopping

    I have just inherited a squid proxy server (on linux)that i have never worked or had any experience on. I came in this morning the internet had stopped. after a couple of reboots reboot it works for about 30 mins each time and then stops. If I restart the services it will restart. With my lack of experience, although I am learning quickly I'm not sure how to fix this.

    Any help gatefully received

    Paul

  2. #2


    Join Date
    Dec 2005
    Location
    In the server room, with the lead pipe.
    Posts
    4,629
    Thank Post
    275
    Thanked 777 Times in 604 Posts
    Rep Power
    223
    Well maybe you could follow up on your two other posts on the same subject? Where I did post some advice?

    Squid box not working help

  3. #3

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    Quote Originally Posted by pete View Post
    Well maybe you could follow up on your two other posts on the same subject? Where I did post some advice?

    Squid box not working help
    I was just thinking I've seen this before, recently, more than once.

  4. #4
    wellscs's Avatar
    Join Date
    Apr 2008
    Posts
    75
    Thank Post
    7
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Just need some friendly advice

    I have tried the advice given, but not sure what the logs mean was hoping perhaps as this is supposed to be a helping site, someone might take a look at the logs for me to help me out. perhaps this is not a site that helps people anymore

  5. #5
    wellscs's Avatar
    Join Date
    Apr 2008
    Posts
    75
    Thank Post
    7
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    I was also advised to re post to this area

    I was also advised to re post to this area by Geoff

  6. #6

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    Quote Originally Posted by wellscs View Post
    I was also advised to re post to this area by Geoff
    3 posts? Just re-post in your old post. And if you want people to look at your logs then perhaps its a good idea to firstly, state that in your post, and secondly, post your logs so people can view them.

    Your 3 posts have said exactly the same in each. We're a very helping community, but unfortunately I left my Crystal ball at home today.

  7. #7
    wellscs's Avatar
    Join Date
    Apr 2008
    Posts
    75
    Thank Post
    7
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Log files for squid box

    wcsstore.doc

    wcscache.doc

    wcssyslog.doc

    I have attached some log files


    Thanks

  8. #8
    Iain's Avatar
    Join Date
    Oct 2006
    Location
    Warwickshire
    Posts
    187
    Thank Post
    28
    Thanked 93 Times in 53 Posts
    Rep Power
    31
    Looks like you've run out of space on the disk / partition that the log files are stored on.

  9. #9

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    Quote Originally Posted by wellscs View Post
    wcsstore.doc

    wcscache.doc

    wcssyslog.doc

    I have attached some log files


    Thanks
    Ok, I'm no guru with Squid or *nix but it appears to be that your cache is full and this might be causing it. I've found this site - see if this is useful.

    RE: [squid-users] squid tries to rebuild cache but fails... - Unix Linux Forum

  10. #10

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,803
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224
    running
    Code:
    df -h
    will show you if your disk(s) are full.

  11. Thanks to Geoff from:

    wellscs (17th March 2009)

  12. #11
    wellscs's Avatar
    Join Date
    Apr 2008
    Posts
    75
    Thank Post
    7
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    here are the disc results command df -h

    Filesystem Size Used Avail Use% Mounted on
    /dev/sda1 71G 68G 0 100% /
    varrun 1013M 344K 1013M 1% /var/run
    varlock 1013M 0 1013M 0% /var/lock
    udev 1013M 68K 1013M 1% /dev
    devshm 1013M 12K 1013M 1% /dev/shm
    lrm 1013M 38M 976M 4% /lib/modules/2.6.24-16-generic/volatile
    gvfs-fuse-daemon 71G 68G 0 100% /root/.gvfs
    /dev/sdc1 233G 59M 233G 1% /media/disk

  13. #12

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    Quote Originally Posted by wellscs View Post
    Filesystem Size Used Avail Use% Mounted on
    /dev/sda1 71G 68G 0 100% /
    varrun 1013M 344K 1013M 1% /var/run
    varlock 1013M 0 1013M 0% /var/lock
    udev 1013M 68K 1013M 1% /dev
    devshm 1013M 12K 1013M 1% /dev/shm
    lrm 1013M 38M 976M 4% /lib/modules/2.6.24-16-generic/volatile
    gvfs-fuse-daemon 71G 68G 0 100% /root/.gvfs
    /dev/sdc1 233G 59M 233G 1% /media/disk
    the 1st line: /dev/sda1 is full - you need to clean up your logs a bit - sorry I can't be of more help but I've just started using Squid myself. I'm sure Geoff will be along in a minute with a quick fix.
    Last edited by Hightower; 16th March 2009 at 12:57 PM.

  14. #13
    Iain's Avatar
    Join Date
    Oct 2006
    Location
    Warwickshire
    Posts
    187
    Thank Post
    28
    Thanked 93 Times in 53 Posts
    Rep Power
    31
    Yep, your root partition /dev/sha1 which contains the root of your filesystem / is full. You'll need to do some cleaning up. My guess is that it's full of old logfiles. Take a look into log rotation for automatic management of your log files.
    Last edited by Iain; 16th March 2009 at 01:03 PM. Reason: Add link to info about logrotate daemon

  15. #14
    wellscs's Avatar
    Join Date
    Apr 2008
    Posts
    75
    Thank Post
    7
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Smile empty/ rotate/compact my log files

    Thanks for all your replies, seems we are getting somwhere. remembering Im a complete novice at this can someone help me with the code to empty/ rotate/compact my log files

    Thanks to everyone again

  16. #15


    Join Date
    Dec 2005
    Location
    In the server room, with the lead pipe.
    Posts
    4,629
    Thank Post
    275
    Thanked 777 Times in 604 Posts
    Rep Power
    223
    To ensure it is squid, (and not, say dansguardian as well), cd into /var/logs and use:

    Code:
    du -h --max-depth=1
    Which will give you the space consumed by each directory / log.

    I'm assuming you're using Ubuntu (by the presence of gvfs-daemon).

    From a terminal, issue:
    Code:
    sudo /etc/init.d/squid stop
    If you care about the logs (ideally you should), plug in a removable hard disk and copy the squid logs to it - there's not enough space to compress them on your drive at the moment. If you're running the gnome desktop it should automount the usb drive.

    Once the squid log is copied somewhere else, su to root temporarily by using:

    Code:
    sudo -s
    then type
    Code:
    > /var/log/squid/access.log
    to zero the contents of the file, but keep it and the permissions in place. Type exit to discard root credentials then type:

    Code:
    sudo /etc/init.d/squid start
    Your squid box will now run ok for a while, but you need to get log rotation sorted or this will happen again.

    NB: It's very rare I remember to check pms - posting in thread is the best way to attract my attention.
    Last edited by pete; 16th March 2009 at 01:40 PM.

SHARE:
+ Post New Thread
Page 1 of 3 123 LastLast

Similar Threads

  1. Squid Upstream proxy
    By Lee_K_81 in forum *nix
    Replies: 14
    Last Post: 20th January 2009, 11:04 AM
  2. Replies: 19
    Last Post: 15th October 2008, 02:44 PM
  3. Replies: 8
    Last Post: 18th July 2008, 02:34 PM
  4. Squid Transparent Proxy.
    By Jackd in forum Network and Classroom Management
    Replies: 2
    Last Post: 25th July 2007, 06:54 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •