Discussion:
Help understanding a connection error log meaning
Dunkin, Nick
2018-06-15 14:48:47 UTC
Permalink
Good morning,

I’m running some load tests and I’m seeing the following in the error.log.

20180615.09h25m11s RESPONSE: sent xx.xx.xx.xx status 502 (Connect Error <Success/0>) for 'http://MyServer:80/MyPath'

(I’ve removed my IP address and path from the above log entry, but that shouldn’t matter for this question.)

I’d like to understand the meaning of Connect Error <Success/0>. Specifically the Success/0 bit.

Looking in the code I see the following (in HttpTransact.cc):

snprintf(reason_buffer, buf_len, "Connect Error <%s/%d>", get_error_string(s->cause_of_death_errno), s->cause_of_death_errno);

(where s is of type State*)
So, cause_of_death_errno is clearly 0. I’d like to understand what this means, can anyone direct me to some documentation or code?

This if 7.0.0

I’m sure this is a legitimate issue with my Origin, not Traffic Server and I’d just understand more about the error condition.

Many thanks,

Nick

Nick Dunkin
Principal Engineer
o: 678.258.4071
e: ***@curr.com<mailto:***@ccur.com>
4375 River Green Pkwy # 100, Duluth, GA 30096, USA
[/Users/nickd/Library/Containers/com.microsoft.Outlook/Data/Library/Caches/Signatures/signature_851612530]
Alan Carroll
2018-06-15 14:59:16 UTC
Permalink
This is known bug. The response was a 502 but the reason was not updated
correctly. See

https://github.com/apache/trafficserver/pull/1526
https://github.com/apache/trafficserver/pull/2825

It should be fixed for 8.0. I would think it would be fixed in 7.1.3.
Post by Dunkin, Nick
Good morning,
I’m running some load tests and I’m seeing the following in the
*error.log*.
*20180615.09h25m11s RESPONSE: sent xx.xx.xx.xx status 502 (Connect Error
<Success/0>) for 'http://MyServer:80/MyPath <http://MyServer:80/MyPath>'*
(I’ve removed my IP address and path from the above log entry, but that
shouldn’t matter for this question.)
I’d like to understand the meaning of *Connect Error <Success/0>*.
Specifically the *Success/0* bit.
snprintf(reason_buffer, buf_len, "Connect Error <%s/%d>",
get_error_string(s->cause_of_death_errno), s->cause_of_death_errno);
(where *s* is of type *State**)
So, *cause_of_death_errno* is clearly *0*. I’d like to understand what
this means, can anyone direct me to some documentation or code?
This if *7.0.0*
I’m sure this is a legitimate issue with my Origin, not Traffic Server and
I’d just understand more about the error condition.
Many thanks,
Nick
*Nick Dunkin*
*Principal Engineer*
*o:* 678.258.4071
4375 River Green Pkwy # 100, Duluth, GA
<https://maps.google.com/?q=4375+River+Green+Pkwy+%23+100,+Duluth,+GA+30096,+USA&entry=gmail&source=g>
30096, USA
<https://maps.google.com/?q=4375+River+Green+Pkwy+%23+100,+Duluth,+GA+30096,+USA&entry=gmail&source=g>
/Users/nickd/Library/Containers/com.microsoft.Outlook/Data/Library/Caches/Signatures/signature_851612530]
Fieck, Brennan
2018-06-15 15:23:10 UTC
Permalink
Since you asked to understand the meaning: Looking at the man pages (https://linux.die.net/man/3/errno) it looks like there's a library function somewhere that's exiting successfully but returning something non-zero. Likely it's setting the errno to 0 to distinguish this from an error and part of traffic server is looking at the return value itself as an indication of an error, and displaying the errno and information of the last error, but it's nothing.


Of course, that's all just a guess.

________________________________
From: Alan Carroll <***@oath.com>
Sent: Friday, June 15, 2018 8:59 AM
To: ***@trafficserver.apache.org
Subject: [EXTERNAL] Re: Help understanding a connection error log meaning

This is known bug. The response was a 502 but the reason was not updated correctly. See

https://github.com/apache/trafficserver/pull/1526
https://github.com/apache/trafficserver/pull/2825

It should be fixed for 8.0. I would think it would be fixed in 7.1.3.


On Fri, Jun 15, 2018 at 9:48 AM, Dunkin, Nick <***@ccur.com<mailto:***@ccur.com>> wrote:
Good morning,

I'm running some load tests and I'm seeing the following in the error.log.

20180615.09h25m11s RESPONSE: sent xx.xx.xx.xx status 502 (Connect Error <Success/0>) for 'http://MyServer:80/MyPath'

(I've removed my IP address and path from the above log entry, but that shouldn't matter for this question.)

I'd like to understand the meaning of Connect Error <Success/0>. Specifically the Success/0 bit.

Looking in the code I see the following (in HttpTransact.cc):

snprintf(reason_buffer, buf_len, "Connect Error <%s/%d>", get_error_string(s->cause_of_death_errno), s->cause_of_death_errno);

(where s is of type State*)
So, cause_of_death_errno is clearly 0. I'd like to understand what this means, can anyone direct me to some documentation or code?

This if 7.0.0

I'm sure this is a legitimate issue with my Origin, not Traffic Server and I'd just understand more about the error condition.

Many thanks,

Nick

Nick Dunkin
Principal Engineer
o: 678.258.4071
e: ***@curr.com<mailto:***@ccur.com>
4375 River Green Pkwy # 100, Duluth, GA<https://maps.google.com/?q=4375+River+Green+Pkwy+%23+100,+Duluth,+GA+30096,+USA&entry=gmail&source=g> 30096, USA<https://maps.google.com/?q=4375+River+Green+Pkwy+%23+100,+Duluth,+GA+30096,+USA&entry=gmail&source=g>
[/Users/nickd/Library/Containers/com.microsoft.Outlook/Data/Library/Caches/Signatures/signature_851612530]
Dunkin, Nick
2018-06-15 15:29:02 UTC
Permalink
Hi Alan,

I recently built 7.1.3. I’ll try with that.

Thanks!

NIck

From: Alan Carroll <***@oath.com>
Reply-To: "***@trafficserver.apache.org" <***@trafficserver.apache.org>
Date: Friday, June 15, 2018 at 10:59 AM
To: "***@trafficserver.apache.org" <***@trafficserver.apache.org>
Subject: Re: Help understanding a connection error log meaning

This is known bug. The response was a 502 but the reason was not updated correctly. See

https://github.com/apache/trafficserver/pull/1526
https://github.com/apache/trafficserver/pull/2825

It should be fixed for 8.0. I would think it would be fixed in 7.1.3.


On Fri, Jun 15, 2018 at 9:48 AM, Dunkin, Nick <***@ccur.com<mailto:***@ccur.com>> wrote:
Good morning,

I’m running some load tests and I’m seeing the following in the error.log.

20180615.09h25m11s RESPONSE: sent xx.xx.xx.xx status 502 (Connect Error <Success/0>) for 'http://MyServer:80/MyPath'

(I’ve removed my IP address and path from the above log entry, but that shouldn’t matter for this question.)

I’d like to understand the meaning of Connect Error <Success/0>. Specifically the Success/0 bit.

Looking in the code I see the following (in HttpTransact.cc):

snprintf(reason_buffer, buf_len, "Connect Error <%s/%d>", get_error_string(s->cause_of_death_errno), s->cause_of_death_errno);

(where s is of type State*)
So, cause_of_death_errno is clearly 0. I’d like to understand what this means, can anyone direct me to some documentation or code?

This if 7.0.0

I’m sure this is a legitimate issue with my Origin, not Traffic Server and I’d just understand more about the error condition.

Many thanks,

Nick

Nick Dunkin
Principal Engineer
o: 678.258.4071
e: ***@curr.com<mailto:***@ccur.com>
4375 River Green Pkwy # 100, Duluth, GA<https://maps.google.com/?q=4375+River+Green+Pkwy+%23+100,+Duluth,+GA+30096,+USA&entry=gmail&source=g> 30096, USA<https://maps.google.com/?q=4375+River+Green+Pkwy+%23+100,+Duluth,+GA+30096,+USA&entry=gmail&source=g>
[/Users/nickd/Library/Containers/com.microsoft.Outlook/Data/Library/Caches/Signatures/signature_851612530]
Loading...