Bug 186561
Summary: | squid: /etc/init.d/squid starts squid defect !!! | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Need Real Name <schneck> |
Component: | squid | Assignee: | Martin Stransky <stransky> |
Status: | CLOSED WORKSFORME | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 5 | CC: | antillon.maurizio |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2006-10-25 06:57:35 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Attachments: |
Description
Need Real Name
2006-03-24 13:37:28 UTC
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 |