You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@trafficserver.apache.org by salil GK <gk...@gmail.com> on 2017/01/14 08:10:47 UTC

Problem with parent.config

Hello

  I am finding difficulty in setting up forward proxy. I have made the
following entry in my parent.config

url_regex=google go_direct=true

What I expect is - in case a request comes with url with google, it should
directly forwarded to the destination ( www.google.com ).
But it doesn't work like that

The following is the log snippet .

    192 2017-01-14T07:51:05.935+00:00 lre2 traffic_server[26532]:
{0x2ad12a3c1700} DEBUG: <ParentSelection.cc:263 (findParent)> (cdn) Cal
    ling FindParent from findParent

    193 2017-01-14T07:51:05.935+00:00 lre2 traffic_server[26532]:
{0x2ad12a3c1700} DEBUG: <ParentSelection.cc:478 (FindParent)> (cdn) Ent
    ering FindParent (the inner loop)

    194 2017-01-14T07:51:05.935+00:00 lre2 traffic_server[26532]:
{0x2ad12a3c1700} DEBUG: <ParentSelection.cc:280 (findParent)> (cdn) PAR
    ENT_DIRECT

    195 2017-01-14T07:51:05.935+00:00 lre2 traffic_server[26532]:
{0x2ad12a3c1700} DEBUG: <ParentSelection.cc:297 (findParent)> (parent_s
    elect) Result for www.google.co.in was Parent_Direct

    196 2017-01-14T07:51:05.935+00:00 lre2 traffic_server[26532]:
{0x2ad12a3c1700} DEBUG: <HttpTransactHeaders.cc:629 (generate_and_set_s
    quid_codes)> (http_trans) [Squid code generation] Hit/Miss: 1, Log: u,
Hier: 2

    197 2017-01-14T07:51:05.935+00:00 lre2 traffic_server[26532]:
{0x2ad12a3c1700} DEBUG: <HttpTransactHeaders.cc:979 (add_server_header_
    to_response)> (http_trans) Adding Server: CE_E

    198 2017-01-14T07:51:05.935+00:00 lre2 traffic_server[26532]:
{0x2ad12a3c1700} DEBUG: <HttpTransact.cc:1375 (HandleRequest)> (http_tr
    ans) Next action SM_ACTION_SEND_ERROR_CACHE_NOOP; __null

    199 2017-01-14T07:51:05.935+00:00 lre2 traffic_server[26532]:
{0x2ad12a3c1700} DEBUG: <HttpSM.cc:6899 (call_transact_and_set_next_sta
    te)> (http) [6] State Transition: SM_ACTION_API_POST_REMAP ->
SM_ACTION_SEND_ERROR_CACHE_NOOP

    200 2017-01-14T07:51:05.935+00:00 lre2 traffic_server[26532]:
{0x2ad12a3c1700} DEBUG: <HttpSM.cc:1369 (state_api_callout)> (http) [6]
    calling plugin on hook TS_HTTP_SEND_RESPONSE_HDR_HOOK at hook
0x5647bb5550a0

    201 2017-01-14T07:51:05.935+00:00 lre2 traffic_server[26532]:
{0x2ad12a3c1700} DEBUG: <HttpSM.cc:1264 (state_api_callback)> (http) [6
    ] [&HttpSM::state_api_callback, HTTP_API_CONTINUE]


    202 2017-01-14T07:51:05.935+00:00 lre2 traffic_server[26532]:
{0x2ad12a3c1700} DEBUG: <HttpSM.cc:1304 (state_api_callout)> (http) [6]
   [&HttpSM::state_api_callout, HTTP_API_CONTINUE]
  203 2017-01-14T07:51:05.935+00:00 lre2 traffic_server[26532]:
{0x2ad12a3c1700} DEBUG: <HttpSM.cc:7382 (do_redirect)> (http_redirect)
    [HttpSM::do_redirect]

    204 2017-01-14T07:51:05.935+00:00 lre2 traffic_server[26532]:
{0x2ad12a3c1700} DEBUG: <HttpTunnel.cc:1669 (deallocate_redirect_postda
    ta_buffers)> (http_redirect)
[HttpTunnel::deallocate_postdata_copy_buffers]

    205 2017-01-14T07:51:05.935+00:00 lre2 traffic_server[26532]:
{0x2ad12a3c1700} DEBUG: <HttpTunnel.cc:1669 (deallocate_redirect_postda
    ta_buffers)> (http_redirect)
[HttpTunnel::deallocate_postdata_copy_buffers]

    206 2017-01-14T07:51:05.935+00:00 lre2 traffic_server[26532]:
{0x2ad12a3c1700} DEBUG: <HttpTunnel.cc:629 (add_producer)> (http_tunnel
    ) [6] adding producer 'internal msg'

    207 2017-01-14T07:51:05.935+00:00 lre2 traffic_server[26532]:
{0x2ad12a3c1700} DEBUG: <HttpTunnel.cc:684 (add_consumer)> (http_tunnel
    ) [6] adding consumer 'user agent'

    208 2017-01-14T07:51:05.935+00:00 lre2 traffic_server[26532]:
{0x2ad12a3c1700} DEBUG: <HttpTunnel.cc:730 (tunnel_run)> (http_tunnel)
    tunnel_run started, p_arg is provided

    209 2017-01-14T07:51:05.939+00:00 lre2 traffic_server[26532]:
{0x2ad12a3c1700} DEBUG: <HttpClientSession.cc:239 (do_io_write)> (http_
    cs) tcp_init_cwnd_set 0

    210 2017-01-14T07:51:05.939+00:00 lre2 traffic_server[26532]:
{0x2ad12a3c1700} DEBUG: <HttpClientSession.cc:252 (set_tcp_init_cwnd)>
    (http_cs) desired TCP congestion window is 0

    211 2017-01-14T07:51:05.939+00:00 lre2 traffic_server[26532]:
{0x2ad12a3c1700} DEBUG: <HttpTunnel.cc:1306 (consumer_handler)> (http_t
    unnel) [6] consumer_handler [user agent VC_EVENT_WRITE_COMPLETE]

    212 2017-01-14T07:51:05.939+00:00 lre2 traffic_server[26532]:
{0x2ad12a3c1700} DEBUG: <HttpSM.cc:3083 (tunnel_handler_ua)> (http) [6]
   [&HttpSM::tunnel_handler_ua, VC_EVENT_WRITE_COMPLETE]

    213 2017-01-14T07:51:05.939+00:00 lre2 traffic_server[26532]:
{0x2ad12a3c1700} DEBUG: <HttpClientSession.cc:501 (release)> (http_cs)
    [6] session released by sm [6]

    214 2017-01-14T07:51:05.939+00:00 lre2 traffic_server[26532]:
{0x2ad12a3c1700} DEBUG: <HttpClientSession.cc:239 (do_io_write)> (http_
    cs) tcp_init_cwnd_set 1

    215 2017-01-14T07:51:05.939+00:00 lre2 traffic_server[26532]:
{0x2ad12a3c1700} DEBUG: <HttpClientSession.cc:530 (release)> (http_cs)
    [6] initiating io for next header

    216 2017-01-14T07:51:05.939+00:00 lre2 traffic_server[26532]:
{0x2ad12a3c1700} DEBUG: <HttpSM.cc:2529 (main_handler)> (http) [6] [Htt
    pSM::main_handler, HTTP_TUNNEL_EVENT_DONE]

    217 2017-01-14T07:51:05.939+00:00 lre2 traffic_server[26532]:
{0x2ad12a3c1700} DEBUG: <HttpSM.cc:2782 (tunnel_handler)> (http) [6] [&
    HttpSM::tunnel_handler, HTTP_TUNNEL_EVENT_DONE]

    218 2017-01-14T07:51:05.939+00:00 lre2 traffic_server[26532]:
{0x2ad12a3c1700} DEBUG: <HttpTunnel.cc:1669 (deallocate_redirect_postda
    ta_buffers)> (http_redirect)
[HttpTunnel::deallocate_postdata_copy_buffers]

    219 2017-01-14T07:51:05.939+00:00 lre2 traffic_server[26532]:
{0x2ad12a3c1700} DEBUG: <HttpTunnel.cc:1669 (deallocate_redirect_postda
    ta_buffers)> (http_redirect)
[HttpTunnel::deallocate_postdata_copy_buffers]

    220 2017-01-14T07:51:05.939+00:00 lre2 traffic_server[26532]:
{0x2ad12a3c1700} DEBUG: <HttpSM.cc:1369 (state_api_callout)> (http) [6]
    calling plugin on hook TS_HTTP_TXN_CLOSE_HOOK at hook 0x5647bb555060

    221 2017-01-14T07:51:05.939+00:00 lre2 traffic_server[26532]:
{0x2ad12a3c1700} DIAG: (http_ttlog) Transaction close event

    222 2017-01-14T07:51:05.939+00:00 lre2 traffic_server[26532]:
{0x2ad12a3c1700} DIAG: (http_ttlog) Entering logHttp; txnp: 0x2ad12fabd
    8a0

    223 2017-01-14T07:51:05.939+00:00 lre2 traffic_server[26532]:
{0x2ad12a3c1700} DIAG: (http_ttlog) Buffer created in logHttp: 1

    224 2017-01-14T07:51:05.939+00:00 lre2 traffic_server[26532]:
{0x2ad12a3c1700} DIAG: (http_ttlog) Http Msg Hdr: HTTP/1.1 502 Next Hop
   Connection Failed^MDate: Sat, 14 Jan 2017 07:51:05 GMT^MConnection:
keep-alive^MServer: CE_E^MCache-Control: no-store^MContent-T        ype:
text/html^MContent-Language: en^MContent-Length: 247^M^M


what could be the issue ?


Thank

~S

Re: Problem with parent.config

Posted by salil GK <gk...@gmail.com>.
will there be any timer or any similar parameter playing here ? Is there
any way I can get more logs ?



On 14 January 2017 at 21:47, salil GK <gk...@gmail.com> wrote:

> Thanks for the reply
>
> Yes I can do wget www.google.co.in and it downloads index.html
>
> Thanks
> ~S
>
> On 14 January 2017 at 20:48, John Rushford <jj...@gmail.com> wrote:
>
>> Parent selection lookup returned PARENT_DIRECT so a direct connection to
>> www.google.co.in was opened.  It looks like it could not reach
>> www.google.co.in and a 502 was returned.  Can you curl www.google.co.in from
>> that machine?
>>
>> On Jan 14, 2017, at 1:10 AM, salil GK <gk...@gmail.com> wrote:
>>
>> www.google.co.in
>>
>>
>>
>

Re: Problem with parent.config

Posted by salil GK <gk...@gmail.com>.
Thanks for the reply

Yes I can do wget www.google.co.in and it downloads index.html

Thanks
~S

On 14 January 2017 at 20:48, John Rushford <jj...@gmail.com> wrote:

> Parent selection lookup returned PARENT_DIRECT so a direct connection to
> www.google.co.in was opened.  It looks like it could not reach
> www.google.co.in and a 502 was returned.  Can you curl www.google.co.in from
> that machine?
>
> On Jan 14, 2017, at 1:10 AM, salil GK <gk...@gmail.com> wrote:
>
> www.google.co.in
>
>
>

Re: Problem with parent.config

Posted by John Rushford <jj...@gmail.com>.
Parent selection lookup returned PARENT_DIRECT so a direct connection to www.google.co.in <http://www.google.co.in/> was opened.  It looks like it could not reach www.google.co.in <http://www.google.co.in/> and a 502 was returned.  Can you curl www.google.co.in <http://www.google.co.in/> from that machine?

> On Jan 14, 2017, at 1:10 AM, salil GK <gk...@gmail.com> wrote:
> 
> www.google.co.in <http://www.google.co.in/>