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

[DotNetCoreInstaller] failing with "Cannot read property 'trim' of undefined" #9366

Closed
gitfool opened this issue Jan 20, 2019 · 9 comments
Closed

Comments

@gitfool
Copy link

gitfool commented Jan 20, 2019

Environment

Issue Description

Build has suddenly started failing with cannot read property 'trim' of undefined.

Task logs

log_14_119.zip

@gitfool
Copy link
Author

gitfool commented Jan 20, 2019

It looks like the error is coming from Tasks/DotNetCoreInstallerV0/releasesfetcher.ts#L31-L32 since it expects a key with a type prefix, sdk- in this case, but the json returned from dotnet/core/master/release-notes/releases.json currently has a key with a dotnet-sdk- prefix for the 2.2.103 release:

[
    {
        "version-sdk": "2.2.103",
        "version-sdk-display": "2.2.103",
        "date": "2019-01-16",
        "security": "true",
        "lts-runtime": "false",
        "lts-sdk": "false",
        "vs-version": "",
        "csharp-language": "7.3",
        "fsharp-language": "4.5",
        "vb-language": "15.9",
        "checksums-sdk": "https://dotnetcli.blob.core.windows.net/dotnet/checksums/2.2.103-sdk-sha.txt",
        "blob-sdk": "https://dotnetcli.blob.core.windows.net/dotnet/Sdk/2.2.103",
        "dotnet-sdk-linux-arm.tar.gz": "https://download.visualstudio.microsoft.com/download/pr/1de01e2e-aa87-4535-af42-8a8a9b4df215/a2fc245f1c26130a2ec22bbf5d0cb3e6/dotnet-sdk-2.2.103-linux-arm.tar.gz",
        "dotnet-sdk-linux-arm64.tar.gz": "https://download.visualstudio.microsoft.com/download/pr/d9e60c5f-af85-4a9e-99ab-26d0cbbd70b7/5fde0e1f8ce2217494e325c9bc09fc0e/dotnet-sdk-2.2.103-linux-arm64.tar.gz",
        "dotnet-sdk-linux-musl-x64.tar.gz": "https://download.visualstudio.microsoft.com/download/pr/cd7cfa87-3318-4180-9494-14049ac06b3d/f37da2572e2e13ca835f95e34e5328e5/dotnet-sdk-2.2.103-linux-musl-x64.tar.gz",
        "dotnet-sdk-linux-x64.tar.gz": "https://download.visualstudio.microsoft.com/download/pr/296e116b-30d7-4e1c-8238-ec8c7c4c7b79/43d6cd35d95e38675d472c56a24c3bd0/dotnet-sdk-2.2.103-linux-x64.tar.gz",
        "dotnet-sdk-osx-gs-x64.pkg": "https://download.visualstudio.microsoft.com/download/pr/5b55396f-9166-4273-96a9-cc9c176bb2bb/6f7de3a3006a193a5adf4799dfe79019/dotnet-sdk-2.2.103-osx-gs-x64.pkg",
        "dotnet-sdk-osx-x64.pkg": "https://download.visualstudio.microsoft.com/download/pr/7510db8c-1acb-42d0-9fdd-5d6f74e1d23c/ff6b732ab489dc1b3e3b566fa5f71080/dotnet-sdk-2.2.103-osx-x64.pkg",
        "dotnet-sdk-osx-x64.tar.gz": "https://download.visualstudio.microsoft.com/download/pr/7315b6a5-b535-4349-892a-7ec82b573724/f44f5f852f0ef4364cff9d00035a3987/dotnet-sdk-2.2.103-osx-x64.tar.gz",
        "dotnet-sdk-rhel.6-x64.tar.gz": "https://download.visualstudio.microsoft.com/download/pr/b5eb4aa1-f103-45b9-b33e-0c611b601e7b/b825115f3af9a9ebcacfeb41f87b507d/dotnet-sdk-2.2.103-rhel.6-x64.tar.gz",
        "dotnet-sdk-win-arm.zip": "https://download.visualstudio.microsoft.com/download/pr/71014edb-b8c9-4ab4-aa6a-d2edee2fd1c4/b8c236bc0586031d038539b254f660cf/dotnet-sdk-2.2.103-win-arm.zip",
        "dotnet-sdk-win-gs-x64.exe": "https://download.visualstudio.microsoft.com/download/pr/97132669-937e-48c8-99c7-e3eb543b0325/c30900f4f2a534380995d25ef80c3f77/dotnet-sdk-2.2.103-win-gs-x64.exe",
        "dotnet-sdk-win-gs-x86.exe": "https://download.visualstudio.microsoft.com/download/pr/afe99b4b-a419-4969-a174-42a10d759919/fd0b15d8e23b17a1b6f3bf44abe8e67d/dotnet-sdk-2.2.103-win-gs-x86.exe",
        "dotnet-sdk-win-x64.exe": "https://download.visualstudio.microsoft.com/download/pr/c509efa5-f867-48e0-a231-625849a192a5/55dff1e29ba23a8b8e08c10d243c854e/dotnet-sdk-2.2.103-win-x64.exe",
        "dotnet-sdk-win-x64.zip": "https://download.visualstudio.microsoft.com/download/pr/c332d70f-6582-4471-96af-4b0c17a616ad/5f3043d4bc506bf91cb89fa90462bb58/dotnet-sdk-2.2.103-win-x64.zip",
        "dotnet-sdk-win-x86.exe": "https://download.visualstudio.microsoft.com/download/pr/a47b3710-f1c9-41ea-a826-23923a3344e8/608c60965f54fc20048a4b6840e513f1/dotnet-sdk-2.2.103-win-x86.exe",
        "dotnet-sdk-win-x86.zip": "https://download.visualstudio.microsoft.com/download/pr/f2c86d9c-0e92-40a5-ae12-6b597db814ff/41e297c11b972e135a6afe20db27acd4/dotnet-sdk-2.2.103-win-x86.zip"
    },
    {
        "version-runtime": "2.2.1",
        "version-sdk": "2.2.102",
        "version-runtime-display": "2.2.1",
        "version-sdk-display": "2.2.102",
        "version-aspnetcoremodule": "12.2.18316.0",
        "date": "2019-01-08",
        "security": "true",
        "lts-runtime": "false", 
        "lts-sdk": "false",
        "vs-version": "",
        "csharp-language": "7.3",
        "fsharp-language": "4.5",
        "vb-language": "15.0",
        "release-notes": "https://github.com/dotnet/core/blob/master/release-notes/2.2/2.2.1/2.2.1.md",
        "checksums-runtime": "https://dotnetcli.blob.core.windows.net/dotnet/checksums/2.2.1-runtime-sha.txt",
        "blob-runtime": "https://dotnetcli.blob.core.windows.net/dotnet/Runtime/2.2.1",
        "checksums-sdk": "https://dotnetcli.blob.core.windows.net/dotnet/checksums/2.2.102-sdk-sha.txt",
        "blob-sdk": "https://dotnetcli.blob.core.windows.net/dotnet/Sdk/2.2.102",
        "runtime-linux-arm-x32": "https://download.visualstudio.microsoft.com/download/pr/e64d0771-52f3-444c-b174-8be5923ca6da/e0d7f36a0017162f5ff7a81b919ef434/dotnet-runtime-2.2.1-linux-arm.tar.gz",
        "runtime-linux-arm-x64": "https://download.visualstudio.microsoft.com/download/pr/4feaf401-6e35-4866-a603-f78f20e1443f/f7cbd190d92aeb555a39696f3aec3400/dotnet-runtime-2.2.1-linux-arm64.tar.gz",
        "runtime-linux-musl-x64": "https://download.visualstudio.microsoft.com/download/pr/fb167dc0-1026-4d98-af20-d33c57af72df/42c5573c53c12243cd5e9d9951bbaaaa/dotnet-runtime-2.2.1-linux-musl-x64.tar.gz",
        "runtime-linux-x64": "https://download.visualstudio.microsoft.com/download/pr/372f18c3-f642-4b73-8255-40a87430a9bb/dd0b412220dc49868b0ba1c58252b6d0/dotnet-runtime-2.2.1-linux-x64.tar.gz",
        "runtime-mac-x64.pkg": "https://download.visualstudio.microsoft.com/download/pr/80a93bfc-dd53-474b-94f4-1dea02dec70c/eab2c0d078899ad0d8f8a15bf84a7f63/dotnet-runtime-2.2.1-osx-x64.pkg",
        "runtime-mac-x64": "https://download.visualstudio.microsoft.com/download/pr/a524eeaa-dff9-4874-8753-50c46621ba52/30a95c310b7fd4e801417f58f9fb4562/dotnet-runtime-2.2.1-osx-x64.tar.gz",
        "runtime-rhel.6-x64": "https://download.visualstudio.microsoft.com/download/pr/5805c10f-aac5-44d5-a169-c0b06862ed8b/7d6c12a91d7f06c0e6ece4640afa8a6b/dotnet-runtime-2.2.1-rhel.6-x64.tar.gz",
        "dotnet-runtime-win-arm.zip": "https://download.visualstudio.microsoft.com/download/pr/e321754c-1fec-4b9a-9b1b-51c0cf925d69/c1d3d28e286f6293db59ab6d9d221349/dotnet-runtime-2.2.1-win-arm.zip",
        "dotnet-runtime-win-arm64.zip": "https://download.visualstudio.microsoft.com/download/pr/85ebea2c-5c65-40ab-9d28-751367a2e309/815568fcb183b1ebb84155891882ba1c/dotnet-runtime-2.2.1-win-arm64.zip",
        "runtime-win-x64.exe": "https://download.visualstudio.microsoft.com/download/pr/14105500-66ac-40f9-85da-044e9486d3bf/8a1b8c318b50bbb96af2290c690225da/dotnet-runtime-2.2.1-win-x64.exe",
        "runtime-win-x64": "https://download.visualstudio.microsoft.com/download/pr/16ccdfd9-b366-4a0c-9b56-a750ea66fd58/b2248c6bed9481c71cad09ed88ae92a0/dotnet-runtime-2.2.1-win-x64.zip",
        "runtime-win-x86.exe": "https://download.visualstudio.microsoft.com/download/pr/8ed0a562-8a0c-404d-9ecd-9101c4666c62/0d0731978fd0470fb52c7e9188e3beff/dotnet-runtime-2.2.1-win-x86.exe",
        "runtime-win-x86": "https://download.visualstudio.microsoft.com/download/pr/0319d1d8-88ca-4521-a060-1729ac2fe185/6cd6fadcbed713ff9f64191097920315/dotnet-runtime-2.2.1-win-x86.zip",
        "asp-runtime-linux-arm": "https://download.visualstudio.microsoft.com/download/pr/9d049226-1f28-4d3d-a4ff-314e56b223c5/f67ab05a3d70b2bff46ff25e2b3acd2a/aspnetcore-runtime-2.2.1-linux-arm.tar.gz",
        "asp-runtime-linux-musl-x64": "https://download.visualstudio.microsoft.com/download/pr/0dc12b72-f5b1-47b7-952c-bba5de6842f8/58dae827466e128dd5d0538c62d1ff49/aspnetcore-runtime-2.2.1-linux-musl-x64.tar.gz",
        "rps-linux-x64": "https://download.visualstudio.microsoft.com/download/pr/53cace8f-2907-487e-84d7-bc7a7ba5de05/326704ffa2ef9d4dcd0db2f1da996ebb/aspnetcore-runtime-2.2.1-linux-x64.tar.gz",
        "rps-mac-x64": "https://download.visualstudio.microsoft.com/download/pr/e1c9f6fa-9ca2-4cfe-9b2d-1b042aeb8525/b4496a1ffff763b9431f44a3cc49664e/aspnetcore-runtime-2.2.1-osx-x64.tar.gz",
        "aspnetcore-runtime-win-arm.zip": "https://download.visualstudio.microsoft.com/download/pr/2d01d672-6299-4104-890e-6c4915b568db/611719bbd750d0a23255ff5c25b649e4/aspnetcore-runtime-2.2.1-win-arm.zip",
        "rps-win-x64.exe": "https://download.visualstudio.microsoft.com/download/pr/0b39ab55-0f9c-4a1e-8f10-fba99193b466/4091102efbe65e582e9b1a4648c65589/aspnetcore-runtime-2.2.1-win-x64.exe",
        "rps-win-x64": "https://download.visualstudio.microsoft.com/download/pr/226f3292-21d8-4c04-adbe-51b8cdd69dca/1e0425c21a5351a5e256dcc4c99ea076/aspnetcore-runtime-2.2.1-win-x64.zip",
        "rps-win-x86.exe": "https://download.visualstudio.microsoft.com/download/pr/27f88a3d-289e-486b-99f8-2fbe31c6d4a8/82725b35c8cb2053b1ed64d9a5978d91/aspnetcore-runtime-2.2.1-win-x86.exe",
        "rps-win-x86": "https://download.visualstudio.microsoft.com/download/pr/4876c767-a2f6-41e9-bf56-2845c92a7c59/ae31a708abdc548c7463000b3f3bbf5c/aspnetcore-runtime-2.2.1-win-x86.zip",
        "hosting-win-x64.exe": "https://download.visualstudio.microsoft.com/download/pr/5ee633f2-bf6d-49bd-8fb6-80c861c36d54/caa93641707e1fd5b8273ada22009246/dotnet-hosting-2.2.1-win.exe",
        "sdk-linux-arm-x32": "https://download.visualstudio.microsoft.com/download/pr/9650e3a6-0399-4330-a363-1add761127f9/14d80726c16d0e3d36db2ee5c11928e4/dotnet-sdk-2.2.102-linux-arm.tar.gz",
        "sdk-linux-arm-x64": "https://download.visualstudio.microsoft.com/download/pr/cbfdc967-0ef2-4371-aef9-70834e32a678/4deb9880498758914fdbf1e984c61049/dotnet-sdk-2.2.102-linux-arm64.tar.gz",
        "sdk-linux-musl-x64": "https://download.visualstudio.microsoft.com/download/pr/07f08bb9-c70f-4b9b-afc4-12b5ab98c108/440e0bdf76b34f82112b4d17b2cf4294/dotnet-sdk-2.2.102-linux-musl-x64.tar.gz",
        "sdk-linux-x64": "https://download.visualstudio.microsoft.com/download/pr/6183afd2-d361-4815-9b34-0c110b93493e/0ec250c96be6a9ffdd7d55ad52c8a2d6/dotnet-sdk-2.2.102-linux-x64.tar.gz",
        "sdk-mac-x64.pkg-gs": "https://download.visualstudio.microsoft.com/download/pr/6d678659-691d-4e02-8896-2d297e0e8e57/bb9201b72a621690aec60f51e6b8e6ab/dotnet-sdk-2.2.102-osx-gs-x64.pkg",
        "sdk-mac-x64.pkg": "https://download.visualstudio.microsoft.com/download/pr/34608266-602a-4f3c-9608-48364b01ac9a/3b890a39949af4592189ca9a300cf651/dotnet-sdk-2.2.102-osx-x64.pkg",
        "sdk-mac-x64": "https://download.visualstudio.microsoft.com/download/pr/af3ed029-01b7-4da5-ade5-d8da67f08d3e/59a2c63da4ccb33a74a43de9660ef4d6/dotnet-sdk-2.2.102-osx-x64.tar.gz",
        "sdk-rhel.6-x64": "https://download.visualstudio.microsoft.com/download/pr/d38a87fd-1c2e-4e2b-9139-72b30434549f/c62164c3d3258fc8caf6ca9a25aeeaae/dotnet-sdk-2.2.102-rhel.6-x64.tar.gz",
        "sdk-win-x64.exe-gs": "https://download.visualstudio.microsoft.com/download/pr/f173dde2-25dd-43cd-966a-7a71ddd3ca29/990c46d1af1acf223dc2ff3f4a2128f4/dotnet-sdk-2.2.102-win-gs-x64.exe",
        "sdk-win-x86.exe-gs": "https://download.visualstudio.microsoft.com/download/pr/96dc4857-2306-42ca-a855-66251373d0e0/d9217d3447d3613682eeac04a927dd8f/dotnet-sdk-2.2.102-win-gs-x86.exe",
        "sdk-win-x64.exe": "https://download.visualstudio.microsoft.com/download/pr/a2686bb0-bc23-477d-bf8b-28fc39a4fd74/4247ade4aff73f96e390f2576d4d131c/dotnet-sdk-2.2.102-win-x64.exe",
        "sdk-win-x64": "https://download.visualstudio.microsoft.com/download/pr/5b886442-d2dc-4690-a3ae-e8f22c9f4e11/ba3c9acd238f807aa207d89da3d38a0c/dotnet-sdk-2.2.102-win-x64.zip",
        "sdk-win-x86.exe": "https://download.visualstudio.microsoft.com/download/pr/741ddae8-d335-4da1-b48b-3b7e14b091e2/b3e823064333d48b6ce5f93c873ed04f/dotnet-sdk-2.2.102-win-x86.exe",
        "sdk-win-x86": "https://download.visualstudio.microsoft.com/download/pr/cc94a8eb-3c33-4a00-b65a-36daebf0b69d/4f3a29fba27f5b8c940e3228f42889ec/dotnet-sdk-2.2.102-win-x86.zip",
        "aspnet-symbols.zip": "https://download.visualstudio.microsoft.com/download/pr/5054e671-e4e5-485f-bb21-c21db96e4c32/5a3d985edb2aa4d636a70abf2f008f74/aspnet-2.2.1-symbols.zip",
        "cli-symbols.zip": "https://download.visualstudio.microsoft.com/download/pr/c1345252-2b65-463c-a242-387584319029/bd273fbf195ef073d65f521b3c23bc5b/cli-2.2.1-symbols.zip",
        "core-setup-symbols.zip": "https://download.visualstudio.microsoft.com/download/pr/7181f15d-9b79-4433-bd78-70920d0a4285/400dde7650fdb910b5fe5323caac5600/core-setup-2.2.1-symbols.zip",
        "coreclr-symbols.zip": "https://download.visualstudio.microsoft.com/download/pr/0a6b8b1b-99ea-47d3-b469-e20e7de24d2e/3414feb5b173ded0cbe20de2f3d1e61b/coreclr-2.2.1-symbols.zip",
        "corefx-symbols.zip": "https://download.visualstudio.microsoft.com/download/pr/45660124-8e10-4871-a2b4-003ae46b3928/c93c49381fabe993ee95666d842bb91f/corefx-2.2.1-symbols.zip",
        "sdk-symbols-symbols.zip": "https://download.visualstudio.microsoft.com/download/pr/fb7eaa7a-7bf9-481e-a30b-ce8d87d9710c/ceacf3a172301d0ad64f5f4199327379/sdk-symbols-2.2.1-symbols.zip"
    },
    ...
]

releases.zip

@Zucka
Copy link

Zucka commented Jan 21, 2019

I am having the same issue

@alski
Copy link

alski commented Jan 22, 2019

Same here, also I tried rolling back to 2.2.1 and got

2019-01-22T07:15:45.9876165Z ##[section]Starting: Use .NET Core sdk 2.2.1
2019-01-22T07:15:45.9879227Z ==============================================================================
2019-01-22T07:15:45.9879286Z Task : .NET Core SDK Installer
2019-01-22T07:15:45.9879337Z Description : Acquires a specific version of the .NET Core SDK from internet or the local cache and adds it to the PATH. Use this task to change the version of .NET Core used in subsequent tasks.
2019-01-22T07:15:45.9879392Z Version : 0.2.0
2019-01-22T07:15:45.9879446Z Author : Microsoft Corporation
2019-01-22T07:15:45.9879485Z Help : More Information
2019-01-22T07:15:45.9879521Z ==============================================================================
2019-01-22T07:15:46.3507824Z Tool to install: .NET Core sdk version 2.2.1.
2019-01-22T07:15:46.3742303Z [command]C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command "& 'D:\a_tasks\DotNetCoreInstaller_b0ce7256-7898-45d3-9cb5-176b752bfea6\0.2.0\externals\get-os-platform.ps1'"
2019-01-22T07:15:46.8986099Z Primary:win-x64
2019-01-22T07:15:46.8987587Z Detected platform (Primary): win-x64
2019-01-22T07:15:46.8989186Z Checking if a cached copy exists for this version...
2019-01-22T07:15:46.8998208Z The cache does not contain the requested version of .NET Core. Downloading and installing it now.
2019-01-22T07:15:46.8998650Z Getting URL to download .NET Core sdk version: 2.2.1.
2019-01-22T07:15:47.2377119Z Could not fetch download information for version 2.2.1. Please check if the version specified is correct. You can refer the link for supported versions => https://github.com/dotnet/core/blob/master/release-notes/releases.json. Falling back to creating convention based URL.
2019-01-22T07:15:47.2564184Z [command]C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command "& 'D:\a_tasks\DotNetCoreInstaller_b0ce7256-7898-45d3-9cb5-176b752bfea6\0.2.0\externals\install-dotnet.ps1' -Version 2.2.1 -DryRun"
2019-01-22T07:15:47.8907582Z dotnet-install: Payload URLs:
2019-01-22T07:15:47.8908325Z dotnet-install: Primary - https://dotnetcli.azureedge.net/dotnet/Sdk/2.2.1/dotnet-sdk-2.2.1-win-x64.zip
2019-01-22T07:15:47.8908791Z dotnet-install: Legacy - https://dotnetcli.azureedge.net/dotnet/Sdk/2.2.1/dotnet-dev-win-x64.2.2.1.zip
2019-01-22T07:15:47.8909218Z dotnet-install: Repeatable invocation: .\install-dotnet.ps1 -Version 2.2.1 -Channel LTS -Architecture x64 -InstallDir
2019-01-22T07:15:47.8939909Z Downloading: https://dotnetcli.azureedge.net/dotnet/Sdk/2.2.1/dotnet-sdk-2.2.1-win-x64.zip
2019-01-22T07:15:48.2686473Z ##[warning]Could not download installation package from this URL: https://dotnetcli.azureedge.net/dotnet/Sdk/2.2.1/dotnet-sdk-2.2.1-win-x64.zip Error: {}
2019-01-22T07:15:48.2698253Z Downloading: https://dotnetcli.azureedge.net/dotnet/Sdk/2.2.1/dotnet-dev-win-x64.2.2.1.zip
2019-01-22T07:15:48.5083524Z ##[warning]Could not download installation package from this URL: https://dotnetcli.azureedge.net/dotnet/Sdk/2.2.1/dotnet-dev-win-x64.2.2.1.zip Error: {}
2019-01-22T07:15:48.5087359Z ##[error]Failed to download package for installation
2019-01-22T07:15:48.5185226Z ##[section]Finishing: Use .NET Core sdk 2.2.1`

@tejasd1990
Copy link
Contributor

tejasd1990 commented Jan 22, 2019

Hi @gitfool, @Zucka, thanks for pointing it out. We are investigating this issue, and will udpate soon. Meanwhile, can you rollback to an earlier sdk version to get yourself unblocked?

@tejasd1990
Copy link
Contributor

tejasd1990 commented Jan 22, 2019

Hi @alski, as the document linked in the logs says(https://github.com/dotnet/core/blob/master/release-notes/releases.json), the sdk versions can be 2.2.103, 2.2.102, 2.2.101, 2.2.100, and a few other preview versions. You can rollback to one of these till the issue is fixed. 2.2.1 is a runtime version. Thanks

@alski
Copy link

alski commented Jan 22, 2019

Thanks @tejasd1990, I wasn't reading the releases.json properly, maybe we should re-order this

{
"version-runtime": "2.2.1",
"version-sdk": "2.2.102",

@tejasd1990
Copy link
Contributor

Hi @gitfool, @Zucka, @alski
The issue has been fixed by the dotnet core team. We will improve the error message in the task. Thanks

@tejasd1990
Copy link
Contributor

Hi, the error message improvement is done and would be deployed in about 3 weeks. Closing this issue.

@kieronlanning
Copy link

@tejasd1990 This is back for version 2.2.104...

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

No branches or pull requests

7 participants