LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 09-28-2011, 09:30 PM   #1
evocage
LQ Newbie
 
Registered: Aug 2011
Posts: 28

Rep: Reputation: Disabled
Squid Restart Problem


Hi Guys,


I am using squid 2.6 stable on RHEL5 its working fine. But I did restart then there is some problem that is it is unable to start. It shows the error as :

Starting squid: /etc/init.d/squid: line 69: /var/log/squid/squid.out: Read-only file system [FAILED]

When I restarted the system then its started there is no problem. But it occur again when I restart.

I checked /etc/init.d/squid file but I didn't get identify. So how can I start it.
 
Old 09-28-2011, 09:33 PM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Hello,

Can you post the contents of your squid file, using code tags? Also, can you post the output of the following command? Thanks!
Code:
ls -al /var/log/squid/*
Cheers,

Josh
 
Old 09-29-2011, 12:40 PM   #3
evocage
LQ Newbie
 
Registered: Aug 2011
Posts: 28

Original Poster
Rep: Reputation: Disabled
Hi Josh,

Thanks yar.....


[root@proxylx ~]# ls -al /var/log/squid/*
-rw-r----- 1 squid squid 139944645 Sep 30 03:48 /var/log/squid/access.log
-rw-r----- 1 squid squid 981 Sep 25 04:03 /var/log/squid/access.log.0
-rw-r----- 1 squid squid 41856511 Sep 25 04:03 /var/log/squid/access.log.1.gz
-rw-r----- 1 squid squid 10908930 Sep 18 04:02 /var/log/squid/access.log.2.gz
-rw-r----- 1 squid squid 37136145 Sep 11 04:02 /var/log/squid/access.log.3.gz
-rw-r----- 1 squid squid 13667921 Sep 4 04:02 /var/log/squid/access.log.4.gz
-rw-r----- 1 squid squid 11714949 Aug 28 04:02 /var/log/squid/access.log.5.gz
-rw-r----- 1 squid squid 1482047 Sep 30 03:48 /var/log/squid/cache.log
-rw-r----- 1 squid squid 249 Sep 25 04:03 /var/log/squid/cache.log.0
-rw-r----- 1 squid squid 303803 Sep 25 04:03 /var/log/squid/cache.log.1.gz
-rw-r----- 1 squid squid 369334 Sep 18 04:02 /var/log/squid/cache.log.2.gz
-rw-r----- 1 squid squid 390673 Sep 11 04:02 /var/log/squid/cache.log.3.gz
-rw-r----- 1 squid squid 1565156 Sep 4 04:02 /var/log/squid/cache.log.4.gz
-rw-r----- 1 squid squid 436427 Aug 28 04:02 /var/log/squid/cache.log.5.gz
-rw-r--r-- 1 root root 74629 Sep 27 01:57 /var/log/squid/squid.out
-rw-r----- 1 squid squid 166707470 Sep 30 03:48 /var/log/squid/store.log
-rw-r----- 1 squid squid 319 Sep 25 04:03 /var/log/squid/store.log.0
-rw------- 1 root root 34437436 Sep 30 03:48 /var/log/squid/store.log.1
-rw-r----- 1 squid squid 76919817 Sep 25 04:04 /var/log/squid/store.log.1.gz
-rw-r----- 1 squid squid 79617190 Sep 18 04:03 /var/log/squid/store.log.2.gz
-rw-r----- 1 squid squid 68586199 Sep 11 04:03 /var/log/squid/store.log.3.gz
-rw-r----- 1 squid squid 71368328 Sep 4 04:03 /var/log/squid/store.log.4.gz
-rw-r----- 1 squid squid 44957519 Aug 28 04:02 /var/log/squid/store.log.5.gz



Config Details are :

auth_param basic program /usr/lib64/squid/ncsa_auth /etc/squid/squid_passwd
acl ibee_net src 192.168.1.0/24
acl special_clients src "/usr/local/etc/special_clients"
acl BadSites dstdomain "/usr/local/etc/restricted-sites.squid"
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 110 # Pop
acl Safe_ports port 25 # SMTP
acl Safe_ports port 993 # SSLPOP
acl Safe_ports port 587 # TLSSMTP
acl CONNECT method CONNECT
http_access allow BadSites special_clients
http_access deny BadSites
http_access allow ibee_net

http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access deny all
icp_access allow all
http_port 8080
hierarchy_stoplist cgi-bin ?
cache_mem 1000 MB
cache_dir ufs /var/spool/squid 2000 16 256
access_log /var/log/squid/access.log squid
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
coredump_dir /var/spool/squid


Above are the details.
 
Old 10-01-2011, 09:33 PM   #4
ShanxT
Member
 
Registered: Apr 2007
Location: India
Distribution: Ubuntu 10.04, RHEL/Centos 5.x, Knoppix
Posts: 41

Rep: Reputation: 3
Please post the output of /var/log/squid/squid.out. Also, when you get the "Read-only file system" error, are you able to use other simple commands? Eg:
Code:
fdisk -l
mount
cat /etc/fstab
 
Old 10-05-2011, 03:47 AM   #5
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
I believe your squid configuration file is incomplete

If you continue to find the same error then I would advise you to upgrade your version of squid

http://people.redhat.com/jskala/squi....8-1.el5/i386/

Here you can get one.

Or try reinstalling the same squid through yum

Last edited by deep27ak; 10-05-2011 at 05:42 AM.
 
Old 10-10-2011, 09:03 PM   #6
rameshshihora
LQ Newbie
 
Registered: Jul 2007
Posts: 16

Rep: Reputation: 0
Hi,

After stopping squid, just delete the squid spool directory "rm -rf /var/spool/squid/" and start the squid instance and see if that works.

Thanks & Regards,
Ramesh Shihora
 
Old 10-11-2011, 03:40 AM   #7
ModServ
LQ Newbie
 
Registered: Oct 2010
Posts: 12

Rep: Reputation: 2
When you are having Read-Only file system, Then you have to reboot the system with File System Check "FSCK".

Read-Only will not make any file in the effected partition be writable, Just readable, So it can't save configuration or write any logs.
 
  


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
Restart Problem pinga123 Linux - Newbie 3 01-11-2010 11:22 PM
Problem with configuration of Squid server behind a squid ajitup Linux - Server 13 08-12-2009 10:55 PM
Squid Problem (squid restrict some trusted sites.). jpmaxyusuf Linux - Networking 3 01-01-2009 11:33 AM
How do I set the regulatory daemon to restart when I restart the network service? zahadumy Linux - Networking 0 11-05-2006 11:24 AM
how squid service be start/restart in slackware LinuxLover Slackware 5 10-22-2004 07:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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