[squid-users] Broken upgrade from 2.1 to 2.4

From: Phil N <pnewlon@dont-contact.us>
Date: Wed, 5 Sep 2001 10:41:25 -0400

I upgraded a 2.1.x system to 2.4.STABLE2 this morning. After making
basic configuration changes to the default squid.conf (there was enough
difference in the 2.1 - 2.4 versions that I couldn't use the old conf.)
I now cannot get any HTTP requests thru the proxy. Removing the proxy
from the ipchains rules (REDIRECT 3128) gets around the problem and
users can work.

If you look within the snippet from the log file (debug on) for the
request http://www.toosan.com/index.htm, there are lines such as
"2001/09/04 16:42:21| Invalid URL: /index.htm" and "2001/09/04 16:42:21|
created entry 0x8412ad8: 'X-Squid-Error: ERR_INVALID_URL 0' " and
"2001/09/04 16:42:21| HTTP/1.0 400 Bad Request^M" and "2001/09/04
16:42:21| destroying entry 0x8412c00: 'X-Squid-Error: ERR_INVALID_URL 0'
"

Any ideas why I can't get requests through the proxy? What is up with
the "INVALID_URL" errors?

Thanks! Phil

[root@mail logs]# cat /usr/local/squid/etc/squid.conf |grep -v '#'

hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_dir ufs /var/squid/cache 100 16 256
cache_access_log /var/squid/logs/access.log
cache_log /var/squid/logs/cache.log
cache_store_log /var/squid/logs/store.log
debug_options ALL,2

acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563
acl allowed_hosts src 10.0.0.0/255.255.255.0
acl CONNECT method CONNECT
http_access allow all
cache_mgr pnewlon@toosan.com
httpd_accel_with_proxy off

------------------------------------------------

From cache.log w/ debug on:

2001/09/04 16:42:21| clientReadRequest: FD 13: reading request...
2001/09/04 16:42:21| commSetSelect: FD 13 type 1
2001/09/04 16:42:21| parseHttpRequest: Method is 'GET'
2001/09/04 16:42:21| parseHttpRequest: URI is '/index.htm'
2001/09/04 16:42:21| parseHttpRequest: Client HTTP version 1.0.
2001/09/04 16:42:21| parseHttpRequest: req_hdr = {Connection:
Keep-Alive^M
User-Agent: Mozilla/4.72 [en] (Win98; U)^M
Pragma: no-cache^M
Host: www.toosan.com^M
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png,
*/*^M
Accept-Encoding: gzip^M
Accept-Language: en,pdf^M
Accept-Charset: iso-8859-1,*,utf-8^M
Extension: Security/Remote-Passphrase^M
^M
}
2001/09/04 16:42:21| parseHttpRequest: end = {}
2001/09/04 16:42:21| parseHttpRequest: prefix_sz = 333, req_line_sz = 25
2001/09/04 16:42:21| cbdataAdd: 0x8410470
2001/09/04 16:42:21| parseHttpRequest: Request Header is
Connection: Keep-Alive^M
User-Agent: Mozilla/4.72 [en] (Win98; U)^M
Pragma: no-cache^M
Host: www.toosan.com^M
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png,
*/*^M
Accept-Encoding: gzip^M
Accept-Language: en,pdf^M
Accept-Charset: iso-8859-1,*,utf-8^M
Extension: Security/Remote-Passphrase^M
^M

2001/09/04 16:42:21| parseHttpRequest: Complete request received
2001/09/04 16:42:21| conn->in.offset = 0
2001/09/04 16:42:21| commSetTimeout: FD 13 timeout 86400
2001/09/04 16:42:21| Invalid URL: /index.htm
2001/09/04 16:42:21| init-ing hdr: 0x83f0fc0 owner: 1
2001/09/04 16:42:21| storeCreateEntry: '/index.htm'
2001/09/04 16:42:21| creating rep: 0x8410820
2001/09/04 16:42:21| init-ing hdr: 0x841085c owner: 2
2001/09/04 16:42:21| 0x841085c lookup for 37
2001/09/04 16:42:21| 0x841085c lookup for 9
2001/09/04 16:42:21| 0x841085c lookup for 21
2001/09/04 16:42:21| new_MemObject: returning 0x84103b0
2001/09/04 16:42:21| new_StoreEntry: returning 0x8410378
2001/09/04 16:42:21| storeKeyPrivate: GET /index.htm
2001/09/04 16:42:21| storeHashInsert: Inserting Entry 0x8410378 key
'1F50D3FED716654C47A5762BF263025A'
2001/09/04 16:42:21| storeReleaseRequest:
'1F50D3FED716654C47A5762BF263025A'
2001/09/04 16:42:21| cbdataAdd: 0x8410890
2001/09/04 16:42:21| cbdataLock: 0x8410470
2001/09/04 16:42:21| storeClientCopy: 1F50D3FED716654C47A5762BF263025A,
seen 0, want 0, size 4096, cb 0x8058d20, cbdata 0x84
10470
2001/09/04 16:42:21| cbdataLock: 0x8410890
2001/09/04 16:42:21| storeClientCopy2: 1F50D3FED716654C47A5762BF263025A
2001/09/04 16:42:21| storeClientCopy3: Waiting for more
2001/09/04 16:42:21| cbdataUnlock: 0x8410890
2001/09/04 16:42:21| storeLockObject: key
'1F50D3FED716654C47A5762BF263025A' count=2
2001/09/04 16:42:21| creating rep: 0x84118f0
2001/09/04 16:42:21| init-ing hdr: 0x841192c owner: 2
2001/09/04 16:42:21| 0x841192c lookup for 37
2001/09/04 16:42:21| 0x841192c lookup for 9
2001/09/04 16:42:21| 0x841192c lookup for 21
2001/09/04 16:42:21| errorConvert: %U --> '/index.htm'
2001/09/04 16:42:21| errorConvert: %U --> '/index.htm'
2001/09/04 16:42:21| errorConvert: %w --> 'pnewlon@toosan.com'
2001/09/04 16:42:21| errorConvert: %w --> 'pnewlon@toosan.com'
2001/09/04 16:42:21| errorConvert: %T --> 'Tue, 04 Sep 2001 20:42:21
GMT'
2001/09/04 16:42:21| errorConvert: %h --> 'mail.rr.com'
2001/09/04 16:42:21| errorConvert: %s --> 'Squid/2.4.STABLE2'
2001/09/04 16:42:21| errorConvert: %S --> '
<br clear="all">
<hr noshade size=1>
Generated Tue, 04 Sep 2001 20:42:21 GMT by mail.rr.com
(Squid/2.4.STABLE2)
</BODY></HTML>

2001/09/04 16:42:21| created entry 0x8412c00: 'Server:
Squid/2.4.STABLE2'
2001/09/04 16:42:21| 0x841192c adding entry: 43 at 0
2001/09/04 16:42:21| created entry 0x8413d30: 'Mime-Version: 1.0'
2001/09/04 16:42:21| 0x841192c adding entry: 32 at 1
2001/09/04 16:42:21| created entry 0x8413d70: 'Date: Tue, 04 Sep 2001
20:42:21 GMT'
2001/09/04 16:42:21| 0x841192c adding entry: 19 at 2
2001/09/04 16:42:21| created entry 0x8412190: 'Content-Type: text/html'
2001/09/04 16:42:21| 0x841192c adding entry: 17 at 3
2001/09/04 16:42:21| created entry 0x8410458: 'Content-Length: 826'
2001/09/04 16:42:21| 0x841192c adding entry: 13 at 4
2001/09/04 16:42:21| created entry 0x8412b18: 'Expires: Tue, 04 Sep 2001
20:42:21 GMT'
2001/09/04 16:42:21| 0x841192c adding entry: 21 at 5
2001/09/04 16:42:21| created entry 0x8412ad8: 'X-Squid-Error:
ERR_INVALID_URL 0'
2001/09/04 16:42:21| 0x841192c adding entry: 57 at 6
2001/09/04 16:42:21| packing sline 0x841191c using 0xbfffdbf8:
2001/09/04 16:42:21| HTTP/1.0 400 Bad Request^M

<SNIP>

2001/09/04 16:42:21| storeAppend: appending 826 bytes for
'1F50D3FED716654C47A5762BF263025A'
2001/09/04 16:42:21| memAppend: len 826
2001/09/04 16:42:21| destroying rep: 0x84118f0
2001/09/04 16:42:21| cleaning hdr: 0x841192c owner: 2
2001/09/04 16:42:21| destroying entry 0x8412c00: 'Server:
Squid/2.4.STABLE2'
2001/09/04 16:42:21| destroying entry 0x8413d30: 'Mime-Version: 1.0'
2001/09/04 16:42:21| destroying entry 0x8413d70: 'Date: Tue, 04 Sep 2001
20:42:21 GMT'
2001/09/04 16:42:21| destroying entry 0x8412190: 'Content-Type:
text/html'
2001/09/04 16:42:21| destroying entry 0x8410458: 'Content-Length: 826'
2001/09/04 16:42:21| destroying entry 0x8412b18: 'Expires: Tue, 04 Sep
2001 20:42:21 GMT'
2001/09/04 16:42:21| destroying entry 0x8412ad8: 'X-Squid-Error:
ERR_INVALID_URL 0'
2001/09/04 16:42:21| InvokeHandlers: 1F50D3FED716654C47A5762BF263025A
2001/09/04 16:42:21| InvokeHandlers: checking client #0
2001/09/04 16:42:21| cbdataLock: 0x8410890
2001/09/04 16:42:21| storeClientCopy2: 1F50D3FED716654C47A5762BF263025A
2001/09/04 16:42:21| storeClientCopy3: Copying from memory
2001/09/04 16:42:21| memCopy: offset 0: size 4096
2001/09/04 16:42:21| cbdataValid: 0x8410470
2001/09/04 16:42:21| clientSendMoreData: /index.htm, 1057 bytes
2001/09/04 16:42:21| clientSendMoreData: FD 13 '/index.htm',
out.offset=0
2001/09/04 16:42:21| creating rep: 0x84118f0
2001/09/04 16:42:21| init-ing hdr: 0x841192c owner: 2
2001/09/04 16:42:21| 0x841192c lookup for 37
2001/09/04 16:42:21| 0x841192c lookup for 9
2001/09/04 16:42:21| 0x841192c lookup for 21
2001/09/04 16:42:21| cleaning hdr: 0x841192c owner: 2
2001/09/04 16:42:21| init-ing hdr: 0x841192c owner: 2
2001/09/04 16:42:21| 0x841192c lookup for 37
2001/09/04 16:42:21| 0x841192c lookup for 9
2001/09/04 16:42:21| 0x841192c lookup for 21
2
Received on Wed Sep 05 2001 - 08:41:01 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:02:03 MST