Re: [squid-users] Starting squid

2009-10-26 Thread Henrik Nordstrom
mån 2009-10-26 klockan 15:49 -0400 skrev Ross Kovelman:

> I get a message from AVC:
> 
> Summary:
> 
> SELinux is preventing squid (squid_t) "write" to ./logs (usr_t).
> SELinux is preventing squid (squid_t) "append" to ./access.log (usr_t).

You need to modify your SELinux policy to allow squid_t write access
to /usr/local/squid/var/ or change your configuration to place stuff
where the Fedora RPM would... (/var/log/squid/ /var/cache/squid/ )

The default SELinux policy only allows the squid daemon access to the
default Fedora locations.

Regards
Henrik



[squid-users] Starting squid

2009-10-26 Thread Ross Kovelman
Hello,

When I run the following command:

# chkconfig squid on
# /etc/init.d/squid start


I get a message from AVC:

Summary:

SELinux is preventing squid (squid_t) "write" to ./logs (usr_t).
SELinux is preventing squid (squid_t) "append" to ./access.log (usr_t).


I am running Fedora 10 and squid 2.7 stable 7.

If I run squid directly from the /usr/local/squid/sbin/squid -z  I have no
issues.

Thanks






smime.p7s
Description: S/MIME cryptographic signature


Re: [squid-users] Starting squid

2009-03-07 Thread Amos Jeffries

Kinkie wrote:

On Sat, Mar 7, 2009 at 4:47 AM, Wilson Hernandez - MSD, S. A.
 wrote:

Hello.

I am experiencing some weird problems with squid. I was testing to see if
squid would come up at boot time, sometimes it starts sometimes doesnt (This
is problem number one of two). I have the following line in rc.local

/usr/local/squid/sbin/squid -D

I am using the lastes stable version 3.0 downloaded last week.

Squid Cache: Version 3.0.STABLE11
configure options:  '--prefix=/usr/local/squid' '--sysconfdir=/etc/squid'
'--enable-delay-pools' '--enable-kill-parent-hack' '--disable-htcp'
'--enable-default-err-language=Spanish' '--enable-linux-netfilter'
'--disable-ident-lookups' '--localstatedir=/var/log/squid'
'--enable-stacktraces' '--with-default-user=proxy' '--with-large-files'

What is the correct flag to run squid on?


No flags should be fine.
If it's not running you can try checking cache.log to see if there's
anything out of the ordinary there.




-D is still needed in 3.0 and earlier to prevent bad runs on network 
access by DNS.

 That should be fine by itself though for normal use.

Amos
--
Please be using
  Current Stable Squid 2.7.STABLE6 or 3.0.STABLE13
  Current Beta Squid 3.1.0.6


Re: [squid-users] Starting squid

2009-03-07 Thread Kinkie
On Sat, Mar 7, 2009 at 4:47 AM, Wilson Hernandez - MSD, S. A.
 wrote:
> Hello.
>
> I am experiencing some weird problems with squid. I was testing to see if
> squid would come up at boot time, sometimes it starts sometimes doesnt (This
> is problem number one of two). I have the following line in rc.local
>
> /usr/local/squid/sbin/squid -D
>
> I am using the lastes stable version 3.0 downloaded last week.
>
> Squid Cache: Version 3.0.STABLE11
> configure options:  '--prefix=/usr/local/squid' '--sysconfdir=/etc/squid'
> '--enable-delay-pools' '--enable-kill-parent-hack' '--disable-htcp'
> '--enable-default-err-language=Spanish' '--enable-linux-netfilter'
> '--disable-ident-lookups' '--localstatedir=/var/log/squid'
> '--enable-stacktraces' '--with-default-user=proxy' '--with-large-files'
>
> What is the correct flag to run squid on?

No flags should be fine.
If it's not running you can try checking cache.log to see if there's
anything out of the ordinary there.


-- 
/kinkie


[squid-users] Starting squid

2009-03-06 Thread Wilson Hernandez - MSD, S. A.

Hello.

I am experiencing some weird problems with squid. I was testing to see 
if squid would come up at boot time, sometimes it starts sometimes 
doesnt (This is problem number one of two). I have the following line in 
rc.local


/usr/local/squid/sbin/squid -D

I am using the lastes stable version 3.0 downloaded last week.

Squid Cache: Version 3.0.STABLE11
configure options:  '--prefix=/usr/local/squid' 
'--sysconfdir=/etc/squid' '--enable-delay-pools' 
'--enable-kill-parent-hack' '--disable-htcp' 
'--enable-default-err-language=Spanish' '--enable-linux-netfilter' 
'--disable-ident-lookups' '--localstatedir=/var/log/squid' 
'--enable-stacktraces' '--with-default-user=proxy' '--with-large-files'


What is the correct flag to run squid on?



Re: [squid-users] Starting squid failed but squid working properly

2004-05-31 Thread Muthukumar


>
> Starting squid:[FAILED]
>

I hope you are using a script there in init.d setup.During the linux startup ,is it 
getting FAILED?

> But it seems to have started well and cater to requests .

So your squid is running correctly, but startup is showing as FAILED...
init.d script for the squid may be the problem. check that one.

> CACHE.LOG output
It is working fine. So it is good to have a view on that script.

Regards,
Muthukumar.



---
===  It is a "Virus Free Mail" ===
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.691 / Virus Database: 452 - Release Date: 5/26/2004



Re: [squid-users] Starting squid failed but squid working properly

2004-05-31 Thread Tom Frankus
Hi,

Do your squid serve HTTP requests properly? I mean is your proxy working
fine.

Regards,
Tom Frankus



- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 31, 2004 4:48 PM
Subject: [squid-users] Starting squid failed but squid working properly


>
>
>
>
> When i start squid it gives
>
> Starting squid:[FAILED]
>
> But it seems to have started well and cater to requests .
> Also the same is prooved by cache.log which is as follows.
> Please let me know of what is going wrong that it is giving a failed
> start,.
> Please help
>
> CACHE.LOG output
>
> 2004/05/31 16:49:23| Starting Squid Cache version 2.5.STABLE5 for
> i386-redhat-linux-gnu...
> 2004/05/31 16:49:23| Process ID 16024
> 2004/05/31 16:49:23| With 1024 file descriptors available
> 2004/05/31 16:49:23| DNS Socket created at 0.0.0.0, port 32986, FD 4
> 2004/05/31 16:49:23| Adding nameserver 157.227.246.20 from squid.conf
> 2004/05/31 16:49:23| Adding nameserver 202.54.15.1 from squid.conf
> 2004/05/31 16:49:23| Adding nameserver 202.54.30.1 from squid.conf
> 2004/05/31 16:49:23| helperOpenServers: Starting 5 'all.pl' processes
> 2004/05/31 16:49:23| helperOpenServers: Starting 5 'squid_ldap_group'
> processes
> 2004/05/31 16:49:23| helperOpenServers: Starting 5 'squid_ldap_group'
> processes
> 2004/05/31 16:49:23| Unlinkd pipe opened on FD 24
> 2004/05/31 16:49:23| Swap maxSize 102400 KB, estimated 7876 objects
> 2004/05/31 16:49:23| Target number of buckets: 393
> 2004/05/31 16:49:23| Using 8192 Store buckets
> 2004/05/31 16:49:23| Max Mem  size: 8192 KB
> 2004/05/31 16:49:23| Max Swap size: 102400 KB
> 2004/05/31 16:49:23| Rebuilding storage in /var/spool/squid (CLEAN)
> 2004/05/31 16:49:23| Using Least Load store dir selection
> 2004/05/31 16:49:23| Set Current Directory to /var/spool/squid
> 2004/05/31 16:49:23| Loaded Icons.
> 2004/05/31 16:49:24| Accepting HTTP connections at 0.0.0.0, port 80, FD
26.
> 2004/05/31 16:49:24| Accepting ICP messages at 0.0.0.0, port 3130, FD 27.
> 2004/05/31 16:49:24| Accepting SNMP messages on port 3401, FD 28.
> 2004/05/31 16:49:24| WCCP Disabled.
> 2004/05/31 16:49:24| Ready to serve requests.
> 2004/05/31 16:49:24| Done reading /var/spool/squid swaplog (1084 entries)
> 2004/05/31 16:49:24| Finished rebuilding storage from disk.
> 2004/05/31 16:49:24|  1084 Entries scanned
> 2004/05/31 16:49:24| 0 Invalid entries.
> 2004/05/31 16:49:24| 0 With invalid flags.
> 2004/05/31 16:49:24|  1084 Objects loaded.
> 2004/05/31 16:49:24| 0 Objects expired.
> 2004/05/31 16:49:24| 0 Objects cancelled.
> 2004/05/31 16:49:24| 0 Duplicate URLs purged.
> 2004/05/31 16:49:24| 0 Swapfile clashes avoided.
> 2004/05/31 16:49:24|   Took 0.3 seconds (3739.0 objects/sec).
> 2004/05/31 16:49:24| Beginning Validation Procedure
> 2004/05/31 16:49:24|   Completed Validation Procedure
> 2004/05/31 16:49:24|   Validated 1084 Entries
> 2004/05/31 16:49:24|   store_swap_size = 12916k
> 2004/05/31 16:49:24| storeLateRelease: released 0 objects
>
>
> Thanks
>
> Ashish  Uchil
>
>
>



[squid-users] Starting squid failed but squid working properly

2004-05-31 Thread ashish . uchil




When i start squid it gives

Starting squid:[FAILED]

But it seems to have started well and cater to requests .
Also the same is prooved by cache.log which is as follows.
Please let me know of what is going wrong that it is giving a failed
start,.
Please help

CACHE.LOG output

2004/05/31 16:49:23| Starting Squid Cache version 2.5.STABLE5 for
i386-redhat-linux-gnu...
2004/05/31 16:49:23| Process ID 16024
2004/05/31 16:49:23| With 1024 file descriptors available
2004/05/31 16:49:23| DNS Socket created at 0.0.0.0, port 32986, FD 4
2004/05/31 16:49:23| Adding nameserver 157.227.246.20 from squid.conf
2004/05/31 16:49:23| Adding nameserver 202.54.15.1 from squid.conf
2004/05/31 16:49:23| Adding nameserver 202.54.30.1 from squid.conf
2004/05/31 16:49:23| helperOpenServers: Starting 5 'all.pl' processes
2004/05/31 16:49:23| helperOpenServers: Starting 5 'squid_ldap_group'
processes
2004/05/31 16:49:23| helperOpenServers: Starting 5 'squid_ldap_group'
processes
2004/05/31 16:49:23| Unlinkd pipe opened on FD 24
2004/05/31 16:49:23| Swap maxSize 102400 KB, estimated 7876 objects
2004/05/31 16:49:23| Target number of buckets: 393
2004/05/31 16:49:23| Using 8192 Store buckets
2004/05/31 16:49:23| Max Mem  size: 8192 KB
2004/05/31 16:49:23| Max Swap size: 102400 KB
2004/05/31 16:49:23| Rebuilding storage in /var/spool/squid (CLEAN)
2004/05/31 16:49:23| Using Least Load store dir selection
2004/05/31 16:49:23| Set Current Directory to /var/spool/squid
2004/05/31 16:49:23| Loaded Icons.
2004/05/31 16:49:24| Accepting HTTP connections at 0.0.0.0, port 80, FD 26.
2004/05/31 16:49:24| Accepting ICP messages at 0.0.0.0, port 3130, FD 27.
2004/05/31 16:49:24| Accepting SNMP messages on port 3401, FD 28.
2004/05/31 16:49:24| WCCP Disabled.
2004/05/31 16:49:24| Ready to serve requests.
2004/05/31 16:49:24| Done reading /var/spool/squid swaplog (1084 entries)
2004/05/31 16:49:24| Finished rebuilding storage from disk.
2004/05/31 16:49:24|  1084 Entries scanned
2004/05/31 16:49:24| 0 Invalid entries.
2004/05/31 16:49:24| 0 With invalid flags.
2004/05/31 16:49:24|  1084 Objects loaded.
2004/05/31 16:49:24| 0 Objects expired.
2004/05/31 16:49:24| 0 Objects cancelled.
2004/05/31 16:49:24| 0 Duplicate URLs purged.
2004/05/31 16:49:24| 0 Swapfile clashes avoided.
2004/05/31 16:49:24|   Took 0.3 seconds (3739.0 objects/sec).
2004/05/31 16:49:24| Beginning Validation Procedure
2004/05/31 16:49:24|   Completed Validation Procedure
2004/05/31 16:49:24|   Validated 1084 Entries
2004/05/31 16:49:24|   store_swap_size = 12916k
2004/05/31 16:49:24| storeLateRelease: released 0 objects


Thanks

Ashish  Uchil


DISCLAIMER: The information contained in this message is intended only and solely for 
the addressed individual or entity indicated in this message and for the exclusive use 
of the said addressed individual or entity indicated in this message (or responsible 
for delivery
of the message to such person) and may contain legally privileged and confidential 
information belonging to Tata Consultancy Services. It must not be printed, read, 
copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person 
other than the
addressee. Unauthorized use, disclosure or copying is strictly prohibited and may 
constitute unlawful act and can possibly attract legal action, civil and/or criminal. 
The contents of this message need not necessarily reflect or endorse the views of Tata 
Consultancy Services
on any subject matter. Any action taken or omitted to be taken based on this message 
is entirely at your risk and neither the originator of this message nor Tata 
Consultancy Services takes any responsibility or liability towards the same. Opinions, 
conclusions and any other
information contained in this message that do not relate to the official business of 
Tata Consultancy Services shall be understood as neither given nor endorsed by Tata 
Consultancy Services or any affiliate of Tata Consultancy Services. If you have 
received this message in error,
you should destroy this message and may please notify the sender by e-mail. Thank you.



Re: [squid-users] Starting Squid in FreeBSD 5.1

2003-11-17 Thread Jason Oakley
At 12:30 AM 18/11/2003 +, Antony Stone wrote:
What is the best way to start squid in FreeBSD 5.1.


sudo cat /usr/local/etc/rc.d/squid.sh

#!/bin/sh

if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
echo "$0: Cannot determine the PREFIX" >&2
exit 1
fi
case "$1" in
start)
if [ -x ${PREFIX}/sbin/squid -a -f ${PREFIX}/etc/squid/squid.conf 
]; then
(cd /${PREFIX}/squid/logs; ${PREFIX}/sbin/squid >/dev/null 
2>&1 &) ; echo -n ' squid'
fi
;;
stop)
${PREFIX}/sbin/squid -k shutdown 2>&1
# Uncomment this if you'd like the system to (attempt to
# wait for) squid to shut down cleanly
#echo "Sleeping for 45 seconds to allow squid to shutdown.."
#sleep 45
;;
*)
echo "Usage: `basename $0` {start|stop}" >&2
;;
esac

exit 0



Regards,

Jason.

--
Jason Oakley +612 82821434
  Open and Intel Systems
  Systems Administrator
   http://www.eds.com
 Add a dab of lavender to milk
   Leave town with an orange
and pretend you are laughing at it 




Re: [squid-users] Starting Squid in FreeBSD 5.1

2003-11-17 Thread Antony Stone
On Monday 17 November 2003 10:00 pm, Thron wrote:

> What is the best way to start squid in FreeBSD 5.1.
> Right now Im useing a Cron to start it but I get the
> following errors after the first person trys to
> connect.
>
> login: Nov 4 15L50:30 server-name kernel: pid 445
> (squid), uid 1001: exited on signal 6
>
> Nov 4 15:50:30 server-name squid[445]:
> authenticateNTLMHandleReply: called with no result
> string
>
> How can I resolve this problem? Any help would be
> greatly appreciated.

I'm not a FreeBSD expert, but I wonder which user is running the cron job?

Does the user have sufficient privileges?

Also, just out of curiosity, why are you starting it from cron - why not from 
a system startup (boot) script?   Do you find it needs restarting 
periodically?

Antony.

-- 

It's beautiful, man, beautiful.   It's enough to make me merely hate BIND 
rather than loathe it with every fibre of my being.

 - David Cantrell
 Please reply to the list;
   please don't CC me.


[squid-users] Starting Squid in FreeBSD 5.1

2003-11-17 Thread Thron
What is the best way to start squid in FreeBSD 5.1.
Right now Im useing a Cron to start it but I get the
following errors after the first person trys to
connect. 

login: Nov 4 15L50:30 server-name kernel: pid 445
(squid), uid 1001: exited on signal 6 

Nov 4 15:50:30 server-name squid[445]:
authenticateNTLMHandleReply: called with no result
string

How can I resolve this problem? Any help would be
greatly appreciated.

Thanks
Thron

__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree


[squid-users] Starting Squid in FreeBSD 5.1

2003-11-14 Thread Thron
What is the best way to start squid in FreeBSD 5.1.
Right now Im useing a Cron to start it but I get the
following errors after the first person trys to
connect. 

login: Nov 4 15L50:30 server-name kernel: pid 445
(squid), uid 1001: exited on signal 6 

Nov 4 15:50:30 server-name squid[445]:
authenticateNTLMHandleReply: called with no result
string

How can I resolve this problem? Any help would be
greatly appreciated.

Thanks
Thron


__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree


[squid-users] Starting Squid in FreeBSD 5.1

2003-11-14 Thread Thron
 
 

__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree