1
Beta installation on Ubuntu 24.04 LTS - The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
Problem reported by Webio - 6/27/2024 at 7:27 AM
Submitted
Hello,

I've tried to install SM on latest Ubuntu 24.04 LTS but when I run

sudo ./smartermail_8930 install
I'm getting error:

Linux Version: Ubuntu 24.04 LTS
Selected build: 100.0.8930.39839

 Downloading SmarterMail (100.0.8930.39839) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━   0% --:--:-- ⣾
Downloading prerequisites: Ubuntu 24.04 LTS ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━   0% --:--:--
           Extracting into /opt/smartermail ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━   0% --:--:--
System.Threading.Tasks.TaskCanceledException: The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
     System.TimeoutException: The operation was canceled.
        System.Threading.Tasks.TaskCanceledException: The operation was canceled.
             System.IO.IOException: The read operation failed, see inner exception.
                  System.ObjectDisposedException: Cannot access a disposed object.
                  Object name: 'System.Net.Sockets.NetworkStream'.
                    at ValueTask<int> System.Net.Sockets.NetworkStream.ReadAsync(Memory<byte> buffer, CancellationToken cancellationToken)
                    at async ValueTask<int> System.Net.Security.SslStream.EnsureFullTlsFrameAsync<TIOAdapter>(CancellationToken cancellationToken, int
                       estimatedSize)
                    at TResult
                       System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskS
                       ource<TResult>.GetResult(short token)
                    at async ValueTask<int> System.Net.Security.SslStream.ReadAsyncInternal<TIOAdapter>(Memory<byte> buffer, CancellationToken
                       cancellationToken)
               at async ValueTask<int> System.Net.Security.SslStream.ReadAsyncInternal<TIOAdapter>(Memory<byte> buffer, CancellationToken
                  cancellationToken)
               at TResult
                  System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource
                  <TResult>.GetResult(short token)
               at async ValueTask System.Net.Http.HttpConnection.FillAsync(bool async)
               at async Task System.Net.Http.HttpConnection.CopyToContentLengthAsync(Stream destination, bool async, ulong length, int bufferSize,
                  CancellationToken cancellationToken)
               at async Task System.Net.Http.HttpConnection.ContentLengthReadStream.CompleteCopyToAsync(Task copyTask, CancellationToken
                  cancellationToken)
          at async Task System.Net.Http.HttpConnection.ContentLengthReadStream.CompleteCopyToAsync(Task copyTask, CancellationToken cancellationToken)
          at async Task System.Net.Http.HttpConnectionResponseContent.<SerializeToStreamAsync>g__Impl|6_0(Stream stream, CancellationToken
             cancellationToken)
          at async Task System.Net.Http.HttpContent.LoadIntoBufferAsyncCore(Task serializeToStreamTask, MemoryStream tempBuffer)
          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 void System.Net.Http.HttpClient.HandleFailure(Exception e, bool telemetryStarted, HttpResponseMessage response, CancellationTokenSource cts,
     CancellationToken cancellationToken, CancellationTokenSource pendingRequestsCts)
  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 void SmarterMail.Installer.InstallerExtensions.<>c__DisplayClass6_0.<<DownloadAndExtractLatestSmarterMail>b__0>d.MoveNext()
  at void Spectre.Console.Progress.<>c__DisplayClass32_0`1.<<StartAsync>b__0>d.MoveNext() in /_/src/Spectre.Console/Live/Progress/Progress.cs:138
  at async Task<T> Spectre.Console.Internal.DefaultExclusivityMode.RunAsync<T>(Func<Task<T>> func) in /_/src/Spectre.Console/Internal/
     DefaultExclusivityMode.cs:40
  at async Task<T> Spectre.Console.Progress.StartAsync<T>(Func<ProgressContext, Task<T>> action) in /_/src/Spectre.Console/Live/Progress/Progress.cs:121
  at async Task<bool> SmarterMail.Installer.InstallerExtensions.DownloadAndExtractLatestSmarterMail(string smBinaryRoot, BuildListResponse foundBuild,
     HashSet<string> addedFiles)
  at async Task<bool> SmarterMail.Installer.Commands.InstallCommand.StartInstall(CommandContext cmdCtx, Settings settings, string smBinaryRoot)
Installation failed!
is there any chance to add to installer some kind of verbose mode or logging whole process to see to which remote URL installer can't connect?

I can fetch updates using apt/apt-get or just ping remote URLs but still installer return mentioned error.

Thanks

2 Replies

Reply to Thread
1
Matt Petty Replied
Employee Post
I'll add a task to clean up the web request behavior to include the requested resource and get rid of the huge stacktrace.
This is the resource the installer for 8930 should be trying to pull.
https://downloads.smartertools.com/smartermail/beta/100.0.8930.39839/smartermail_8930.zip
Can try to wget this from your server to see if it pulls it correctly.

FYI: We now also have SmarterMail available through docker and those builds are pushed to Docker Hub.
Matt Petty Senior Software Developer SmarterTools Inc. www.smartertools.com
0
Webio Replied
I'm still getting exception but when I try to use wget I can download this file:

wget https://downloads.smartertools.com/smartermail/beta/100.0.8930.39839/smartermail_8930.zip
--2024-07-01 04:35:27--  https://downloads.smartertools.com/smartermail/beta/100.0.8930.39839/smartermail_8930.zip
Resolving downloads.smartertools.com (downloads.smartertools.com)... 34.83.66.243
Connecting to downloads.smartertools.com (downloads.smartertools.com)|34.83.66.243|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 98387542 (94M) [application/x-zip-compressed]
Saving to: ‘smartermail_8930.zip’

smartermail_8930.zip                2%[>                      ]   2.42M  51.3KB/s    eta 20m 39s

Reply to Thread