Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
service squid start
Starting squid: .................... [FAILED]
Feb 25 16:11:19 localhost squid[3773]: Squid Parent: child process 3789 exited with status 1
Feb 25 16:11:22 localhost squid[3773]: Squid Parent: child process 3795 started
Feb 25 16:11:23 localhost (squid): #011Failed to verify one of the swap directories, Check cache.log#012#011for details. Run 'squid -z' to create swap directories#012#011if needed, or if running Squid for the first time.
Feb 25 16:11:23 localhost kernel: type=1400 audit(1361790683.301:11760): avc: denied { getattr } for pid=3795 comm="squid" path="/cache" dev=sda2 ino=2 scontext=unconfined_u:system_r:squid_t:s0 tcontext=system_ubject_r:etc_runtime_t:s0 tclass=dir
Feb 25 16:11:23 localhost squid[3773]: Squid Parent: child process 3795 exited with status 1
Feb 25 16:11:26 localhost squid[3773]: Squid Parent: child process 3802 started
Feb 25 16:11:26 localhost (squid): #011Failed to verify one of the swap directories, Check cache.log#012#011for details. Run 'squid -z' to create swap directories#012#011if needed, or if running Squid for the first time.
Feb 25 16:11:26 localhost kernel: type=1400 audit(1361790686.632:11761): avc: denied { getattr } for pid=3802 comm="squid" path="/cache" dev=sda2 ino=2 scontext=unconfined_u:system_r:squid_t:s0 tcontext=system_ubject_r:etc_runtime_t:s0 tclass=dir
Feb 25 16:11:26 localhost squid[3773]: Squid Parent: child process 3802 exited with status 1
Feb 25 16:11:26 localhost squid[3773]: Exiting due to repeated, frequent failures
service squid start
Starting squid: .................... [FAILED]
Feb 25 16:11:19 localhost squid[3773]: Squid Parent: child process 3789 exited with status 1
Feb 25 16:11:22 localhost squid[3773]: Squid Parent: child process 3795 started
Feb 25 16:11:23 localhost (squid): #011Failed to verify one of the swap directories, Check cache.log#012#011for details. Run 'squid -z' to create swap directories#012#011if needed, or if running Squid for the first time.
Feb 25 16:11:23 localhost kernel: type=1400 audit(1361790683.301:11760): avc: denied { getattr } for pid=3795 comm="squid" path="/cache" dev=sda2 ino=2 scontext=unconfined_u:system_r:squid_t:s0 tcontext=system_ubject_r:etc_runtime_t:s0 tclass=dir
Feb 25 16:11:23 localhost squid[3773]: Squid Parent: child process 3795 exited with status 1
Feb 25 16:11:26 localhost squid[3773]: Squid Parent: child process 3802 started
Feb 25 16:11:26 localhost (squid): #011Failed to verify one of the swap directories, Check cache.log#012#011for details. Run 'squid -z' to create swap directories#012#011if needed, or if running Squid for the first time.
Feb 25 16:11:26 localhost kernel: type=1400 audit(1361790686.632:11761): avc: denied { getattr } for pid=3802 comm="squid" path="/cache" dev=sda2 ino=2 scontext=unconfined_u:system_r:squid_t:s0 tcontext=system_ubject_r:etc_runtime_t:s0 tclass=dir
Feb 25 16:11:26 localhost squid[3773]: Squid Parent: child process 3802 exited with status 1
Feb 25 16:11:26 localhost squid[3773]: Exiting due to repeated, frequent failures
every time i am going to start squid service but it shows fail can you help me?
Well, the system tried to help you. Did you actually READ what you posted??? Did you not post this?
Quote:
Originally Posted by fwaheed1979
Feb 25 16:11:23 localhost (squid): #011Failed to verify one of the swap directories, Check cache.log#012#011for details. Run 'squid -z' to create swap directories#012#011if needed, or if running Squid for the first time.
See the part that's bolded?? Where the system TELLS YOU what command to run? Did you RUN IT? Have you tried "restart" instead of "start"?
Perhaps, but it could also be the directory is missing (the -z creates it), or a permissions issue. Running with the "-z" as suggested will either fix it, or give output indicating a permissions issue.
But the OP never indicates what version/distro of Linux, whether SElinux is enabled or not, any sort of permissions, or whether squid was ever working or if this is a new installation. Hard to say.
Perhaps, but it could also be the directory is missing (the -z creates it), or a permissions issue. Running with the "-z" as suggested will either fix it, or give output indicating a permissions issue.
But the OP never indicates what version/distro of Linux, whether SElinux is enabled or not, any sort of permissions, or whether squid was ever working or if this is a new installation. Hard to say.
Ahh come on now... did you even read the error message? There's a Violation right there! It's *very* easy to say
I once encounter similar situation with fc17 , its not necessary to disable SELINUX
its definitely a permission issue ... check to make sure the swap directories are owned by squid user
(chown squid:squid /var/spool/squid)...!!googd luck
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.