runtime icon indicating copy to clipboard operation
runtime copied to clipboard

Curl exception: Problem with the SSL CA cert (path? access rights?) on centos, fedora, redhat.

Open danmoseley opened this issue 9 years ago • 89 comments

https://ci.dot.net/job/dotnet_corefx/job/master/job/outerloop_portablelinux_debug/lastCompletedBuild/testReport/System.Net.Tests/HttpWebRequestHeaderTest/GetResponse_UseDefaultCredentials_ExpectSuccess_remoteServer__https___corefx_net_cloudapp_net_Echo_ashx_/

MESSAGE:
System.Net.WebException : An error occurred while sending the request. Problem with the SSL CA cert (path? access rights?)\n---- System.Net.Http.HttpRequestException : An error occurred while sending the request.\n-------- System.Net.Http.CurlException : Problem with the SSL CA cert (path? access rights?)
+++++++++++++++++++
STACK TRACE:
at System.Net.HttpWebRequest.GetResponse() in /mnt/resource/j/workspace/dotnet_corefx/master/outerloop_portablelinux_debug/src/System.Net.Requests/src/System/Net/HttpWebRequest.cs:line 989 at System.Net.Tests.HttpWebRequestHeaderTest.GetResponse_UseDefaultCredentials_ExpectSuccess(Uri remoteServer) in /mnt/resource/j/workspace/dotnet_corefx/master/outerloop_portablelinux_debug/src/System.Net.Requests/tests/HttpWebRequestHeaderTest.cs:line 46 ----- Inner Stack Trace ----- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult() at System.Net.Http.HttpClient.<FinishSendAsyncUnbuffered>d__59.MoveNext() in /mnt/resource/j/workspace/dotnet_corefx/master/outerloop_portablelinux_debug/src/System.Net.Http/src/System/Net/Http/HttpClient.cs:line 487 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult() at System.Net.HttpWebRequest.<SendRequest>d__188.MoveNext() in /mnt/resource/j/workspace/dotnet_corefx/master/outerloop_portablelinux_debug/src/System.Net.Requests/src/System/Net/HttpWebRequest.cs:line 1192 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at System.Net.HttpWebRequest.GetResponse() in /mnt/resource/j/workspace/dotnet_corefx/master/outerloop_portablelinux_debug/src/System.Net.Requests/src/System/Net/HttpWebRequest.cs:line 985 ----- Inner Stack Trace ----- at System.Net.Http.CurlHandler.ThrowIfCURLEError(CURLcode error) in /mnt/resource/j/workspace/dotnet_corefx/master/outerloop_portablelinux_debug/src/System.Net.Http/src/System/Net/Http/Unix/CurlHandler.cs:line 640 at System.Net.Http.CurlHandler.MultiAgent.FinishRequest(StrongToWeakReference`1 easyWrapper, CURLcode messageResult) in /mnt/resource/j/workspace/dotnet_corefx/master/outerloop_portablelinux_debug/src/System.Net.Http/src/System/Net/Http/Unix/CurlHandler.MultiAgent.cs:line 852

@steveharter @Priya91 please either fix or (presumably) disable today, so we can get a green badge.

danmoseley avatar Feb 15 '17 21:02 danmoseley

Updated the machines to run update-ca-trust to keep the SSL certs database in sync with openssl cert path. This issue shouldn't happen anymore.

Priya91 avatar Feb 22 '17 03:02 Priya91

Happened again here: https://ci.dot.net/job/dotnet_corefx/job/master/job/outerloop_portablelinux_debug_prtest/9/

stephentoub avatar Feb 25 '17 19:02 stephentoub

@Priya91 any insights? cc @steveharter @ianhays

karelz avatar Feb 25 '17 19:02 karelz

Happened here: https://ci.dot.net/job/dotnet_corefx/job/master/job/outerloop_rhel7.2_release/111/testReport/System.Net.Tests/HttpWebRequestHeaderTest/GetResponse_UseDefaultCredentials_ExpectSuccess_remoteServer__https___corefx_net_cloudapp_net_Echo_ashx_/

KristinXie1 avatar Feb 27 '17 09:02 KristinXie1

Occurred here: https://ci.dot.net/job/dotnet_corefx/job/master/job/outerloop_rhel7.2_debug/117/testReport/System.Net.Tests/HttpWebRequestHeaderTest/GetResponse_UseDefaultCredentials_ExpectSuccess_remoteServer__https___corefx_net_cloudapp_net_Echo_ashx_/

KristinXie1 avatar Feb 28 '17 03:02 KristinXie1

This failure seems to happen when curl is compiled with NSS as crypto backend. I tried issuing 200 requests with curl multi handler, and was not able to repro this outside of .NET apis, Tried on centos 7. This could be a .NET bug, cc @stephentoub do you have any ideas on how to proceed to debug this..

#include <stdio.h>
#include <string.h>
#include <curl/curl.h>

#define HANDLECOUNT 200

int main(void)
{
  CURL *handles[HANDLECOUNT];
  CURLM *multi_handle;

  int still_running; 
  int i;

  CURLMsg *msg; 
  int msgs_left; 
  FILE *filep = fopen("output.txt", "wb");
  for(i=0; i<HANDLECOUNT; i++)
  {
    handles[i] = curl_easy_init();
    curl_easy_setopt(handles[i], CURLOPT_URL, "https://corefx-net.cloudapp.net/Echo.ashx");
    curl_easy_setopt(handles[i], CURLOPT_VERBOSE, 1L);
    curl_easy_setopt(handles[i], CURLOPT_STDERR, filep);
  }
  multi_handle = curl_multi_init();

  for(i=0; i<HANDLECOUNT; i++)
    curl_multi_add_handle(multi_handle, handles[i]);
  do
  {
    curl_multi_perform(multi_handle, &still_running);
  } while (still_running != 0);

  while((msg = curl_multi_info_read(multi_handle, &msgs_left))) {
    if(msg->msg == CURLMSG_DONE) {
      printf("HTTP transfer completed with status %d\n", msg->data.result);
    }
  }

  curl_multi_cleanup(multi_handle);

  for(i=0; i<HANDLECOUNT; i++)
    curl_easy_cleanup(handles[i]);

  return 0;
}

Priya91 avatar Mar 01 '17 00:03 Priya91

The ssl ca cert path issue is the main cause of outerloop rhel, centos and fedora builds failing.

Priya91 avatar Mar 01 '17 00:03 Priya91

This issue is repro on OuterLoop_Fedora23_debug (build#116), detail: https://ci.dot.net/job/dotnet_corefx/job/master/job/outerloop_fedora23_debug/116/testReport/System.Net.Tests/TaskWebClientTest/UploadFile_Success_echoServer__https___corefx_net_cloudapp_net_Echo_ashx_/

KristinXie1 avatar Mar 01 '17 06:03 KristinXie1

Failed again: https://ci.dot.net/job/dotnet_corefx/job/master/job/outerloop_rhel7.2_release_prtest/1/consoleText

stephentoub avatar Mar 03 '17 03:03 stephentoub

Failed again here: https://ci.dot.net/job/dotnet_corefx/job/master/job/outerloop_rhel7.2_debug/lastCompletedBuild/testReport/

KristinXie1 avatar Mar 03 '17 06:03 KristinXie1

Failed again here: https://ci.dot.net/job/dotnet_corefx/job/master/job/outerloop_centos7.1_release/117/testReport/System.Net.Tests/HttpWebRequestTest/Headers_GetResponseHeaders_ContainsExpectedValue_remoteServer__https___corefx_net_cloudapp_net_Echo_ashx_/

KristinXie1 avatar Mar 07 '17 06:03 KristinXie1

@tmds @omajid we could use your help on this issue ...

karelz avatar Mar 08 '17 01:03 karelz

@Priya91 if the issue is occuring on some machines and not on others, perhaps we learn something by looking at difference in versions of the nss and curl packages on a working vs failing machine?

rpm -qa | grep nss
rpm -qa | grep curl

tmds avatar Mar 08 '17 12:03 tmds

@tmds It's not a case of some machines, this failure happens on redhat, centos and fedora images.. Whereas ubuntu and debian which has curl with openssl doesn't have this failure. Also note that, the test is just sending a get response to a https server on azure, no extra certs are being added. Curl is calling for checking for certs from nss datastore.

The versions of curl and nss on the affected images are this,

[lasekar@centos ~]$ rpm -qa | grep curl
python-pycurl-7.19.0-17.el7.x86_64
libcurl-7.29.0-19.el7.x86_64
libcurl-devel-7.29.0-19.el7.x86_64
curl-7.29.0-19.el7.x86_64

[lasekar@centos ~]$ rpm -qa | grep nss
openssh-server-6.6.1p1-12.el7_1.x86_64
openssl-libs-1.0.1e-42.el7.9.x86_64
nss-softokn-freebl-3.16.2.3-12.el7_1.x86_64
nss-3.19.1-5.el7_1.x86_64
nss-sysinit-3.19.1-5.el7_1.x86_64
jansson-2.4-6.el7.x86_64
openssl-devel-1.0.1e-42.el7.9.x86_64
nss-softokn-3.16.2.3-12.el7_1.x86_64
openssh-6.6.1p1-12.el7_1.x86_64
openssh-clients-6.6.1p1-12.el7_1.x86_64
openssl-1.0.1e-42.el7.9.x86_64
nss-util-3.19.1-3.el7_1.x86_64
nss-tools-3.19.1-5.el7_1.x86_64

Priya91 avatar Mar 08 '17 19:03 Priya91

It's not a case of some machines, this failure happens on redhat, centos and fedora images

I misunderstood, I thought it was working on some rhel/centos/fedora machines.

Looking at the centos packages (http://mirror.centos.org/centos/7/os/x86_64/Packages/) there seem to be newer packages available. Does yum update bring newer versions of these packages? Perhaps they include a fix?

tmds avatar Mar 08 '17 20:03 tmds

Failed again here: https://ci.dot.net/job/dotnet_corefx/job/master/job/outerloop_fedora23_debug/124/testReport/System.Net.Tests/TaskWebClientTest/UploadString_Success_echoServer__https___corefx_net_cloudapp_net_Echo_ashx_/

KristinXie1 avatar Mar 09 '17 07:03 KristinXie1

@tmds So i set the curl verbose option, and i didn't see the error from the data that curl prints. Somehow the curl easy agent is storing this error. Not sure what to make of it.

cc @stephentoub @steveharter

  /home/lasekar/corefx/bin/testhost/netcoreapp-Linux-Debug-x64//dotnet xunit.console.netcore.exe System.Net.Requests.Tests.dll  -xml testResults.xml -notrait Benchmark=true -notrait category=nonnetcoreapp1.1tests  -notrait category=failing -notrait category=nonlinuxtests
  ~/corefx/bin/AnyOS.AnyCPU.Debug/System.Net.Requests.Tests/netstandard ~/corefx/src/System.Net.Requests/tests
  xUnit.net console test runner (64-bit .NET Core)
  Copyright (C) 2014 Outercurve Foundation.
  
  Discovering: System.Net.Requests.Tests
  Discovered:  System.Net.Requests.Tests
  Starting:    System.Net.Requests.Tests
  * About to connect() to 127.0.0.1 port 34450 (#1)
  *   Trying 127.0.0.1...
  * TCP_NODELAY set
  * About to connect() to 127.0.0.1 port 49253 (#3)
  *   Trying 127.0.0.1...
  * TCP_NODELAY set
  * Connected to 127.0.0.1 (127.0.0.1) port 49253 (#3)
  * Connected to 127.0.0.1 (127.0.0.1) port 34450 (#1)
  > GET / HTTP/1.1
  Host: 127.0.0.1:49253
  Accept: */*
  Accept-Encoding: gzip,deflate
  
  > GET / HTTP/1.1
  Host: 127.0.0.1:34450
  Accept: */*
  Accept-Encoding: gzip,deflate
  
     System.Net.Tests.FtpWebRequestTest.Ftp_RenameFileSubDir_Success [SKIP]
        Condition(s) not met: \"LocalServerAvailable\"
     System.Net.Tests.FtpWebRequestTest.Ftp_MakeAndRemoveDir_Success [SKIP]
        Condition(s) not met: \"LocalServerAvailable\"
  < HTTP/1.1 200 OK
  < HTTP/1.1 200 OK
  < Date: Sat, 11 Mar 2017 00:00:02 GMT
  < Date: Sat, 11 Mar 2017 00:00:02 GMT
  < Content-Type: application/json;charset=UTF-8
  < Content-Length: 5
  < Content-Length: 5
  < 
  < 
  * Closing connection 3
  * About to connect() to 127.0.0.1 port 42625 (#4)
  *   Trying 127.0.0.1...
  * TCP_NODELAY set
  * Connected to 127.0.0.1 (127.0.0.1) port 42625 (#4)
  > GET / HTTP/1.1
  Host: 127.0.0.1:42625
  Accept: */*
  Accept-Encoding: gzip,deflate
  
  < HTTP/1.1 200 OK
  < Date: Sat, 11 Mar 2017 00:00:02 GMT
  < Content-Type: text/html
  < Content-Length: 5
  < 
  * Closing connection 4
  * About to connect() to 127.0.0.1 port 52488 (#5)
  *   Trying 127.0.0.1...
  * TCP_NODELAY set
  * Connected to 127.0.0.1 (127.0.0.1) port 52488 (#5)
  > GET / HTTP/1.1
  Host: 127.0.0.1:52488
  Accept: */*
  Accept-Encoding: gzip,deflate
  
  < HTTP/1.1 200 OK
  < Date: Sat, 11 Mar 2017 00:00:02 GMT
  < Content-Type: text/html; charset=utf-8
  < Content-Length: 5
  < 
  * Closing connection 5
  * About to connect() to 127.0.0.1 port 34625 (#6)
  *   Trying 127.0.0.1...
  * TCP_NODELAY set
  * Connected to 127.0.0.1 (127.0.0.1) port 34625 (#6)
  > GET / HTTP/1.1
  Host: 127.0.0.1:34625
  Accept: */*
  Accept-Encoding: gzip,deflate
  
  < HTTP/1.1 200 OK
  < Date: Sat, 11 Mar 2017 00:00:02 GMT
  < Content-Type: TypeAndNoSubType
  < Content-Length: 5
  < 
  * Closing connection 6
  * Closing connection 1
  * About to connect() to 127.0.0.1 port 37020 (#7)
  *   Trying 127.0.0.1...
  * TCP_NODELAY set
  * Connected to 127.0.0.1 (127.0.0.1) port 37020 (#7)
  > GET / HTTP/1.1
  Host: 127.0.0.1:37020
  Accept: */*
  Accept-Encoding: gzip,deflate
  
  < HTTP/1.1 200 OK
  < Date: Sat, 11 Mar 2017 00:00:02 GMT
  < Content-Type: application/json;charset=UTF-8
  < Content-Length: 5
  < 
  * Closing connection 7
  * About to connect() to 127.0.0.1 port 50718 (#8)
  *   Trying 127.0.0.1...
  * TCP_NODELAY set
  * Connected to 127.0.0.1 (127.0.0.1) port 50718 (#8)
  > GET / HTTP/1.1
  Host: 127.0.0.1:50718
  Accept: */*
  Accept-Encoding: gzip,deflate
  
  < HTTP/1.1 200 OK
  * Connection dotnet/corefx#8 to host 127.0.0.1 left intact
  * About to connect() to 127.0.0.1 port 41451 (#9)
  *   Trying 127.0.0.1...
  * TCP_NODELAY set
  * Connected to 127.0.0.1 (127.0.0.1) port 41451 (#9)
  > GET / HTTP/1.1
  Host: 127.0.0.1:41451
  Accept: */*
  Accept-Encoding: gzip,deflate
  
  < HTTP/1.1 200 OK
  < Date: Sat, 11 Mar 2017 00:00:02 GMT
  < Content-Type: application/json;charset=UTF-8
  < Content-Length: 5
  < 
  * About to connect() to corefx-net.cloudapp.net port 80 (#0)
  * About to connect() to corefx-net.cloudapp.net port 80 (#2)
  *   Trying 40.118.166.132...
  * TCP_NODELAY set
  *   Trying 40.118.166.132...
  * TCP_NODELAY set
  * Connected to corefx-net.cloudapp.net (40.118.166.132) port 80 (#2)
  * Connected to corefx-net.cloudapp.net (40.118.166.132) port 80 (#0)
  > GET /Echo.ashx HTTP/1.1
  Host: corefx-net.cloudapp.net
  Accept: */*
  Accept-Encoding: gzip,deflate
  
  > GET /Echo.ashx HTTP/1.1
  Host: corefx-net.cloudapp.net
  Accept: */*
  Accept-Encoding: gzip,deflate
  
  < HTTP/1.1 200 OK
  < Cache-Control: private
  < Content-Type: application/json; charset=utf-8
  < Content-MD5: qEIGeeo7QcDVNABsNIvLUQ==
  < Server: Microsoft-IIS/8.5
  < X-HttpRequest-Method: GET
  < X-AspNet-Version: 4.0.30319
  < X-Powered-By: ASP.NET
  < Date: Sat, 11 Mar 2017 00:00:01 GMT
  < Content-Length: 314
  < 
  < HTTP/1.1 200 OK
  < Cache-Control: private
  < Content-Type: application/json; charset=utf-8
  < Content-MD5: qEIGeeo7QcDVNABsNIvLUQ==
  < Server: Microsoft-IIS/8.5
  < X-HttpRequest-Method: GET
  < X-AspNet-Version: 4.0.30319
  < X-Powered-By: ASP.NET
  < Date: Sat, 11 Mar 2017 00:00:03 GMT
  < Content-Length: 314
  < 
  * About to connect() to corefx-net.cloudapp.net port 443 (#10)
  *   Trying 40.118.166.132...
  * TCP_NODELAY set
  * About to connect() to corefx-net.cloudapp.net port 443 (#11)
  *   Trying 40.118.166.132...
  * TCP_NODELAY set
  * Connected to corefx-net.cloudapp.net (40.118.166.132) port 443 (#10)
  * Initializing NSS with certpath: sql:/etc/pki/nssdb
  * Connected to corefx-net.cloudapp.net (40.118.166.132) port 443 (#11)
  *   CAfile: /etc/pki/tls/certs/ca-bundle.crt
    CApath: none
  * Closing connection 11
  * SSL connection using TLS_RSA_WITH_AES_256_CBC_SHA
  * Server certificate:
  * 	subject: CN=corefx-net.cloudapp.net,OU=Microsoft Corporation,O=Microsoft Corporation,L=Redmond,ST=WA,C=US
  * 	start date: Jan 12 01:18:21 2016 GMT
  * 	expire date: Jan 11 01:18:21 2018 GMT
  * 	common name: corefx-net.cloudapp.net
  * 	issuer: CN=Microsoft IT SSL SHA2,OU=Microsoft IT,O=Microsoft Corporation,L=Redmond,ST=Washington,C=US
  > GET /Echo.ashx HTTP/1.1
  Host: corefx-net.cloudapp.net
  Accept: */*
  Accept-Encoding: gzip,deflate
  
  < HTTP/1.1 200 OK
  < Cache-Control: private
  < Content-Type: application/json; charset=utf-8
  < Content-MD5: J2AUBYowrn+h4dfY0T8Y1g==
  < Server: Microsoft-IIS/8.5
  < X-HttpRequest-Method: GET
  < X-AspNet-Version: 4.0.30319
  < X-Powered-By: ASP.NET
  < Date: Sat, 11 Mar 2017 00:00:04 GMT
  < Content-Length: 313
  < 
  * About to connect() to 127.0.0.1 port 33575 (#12)
  *   Trying 127.0.0.1...
  * TCP_NODELAY set
  * Connected to 127.0.0.1 (127.0.0.1) port 33575 (#12)
  > GET / HTTP/1.1
  Host: 127.0.0.1:33575
  Accept: */*
  Accept-Encoding: gzip,deflate
  
  * Closing connection 12
     System.Net.Tests.HttpWebRequestTest.GetResponseAsync_UseDefaultCredentials_ExpectSuccess(remoteServer: https://corefx-net.cloudapp.net/Echo.ashx) [FAIL]
        System.Net.WebException : An error occurred while sending the request. Problem with the SSL CA cert (path? access rights?)
        ---- System.Net.Http.HttpRequestException : An error occurred while sending the request.
        -------- System.Net.Http.CurlException : Problem with the SSL CA cert (path? access rights?)
        Stack Trace:
           /home/lasekar/corefx/src/System.Net.Requests/src/System/Net/HttpWebRequest.cs(1246,0): at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
           /home/lasekar/corefx/src/System.Net.Requests/src/System/Net/WebRequest.cs(552,0): at System.Net.WebRequest.<>c.<GetResponseAsync>b__68_2(IAsyncResult iar)
              at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
           --- End of stack trace from previous location where exception was thrown ---
              at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
              at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
              at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
           /home/lasekar/corefx/src/System.Net.Requests/tests/HttpWebRequestTest.cs(364,0): at System.Net.Tests.HttpWebRequestTest.<GetResponseAsync_UseDefaultCredentials_ExpectSuccess>d__43.MoveNext()
           --- End of stack trace from previous location where exception was thrown ---
              at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
              at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
           --- End of stack trace from previous location where exception was thrown ---
              at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
              at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
           --- End of stack trace from previous location where exception was thrown ---
              at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
              at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
           ----- Inner Stack Trace -----
              at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
              at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
              at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
           /home/lasekar/corefx/src/System.Net.Http/src/System/Net/Http/HttpClient.cs(487,0): at System.Net.Http.HttpClient.<FinishSendAsyncUnbuffered>d__59.MoveNext()
           --- End of stack trace from previous location where exception was thrown ---
              at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
              at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
              at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
           /home/lasekar/corefx/src/System.Net.Requests/src/System/Net/HttpWebRequest.cs(1192,0): at System.Net.HttpWebRequest.<SendRequest>d__188.MoveNext()
           --- End of stack trace from previous location where exception was thrown ---
              at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
              at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
              at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
           /home/lasekar/corefx/src/System.Net.Requests/src/System/Net/HttpWebRequest.cs(1242,0): at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
           ----- Inner Stack Trace -----
           /home/lasekar/corefx/src/System.Net.Http/src/System/Net/Http/Unix/CurlHandler.cs(640,0): at System.Net.Http.CurlHandler.ThrowIfCURLEError(CURLcode error)
           /home/lasekar/corefx/src/System.Net.Http/src/System/Net/Http/Unix/CurlHandler.MultiAgent.cs(858,0): at System.Net.Http.CurlHandler.MultiAgent.FinishRequest(StrongToWeakReference`1 easyWrapper, CURLcode messageResult)
  * About to connect() to corefx-net.cloudapp.net port 80 (#13)
  *   Trying 40.118.166.132...
  * TCP_NODELAY set
  * About to connect() to corefx-net.cloudapp.net port 80 (#14)
  *   Trying 40.118.166.132...
  * TCP_NODELAY set
  * Connected to corefx-net.cloudapp.net (40.118.166.132) port 80 (#13)
  > GET /Echo.ashx HTTP/1.1
  Host: corefx-net.cloudapp.net
  Accept: */*
  Accept-Encoding: gzip,deflate
  
  * Connected to corefx-net.cloudapp.net (40.118.166.132) port 80 (#14)
  > GET /Echo.ashx HTTP/1.1
  Host: corefx-net.cloudapp.net
  Accept: */*
  Accept-Encoding: gzip,deflate
  
  < HTTP/1.1 200 OK
  < Cache-Control: private
  < Content-Type: application/json; charset=utf-8
  < Content-MD5: qEIGeeo7QcDVNABsNIvLUQ==
  < Server: Microsoft-IIS/8.5
  < X-HttpRequest-Method: GET
  < X-AspNet-Version: 4.0.30319
  < X-Powered-By: ASP.NET
  < Date: Sat, 11 Mar 2017 00:00:05 GMT
  < Content-Length: 314
  < 
  * Closing connection 13
  < HTTP/1.1 200 OK
  < Cache-Control: private
  < Content-Type: application/json; charset=utf-8
  < Content-MD5: qEIGeeo7QcDVNABsNIvLUQ==
  < Server: Microsoft-IIS/8.5
  < X-HttpRequest-Method: GET
  < X-AspNet-Version: 4.0.30319
  < X-Powered-By: ASP.NET
  < Date: Sat, 11 Mar 2017 00:00:04 GMT
  < Content-Length: 314
  < 
  * About to connect() to corefx-net.cloudapp.net port 80 (#15)
  *   Trying 40.118.166.132...
  * TCP_NODELAY set
  * About to connect() to corefx-net.cloudapp.net port 443 (#16)
  *   Trying 40.118.166.132...
  * TCP_NODELAY set
  * Connected to corefx-net.cloudapp.net (40.118.166.132) port 80 (#15)
  > GET /Echo.ashx HTTP/1.1
  Host: corefx-net.cloudapp.net
  Accept: */*
  Accept-Encoding: gzip,deflate
  
  * Connected to corefx-net.cloudapp.net (40.118.166.132) port 443 (#16)
  *   CAfile: /etc/pki/tls/certs/ca-bundle.crt
    CApath: none
  < HTTP/1.1 200 OK
  < Cache-Control: private
  < Content-Type: application/json; charset=utf-8
  < Content-MD5: qEIGeeo7QcDVNABsNIvLUQ==
  < Server: Microsoft-IIS/8.5
  < X-HttpRequest-Method: GET
  < X-AspNet-Version: 4.0.30319
  < X-Powered-By: ASP.NET
  < Date: Sat, 11 Mar 2017 00:00:06 GMT
  < Content-Length: 314
  < 
  * Closing connection 15
  * SSL connection using TLS_RSA_WITH_AES_256_CBC_SHA
  * Server certificate:
  * 	subject: CN=corefx-net.cloudapp.net,OU=Microsoft Corporation,O=Microsoft Corporation,L=Redmond,ST=WA,C=US
  * 	start date: Jan 12 01:18:21 2016 GMT
  * 	expire date: Jan 11 01:18:21 2018 GMT
  * 	common name: corefx-net.cloudapp.net
  * 	issuer: CN=Microsoft IT SSL SHA2,OU=Microsoft IT,O=Microsoft Corporation,L=Redmond,ST=Washington,C=US
  > GET /Echo.ashx HTTP/1.1
  Host: corefx-net.cloudapp.net
  Accept: */*
  Accept-Encoding: gzip,deflate
  
  < HTTP/1.1 200 OK
  < Cache-Control: private
  < Content-Type: application/json; charset=utf-8
  < Content-MD5: J2AUBYowrn+h4dfY0T8Y1g==
  < Server: Microsoft-IIS/8.5
  < X-HttpRequest-Method: GET
  < X-AspNet-Version: 4.0.30319
  < X-Powered-By: ASP.NET
  < Date: Sat, 11 Mar 2017 00:00:06 GMT
  < Content-Length: 313
  < 
  * About to connect() to corefx-net.cloudapp.net port 443 (#17)
  *   Trying 40.118.166.132...
  * TCP_NODELAY set
  * Connected to corefx-net.cloudapp.net (40.118.166.132) port 443 (#17)
  *   CAfile: /etc/pki/tls/certs/ca-bundle.crt
    CApath: none
  * About to connect() to corefx-net.cloudapp.net port 80 (#18)
  *   Trying 40.118.166.132...
  * TCP_NODELAY set
  * SSL connection using TLS_RSA_WITH_AES_256_CBC_SHA
  * Server certificate:
  * 	subject: CN=corefx-net.cloudapp.net,OU=Microsoft Corporation,O=Microsoft Corporation,L=Redmond,ST=WA,C=US
  * 	start date: Jan 12 01:18:21 2016 GMT
  * 	expire date: Jan 11 01:18:21 2018 GMT
  * 	common name: corefx-net.cloudapp.net
  * 	issuer: CN=Microsoft IT SSL SHA2,OU=Microsoft IT,O=Microsoft Corporation,L=Redmond,ST=Washington,C=US
  > GET /Echo.ashx HTTP/1.1
  Host: corefx-net.cloudapp.net
  Accept: */*
  Accept-Encoding: gzip,deflate
  
  * Connected to corefx-net.cloudapp.net (40.118.166.132) port 80 (#18)
  > GET /Echo.ashx HTTP/1.1
  Host: corefx-net.cloudapp.net
  Accept: */*
  Accept-Encoding: gzip,deflate
  
  < HTTP/1.1 200 OK
  < Cache-Control: private
  < Content-Type: application/json; charset=utf-8
  < Content-MD5: J2AUBYowrn+h4dfY0T8Y1g==
  < Server: Microsoft-IIS/8.5
  < X-HttpRequest-Method: GET
  < X-AspNet-Version: 4.0.30319
  < X-Powered-By: ASP.NET
  < Date: Sat, 11 Mar 2017 00:00:06 GMT
  < Content-Length: 313
  < 
  * Closing connection 17
  < HTTP/1.1 200 OK
  < Cache-Control: private
  < Content-Type: application/json; charset=utf-8
  < Content-MD5: qEIGeeo7QcDVNABsNIvLUQ==
  < Server: Microsoft-IIS/8.5
  < X-HttpRequest-Method: GET
  < X-AspNet-Version: 4.0.30319
  < X-Powered-By: ASP.NET
  < Date: Sat, 11 Mar 2017 00:00:06 GMT
  < Content-Length: 314
  < 
  * Connection dotnet/runtime#13851 to host corefx-net.cloudapp.net left intact
  * About to connect() to corefx-net.cloudapp.net port 443 (#19)
  *   Trying 40.118.166.132...
  * TCP_NODELAY set
  * Connected to corefx-net.cloudapp.net (40.118.166.132) port 443 (#19)
  *   CAfile: /etc/pki/tls/certs/ca-bundle.crt
    CApath: none
  * SSL connection using TLS_RSA_WITH_AES_256_CBC_SHA
  * Server certificate:
  * 	subject: CN=corefx-net.cloudapp.net,OU=Microsoft Corporation,O=Microsoft Corporation,L=Redmond,ST=WA,C=US
  * 	start date: Jan 12 01:18:21 2016 GMT
  * 	expire date: Jan 11 01:18:21 2018 GMT
  * 	common name: corefx-net.cloudapp.net
  * 	issuer: CN=Microsoft IT SSL SHA2,OU=Microsoft IT,O=Microsoft Corporation,L=Redmond,ST=Washington,C=US
  > GET /Echo.ashx HTTP/1.1
  Host: corefx-net.cloudapp.net
  Accept: */*
  Accept-Encoding: gzip,deflate
  
  < HTTP/1.1 200 OK
  < Cache-Control: private
  < Content-Type: application/json; charset=utf-8
  < Content-MD5: J2AUBYowrn+h4dfY0T8Y1g==
  < Server: Microsoft-IIS/8.5
  < X-HttpRequest-Method: GET
  < X-AspNet-Version: 4.0.30319
  < X-Powered-By: ASP.NET
  < Date: Sat, 11 Mar 2017 00:00:08 GMT
  < Content-Length: 313
  < 
  * Connection dotnet/corefx#19 to host corefx-net.cloudapp.net left intact
  * Could not resolve host: www.68d99c3f-313c-4d16-bfcf-ec15ca7a618d.com; Name or service not known
  * Closing connection 20
  * About to connect() to corefx-net.cloudapp.net port 80 (#21)
  *   Trying 40.118.166.132...
  * TCP_NODELAY set
  * Connected to corefx-net.cloudapp.net (40.118.166.132) port 80 (#21)
  > GET /Echo.ashx HTTP/1.1
  Host: corefx-net.cloudapp.net
  Accept: */*
  Accept-Encoding: gzip,deflate
  
  < HTTP/1.1 200 OK
  < Cache-Control: private
  < Content-Type: application/json; charset=utf-8
  < Content-MD5: qEIGeeo7QcDVNABsNIvLUQ==
  < Server: Microsoft-IIS/8.5
  < X-HttpRequest-Method: GET
  < X-AspNet-Version: 4.0.30319
  < X-Powered-By: ASP.NET
  < Date: Sat, 11 Mar 2017 00:00:10 GMT
  < Content-Length: 314
  < 
  * About to connect() to corefx-net.cloudapp.net port 443 (#22)
  *   Trying 40.118.166.132...
  * TCP_NODELAY set
  * Connected to corefx-net.cloudapp.net (40.118.166.132) port 443 (#22)
  *   CAfile: /etc/pki/tls/certs/ca-bundle.crt
    CApath: none
  * SSL connection using TLS_RSA_WITH_AES_256_CBC_SHA
  * Server certificate:
  * 	subject: CN=corefx-net.cloudapp.net,OU=Microsoft Corporation,O=Microsoft Corporation,L=Redmond,ST=WA,C=US
  * 	start date: Jan 12 01:18:21 2016 GMT
  * 	expire date: Jan 11 01:18:21 2018 GMT
  * 	common name: corefx-net.cloudapp.net
  * 	issuer: CN=Microsoft IT SSL SHA2,OU=Microsoft IT,O=Microsoft Corporation,L=Redmond,ST=Washington,C=US
  > GET /Echo.ashx HTTP/1.1
  Host: corefx-net.cloudapp.net
  Accept: */*
  Accept-Encoding: gzip,deflate
  
  < HTTP/1.1 200 OK
  < Cache-Control: private
  < Content-Type: application/json; charset=utf-8
  < Content-MD5: J2AUBYowrn+h4dfY0T8Y1g==
  < Server: Microsoft-IIS/8.5
  < X-HttpRequest-Method: GET
  < X-AspNet-Version: 4.0.30319
  < X-Powered-By: ASP.NET
  < Date: Sat, 11 Mar 2017 00:00:11 GMT
  < Content-Length: 313
  < 
  * About to connect() to corefx-net.cloudapp.net port 80 (#23)
  *   Trying 40.118.166.132...
  * TCP_NODELAY set
  * Connected to corefx-net.cloudapp.net (40.118.166.132) port 80 (#23)
  > GET /Echo.ashx HTTP/1.1
  Host: corefx-net.cloudapp.net
  Accept: */*
  Accept-Encoding: gzip,deflate
  Content-Type: application/json
  Content-Length: 0
  Expect: 100-continue
  
  < HTTP/1.1 200 OK
  < Cache-Control: private
  < Content-Type: application/json; charset=utf-8
  < Content-MD5: HpbhwQr0VGErhy+YpegSlg==
  < Server: Microsoft-IIS/8.5
  < X-HttpRequest-Method: GET
  < X-AspNet-Version: 4.0.30319
  < X-Powered-By: ASP.NET
  < Date: Sat, 11 Mar 2017 00:00:13 GMT
  < Content-Length: 414
  < 
  * Connection dotnet/corefx#23 to host corefx-net.cloudapp.net left intact
  * About to connect() to corefx-net.cloudapp.net port 443 (#24)
  *   Trying 40.118.166.132...
  * TCP_NODELAY set
  * Connected to corefx-net.cloudapp.net (40.118.166.132) port 443 (#24)
  *   CAfile: /etc/pki/tls/certs/ca-bundle.crt
    CApath: none
  * SSL connection using TLS_RSA_WITH_AES_256_CBC_SHA
  * Server certificate:
  * 	subject: CN=corefx-net.cloudapp.net,OU=Microsoft Corporation,O=Microsoft Corporation,L=Redmond,ST=WA,C=US
  * 	start date: Jan 12 01:18:21 2016 GMT
  * 	expire date: Jan 11 01:18:21 2018 GMT
  * 	common name: corefx-net.cloudapp.net
  * 	issuer: CN=Microsoft IT SSL SHA2,OU=Microsoft IT,O=Microsoft Corporation,L=Redmond,ST=Washington,C=US
  > GET /Echo.ashx HTTP/1.1
  Host: corefx-net.cloudapp.net
  Accept: */*
  Accept-Encoding: gzip,deflate
  Content-Type: application/json
  Content-Length: 0
  Expect: 100-continue
  
  < HTTP/1.1 200 OK
  < Cache-Control: private
  < Content-Type: application/json; charset=utf-8
  < Content-MD5: 3MEA+iUUHCB4fBoD8xCzew==
  < Server: Microsoft-IIS/8.5
  < X-HttpRequest-Method: GET
  < X-AspNet-Version: 4.0.30319
  < X-Powered-By: ASP.NET
  < Date: Sat, 11 Mar 2017 00:00:14 GMT
  < Content-Length: 413
  < 
  * Connection dotnet/corefx#24 to host corefx-net.cloudapp.net left intact
  * About to connect() to corefx-net.cloudapp.net port 80 (#25)
  * About to connect() to corefx-net.cloudapp.net port 443 (#26)
  *   Trying 40.118.166.132...
  *   Trying 40.118.166.132...
  * * TCP_NODELAY set
  TCP_NODELAY set
  * About to connect() to corefx-net.cloudapp.net port 80 (#27)
  *   Trying 40.118.166.132...
  * TCP_NODELAY set
  * Connected to corefx-net.cloudapp.net (40.118.166.132) port 80 (#25)
  > GET /Echo.ashx HTTP/1.1
  Host: corefx-net.cloudapp.net
  Accept: */*
  Accept-Encoding: gzip,deflate
  
  * Connected to corefx-net.cloudapp.net (40.118.166.132) port 443 (#26)
  *   CAfile: /etc/pki/tls/certs/ca-bundle.crt
    CApath: none
  * Connected to corefx-net.cloudapp.net (40.118.166.132) port 80 (#27)
  > POST /Echo.ashx HTTP/1.1
  Host: corefx-net.cloudapp.net
  Accept: */*
  Accept-Encoding: gzip,deflate
  Content-Length: 21
  
  * upload completely sent off: 21 out of 21 bytes
  < HTTP/1.1 200 OK
  < Cache-Control: private
  < Content-Type: application/json; charset=utf-8
  < Content-MD5: qEIGeeo7QcDVNABsNIvLUQ==
  < Server: Microsoft-IIS/8.5
  < X-HttpRequest-Method: GET
  < X-AspNet-Version: 4.0.30319
  < X-Powered-By: ASP.NET
  < Date: Sat, 11 Mar 2017 00:00:14 GMT
  < Content-Length: 314
  < 
  < HTTP/1.1 200 OK
  < Cache-Control: private
  < Content-Type: application/json; charset=utf-8
  < Content-MD5: UTqpPsxAFRshpQFY8hV6hw==
  < Server: Microsoft-IIS/8.5
  < X-HttpRequest-Method: POST
  < X-AspNet-Version: 4.0.30319
  < X-Powered-By: ASP.NET
  < Date: Sat, 11 Mar 2017 00:00:15 GMT
  < Content-Length: 366
  < 
  * Connection dotnet/corefx#27 to host corefx-net.cloudapp.net left intact
  * SSL connection using TLS_RSA_WITH_AES_256_CBC_SHA
  * Server certificate:
  * 	subject: CN=corefx-net.cloudapp.net,OU=Microsoft Corporation,O=Microsoft Corporation,L=Redmond,ST=WA,C=US
  * 	start date: Jan 12 01:18:21 2016 GMT
  * 	expire date: Jan 11 01:18:21 2018 GMT
  * 	common name: corefx-net.cloudapp.net
  * 	issuer: CN=Microsoft IT SSL SHA2,OU=Microsoft IT,O=Microsoft Corporation,L=Redmond,ST=Washington,C=US
  > GET /Echo.ashx HTTP/1.1
  Host: corefx-net.cloudapp.net
  Accept: */*
  Accept-Encoding: gzip,deflate
  
  < HTTP/1.1 200 OK
  < Cache-Control: private
  < Content-Type: application/json; charset=utf-8
  < Content-MD5: J2AUBYowrn+h4dfY0T8Y1g==
  < Server: Microsoft-IIS/8.5
  < X-HttpRequest-Method: GET
  < X-AspNet-Version: 4.0.30319
  < X-Powered-By: ASP.NET
  < Date: Sat, 11 Mar 2017 00:00:14 GMT
  < Content-Length: 313
  < 
  * About to connect() to corefx-net.cloudapp.net port 443 (#28)
  *   Trying 40.118.166.132...
  * TCP_NODELAY set
  * Connected to corefx-net.cloudapp.net (40.118.166.132) port 443 (#28)
  *   CAfile: /etc/pki/tls/certs/ca-bundle.crt
    CApath: none
  * SSL connection using TLS_RSA_WITH_AES_256_CBC_SHA
  * Server certificate:
  * 	subject: CN=corefx-net.cloudapp.net,OU=Microsoft Corporation,O=Microsoft Corporation,L=Redmond,ST=WA,C=US
  * 	start date: Jan 12 01:18:21 2016 GMT
  * 	expire date: Jan 11 01:18:21 2018 GMT
  * 	common name: corefx-net.cloudapp.net
  * 	issuer: CN=Microsoft IT SSL SHA2,OU=Microsoft IT,O=Microsoft Corporation,L=Redmond,ST=Washington,C=US
  > POST /Echo.ashx HTTP/1.1
  Host: corefx-net.cloudapp.net
  Accept: */*
  Accept-Encoding: gzip,deflate
  Content-Length: 21
  
  * upload completely sent off: 21 out of 21 bytes
  < HTTP/1.1 200 OK
  < Cache-Control: private
  < Content-Type: application/json; charset=utf-8
  < Content-MD5: MpNzZ2AVX/3hEj9uViIkcw==
  < Server: Microsoft-IIS/8.5
  < X-HttpRequest-Method: POST
  < X-AspNet-Version: 4.0.30319
  < X-Powered-By: ASP.NET
  < Date: Sat, 11 Mar 2017 00:00:16 GMT
  < Content-Length: 365
  < 
  * Connection dotnet/corefx#28 to host corefx-net.cloudapp.net left intact
  * About to connect() to corefx-net.cloudapp.net port 80 (#29)
  *   Trying 40.118.166.132...
  * TCP_NODELAY set
  * Connected to corefx-net.cloudapp.net (40.118.166.132) port 80 (#29)
  > POST /Echo.ashx HTTP/1.1
  Host: corefx-net.cloudapp.net
  Accept: */*
  Accept-Encoding: gzip,deflate
  Content-Length: 21
  
  * upload completely sent off: 21 out of 21 bytes
  < HTTP/1.1 200 OK
  < Cache-Control: private
  < Content-Type: application/json; charset=utf-8
  < Content-MD5: UTqpPsxAFRshpQFY8hV6hw==
  < Server: Microsoft-IIS/8.5
  < X-HttpRequest-Method: POST
  < X-AspNet-Version: 4.0.30319
  < X-Powered-By: ASP.NET
  < Date: Sat, 11 Mar 2017 00:00:16 GMT
  < Content-Length: 366
  < 
  * Connection dotnet/corefx#29 to host corefx-net.cloudapp.net left intact
  * About to connect() to corefx-net.cloudapp.net port 443 (#30)
  *   Trying 40.118.166.132...
  * TCP_NODELAY set
  * Connected to corefx-net.cloudapp.net (40.118.166.132) port 443 (#30)
  *   CAfile: /etc/pki/tls/certs/ca-bundle.crt
    CApath: none
  * SSL connection using TLS_RSA_WITH_AES_256_CBC_SHA
  * Server certificate:
  * 	subject: CN=corefx-net.cloudapp.net,OU=Microsoft Corporation,O=Microsoft Corporation,L=Redmond,ST=WA,C=US
  * 	start date: Jan 12 01:18:21 2016 GMT
  * 	expire date: Jan 11 01:18:21 2018 GMT
  * 	common name: corefx-net.cloudapp.net
  * 	issuer: CN=Microsoft IT SSL SHA2,OU=Microsoft IT,O=Microsoft Corporation,L=Redmond,ST=Washington,C=US
  > POST /Echo.ashx HTTP/1.1
  Host: corefx-net.cloudapp.net
  Accept: */*
  Accept-Encoding: gzip,deflate
  Content-Length: 21
  
  * upload completely sent off: 21 out of 21 bytes
  < HTTP/1.1 200 OK
  < Cache-Control: private
  < Content-Type: application/json; charset=utf-8
  < Content-MD5: MpNzZ2AVX/3hEj9uViIkcw==
  < Server: Microsoft-IIS/8.5
  < X-HttpRequest-Method: POST
  < X-AspNet-Version: 4.0.30319
  < X-Powered-By: ASP.NET
  < Date: Sat, 11 Mar 2017 00:00:17 GMT
  < Content-Length: 365
  < 
  * Connection dotnet/corefx#30 to host corefx-net.cloudapp.net left intact
  * About to connect() to corefx-net.cloudapp.net port 80 (#31)
  *   Trying 40.118.166.132...
  * TCP_NODELAY set
  * Connected to corefx-net.cloudapp.net (40.118.166.132) port 80 (#31)
  > GET /Echo.ashx HTTP/1.1
  Host: corefx-net.cloudapp.net
  Accept: */*
  Accept-Encoding: gzip,deflate
  
  < HTTP/1.1 200 OK
  < Cache-Control: private
  < Content-Type: application/json; charset=utf-8
  < Content-MD5: qEIGeeo7QcDVNABsNIvLUQ==
  < Server: Microsoft-IIS/8.5
  < X-HttpRequest-Method: GET
  < X-AspNet-Version: 4.0.30319
  < X-Powered-By: ASP.NET
  < Date: Sat, 11 Mar 2017 00:00:19 GMT
  < Content-Length: 314
  < 
  * About to connect() to corefx-net.cloudapp.net port 443 (#32)
  *   Trying 40.118.166.132...
  * TCP_NODELAY set
  * Connected to corefx-net.cloudapp.net (40.118.166.132) port 443 (#32)
  *   CAfile: /etc/pki/tls/certs/ca-bundle.crt
    CApath: none
  * SSL connection using TLS_RSA_WITH_AES_256_CBC_SHA
  * Server certificate:
  * 	subject: CN=corefx-net.cloudapp.net,OU=Microsoft Corporation,O=Microsoft Corporation,L=Redmond,ST=WA,C=US
  * 	start date: Jan 12 01:18:21 2016 GMT
  * 	expire date: Jan 11 01:18:21 2018 GMT
  * 	common name: corefx-net.cloudapp.net
  * 	issuer: CN=Microsoft IT SSL SHA2,OU=Microsoft IT,O=Microsoft Corporation,L=Redmond,ST=Washington,C=US
  > GET /Echo.ashx HTTP/1.1
  Host: corefx-net.cloudapp.net
  Accept: */*
  Accept-Encoding: gzip,deflate
  
  < HTTP/1.1 200 OK
  < Cache-Control: private
  < Content-Type: application/json; charset=utf-8
  < Content-MD5: J2AUBYowrn+h4dfY0T8Y1g==
  < Server: Microsoft-IIS/8.5
  < X-HttpRequest-Method: GET
  < X-AspNet-Version: 4.0.30319
  < X-Powered-By: ASP.NET
  < Date: Sat, 11 Mar 2017 00:00:20 GMT
  < Content-Length: 313
  < 
  * About to connect() to corefx-net.cloudapp.net port 80 (#33)
  *   Trying 40.118.166.132...
  * TCP_NODELAY set
  * Connected to corefx-net.cloudapp.net (40.118.166.132) port 80 (#33)
  > GET /StatusCode.ashx?statuscode=404 HTTP/1.1
  Host: corefx-net.cloudapp.net
  Accept: */*
  Accept-Encoding: gzip,deflate
  
  < HTTP/1.1 404 Not Found
  < Cache-Control: private
  < Content-Type: text/html
  < Server: Microsoft-IIS/8.5
  < X-AspNet-Version: 4.0.30319
  < X-Powered-By: ASP.NET
  < Date: Sat, 11 Mar 2017 00:00:21 GMT
  < Content-Length: 1245
  < 
  * About to connect() to corefx-net.cloudapp.net port 443 (#34)
  *   Trying 40.118.166.132...
  * TCP_NODELAY set
  * Connected to corefx-net.cloudapp.net (40.118.166.132) port 443 (#34)
  *   CAfile: /etc/pki/tls/certs/ca-bundle.crt
    CApath: none
  * SSL connection using TLS_RSA_WITH_AES_256_CBC_SHA
  * Server certificate:
  * 	subject: CN=corefx-net.cloudapp.net,OU=Microsoft Corporation,O=Microsoft Corporation,L=Redmond,ST=WA,C=US
  * 	start date: Jan 12 01:18:21 2016 GMT
  * 	expire date: Jan 11 01:18:21 2018 GMT
  * 	common name: corefx-net.cloudapp.net
  * 	issuer: CN=Microsoft IT SSL SHA2,OU=Microsoft IT,O=Microsoft Corporation,L=Redmond,ST=Washington,C=US
  > GET /StatusCode.ashx?statuscode=404 HTTP/1.1
  Host: corefx-net.cloudapp.net
  Accept: */*
  Accept-Encoding: gzip,deflate
  
  < HTTP/1.1 404 Not Found
  < Cache-Control: private
  < Content-Type: text/html
  < Server: Microsoft-IIS/8.5
  < X-AspNet-Version: 4.0.30319
  < X-Powered-By: ASP.NET
  < Date: Sat, 11 Mar 2017 00:00:22 GMT
  < Content-Length: 1245
  < 
  * About to connect() to corefx-net.cloudapp.net port 80 (#35)
  *   Trying 40.118.166.132...
  * TCP_NODELAY set
  * Connected to corefx-net.cloudapp.net (40.118.166.132) port 80 (#35)
  > GET /Echo.ashx HTTP/1.1
  Host: corefx-net.cloudapp.net
  Accept: */*
  Accept-Encoding: gzip,deflate
  
  < HTTP/1.1 200 OK
  < Cache-Control: private
  < Content-Type: application/json; charset=utf-8
  < Content-MD5: qEIGeeo7QcDVNABsNIvLUQ==
  < Server: Microsoft-IIS/8.5
  < X-HttpRequest-Method: GET
  < X-AspNet-Version: 4.0.30319
  < X-Powered-By: ASP.NET
  < Date: Sat, 11 Mar 2017 00:00:23 GMT
  < Content-Length: 314
  < 
  * Connection dotnet/runtime#13855 to host corefx-net.cloudapp.net left intact
  * About to connect() to corefx-net.cloudapp.net port 443 (#36)
  *   Trying 40.118.166.132...
  * TCP_NODELAY set
  * Connected to corefx-net.cloudapp.net (40.118.166.132) port 443 (#36)
  *   CAfile: /etc/pki/tls/certs/ca-bundle.crt
    CApath: none
  * SSL connection using TLS_RSA_WITH_AES_256_CBC_SHA
  * Server certificate:
  * 	subject: CN=corefx-net.cloudapp.net,OU=Microsoft Corporation,O=Microsoft Corporation,L=Redmond,ST=WA,C=US
  * 	start date: Jan 12 01:18:21 2016 GMT
  * 	expire date: Jan 11 01:18:21 2018 GMT
  * 	common name: corefx-net.cloudapp.net
  * 	issuer: CN=Microsoft IT SSL SHA2,OU=Microsoft IT,O=Microsoft Corporation,L=Redmond,ST=Washington,C=US
  > GET /Echo.ashx HTTP/1.1
  Host: corefx-net.cloudapp.net
  Accept: */*
  Accept-Encoding: gzip,deflate
  
  < HTTP/1.1 200 OK
  < Cache-Control: private
  < Content-Type: application/json; charset=utf-8
  < Content-MD5: J2AUBYowrn+h4dfY0T8Y1g==
  < Server: Microsoft-IIS/8.5
  < X-HttpRequest-Method: GET
  < X-AspNet-Version: 4.0.30319
  < X-Powered-By: ASP.NET
  < Date: Sat, 11 Mar 2017 00:00:25 GMT
  < Content-Length: 313
  < 
  * Connection dotnet/runtime#13856 to host corefx-net.cloudapp.net left intact
  * About to connect() to corefx-net.cloudapp.net port 80 (#37)
  *   Trying 40.118.166.132...
  * TCP_NODELAY set
  * About to connect() to corefx-net.cloudapp.net port 443 (#38)
  *   Trying 40.118.166.132...
  * TCP_NODELAY set
  * About to connect() to corefx-net.cloudapp.net port 80 (#39)
  *   Trying 40.118.166.132...
  * TCP_NODELAY set
  * Connected to corefx-net.cloudapp.net (40.118.166.132) port 80 (#37)
  > GET /Echo.ashx HTTP/1.1
  Host: corefx-net.cloudapp.net
  Accept: */*
  Accept-Encoding: gzip,deflate
  
  * Connected to corefx-net.cloudapp.net (40.118.166.132) port 443 (#38)
  *   CAfile: /etc/pki/tls/certs/ca-bundle.crt
    CApath: none
  * Connected to corefx-net.cloudapp.net (40.118.166.132) port 80 (#39)
  > GET /Echo.ashx HTTP/1.1
  Host: corefx-net.cloudapp.net
  Accept: */*
  Accept-Encoding: gzip,deflate
  
  < HTTP/1.1 200 OK
  < Cache-Control: private
  < Content-Type: application/json; charset=utf-8
  < Content-MD5: qEIGeeo7QcDVNABsNIvLUQ==
  < Server: Microsoft-IIS/8.5
  < X-HttpRequest-Method: GET
  < X-AspNet-Version: 4.0.30319
  < X-Powered-By: ASP.NET
  < Date: Sat, 11 Mar 2017 00:00:26 GMT
  < Content-Length: 314
  < 
  < HTTP/1.1 200 OK
  < Cache-Control: private
  < Content-Type: application/json; charset=utf-8
  < Content-MD5: qEIGeeo7QcDVNABsNIvLUQ==
  < Server: Microsoft-IIS/8.5
  < X-HttpRequest-Method: GET
  < X-AspNet-Version: 4.0.30319
  < X-Powered-By: ASP.NET
  < Date: Sat, 11 Mar 2017 00:00:26 GMT
  < Content-Length: 314
  < 
  * Connection dotnet/corefx#39 to host corefx-net.cloudapp.net left intact
  * SSL connection using TLS_RSA_WITH_AES_256_CBC_SHA
  * Server certificate:
  * 	subject: CN=corefx-net.cloudapp.net,OU=Microsoft Corporation,O=Microsoft Corporation,L=Redmond,ST=WA,C=US
  * 	start date: Jan 12 01:18:21 2016 GMT
  * 	expire date: Jan 11 01:18:21 2018 GMT
  * 	common name: corefx-net.cloudapp.net
  * 	issuer: CN=Microsoft IT SSL SHA2,OU=Microsoft IT,O=Microsoft Corporation,L=Redmond,ST=Washington,C=US
  > GET /Echo.ashx HTTP/1.1
  Host: corefx-net.cloudapp.net
  Accept: */*
  Accept-Encoding: gzip,deflate
  
  < HTTP/1.1 200 OK
  < Cache-Control: private
  < Content-Type: application/json; charset=utf-8
  < Content-MD5: J2AUBYowrn+h4dfY0T8Y1g==
  < Server: Microsoft-IIS/8.5
  < X-HttpRequest-Method: GET
  < X-AspNet-Version: 4.0.30319
  < X-Powered-By: ASP.NET
  < Date: Sat, 11 Mar 2017 00:00:25 GMT
  < Content-Length: 313
  < 
  * About to connect() to corefx-net.cloudapp.net port 443 (#40)
  *   Trying 40.118.166.132...
  * TCP_NODELAY set
  * Connected to corefx-net.cloudapp.net (40.118.166.132) port 443 (#40)
  *   CAfile: /etc/pki/tls/certs/ca-bundle.crt
    CApath: none
  * SSL connection using TLS_RSA_WITH_AES_256_CBC_SHA
  * Server certificate:
  * 	subject: CN=corefx-net.cloudapp.net,OU=Microsoft Corporation,O=Microsoft Corporation,L=Redmond,ST=WA,C=US
  * 	start date: Jan 12 01:18:21 2016 GMT
  * 	expire date: Jan 11 01:18:21 2018 GMT
  * 	common name: corefx-net.cloudapp.net
  * 	issuer: CN=Microsoft IT SSL SHA2,OU=Microsoft IT,O=Microsoft Corporation,L=Redmond,ST=Washington,C=US
  > GET /Echo.ashx HTTP/1.1
  Host: corefx-net.cloudapp.net
  Accept: */*
  Accept-Encoding: gzip,deflate
  
  < HTTP/1.1 200 OK
  < Cache-Control: private
  < Content-Type: application/json; charset=utf-8
  < Content-MD5: J2AUBYowrn+h4dfY0T8Y1g==
  < Server: Microsoft-IIS/8.5
  < X-HttpRequest-Method: GET
  < X-AspNet-Version: 4.0.30319
  < X-Powered-By: ASP.NET
  < Date: Sat, 11 Mar 2017 00:00:27 GMT
  < Content-Length: 313
  < 
  * Connection dotnet/corefx#40 to host corefx-net.cloudapp.net left intact
  * About to connect() to corefx-net.cloudapp.net port 80 (#41)
  *   Trying 40.118.166.132...
  * TCP_NODELAY set
  * Connected to corefx-net.cloudapp.net (40.118.166.132) port 80 (#41)
  > GET /Echo.ashx HTTP/1.1
  Host: corefx-net.cloudapp.net
  Accept: */*
  Accept-Encoding: gzip,deflate
  
  < HTTP/1.1 200 OK
  < Cache-Control: private
  < Content-Type: application/json; charset=utf-8
  < Content-MD5: qEIGeeo7QcDVNABsNIvLUQ==
  < Server: Microsoft-IIS/8.5
  < X-HttpRequest-Method: GET
  < X-AspNet-Version: 4.0.30319
  < X-Powered-By: ASP.NET
  < Date: Sat, 11 Mar 2017 00:00:27 GMT
  < Content-Length: 314
  < 
  * About to connect() to corefx-net.cloudapp.net port 443 (#42)
  *   Trying 40.118.166.132...
  * TCP_NODELAY set
  * Connected to corefx-net.cloudapp.net (40.118.166.132) port 443 (#42)
  *   CAfile: /etc/pki/tls/certs/ca-bundle.crt
    CApath: none
  * SSL connection using TLS_RSA_WITH_AES_256_CBC_SHA
  * Server certificate:
  * 	subject: CN=corefx-net.cloudapp.net,OU=Microsoft Corporation,O=Microsoft Corporation,L=Redmond,ST=WA,C=US
  * 	start date: Jan 12 01:18:21 2016 GMT
  * 	expire date: Jan 11 01:18:21 2018 GMT
  * 	common name: corefx-net.cloudapp.net
  * 	issuer: CN=Microsoft IT SSL SHA2,OU=Microsoft IT,O=Microsoft Corporation,L=Redmond,ST=Washington,C=US
  > GET /Echo.ashx HTTP/1.1
  Host: corefx-net.cloudapp.net
  Accept: */*
  Accept-Encoding: gzip,deflate
  
  < HTTP/1.1 200 OK
  < Cache-Control: private
  < Content-Type: application/json; charset=utf-8
  < Content-MD5: J2AUBYowrn+h4dfY0T8Y1g==
  < Server: Microsoft-IIS/8.5
  < X-HttpRequest-Method: GET
  < X-AspNet-Version: 4.0.30319
  < X-Powered-By: ASP.NET
  < Date: Sat, 11 Mar 2017 00:00:29 GMT
  < Content-Length: 313
  < 
     System.Net.Tests.FtpWebRequestTest.Ftp_CreateAndDelete [SKIP]
        Condition(s) not met: \"LocalServerAvailable\"
     System.Net.Tests.FtpWebRequestTest.Ftp_RenameFile [SKIP]
        Condition(s) not met: \"LocalServerAvailable\"
     System.Net.Tests.FtpWebRequestTest.Ftp_AppendFile [SKIP]
        Condition(s) not met: \"LocalServerAvailable\"
     System.Net.Tests.FtpWebRequestTest.Ftp_LargeFile [SKIP]
        Condition(s) not met: \"LocalServerAvailable\"
  Finished:    System.Net.Requests.Tests
  
  === TEST EXECUTION SUMMARY ===
/home/lasekar/corefx/Tools/tests.targets(249,5): warning :    System.Net.Requests.Tests  Total: 218, Errors: 0, Failed: 1, Skipped: 6, Time: 128.209s [/home/lasekar/corefx/src/System.Net.Requests/tests/System.Net.Requests.Tests.csproj]
  The previous error was converted to a warning because the task was called with ContinueOnError=true.
  ~/corefx/src/System.Net.Requests/tests
  Finished running tests. End time=00:02:10. Return value was 1
/home/lasekar/corefx/Tools/tests.targets(249,5): warning MSB3073: The command "/home/lasekar/corefx/bin/AnyOS.AnyCPU.Debug/System.Net.Requests.Tests/netstandard/RunTests.sh /home/lasekar/corefx/bin/testhost/netcoreapp-Linux-Debug-x64/" exited with code 1. [/home/lasekar/corefx/src/System.Net.Requests/tests/System.Net.Requests.Tests.csproj]
  The previous error was converted to a warning because the task was called with ContinueOnError=true.
  Build continuing because "ContinueOnError" on the task "Exec" is set to "true".
/home/lasekar/corefx/Tools/tests.targets(257,5): error : One or more tests failed while running tests from 'System.Net.Requests.Tests' please check /home/lasekar/corefx/bin/AnyOS.AnyCPU.Debug/System.Net.Requests.Tests/netstandard/testResults.xml for details! [/home/lasekar/corefx/src/System.Net.Requests/tests/System.Net.Requests.Tests.csproj]
Done Building Project "/home/lasekar/corefx/src/System.Net.Requests/tests/System.Net.Requests.Tests.csproj" (Rebuildandtest target(s)) -- FAILED.

Build FAILED.

"/home/lasekar/corefx/src/System.Net.Requests/tests/System.Net.Requests.Tests.csproj" (Rebuildandtest target) (1) ->
(RunTestsForProject target) -> 
  /home/lasekar/corefx/Tools/tests.targets(249,5): warning :    System.Net.Requests.Tests  Total: 218, Errors: 0, Failed: 1, Skipped: 6, Time: 128.209s [/home/lasekar/corefx/src/System.Net.Requests/tests/System.Net.Requests.Tests.csproj]
  /home/lasekar/corefx/Tools/tests.targets(249,5): warning MSB3073: The command "/home/lasekar/corefx/bin/AnyOS.AnyCPU.Debug/System.Net.Requests.Tests/netstandard/RunTests.sh /home/lasekar/corefx/bin/testhost/netcoreapp-Linux-Debug-x64/" exited with code 1. [/home/lasekar/corefx/src/System.Net.Requests/tests/System.Net.Requests.Tests.csproj]


"/home/lasekar/corefx/src/System.Net.Requests/tests/System.Net.Requests.Tests.csproj" (Rebuildandtest target) (1) ->
(RunTestsForProject target) -> 
  /home/lasekar/corefx/Tools/tests.targets(257,5): error : One or more tests failed while running tests from 'System.Net.Requests.Tests' please check /home/lasekar/corefx/bin/AnyOS.AnyCPU.Debug/System.Net.Requests.Tests/netstandard/testResults.xml for details! [/home/lasekar/corefx/src/System.Net.Requests/tests/System.Net.Requests.Tests.csproj]

    2 Warning(s)
    1 Error(s)

Time Elapsed 00:02:13.26

Priya91 avatar Mar 11 '17 00:03 Priya91

Somehow the curl easy agent is storing this error. Not sure what to make of it.

@Priya91, what information are you trying to gather? You can get all of the diagnostic info we have, including but beyond what libcurl's verbose option spits out, by setting up an EventListener, like https://github.com/dotnet/corefx/blob/master/src/Common/tests/System/Diagnostics/Tracing/ConsoleEventListener.cs, and just having it trace out every event.

stephentoub avatar Mar 11 '17 00:03 stephentoub

what information are you trying to gather?

Looking at what curl spits out from the requests passed down to it from .NET, there is no error 77 (the code responsible for ssl ca path errors) from it. All the curl requests succeed finding the CAFile with messages like below:

* Connected to corefx-net.cloudapp.net (40.118.166.132) port 443 (#36)
  *   CAfile: /etc/pki/tls/certs/ca-bundle.crt
    CApath: none

So I don't understand how .net is reporting this error, when it doesn't happen in curl. Or am I reading this data wrong..

Priya91 avatar Mar 11 '17 01:03 Priya91

What do you see output from the events I mentioned? They should be fairly detailed, and you can add more.

stephentoub avatar Mar 11 '17 01:03 stephentoub