Skip to content

PS1 failed without error diagnosis #27

Closed

Description

@wli3

For this issue the error is simply the following

https://dev.azure.com/dnceng/public/_build/results?buildId=492107&view=logs&j=1f7f0ae9-6d8b-5300-18e4-8627865be549&t=a4594482-09b1-5607-9af7-3db5e61ee1a3

2020-01-21T20:01:12.6940988Z [2020/01/21 20:01:12][INFO] DotNet Install Path: 'D:\a\1\s\tools\dotnet\x64'
2020-01-21T20:01:12.6941667Z [2020/01/21 20:01:12][INFO] Downloading https://dot.net/v1/dotnet-install.ps1
2020-01-21T20:01:14.8182491Z [2020/01/21 20:01:14][INFO] $ pushd "D:\a\1\s"
2020-01-21T20:01:14.8183653Z [2020/01/21 20:01:14][INFO] $ powershell.exe -NoProfile -ExecutionPolicy Bypass D:\a\1\s\tools\dotnet\x64\dotnet-install.ps1 -InstallDir D:\a\1\s\tools\dotnet\x64 -Architecture x64 -Channel release/3.1.2xx
2020-01-21T20:01:16.1690996Z [2020/01/21 20:01:16][INFO] dotnet-install: Downloading link: https://dotnetcli.azureedge.net/dotnet/Sdk/3.1.200-preview-014917/dotnet-sdk-3.1.200-preview-014917-win-x64.zip
2020-01-21T20:01:17.4609587Z [2020/01/21 20:01:17][INFO] dotnet-install: Extracting zip from https://dotnetcli.azureedge.net/dotnet/Sdk/3.1.200-preview-014917/dotnet-sdk-3.1.200-preview-014917-win-x64.zip
2020-01-21T20:01:30.7387155Z [2020/01/21 20:01:30][INFO] ".NET Core SDK" with version = 3.1.200-preview-014917 failed to install with an unknown error.
2020-01-21T20:01:30.7388687Z [2020/01/21 20:01:30][INFO] At D:\a\1\s\tools\dotnet\x64\dotnet-install.ps1:678 char:5
2020-01-21T20:01:30.7389370Z [2020/01/21 20:01:30][INFO] +     throw "`"$assetName`" with version = $SpecificVersion failed to i ...
2020-01-21T20:01:30.7389836Z [2020/01/21 20:01:30][INFO] +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2020-01-21T20:01:30.7390375Z [2020/01/21 20:01:30][INFO]     + CategoryInfo          : OperationStopped: (".NET Core SDK"... unknown error.:String) [], RuntimeException
2020-01-21T20:01:30.7390856Z [2020/01/21 20:01:30][INFO]     + FullyQualifiedErrorId : ".NET Core SDK" with version = 3.1.200-preview-014917 failed to install with an unknown
2020-01-21T20:01:30.7391357Z [2020/01/21 20:01:30][INFO]    error.
2020-01-21T20:01:30.7391761Z [2020/01/21 20:01:30][INFO] 
2020-01-21T20:01:30.8569932Z [2020/01/21 20:01:30][ERROR] Process exited with status 1
2020-01-21T20:01:30.8575593Z [2020/01/21 20:01:30][INFO] $ popd

Activity

  1. donJoseLuis commented on May 4, 2020

    @donJoseLuis
    Contributor

    The requests makes sense, failures should be made obvious in the script's artifacts.
    @bozturkMSFT , let's take this one after we wrap up the high pri build-blocker dotnet/sdk#11320

  2. removed their assignment
    on May 4, 2020
  3. transferred this issue fromdotnet/sdkon May 19, 2020
  4. donJoseLuis commented on May 28, 2020

    @donJoseLuis
    Contributor

    @wli3 regretfully the linked build no longer exists. From the output you shared we can deduce the invocation parameters.

    1. was this a consistent repro for you OR flaky?
    2. do you recall any out of the ordinary situation around this problem? "Special" conditions on the machine running the script, etc.
  5. changed the title [-]Install powershell script failed without good diagnose info[/-] [+]PS1 failed without error diagnosis[/+] on May 28, 2020
  6. donJoseLuis commented on May 28, 2020

    @donJoseLuis
    Contributor

    two issues here to address...

    • scripts need a better error message than: "...failed to install with an unknown error." Not very useful
    • the root-cause of the actual failure
  7. wli3 commented on May 28, 2020

    @wli3
    Author

    The issue looks no longer repros. We don't have to spend time to dig now. But we should add better error message.

  8. donJoseLuis commented on May 29, 2020

    @donJoseLuis
    Contributor

    Thanks @wli3 , you continue to be our best customer :)

    We're wrapping up prioritizing the backlog to begin improving resiliency & diagnostics.

  9. donJoseLuis commented on May 29, 2020

    @donJoseLuis
    Contributor

    @bozturkMSFT let's keep this item open to ensure the particular poor diagnostics are improved, even if the issue no longer reproduces.

  10. bekir-ozturk commented on Jun 19, 2020

    @bekir-ozturk
    Contributor

    As part of this issue, let's make sure we print a meaningful message when TLS1.2 is not enabled, instead of showing a generic "download failed" error.

  11. self-assigned this
    on Nov 9, 2020
  12. added 2 commits that reference this issue on Nov 12, 2020
  13. added 4 commits that reference this issue on Nov 20, 2020
  14. added a commit that references this issue on Dec 17, 2020
  15. AR-May commented on Dec 17, 2020

    @AR-May
    Member

    Added a better error message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions