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

NuGet.targets(498,5): error : Could not find a part of the path '/tmp/NuGetScratch #7341

Closed
joshfree opened this issue Sep 28, 2018 · 57 comments

Comments

@joshfree
Copy link

We're occasionally seeing a spurious failure mentioning the /tmp/NuGetScratch path on Ubuntu 16.04 in CI on latest .NET Core 3.0 (master) builds:

dotnetcli/sdk/3.0.100-alpha1-009626/NuGet.targets(498,5): error : Could not find a part of the path '/tmp/NuGetScratch/527e64f2-3196-46c8-b4c2-0a6353faf093'.

link to corefx-lab

I'll update this issue with additional links if/when we see more hits

@mikeharder
Copy link

@joshfree: Did this error occur on a DevOps Pipelines ubuntu-16.04 hosted agent? Because our build just hit this same error on that agent type:

2018-10-24T10:04:59.5271236Z ##[section]Starting: Pack
2018-10-24T10:04:59.5274583Z ==============================================================================
2018-10-24T10:04:59.5274652Z Task         : Command Line
2018-10-24T10:04:59.5274860Z Description  : Run a command line script using cmd.exe on Windows and bash on macOS and Linux.
2018-10-24T10:04:59.5274963Z Version      : 2.136.0
2018-10-24T10:04:59.5275008Z Author       : Microsoft Corporation
2018-10-24T10:04:59.5275055Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkID=613735)
2018-10-24T10:04:59.5275146Z ==============================================================================
2018-10-24T10:05:01.4261872Z Generating script.
2018-10-24T10:05:01.4280191Z Script contents:
2018-10-24T10:05:01.4280847Z dotnet pack --output /home/vsts/work/1/a
2018-10-24T10:05:01.4308839Z [command]/bin/bash --noprofile --norc /home/vsts/work/_temp/db10cd2b-38e8-402d-a8eb-ff9a976ad773.sh
2018-10-24T10:05:09.4566160Z Microsoft (R) Build Engine version 15.8.169+g1ccb72aefa for .NET Core
2018-10-24T10:05:09.4567596Z Copyright (C) Microsoft Corporation. All rights reserved.
2018-10-24T10:05:09.4567846Z 
2018-10-24T10:05:15.6662719Z /usr/share/dotnet/sdk/2.1.403/NuGet.targets(498,5): error : Could not find a part of the path '/tmp/NuGetScratch/6cd713f9-3dde-4d1f-b8cf-ebc068623d7e'. [/home/vsts/work/1/s/KeyVault/Microsoft.Adp.KeyVault/Microsoft.Adp.KeyVault.csproj]
2018-10-24T10:05:15.8885836Z ##[error]Bash exited with code '1'.
2018-10-24T10:05:15.9670564Z ##[section]Finishing: Pack

The agent should be using .NET Core SDK 2.1.403:

https://github.com/Microsoft/azure-pipelines-image-generation/blob/master/images/linux/Ubuntu1604-README.md

@joshfree
Copy link
Author

I'm not sure the details on the infra -- @MattGal should know

@MattGal
Copy link

MattGal commented Oct 24, 2018

Speak of the me and I shall appear. Looking.

@MattGal
Copy link

MattGal commented Oct 24, 2018

@mikeharder to answer your question, this specific job runs on a Jenkins agent whose VHD was made by @mmitche a bit over a year ago: (ubuntu1604-20170925-1) . I'm looking at the errors too to see if I can provide more useful data.

@MattGal
Copy link

MattGal commented Oct 24, 2018

@joshfree I can't find any other failures on this build def that both still have their logs available and have this problem. However, one possible cause if we ever get onto such a machine is that tmp can be over-filled on Linux and OSX machines, making further file operations within the /tmp folder fail. It seems very unlikely for the hosted agents though since they are reset every build.

@mikeharder
Copy link

@MattGal: Thanks. It seems more likely this is a general issue with NuGet on Linux, rather than specific to one type of agent.

@MattGal
Copy link

MattGal commented Oct 24, 2018

@mikeharder I agree and your data definitely makes it seem that way, I was just listing an issue with tmp folders I'd seen.

@shaan1337
Copy link

shaan1337 commented Oct 30, 2018

@MattGal @joshfree @mikeharder Hello, we can see the same issue on macOS 10.13 hosted agent on our Azure DevOps pipeline (please check the failing mac builds):
https://dev.azure.com/EventStoreOSS/EventStore/_build/results?buildId=172&view=logs
https://dev.azure.com/EventStoreOSS/EventStore/_build/results?buildId=178&view=logs

I've seen it occur only on the macOS agent so far.

@wieslawsoltes
Copy link

Have same error in Azure DevOps, sometimes it works and sometimes the error is thrown:

2018-11-21T10:24:49.2978416Z ##[section]Starting: Publish debian.8-x64
2018-11-21T10:24:49.2984559Z ==============================================================================
2018-11-21T10:24:49.2984670Z Task         : .NET Core
2018-11-21T10:24:49.2984734Z Description  : Build, test, package, or publish a dotnet application, or run a custom dotnet command. For package commands, supports NuGet.org and authenticated feeds like Package Management and MyGet.
2018-11-21T10:24:49.2984840Z Version      : 2.141.5
2018-11-21T10:24:49.2984883Z Author       : Microsoft Corporation
2018-11-21T10:24:49.2985369Z Help         : [More Information](https://go.microsoft.com/fwlink/?linkid=832194)
2018-11-21T10:24:49.2985479Z ==============================================================================
2018-11-21T10:24:52.1271594Z [command]/usr/bin/dotnet publish /home/vsts/work/1/s/./src/ThemeEditor/ThemeEditor.csproj -r debian.8-x64 -c release -f netcoreapp2.1 --output /home/vsts/work/1/a/ThemeEditor-debian.8-x64
2018-11-21T10:25:02.3781145Z Microsoft (R) Build Engine version 15.8.169+g1ccb72aefa for .NET Core
2018-11-21T10:25:02.3782463Z Copyright (C) Microsoft Corporation. All rights reserved.
2018-11-21T10:25:02.3782560Z 
2018-11-21T10:25:10.5359446Z /usr/share/dotnet/sdk/2.1.403/NuGet.targets(498,5): error : Could not find a part of the path '/tmp/NuGetScratch/eeff630c-dee8-4721-b463-a036362df1b7'. [/home/vsts/work/1/s/src/ThemeEditor.ColorMatch/ThemeEditor.ColorMatch.csproj]
2018-11-21T10:25:10.9354596Z ##[error]Error: /usr/bin/dotnet failed with return code: 1
2018-11-21T10:25:10.9367646Z ##[error]Dotnet command failed with non-zero exit code on the following projects : /home/vsts/work/1/s/./src/ThemeEditor/ThemeEditor.csproj
2018-11-21T10:25:10.9521221Z ##[section]Finishing: Publish debian.8-x64
2018-11-14T11:18:01.9052681Z ##[section]Starting: Build
2018-11-14T11:18:01.9088743Z ==============================================================================
2018-11-14T11:18:01.9088823Z Task         : .NET Core
2018-11-14T11:18:01.9088890Z Description  : Build, test, package, or publish a dotnet application, or run a custom dotnet command. For package commands, supports NuGet.org and authenticated feeds like Package Management and MyGet.
2018-11-14T11:18:01.9088997Z Version      : 2.141.2
2018-11-14T11:18:01.9089041Z Author       : Microsoft Corporation
2018-11-14T11:18:01.9089134Z Help         : [More Information](https://go.microsoft.com/fwlink/?linkid=832194)
2018-11-14T11:18:01.9089191Z ==============================================================================
2018-11-14T11:18:04.9435631Z [command]/usr/bin/dotnet build /home/vsts/work/1/s/ThemeEditor.sln -c release --version-suffix -build475
2018-11-14T11:18:14.0739128Z Microsoft (R) Build Engine version 15.8.169+g1ccb72aefa for .NET Core
2018-11-14T11:18:14.0739913Z Copyright (C) Microsoft Corporation. All rights reserved.
2018-11-14T11:18:14.0740269Z 
2018-11-14T11:18:22.3191598Z /usr/share/dotnet/sdk/2.1.403/NuGet.targets(498,5): error : Could not find a part of the path '/tmp/NuGetScratch/3f61c39c-3ac7-4273-b42c-4766eed97213'. [/home/vsts/work/1/s/src/ThemeEditor.Colors/ThemeEditor.Colors.csproj]
2018-11-14T11:18:22.6100368Z 
2018-11-14T11:18:22.6101225Z Build FAILED.
2018-11-14T11:18:22.6101398Z 
2018-11-14T11:18:22.6102697Z /usr/share/dotnet/sdk/2.1.403/NuGet.targets(498,5): error : Could not find a part of the path '/tmp/NuGetScratch/3f61c39c-3ac7-4273-b42c-4766eed97213'. [/home/vsts/work/1/s/src/ThemeEditor.Colors/ThemeEditor.Colors.csproj]
2018-11-14T11:18:22.6102942Z     0 Warning(s)
2018-11-14T11:18:22.6103276Z     1 Error(s)
2018-11-14T11:18:22.6103366Z 
2018-11-14T11:18:22.6103894Z Time Elapsed 00:00:07.10
2018-11-14T11:18:22.6389494Z ##[error]Error: /usr/bin/dotnet failed with return code: 1
2018-11-14T11:18:22.6469131Z ##[error]Dotnet command failed with non-zero exit code on the following projects : /home/vsts/work/1/s/ThemeEditor.sln
2018-11-14T11:18:22.6686157Z ##[section]Finishing: Build
2018-11-14T09:32:29.6394840Z ##[section]Starting: Build
2018-11-14T09:32:29.6406230Z ==============================================================================
2018-11-14T09:32:29.6406390Z Task         : .NET Core
2018-11-14T09:32:29.6406520Z Description  : Build, test, package, or publish a dotnet application, or run a custom dotnet command. For package commands, supports NuGet.org and authenticated feeds like Package Management and MyGet.
2018-11-14T09:32:29.6406700Z Version      : 2.141.2
2018-11-14T09:32:29.6406800Z Author       : Microsoft Corporation
2018-11-14T09:32:29.6406910Z Help         : [More Information](https://go.microsoft.com/fwlink/?linkid=832194)
2018-11-14T09:32:29.6407050Z ==============================================================================
2018-11-14T09:32:30.9736470Z [command]/usr/local/bin/dotnet build /Users/vsts/agent/2.141.1/work/1/s/ThemeEditor.sln -c release --version-suffix -build470
2018-11-14T09:32:31.5584800Z 
2018-11-14T09:32:31.5746640Z Welcome to .NET Core!
2018-11-14T09:32:31.5748670Z ---------------------
2018-11-14T09:32:31.5750210Z Learn more about .NET Core: https://aka.ms/dotnet-docs
2018-11-14T09:32:31.5751670Z Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli-docs
2018-11-14T09:32:31.5752240Z 
2018-11-14T09:32:31.5752840Z Telemetry
2018-11-14T09:32:31.5754110Z ---------
2018-11-14T09:32:31.5755900Z The .NET Core tools collect usage data in order to help us improve your experience. The data is anonymous and doesn't include command-line arguments. The data is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.
2018-11-14T09:32:31.5766190Z 
2018-11-14T09:32:31.5767380Z Read more about .NET Core CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry
2018-11-14T09:32:31.5767990Z 
2018-11-14T09:32:31.5768430Z Configuring...
2018-11-14T09:32:31.5769260Z --------------
2018-11-14T09:32:31.5769810Z A command is running to populate your local package cache to improve restore speed and enable offline access. This command takes up to one minute to complete and only runs once.
2018-11-14T09:32:40.3413130Z Decompressing .......... 8726 ms
2018-11-14T09:32:58.5300210Z Expanding .......... 17929 ms
2018-11-14T09:33:00.2265090Z 
2018-11-14T09:33:00.2266040Z ASP.NET Core
2018-11-14T09:33:00.2267440Z ------------
2018-11-14T09:33:00.2268090Z Successfully installed the ASP.NET Core HTTPS Development Certificate.
2018-11-14T09:33:00.2268890Z To trust the certificate run 'dotnet dev-certs https --trust' (Windows and macOS only). For establishing trust on other platforms refer to the platform specific documentation.
2018-11-14T09:33:00.2269110Z For more information on configuring HTTPS see https://go.microsoft.com/fwlink/?linkid=848054.
2018-11-14T09:33:00.5491540Z Microsoft (R) Build Engine version 15.8.169+g1ccb72aefa for .NET Core
2018-11-14T09:33:00.5492040Z Copyright (C) Microsoft Corporation. All rights reserved.
2018-11-14T09:33:00.5492160Z 
2018-11-14T09:33:03.3186030Z /Users/vsts/.dotnet/sdk/2.1.403/NuGet.targets(498,5): error : Could not find a part of the path '/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/NuGetScratch/3a9cebe1-0621-494e-9022-0e6d5de323c3'. [/Users/vsts/agent/2.141.1/work/1/s/src/ThemeEditor.ColorMatch/ThemeEditor.ColorMatch.csproj]
2018-11-14T09:33:03.4405930Z 
2018-11-14T09:33:03.4407290Z Build FAILED.
2018-11-14T09:33:03.4408030Z 
2018-11-14T09:33:03.4410320Z /Users/vsts/.dotnet/sdk/2.1.403/NuGet.targets(498,5): error : Could not find a part of the path '/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/NuGetScratch/3a9cebe1-0621-494e-9022-0e6d5de323c3'. [/Users/vsts/agent/2.141.1/work/1/s/src/ThemeEditor.ColorMatch/ThemeEditor.ColorMatch.csproj]
2018-11-14T09:33:03.4411180Z     0 Warning(s)
2018-11-14T09:33:03.4411830Z     1 Error(s)
2018-11-14T09:33:03.4412620Z 
2018-11-14T09:33:03.4413270Z Time Elapsed 00:00:02.69
2018-11-14T09:33:03.4914590Z ##[error]Error: /usr/local/bin/dotnet failed with return code: 1
2018-11-14T09:33:03.4935490Z ##[error]Dotnet command failed with non-zero exit code on the following projects : /Users/vsts/agent/2.141.1/work/1/s/ThemeEditor.sln
2018-11-14T09:33:03.4988710Z ##[section]Finishing: Build

@MarkDordoy
Copy link

MarkDordoy commented Dec 4, 2018

Im also seeing this issue:

2018-12-04T13:00:37.8773693Z Microsoft (R) Build Engine version 15.9.20+g88f5fadfbe for .NET Core
2018-12-04T13:00:37.8774410Z Copyright (C) Microsoft Corporation. All rights reserved.
2018-12-04T13:00:37.8774634Z 
2018-12-04T13:00:45.3317432Z /usr/share/dotnet/sdk/2.1.500/NuGet.targets(499,5): error : Could not find a part of the path '/tmp/NuGetScratch/cc7d7c71-8d06-41b3-8285-a1ba4e929d1b'. [/home/vsts/work/1/s/microservices/orders/Ctrade.Orders.Functions/Ctrade.Orders.Functions.csproj]
2018-12-04T13:00:45.7259485Z 
2018-12-04T13:00:45.7260233Z Build FAILED.
2018-12-04T13:00:45.7261293Z 
2018-12-04T13:00:45.7262158Z /usr/share/dotnet/sdk/2.1.500/NuGet.targets(499,5): error : Could not find a part of the path '/tmp/NuGetScratch/cc7d7c71-8d06-41b3-8285-a1ba4e929d1b'. [/home/vsts/work/1/s/microservices/orders/Ctrade.Orders.Functions/Ctrade.Orders.Functions.csproj]
2018-12-04T13:00:45.7262265Z     0 Warning(s)
2018-12-04T13:00:45.7262311Z     1 Error(s)
2018-12-04T13:00:45.7262357Z 
2018-12-04T13:00:45.7262397Z Time Elapsed 00:00:06.60
2018-12-04T13:00:45.7631370Z ##[error]Error: /usr/bin/dotnet failed with return code: 1
2018-12-04T13:00:45.7642832Z ##[error]Dotnet command failed with non-zero exit code on the following projects : /home/vsts/work/1/s/microservices/orders/Ctrade.Orders.sln
2018-12-04T13:00:45.7662644Z ##[section]Finishing: dotnet build 

We are building a .net core project on the Azure Devops hosted Ubuntu image. Generally if you re-trigger the build the problem goes away for a bit, but this is not ideal in a ci environment

@rmsryu
Copy link

rmsryu commented Dec 12, 2018

We are also seeing the same issue. And as @MarkDordoy said re-triggering the build it works, but it's breaking all our CI environment.

2018-12-11T20:35:25.9180039Z /usr/share/dotnet/sdk/2.1.500/NuGet.targets(499,5): error : Could not find a part of the path '/tmp/NuGetScratch/7f908911-2790-486f-81d6-d15c46d49a04'.
2018-12-11T20:35:25.9182545Z
2018-12-11T20:35:25.9184761Z 0 Warning(s)
2018-12-11T20:35:25.9187288Z 1 Error(s)
2018-12-11T20:35:25.9189867Z
2018-12-11T20:35:25.9191718Z Time Elapsed 00:00:07.81
2018-12-11T20:35:25.9893016Z ##[error]Error: /usr/bin/dotnet failed with return code: 1
2018-12-11T20:35:25.9903842Z ##[error]Packages failed to restore
2018-12-11T20:35:26.0016860Z ##[section]Finishing: Restore

@jainaashish
Copy link
Contributor

Is it also reproducible on dev box instead if Azure DevOps? and Can someone provide me verbose logs for the issue?

@nkolev92
Copy link
Member

nkolev92 commented Dec 19, 2018

Could any of you that can reproduce the issue often enough try redirecting TMPDIR to a user-local folder before running restore, and report back to us whether you still see the problem.

@aveao
Copy link

aveao commented Dec 28, 2018

@nkolev92 I can confirm that that works for me.

(rm -rf /tmp/NuGetScratch, then ln -s /tmp/NuGetScratch <a user-local folder>, then nuget install works)

@nkolev92
Copy link
Member

Thanks @aveao
I'd imagine it's a permissions issue.
Do you ever use nuget.exe on mono on the machine in question?

@aveao
Copy link

aveao commented Dec 28, 2018

I use the aur package "nuget-stable" and use msbuild to build mono stuff. So… I assume that's what it is.

@nkolev92

@nkolev92
Copy link
Member

I have a fix for nuget.exe under mono that could be causing this issues in NuGet/NuGet.Client#2691.
I was not able to find any specific issues in the dotnet.exe codepaths.

@stas-lucky
Copy link

stas-lucky commented Jan 27, 2019

Issue occurs periodically. Run build again solves issue. Using "Hosted Ubuntu 1604" agent.
Message:
2019-01-27T22:22:22.1440448Z /usr/share/dotnet/sdk/2.2.101/NuGet.targets(499,5): error : Could not find a part of the path '/tmp/NuGetScratch/d102ea94-1214-4dd5-a627-d49d3fa8f937'. [/home/vsts/work/1/s/src/SF.DA.BLL/SF.DA.BLL.csproj]
2019-01-27T22:22:22.7437026Z ##[error]Error: /usr/bin/dotnet failed with return code: 1

@nkolev92
Copy link
Member

nkolev92 commented Jan 28, 2019

@stas-lucky Have you ever used nuget.exe on mono on the machine where the problems happen?

@MiYanni
Copy link

MiYanni commented Jan 29, 2019

I am seeing this issue on our builds of Azure PowerShell on both the public hosted Linux and macOS workers in ADO. It seems to happen randomly.

2019-01-29T20:41:10.4786930Z /Users/vsts/.dotnet/sdk/2.2.102/NuGet.targets(499,5): error : Could not find a part of the path '/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/NuGetScratch/a88f0d26-af5d-48f7-9acf-bab94e987605'. [/Users/vsts/agent/2.144.2/work/1/s/src/Accounts/Authentication/Authentication.csproj] [/Users/vsts/agent/2.144.2/work/1/s/build.proj]

@rachelleahr
Copy link

Same issue. Seems to be random, usually works when I rerun it. Using Azure Devops as well.
Does anyone have a fix?

@rrelyea
Copy link
Contributor

rrelyea commented Feb 11, 2019

@nkolev92 fixed it for Mono in 5.0. Couldn't find anything involving dotnet.exe code paths.
Top suspect is now old tools running on your machine (and yes, we haven't released 5.0 final yet.)
Upgrade all your dotnet sdks...nuget.exes, etc... if you still hit this please let us know.

@nkolev92
Copy link
Member

nkolev92 commented Mar 27, 2019

@joseccruz
A binlog would be helpful.

I'm digging into some potentially related code on the side, but it's hard to predict whether that's truly the problem without more information or a repro.

@rix0rrr
Copy link

rix0rrr commented Apr 1, 2019

+1 on this, happens intermittently for us on CI builds on Ubuntu.

@nkolev92 nkolev92 self-assigned this Apr 1, 2019
@nathan-alden-sr
Copy link

nathan-alden-sr commented Apr 3, 2019

Just ran into this again. It's been happening for a long time now. Same issue as everyone else: Ubuntu 16.04 Microsoft-hosted build agent.

   2:5>/usr/share/dotnet/sdk/2.2.104/NuGet.targets(499,5): error : Could not find a part of the path '/tmp/NuGetScratch/771dc244-8fa7-4261-9727-b0ff3a1d29eb'. [/home/vsts/work/1/s/src/NetStandard20/NetStandard20.csproj]
   2:5>System.IO.DirectoryNotFoundException: Could not find a part of the path '/tmp/NuGetScratch/771dc244-8fa7-4261-9727-b0ff3a1d29eb'.
   at System.IO.FileSystem.CreateDirectory(String fullPath)
   at System.IO.Directory.CreateDirectory(String path)
   at NuGet.Common.DirectoryUtility.CreateSingleSharedDirectory(String path)
   at NuGet.Common.DirectoryUtility.CreateSharedDirectory(String path)
   at NuGet.Common.ConcurrencyUtilities.get_BasePath()
   at NuGet.Common.ConcurrencyUtilities.FileLockPath(String filePath)
   at NuGet.Common.ConcurrencyUtilities.ExecuteWithFileLocked(String filePath, Action action)
   at NuGet.Configuration.SettingsFile.ExecuteSynchronized(Action ioOperation)
   at NuGet.Configuration.SettingsFile..ctor(String directoryPath, String fileName, Boolean isMachineWide)
   at NuGet.Configuration.Settings.ReadSettings(String settingsRoot, String settingsPath, Boolean isMachineWideSettings)
   at NuGet.Configuration.Settings.LoadUserSpecificSettings(String root, String configFileName, Boolean useTestingGlobalPath)
   at NuGet.Configuration.Settings.LoadSettingsForSpecificConfigs(String root, String configFileName, List`1 validSettingFiles, IMachineWideSettings machineWideSettings, Boolean loadUserWideSettings, Boolean useTestingGlobalPath)
   at NuGet.Configuration.Settings.LoadSettings(String root, String configFileName, IMachineWideSettings machineWideSettings, Boolean loadUserWideSettings, Boolean useTestingGlobalPath)
   at NuGet.Configuration.Settings.LoadDefaultSettings(String root, String configFileName, IMachineWideSettings machineWideSettings)
   at NuGet.Build.Tasks.RestoreSettingsUtils.ReadSettings(String solutionDirectory, String restoreDirectory, String restoreConfigFile, Lazy`1 machineWideSettings)
   at NuGet.Build.Tasks.GetRestoreSettingsTask.Execute()

@eladb
Copy link

eladb commented Apr 3, 2019

+1 here

@4c74356b41
Copy link

4c74356b41 commented Apr 3, 2019

looks like is are the only ones not using their hosted agents ;) pretty smart, eh? xD

@nkolev92
Copy link
Member

nkolev92 commented Apr 5, 2019

Update

I have another fix in the related code path in NuGet/NuGet.Client#2795.
Note that while I am confident this will fix at least some of the issues reported here, I have no way of confirming that, so I will rely on feedback from you.

I will update again whenever this fix makes it in the previews of (2.1.700, 2.2.300 & 3.0.100).

@lukeschlather
Copy link

I've just started playing around with ADO hosted agents and I hit this pretty quickly. I don't want to tie up one of my agents we're paying for but I imagine if I just ran the same build on a schedule every 10 minutes with some jitter it would fail several times a day. I encountered it on the 10th build or so.

@nkolev92
Copy link
Member

The fix will be in
2.1.700 - preview 2
2.2.300 - preview 2
3.0.100 - preview 4

If/When you upgrade to these versions, let me know if you still see issues.

@rrelyea rrelyea modified the milestones: 5.1, 5.2 Apr 30, 2019
@johnknoop
Copy link

I'm also seeing this intermittently on Azure Devops.

@nkolev92 are those version numbers of .NET Core? If so, how do I set which version to use with that precision? I'm only aware of how to choose the major and minor version, using the csproj file (<TargetFramework>netcoreapp2.2</TargetFramework>).

@nkolev92
Copy link
Member

nkolev92 commented May 6, 2019

@johnknoop

That's the .NET Core SDK version. It's what allows you to build the application.
The TargetFramework is about where it can run.

It's something you need to update on the specific machines (Azure Pipelines has an install task + you can use global.json to pin the SDK version).

Hope the following resources help.

https://docs.microsoft.com/en-us/dotnet/core/sdk
https://docs.microsoft.com/en-us/dotnet/core/tools/global-json
https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/tool/dotnet-core-tool-installer?view=azure-devops

@nkolev92
Copy link
Member

nkolev92 commented Jun 7, 2019

Has anyone seen issues with:

2.1.700
2.2.300
3.0.100

Thanks!

@nkolev92
Copy link
Member

nkolev92 commented Jul 1, 2019

At this point, I am closing this issue as fixed.
If you still hit problems, let us know and we'll be happy to investigate.

@Trolldemorted
Copy link

When will azure pipelines use 2.2.300 or higher be default? I don't really want to pin a specific sdk version in all of my repositories

@lytico
Copy link

lytico commented Aug 1, 2019

got the same (similar?) error with monodevelop

mono/monodevelop#8320

@dflo dflo mentioned this issue Aug 21, 2019
@srinathrangaramanujam
Copy link

Why was the issue closed. Pls reopen it. This issue is faced constantly in our ado.

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