Quote:
after running squid -z it gives no error. But when I started squid it failed. out put from cache.log is given below 2008/10/20 14:31:53| Starting Squid Cache version 2.5.STABLE6 for i386-redhat-linux-gnu... 2008/10/20 14:31:53| Process ID 3608 2008/10/20 14:31:53| With 1024 file descriptors available 2008/10/20 14:31:53| DNS Socket created at 0.0.0.0, port 32772, FD 4 2008/10/20 14:31:53| Adding nameserver 172.16.0.1 from /etc/resolv.conf 2008/10/20 14:31:53| User-Agent logging is disabled. 2008/10/20 14:31:53| Referer logging is disabled. 2008/10/20 14:31:53| Unlinkd pipe opened on FD 9 2008/10/20 14:31:53| Swap maxSize 20480000 KB, estimated 1575384 objects 2008/10/20 14:31:53| Target number of buckets: 78769 2008/10/20 14:31:53| Using 131072 Store buckets 2008/10/20 14:31:53| Max Mem size: 8192 KB 2008/10/20 14:31:53| Max Swap size: 20480000 KB 2008/10/20 14:31:53| /Cache1/squid/swap.state: (13) Permission denied FATAL: storeUfsDirOpenSwapLog: Failed to open swap log. Squid Cache (Version 2.5.STABLE6): Terminated abnormally. CPU Usage: 0.182 seconds = 0.006 user + 0.176 sys Maximum Resident Size: 0 KB Page faults with physical i/o: 0 |
Plz check again the owner/group of the /Cache dirs.
This post describes the exact same problem you face, and it's just a matter of chown the cache dir. Regards |
Quote:
Even created a file swap.state in /Cache1/squid and /Cache2/squid but still not working. 2008/10/21 11:28:05| Starting Squid Cache version 2.5.STABLE6 for i386-redhat-linux-gnu... 2008/10/21 11:28:05| Process ID 3704 2008/10/21 11:28:05| With 1024 file descriptors available 2008/10/21 11:28:05| DNS Socket created at 0.0.0.0, port 32770, FD 4 2008/10/21 11:28:05| Adding nameserver 172.16.0.1 from /etc/resolv.conf 2008/10/21 11:28:05| User-Agent logging is disabled. 2008/10/21 11:28:05| Referer logging is disabled. 2008/10/21 11:28:05| Unlinkd pipe opened on FD 9 2008/10/21 11:28:05| Swap maxSize 20480000 KB, estimated 1575384 objects 2008/10/21 11:28:05| Target number of buckets: 78769 2008/10/21 11:28:05| Using 131072 Store buckets 2008/10/21 11:28:05| Max Mem size: 8192 KB 2008/10/21 11:28:05| Max Swap size: 20480000 KB 2008/10/21 11:28:05| /Cache1/squid/swap.state: (13) Permission denied FATAL: storeUfsDirOpenSwapLog: Failed to open swap log. Squid Cache (Version 2.5.STABLE6): Terminated abnormally. CPU Usage: 0.012 seconds = 0.005 user + 0.007 sys Maximum Resident Size: 0 KB Page faults with physical i/o: 0 |
I'm asking you once again: Are you sure it's not a SELinux problem?
|
Quote:
Thank you very much for your active support. |
You should read this if you don't know what SELinux is.
Runnig Code:
getenforce |
Quote:
Later on I appended selinux=0 to grub.conf and now it is working perfectly. |
Glad to see it worked. We would avoid all of this if you had checked about SELinux from the beginning.
Anyway I don't think it's a good idea to disable it completely. You can read the documentation to see how you can add rules to it to do what you want. Regards |
Quote:
I had no idea of SElinux and i am working on it for the first time.Your help is really appreciated. |
I'm sorry but I cannot help you on this, because I have never used a distro that is SELinux enabled.
Better read the documentation ;) Regards |
Quote:
Thanks, You have already helped alot. |
All times are GMT -5. The time now is 05:11 PM. |