Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run failure #21

Open
GuruGabe opened this issue Feb 22, 2023 · 3 comments
Open

Run failure #21

GuruGabe opened this issue Feb 22, 2023 · 3 comments

Comments

@GuruGabe
Copy link

I have tried running this with various switches and every time I get
Failed request #1 while fetching . Exception message: The SSL connection could not be established, see inner exception..
Failed request #10 while fetching . Exception message: The SSL connection could not be established, see inner
exception.. downloaded ---------------------------------------- 0% ::** -
System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
System.Security.Authentication.AuthenticationException: Authentication failed, see inner exception.
System.ComponentModel.Win32Exception: The Local Security Authority cannot be contacted
.
at async Task System.Net.Security.SslStream.ForceAuthenticationAsync(TIOAdapter adapter, bool
receiveFirst, byte[] reAuthenticationData, bool isApm)
at async ValueTask System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(
SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, bool async, Stream stream,
CancellationToken cancellationToken)
at async ValueTask System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions
sslOptions, HttpRequestMessage request, bool async, Stream stream, CancellationToken cancellationToken)
at async ValueTask<ValueTuple<Socket, Stream, TransportContext>> System.Net.Http.HttpConnectionPool.ConnectAsync(
HttpRequestMessage request, bool async, CancellationToken cancellationToken)
at async ValueTask System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage
request, bool async, CancellationToken cancellationToken)
at async Task System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request)
at async ValueTask System.Threading.Tasks.TaskCompletionSourceWithCancellation1.WaitWithCancellationAsync( CancellationToken cancellationToken) at async ValueTask<HttpConnection> System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, bool async, CancellationToken cancellationToken) at async ValueTask<HttpResponseMessage> System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync( HttpRequestMessage request, bool async, bool doRequestAuth, CancellationToken cancellationToken) at async ValueTask<HttpResponseMessage> System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, bool async, CancellationToken cancellationToken) at async ValueTask<HttpResponseMessage> System.Net.Http.DecompressionHandler.SendAsync(HttpRequestMessage request, bool async, CancellationToken cancellationToken) at async Task<HttpResponseMessage> System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, bool disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken) at async Task<TResult> Polly.Retry.AsyncRetryEngine.ImplementationAsync<TResult>(Func<Context, CancellationToken, Task<TResult>> action, Context context, CancellationToken cancellationToken, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates<TResult> shouldRetryResultPredicates, Func<DelegateResult<TResult>, TimeSpan, int, Context, Task> onRetryAsync, int permittedRetryCount, IEnumerable<TimeSpan> sleepDurationsEnumerable, Func<int, DelegateResult<TResult>, Context, TimeSpan> sleepDurationProvider, bool continueOnCapturedContext) at async Task<TResult> Polly.AsyncPolicy1.ExecuteAsync(Func<Context, CancellationToken, Task> action,
Context context, CancellationToken cancellationToken, bool continueOnCapturedContext)
at async Task PwnedPasswordsDownloader.GetPwnedPasswordsRangeFromWeb(int i, bool fetchNtlm) in
//src/HaveIBeenPwned.PwnedPasswords.Downloader/Program.cs:208
at async Task PwnedPasswordsDownloader.ProcessRanges(Settings settings) in
/
/src/HaveIBeenPwned.PwnedPasswords.Downloader/Program.cs:250
at async Task PwnedPasswordsDownloader.ProcessRanges(Settings settings) in
/_/src/HaveIBeenPwned.PwnedPasswords.Downloader/Program.cs:247

Hash ranges downloaded ---------------------------------------- 0% 00:00:00

Finished downloading all hash ranges in 876ms (1.14 hashes per second).
We made 0 Cloudflare requests (avg response time: NaNms). Of those, Cloudflare had already cached 0 requests, and made 0
requests to the Have I Been Pwned origin server.

What am I missing?

@darkpixel
Copy link

Same here. A flood of error message and an empty pwnedpasswords_ntlm.txt file:

<snip>
Failed request #10 while fetching . Exception message: The requested address is not valid in its context.
(api.pwnedpasswords.com:443).----------------------------------   0% --:--:-- -
Failed request #10 while fetching . Exception message: The requested address is not valid in its context.
(api.pwnedpasswords.com:443).----------------------------------   0% --:--:-- -
Failed request #10 while fetching . Exception message: The requested address is not valid in its context.
(api.pwnedpasswords.com:443).----------------------------------   0% --:--:-- \
Failed request #10 while fetching . Exception message: The requested address is not valid in its context.
(api.pwnedpasswords.com:443).----------------------------------   0% --:--:-- \
Failed request #10 while fetching . Exception message: The requested address is not valid in its context.
(api.pwnedpasswords.com:443).----------------------------------   0% --:--:-- |
System.Net.Http.HttpRequestException: The requested address is not valid in its context. (api.pwnedpasswords.com:443)
     System.Net.Sockets.SocketException: The requested address is not valid in its context.
       at void System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error,
          CancellationToken cancellationToken)
       at void System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.
          GetResult(short token)
       at async ValueTask System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|277_0(
          AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
       at async ValueTask<ValueTuple<Socket, Stream>> System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(string
          host, int port, HttpRequestMessage initialRequest, bool async, CancellationToken cancellationToken)
  at async ValueTask<ValueTuple<Socket, Stream>> System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(string host,
     int port, HttpRequestMessage initialRequest, bool async, CancellationToken cancellationToken)
  at async ValueTask<ValueTuple<Socket, Stream, TransportContext>> System.Net.Http.HttpConnectionPool.ConnectAsync(
     HttpRequestMessage request, bool async, CancellationToken cancellationToken)
  at async Task System.Net.Http.HttpConnectionPool.AddHttp2ConnectionAsync(HttpRequestMessage request)
  at async ValueTask<T> System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(
     CancellationToken cancellationToken)
  at async ValueTask<Http2Connection> System.Net.Http.HttpConnectionPool.GetHttp2ConnectionAsync(HttpRequestMessage
     request, bool async, CancellationToken cancellationToken)
  at async ValueTask<HttpResponseMessage> System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(
     HttpRequestMessage request, bool async, bool doRequestAuth, CancellationToken cancellationToken)
  at async ValueTask<HttpResponseMessage> System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, bool
     async, CancellationToken cancellationToken)
  at async ValueTask<HttpResponseMessage> System.Net.Http.DecompressionHandler.SendAsync(HttpRequestMessage request,
     bool async, CancellationToken cancellationToken)
  at async Task<HttpResponseMessage> System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request,
     HttpCompletionOption completionOption, CancellationTokenSource cts, bool disposeCts, CancellationTokenSource
     pendingRequestsCts, CancellationToken originalCancellationToken)
  at async Task<TResult> Polly.Retry.AsyncRetryEngine.ImplementationAsync<TResult>(Func<Context, CancellationToken,
     Task<TResult>> action, Context context, CancellationToken cancellationToken, ExceptionPredicates
     shouldRetryExceptionPredicates, ResultPredicates<TResult> shouldRetryResultPredicates,
     Func<DelegateResult<TResult>, TimeSpan, int, Context, Task> onRetryAsync, int permittedRetryCount,
     IEnumerable<TimeSpan> sleepDurationsEnumerable, Func<int, DelegateResult<TResult>, Context, TimeSpan>
     sleepDurationProvider, bool continueOnCapturedContext)
  at async Task<TResult> Polly.AsyncPolicy`1.ExecuteAsync(Func<Context, CancellationToken, Task<TResult>> action,
     Context context, CancellationToken cancellationToken, bool continueOnCapturedContext)
  at async Task<Stream> PwnedPasswordsDownloader.GetPwnedPasswordsRangeFromWeb(int i, bool fetchNtlm) in
     /_/src/HaveIBeenPwned.PwnedPasswords.Downloader/Program.cs:187
  at async Task PwnedPasswordsDownloader.ProcessRanges(Settings settings) in
     /_/src/HaveIBeenPwned.PwnedPasswords.Downloader/Program.cs:227
  at async Task PwnedPasswordsDownloader.ProcessRanges(Settings settings) in
     /_/src/HaveIBeenPwned.PwnedPasswords.Downloader/Program.cs:224
  at async Task PwnedPasswordsDownloader.ProcessRanges(Settings settings) in
     /_/src/HaveIBeenPwned.PwnedPasswords.Downloader/Program.cs:240
  at async Task PwnedPasswordsDownloader.ProcessRanges(Settings settings) in
     /_/src/HaveIBeenPwned.PwnedPasswords.Downloader/Program.cs:240

Hash ranges downloaded ----------------------------------------   0% 00:00:00

Finished downloading all hash ranges in 48,398ms (0.02 hashes per second).
We made 0 Cloudflare requests (avg response time: NaNms). Of those, Cloudflare had already cached 0 requests, and made 0requests to the Have I Been Pwned origin server.
PS C:\Users\adebruyn>

@stebet
Copy link
Contributor

stebet commented Mar 19, 2023

Try again using the latest version (0.3.12).

@darkpixel
Copy link

I ended up restarting the server after-hours and it worked perfectly after that.
I suspect it had something to do with the latest .NET Framework being installed and the installer not prompting for a restart.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants