Sorry about my poor english, i am german Description of problem: squid do not run correct if it start with init-script /etc/init.d/squid it runs if start with user root or squid like "squid -D" squid runs it is no right problem, user squid have the nessesery rights. Version-Release number of selected component (if applicable): Fedora Core 5 squid-2.5.STABLE13-1.FC5 How reproducible: Steps to Reproduce: 1.service stop squid 2.su - squid (change /etc/passwd for login) 3./usr/sbin/squid -D Actual results: Expected results: Additional info: I Use a TrendMirco Viruswall as partent If i start squid with init-script i become this error in /var/log/squid/cache.log 2006/03/24 14:38:32| TCP connection to 192.168.111.112/8080 failed 2006/03/24 14:38:32| TCP connection to 192.168.111.112/8080 failed 2006/03/24 14:38:32| TCP connection to 192.168.111.112/8080 failed 2006/03/24 14:38:32| TCP connection to 192.168.111.112/8080 failed 2006/03/24 14:38:33| TCP connection to 192.168.111.112/8080 failed 2006/03/24 14:38:33| TCP connection to 192.168.111.112/8080 failed 2006/03/24 14:38:33| TCP connection to 192.168.111.112/8080 failed 2006/03/24 14:38:33| TCP connection to 192.168.111.112/8080 failed 2006/03/24 14:38:33| TCP connection to 192.168.111.112/8080 failed 2006/03/24 14:38:33| TCP connection to 192.168.111.112/8080 failed 2006/03/24 14:38:33| Detected DEAD Parent: 192.168.111.112/8080/7 2006/03/24 14:38:33| TCP connection to 192.168.111.112/8080 failed 2006/03/24 14:38:33| TCP connection to 192.168.111.112/8080 failed 2006/03/24 14:38:33| TCP connection to 192.168.111.112/8080 failed 2006/03/24 14:38:33| TCP connection to 192.168.111.112/8080 failed 2006/03/24 14:38:33| TCP connection to 192.168.111.112/8080 failed 2006/03/24 14:38:33| TCP connection to 192.168.111.112/8080 failed 2006/03/24 14:38:33| TCP connection to 192.168.111.112/8080 failed 2006/03/24 14:38:33| TCP connection to 192.168.111.112/8080 failed 2006/03/24 14:38:33| TCP connection to 192.168.111.112/8080 failed 2006/03/24 14:38:33| TCP connection to 192.168.111.112/8080 failed 2006/03/24 14:38:33| TCP connection to 192.168.111.112/8080 failed 2006/03/24 14:38:33| TCP connection to 192.168.111.112/8080 failed 2006/03/24 14:38:33| temporary disabling (Service Unavailable) digest from 192.168.111.112
Created attachment 126623 [details] squid.conf from /etc/squid/
2006/03/24 14:38:33| temporary disabling (Service Unavailable) digest from 192.168.111.112 2006/03/24 14:43:34| Failed to select source for 'http://192.168.111.112:8080/squid-internal-periodic/store_digest' 2006/03/24 14:43:34| always_direct = 0 2006/03/24 14:43:34| never_direct = 1 2006/03/24 14:43:34| timedout = 0 2006/03/24 14:43:34| temporary disabling (Service Unavailable) digest from 192.168.111.112 The TCP-Connection is OK: telnet 192.168.111.112 8080 Trying 193.98.76.67... Connected to 192.168.111.112 (192.168.111.112). Escape character is '^]'.
sure, run squid with "#service squid start"
yes i am sure ! if i run squid with: service squid start = squid dont work if i run squid with: su - squid -c squid -D = squid works
Could you please attach log files (from /var/log/squid) when squid works (run by su - squid -c squid -D) and when it doesn't work (run by "service squid start")?
Created attachment 126795 [details] squid: runs with "service squid start"
Created attachment 126796 [details] squid: runs with "su - squid -c /usr/sbin/squid" here is the squid OK
If I understand well, problem appears only when you run "service squid start" under the squid user? Does it work fine if you start in under root?
NO! it do not matter if i run it as user: root oder as user: squid
Okay, and what is a problem if you run squid with "service squid start"? squid will crash (it doesn't look so according to attached log), it doesn't work properly (how do you test it?) or something else? Could you check the "no-digest" options for your parent cache? (add it to this line - "cache_peer 192.168.111.112 parent 8080 7 no-query")
I tryed: cache_peer 193.98.76.67 parent 8080 7 no-query no-digest please see "squid_log_NotOK_no-digest.tar.gz"
Created attachment 126822 [details] squid runs: "service squid start" - with no-digest in squid.conf
okay, but what is the problem? If you can't access to any page (like www.linux.de/www.redhat.de in your log) it's a problem with configuration (and your parent proxy) - see these (and many other mails from squid-mailing list) http://www.squid-cache.org/mail-archive/squid-users/200508/0689.html http://www.squid-cache.org/mail-archive/squid-users/200503/0291.html
my problem is, that all is OK (with parent) if i run squid with "su - squid -c /usr/sbin/squid" if i run with the same /etc/squid.conf the squid, with command: service squid start) the proxy dont work !
"the proxy dont work" is too vague. what doesn't work? you can't acess to pages via proxy, squid daemon crasches or what?
soory about my poor english ! if i use "su - squid -c /usr/sbin/squid" i can "surfing" the squid i using the parent proxy, and all is fine ! if i use "service squid start", i cant "surfing", the squid is not using the parent proxy, (i can see this in the firewall log file) i hope you understand what i meen ! thanks
Yes, I understand but I need the error message which you mentioned.
In the Browser: at fist time ------------- ERROR The requested URL could not be retrieved -------------------------------------------------------------------------------- While trying to retrieve the URL: http://www.linux.de/ The following error was encountered: Connection to 192.168.111.112 Failed The system returned: (13) Permission deniedThe remote host or network may be down. Please try the request again. Your cache administrator is root. -------------------------------------------------------------------------------- Generated Tue, 28 Mar 2006 11:14:56 GMT by proxy02 (squid/2.5.STABLE13) if i press "refresh" -------------------- ERROR The requested URL could not be retrieved -------------------------------------------------------------------------------- While trying to retrieve the URL: http://www.linux.de/ The following error was encountered: Unable to forward this request at this time. This request could not be forwarded to the origin server or to any parent caches. The most likely cause for this error is that: The cache administrator does not allow this cache to make direct connections to origin servers, and All configured parent caches are currently unreachable. Your cache administrator is root. -------------------------------------------------------------------------------- Generated Tue, 28 Mar 2006 11:16:18 GMT by proxy02 (squid/2.5.STABLE13) in /var/log/squid/cache.log 2006/03/28 13:14:56| TCP connection to 192.168.111.112/8080 failed 2006/03/28 13:14:56| TCP connection to 192.168.111.112/8080 failed 2006/03/28 13:14:56| TCP connection to 192.168.111.112/8080 failed 2006/03/28 13:14:56| TCP connection to 192.168.111.112/8080 failed 2006/03/28 13:14:56| TCP connection to 192.168.111.112/8080 failed 2006/03/28 13:14:56| TCP connection to 192.168.111.112/8080 failed 2006/03/28 13:14:56| TCP connection to 192.168.111.112/8080 failed 2006/03/28 13:14:56| TCP connection to 192.168.111.112/8080 failed 2006/03/28 13:14:56| TCP connection to 192.168.111.112/8080 failed 2006/03/28 13:14:56| TCP connection to 192.168.111.112/8080 failed 2006/03/28 13:14:56| Detected DEAD Parent: 192.168.111.112/8080/7 2006/03/28 13:14:56| TCP connection to 192.168.111.112/8080 failed 2006/03/28 13:16:18| Failed to select source for 'http://www.linux.de/' 2006/03/28 13:16:18| always_direct = 0 2006/03/28 13:16:18| never_direct = 1 2006/03/28 13:16:18| timedout = 0 in /var/log/squid/access.log is nothing to see !!!
It's definitely problem with your parent cache. For example, have you checked ICP port on your parent proxy? # icp_port: Used for querying neighbor caches about # objects. To have a non-ICP neighbor # specify '7' for the ICP port and make sure the # neighbor machine has the UDP echo port # enabled in its /etc/inetd.conf file. But I don't know why it works when you run squid via /usr/sbin/squid. Do you get any error messages in browser if you run squid with /usr/sbin/squid?
icp_port config i have from portal.squidforum.de i tryed cache_peer 193.98.76.67 parent 8080 7 no-query and cache_peer 193.98.76.67 parent 8080 0 no-query but the same problem ! with init-script squid dont runn correct ! with su - squid -c /usr/sbin/squid it runs ! No ErrorMessages in the Browser !
Sorry, is this what you need ? Can i help somethin to find the problem ? thanks bye