Failed build on Ubuntu 19.10
See original GitHub issueDescribe the problem/bug Build fails
Your environment
- Version of BTCPay Server: v1.0.3.146
- Deployment method: build from source on Ubuntu 19.10
- Other relevant environment details: both 2.1.x and 3.1.x (current release) .Net SDKs installed
To Reproduce Steps to reproduce the behavior:
git clone https://github.com/btcpayserver/btcpayserver.git
cd btcpayserver
sudo ./build.sh
- See output below
Build output from sudo ./build.sh
Microsoft (R) Build Engine version 16.4.0+e901037fe for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
Restore completed in 162.96 ms for /home/shawn/btcpayserver/BTCPayServer.Rating/BTCPayServer.Rating.csproj.
Restore completed in 162.92 ms for /home/shawn/btcpayserver/BTCPayServer/BTCPayServer.csproj.
Restore completed in 162.94 ms for /home/shawn/btcpayserver/BTCPayServer.Data/BTCPayServer.Data.csproj.
Restore completed in 162.95 ms for /home/shawn/btcpayserver/BTCPayServer.Common/BTCPayServer.Common.csproj.
/usr/share/dotnet/sdk/3.1.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.DefaultItems.targets(189,5): warning NETSDK1071: A PackageReference to 'Microsoft.AspNetCore.App' specified a Version of `2.1.14`. Specifying the version of this package is not recommended. For more information, see https://aka.ms/sdkimplicitrefs [/home/shawn/btcpayserver/BTCPayServer.Rating/BTCPayServer.Rating.csproj]
/usr/share/dotnet/sdk/3.1.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.DefaultItems.targets(189,5): warning NETSDK1071: A PackageReference to 'Microsoft.AspNetCore.App' specified a Version of `2.1.14`. Specifying the version of this package is not recommended. For more information, see https://aka.ms/sdkimplicitrefs [/home/shawn/btcpayserver/BTCPayServer.Common/BTCPayServer.Common.csproj]
BTCPayServer.Data -> /home/shawn/btcpayserver/BTCPayServer.Data/bin/Release/netcoreapp2.1/BTCPayServer.Data.dll
BTCPayServer.Common -> /home/shawn/btcpayserver/BTCPayServer.Common/bin/Release/netcoreapp2.1/BTCPayServer.Common.dll
BTCPayServer.Rating -> /home/shawn/btcpayserver/BTCPayServer.Rating/bin/Release/netcoreapp2.1/BTCPayServer.Rating.dll
Bundler: Begin processing bundleconfig.json
Build FAILED.
/usr/share/dotnet/sdk/3.1.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.DefaultItems.targets(189,5): warning NETSDK1071: A PackageReference to 'Microsoft.AspNetCore.App' specified a Version of `2.1.14`. Specifying the version of this package is not recommended. For more information, see https://aka.ms/sdkimplicitrefs [/home/shawn/btcpayserver/BTCPayServer.Rating/BTCPayServer.Rating.csproj]
/usr/share/dotnet/sdk/3.1.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.DefaultItems.targets(189,5): warning NETSDK1071: A PackageReference to 'Microsoft.AspNetCore.App' specified a Version of `2.1.14`. Specifying the version of this package is not recommended. For more information, see https://aka.ms/sdkimplicitrefs [/home/shawn/btcpayserver/BTCPayServer.Common/BTCPayServer.Common.csproj]
2 Warning(s)
0 Error(s)
Time Elapsed 00:00:05.31
MSBUILD : error MSB1025: An internal failure occurred while running MSBuild.
Microsoft.Build.Shared.InternalErrorException: MSB0001: Internal MSBuild Error: ContextID 32 should have been in the ID-to-project file mapping but wasn't!
at Microsoft.Build.Shared.ErrorUtilities.ThrowInternalError(String message, Object[] args)
at Microsoft.Build.BackEnd.Logging.LoggingService.GetAndVerifyProjectFileFromContext(BuildEventContext context)
at Microsoft.Build.BackEnd.Logging.LoggingService.LogBuildEvent(BuildEventArgs buildEvent)
at Microsoft.Build.BackEnd.TaskHost.LogErrorEvent(BuildErrorEventArgs e)
at Microsoft.Build.Utilities.TaskLoggingHelper.LogError(String subcategory, String errorCode, String helpKeyword, String file, Int32 lineNumber, Int32 columnNumber, Int32 endLineNumber, Int32 endColumnNumber, String message, Object[] messageArgs)
at BundlerMinifier.BundlerBuildTask.BundleMinifier_ErrorMinifyingFile(Object sender, MinifyFileEventArgs e)
at BundlerMinifier.BundleMinifier.OnErrorMinifyingFile(MinificationResult result)
at BundlerMinifier.BundleMinifier.MinifyBundle(Bundle bundle)
at BundlerMinifier.BundleFileProcessor.ProcessBundle(String baseFolder, Bundle bundle)
at BundlerMinifier.BundleFileProcessor.Process(String fileName, IEnumerable`1 bundles)
at BundlerMinifier.BundlerBuildTask.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask)
at Microsoft.Build.BackEnd.TaskBuilder.InitializeAndExecuteTask(TaskLoggingContext taskLoggingContext, ItemBucket bucket, IDictionary`2 taskIdentityParameters, TaskHost taskHost, TaskExecutionMode howToExecuteTask)
at Microsoft.Build.BackEnd.TaskBuilder.ExecuteBucket(TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Dictionary`2 lookupHash)
at Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask(TaskExecutionMode mode, Lookup lookup)
at Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask(TargetLoggingContext loggingContext, BuildRequestEntry requestEntry, ITargetBuilderCallback targetBuilderCallback, ProjectTargetInstanceChild taskInstance, TaskExecutionMode mode, Lookup inferLookup, Lookup executeLookup, CancellationToken cancellationToken)
at Microsoft.Build.BackEnd.TargetEntry.ProcessBucket(ITaskBuilder taskBuilder, TargetLoggingContext targetLoggingContext, TaskExecutionMode mode, Lookup lookupForInference, Lookup lookupForExecution)
at Microsoft.Build.BackEnd.TargetEntry.ExecuteTarget(ITaskBuilder taskBuilder, BuildRequestEntry requestEntry, ProjectLoggingContext projectLoggingContext, CancellationToken cancellationToken)
at Microsoft.Build.BackEnd.TargetBuilder.ProcessTargetStack(ITaskBuilder taskBuilder)
at Microsoft.Build.BackEnd.TargetBuilder.BuildTargets(ProjectLoggingContext loggingContext, BuildRequestEntry entry, IRequestBuilderCallback callback, String[] targetNames, Lookup baseLookup, CancellationToken cancellationToken)
at Microsoft.Build.BackEnd.RequestBuilder.BuildProject()
at Microsoft.Build.BackEnd.RequestBuilder.BuildAndReport()
at Microsoft.Build.BackEnd.RequestBuilder.RequestThreadProc(Boolean setThreadParameters)
MSBUILD : error MSB1025: An internal failure occurred while running MSBuild.
Microsoft.Build.Shared.InternalErrorException: MSB0001: Internal MSBuild Error: ContextID 32 should have been in the ID-to-project file mapping but wasn't!
at Microsoft.Build.CommandLine.MSBuildApp.BuildProject(String projectFile, String[] targets, String toolsVersion, Dictionary`2 globalProperties, Dictionary`2 restoreProperties, ILogger[] loggers, LoggerVerbosity verbosity, DistributedLoggerRecord[] distributedLoggerRecords, Int32 cpuCount, Boolean enableNodeReuse, TextWriter preprocessWriter, Boolean detailedSummary, ISet`1 warningsAsErrors, ISet`1 warningsAsMessages, Boolean enableRestore, ProfilerLogger profilerLogger, Boolean enableProfiler, Boolean interactive, Boolean isolateProjects, Boolean graphBuild, String[] inputResultsCaches, String outputResultsCache)
at Microsoft.Build.CommandLine.MSBuildApp.Execute(String[] commandLine)
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
Flutter build failed in ubuntu 19.10
I have a flutter apps which is building perfectly in another machine(ubuntu 18.04). Now I am using ubuntu 19.10 , when I tried...
Read more >build failed (Ubuntu 19.10 using ruby-build) · Issue #1396
Ive update my PopOS to version 19.10 but for some reason my rbevn got affected, so I have uninstalled and installed rbenv but...
Read more >Failed upgrade from Ubuntu 19.10 to 20.04 "Please update ...
Run : sudo fdisk -l. And identify your root partition. ... Then, install upgrades like so: apt upgrade. When finished run: exit. Then...
Read more >ubuntu 19.10 build error missng audiocommon.h?
keep getting this error the header is there in the dir i dont get it cmake -Wno-dev /home/mrdo/dolphin/Source/
Read more >[Resolved] Can somebody help me build on Ubuntu 20.04 ...
I'm running Kubuntu 19.10 and haven't had any difficulty building since I quit trying to build the dependencies myself. I haven't had any...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
or maybe a problem with an old build, which can be solved by dumping the obj and bin folders
@shawnyeager not sure what that error is but it looks like it’s a dependency that for some reason requires .NET Core 3.1 which BTCPay currently does not run on. Maybe @NicolasDorier can shed some light on this.