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 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
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
I was also advised to re post to this area by Geoff
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.
Looks like you've run out of space on the disk / partition that the log files are stored on.
runningwill show you if your disk(s) are full.Code:df -h
wellscs (17th March 2009)
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
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
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
To ensure it is squid, (and not, say dansguardian as well), cd into /var/logs and use:
Which will give you the space consumed by each directory / log.Code:du -h --max-depth=1
I'm assuming you're using Ubuntu (by the presence of gvfs-daemon).
From a terminal, issue:
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.Code:sudo /etc/init.d/squid stop
Once the squid log is copied somewhere else, su to root temporarily by using:
then typeCode:sudo -s
to zero the contents of the file, but keep it and the permissions in place. Type exit to discard root credentials then type:Code:> /var/log/squid/access.log
Your squid box will now run ok for a while, but you need to get log rotation sorted or this will happen again.Code:sudo /etc/init.d/squid start
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)