Ubuntu: "The SDK 'Microsoft.Net.Sdk' specified could not be found."

From @https://github.com/Vannevelj
I've installed the net core 2.1 SDK and the projects load correctly. I then installed the 3.0-preview and changed the solution to use this instead and now they can no longer load in VSCode. It loads perfectly fine on my Windows machine.
I've tried setting the SDK path environment variable explicitly but no difference: MsBuildSDKsPath=/usr/share/dotnet/sdk/3.0.100-preview-010184/Sdks/ as well as changing omnisharp.path to latest, setting the path inside omnisharp.json directly and using the insiders build of VSCode.
Is there anything off in my environment? I've created a VM with Linux specifically to test .net core 3 on it so there shouldn't be anything unusual interfering with things. Happy to try out whatever you can suggest.
Example csproj file:
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>netcoreapp3.0</TargetFramework>
    <LangVersion>8.0</LangVersion>
    <IsPackable>false</IsPackable>
  </PropertyGroup>
  <ItemGroup>
      <PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.3.0" />
      <PackageReference Include="Mongo2Go" Version="2.2.8" />
      <PackageReference Include="Moq" Version="4.7.145" />
      <PackageReference Include="xunit" Version="2.2.0" />
      <PackageReference Include="xunit.runner.visualstudio" Version="2.2.0" />
  </ItemGroup>
  <ItemGroup>
    <ProjectReference Include="..\..\..\src\MyApp.Client\MyApp.Client.csproj" />
    <ProjectReference Include="..\..\..\src\MyApps\MyApp.csproj" />
  </ItemGroup>
</Project>

Environment data
dotnet --info output:
.NET Core SDK (reflecting any global.json):
 Version:   3.0.100-preview-010184
 Commit:    c57bde4593

Runtime Environment:
 OS Name:     ubuntu
 OS Version:  18.04
 OS Platform: Linux
 RID:         ubuntu.18.04-x64
 Base Path:   /usr/share/dotnet/sdk/3.0.100-preview-010184/

Host (useful for support):
  Version: 3.0.0-preview-27324-5
  Commit:  63a01b08e5

.NET Core SDKs installed:
  2.2.103 [/usr/share/dotnet/sdk]
  3.0.100-preview-010184 [/usr/share/dotnet/sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.All 2.2.1 [/usr/share/dotnet/shared/Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.2.1 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.0.0-preview-19075-0444 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.2.1 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.0.0-preview-27324-5 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

VS Code version:
Version: 1.30.2
Commit: 61122f88f0bf01e2ac16bdb9e1bc4571755f5bd8
Date: 2019-01-07T22:49:48.319Z
Electron: 2.0.12
Chrome: 61.0.3163.100
Node.js: 8.9.3
V8: 6.1.534.41
OS: Linux x64 4.15.0-32-generic

C# Extension version: 1.17.1
Steps to reproduce

Install 2.2.1 SDK
Install 3.0-preview SDK
dotnet new console
Open via code .

Expected  behavior
The project loads correctly and code lens options show.
Actual behavior
Errors in the output and no code lens available. However, using dotnet run runs the project as intended.
Starting OmniSharp server at 27/01/2019, 20:04:35
Target: /home/jeroen/Documents/github/my-app/MyApp.Webapp.sln

OmniSharp server started.
Path: /home/jeroen/.vscode/extensions/ms-vscode.csharp-1.17.1/.omnisharp/1.32.8/run
PID: 20475

[info]: OmniSharp.Stdio.Host
Starting OmniSharp on ubuntu 18.4 (x64)
[info]: OmniSharp.Services.DotNetCliService
DotNetPath set to dotnet
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
Located 1 MSBuild instance(s)
1: StandAlone 15.0 - "/home/jeroen/.vscode/extensions/ms-vscode.csharp-1.17.1/.omnisharp/1.32.8/omnisharp/msbuild/15.0/Bin"
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
MSBUILD_EXE_PATH environment variable set to '/home/jeroen/.vscode/extensions/ms-vscode.csharp-1.17.1/.omnisharp/1.32.8/omnisharp/msbuild/15.0/Bin/MSBuild.dll'
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
Registered MSBuild instance: StandAlone 15.0 - "/home/jeroen/.vscode/extensions/ms-vscode.csharp-1.17.1/.omnisharp/1.32.8/omnisharp/msbuild/15.0/Bin"
MSBuildExtensionsPath = /home/jeroen/.vscode/extensions/ms-vscode.csharp-1.17.1/.omnisharp/1.32.8/omnisharp/msbuild
BypassFrameworkInstallChecks = true
CscToolPath = /home/jeroen/.vscode/extensions/ms-vscode.csharp-1.17.1/.omnisharp/1.32.8/omnisharp/msbuild/15.0/Bin/Roslyn
CscToolExe = csc.exe
MSBuildToolsPath = /home/jeroen/.vscode/extensions/ms-vscode.csharp-1.17.1/.omnisharp/1.32.8/omnisharp/msbuild/15.0/Bin
[info]: OmniSharp.Cake.CakeProjectSystem
Detecting Cake files in '/home/jeroen/Documents/github/my-app'.
[info]: OmniSharp.Cake.CakeProjectSystem
Could not find any Cake files
[info]: OmniSharp.WorkspaceInitializer
Project system 'OmniSharp.DotNet.DotNetProjectSystem' is disabled in the configuration.
[info]: OmniSharp.MSBuild.ProjectSystem
Detecting projects in '/home/jeroen/Documents/github/my-app/MyApp.Webapp.sln'.
[info]: OmniSharp.MSBuild.ProjectManager
Queue project update for '/home/jeroen/Documents/github/my-app/src/MyApp.Webapp/MyApp.Webapp.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Queue project update for '/home/jeroen/Documents/github/my-app/src/MyApp.Client/MyApp.Client.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Queue project update for '/home/jeroen/Documents/github/my-app/src/MyApp/MyApp.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Queue project update for '/home/jeroen/Documents/github/my-app/tests/unit/MyApp.Tests/MyApp.Tests.csproj'
[info]: OmniSharp.Script.ScriptProjectSystem
Detecting CSX files in '/home/jeroen/Documents/github/my-app'.
[info]: OmniSharp.Script.ScriptProjectSystem
Could not find any CSX files
[info]: OmniSharp.WorkspaceInitializer
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpWorkspaceOptionsProvider
[info]: OmniSharp.WorkspaceInitializer
Configuration finished.
[info]: OmniSharp.Stdio.Host
Omnisharp server running using Stdio at location '/home/jeroen/Documents/github/my-app' on host 20382.
[info]: OmniSharp.MSBuild.ProjectManager
Loading project: /home/jeroen/Documents/github/my-app/src/MyApp.Webapp/MyApp.Webapp.csproj
[warn]: OmniSharp.MSBuild.ProjectManager
Failed to load project file '/home/jeroen/Documents/github/my-app/src/MyApp.Webapp/MyApp.Webapp.csproj'.
/home/jeroen/Documents/github/my-app/src/MyApp.Webapp/MyApp.Webapp.csproj(1,1)
Microsoft.Build.Exceptions.InvalidProjectFileException: The SDK 'Microsoft.NET.Sdk.Web' specified could not be found. /home/jeroen/Documents/github/my-app/src/MyApp.Webapp/MyApp.Webapp.csproj
at Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject (System.String errorSubCategoryResourceName, Microsoft.Build.Shared.IElementLocation elementLocation, System.String resourceName, System.Object[] args) [0x00040] in <2338fdb301034c1d9c6b95e564d514b0>:0
at Microsoft.Build.Shared.ProjectErrorUtilities.VerifyThrowInvalidProject[T1] (System.Boolean condition, System.String errorSubCategoryResourceName, Microsoft.Build.Shared.IElementLocation elementLocation, System.String resourceName, T1 arg0) [0x00003] in <2338fdb301034c1d9c6b95e564d514b0>:0
at Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject[T1] (Microsoft.Build.Shared.IElementLocation elementLocation, System.String resourceName, T1 arg0) [0x00000] in <2338fdb301034c1d9c6b95e564d514b0>:0
at Microsoft.Build.Evaluation.Evaluator`4[P,I,M,D].ExpandAndLoadImportsFromUnescapedImportExpressionConditioned (System.String directoryOfImportingFile, Microsoft.Build.Construction.ProjectImportElement importElement, System.Collections.Generic.List`1[Microsoft.Build.Construction.ProjectRootElement]& projects, System.Boolean throwOnFileNotExistsError) [0x00254] in <2338fdb301034c1d9c6b95e564d514b0>:0
at Microsoft.Build.Evaluation.Evaluator`4[P,I,M,D].ExpandAndLoadImports (System.String directoryOfImportingFile, Microsoft.Build.Construction.ProjectImportElement importElement) [0x00024] in <2338fdb301034c1d9c6b95e564d514b0>:0
at Microsoft.Build.Evaluation.Evaluator`4[P,I,M,D].EvaluateImportElement (System.String directoryOfImportingFile, Microsoft.Build.Construction.ProjectImportElement importElement) [0x0000d] in <2338fdb301034c1d9c6b95e564d514b0>:0
at Microsoft.Build.Evaluation.Evaluator`4[P,I,M,D].PerformDepthFirstPass (Microsoft.Build.Construction.ProjectRootElement currentProjectOrImport) [0x000e6] in <2338fdb301034c1d9c6b95e564d514b0>:0
at Microsoft.Build.Evaluation.Evaluator`4[P,I,M,D].Evaluate (Microsoft.Build.BackEnd.Logging.ILoggingService loggingService, Microsoft.Build.Framework.BuildEventContext buildEventContext) [0x00103] in <2338fdb301034c1d9c6b95e564d514b0>:0
at Microsoft.Build.Evaluation.Evaluator`4[P,I,M,D].Evaluate (Microsoft.Build.Evaluation.IEvaluatorData`4[P,I,M,D] data, Microsoft.Build.Construction.ProjectRootElement root, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings, System.Int32 maxNodeCount, Microsoft.Build.Collections.PropertyDictionary`1[T] environmentProperties, Microsoft.Build.BackEnd.Logging.ILoggingService loggingService, Microsoft.Build.Evaluation.IItemFactory`2[S,T] itemFactory, Microsoft.Build.Evaluation.IToolsetProvider toolsetProvider, Microsoft.Build.Evaluation.ProjectRootElementCache projectRootElementCache, Microsoft.Build.Framework.BuildEventContext buildEventContext, Microsoft.Build.Execution.ProjectInstance projectInstanceIfAnyForDebuggerOnly, Microsoft.Build.BackEnd.SdkResolution.ISdkResolverService sdkResolverService, System.Int32 submissionId, Microsoft.Build.Evaluation.Context.EvaluationContext evaluationContext) [0x0001a] in <2338fdb301034c1d9c6b95e564d514b0>:0
at Microsoft.Build.Evaluation.Project.Reevaluate (Microsoft.Build.BackEnd.Logging.ILoggingService loggingServiceForEvaluation, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings) [0x0004c] in <2338fdb301034c1d9c6b95e564d514b0>:0
at Microsoft.Build.Evaluation.Project.ReevaluateIfNecessary (Microsoft.Build.BackEnd.Logging.ILoggingService loggingServiceForEvaluation, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings) [0x00034] in <2338fdb301034c1d9c6b95e564d514b0>:0
at Microsoft.Build.Evaluation.Project.ReevaluateIfNecessary (Microsoft.Build.BackEnd.Logging.ILoggingService loggingServiceForEvaluation) [0x00000] in <2338fdb301034c1d9c6b95e564d514b0>:0
at Microsoft.Build.Evaluation.Project.ReevaluateIfNecessary (Microsoft.Build.Evaluation.Context.EvaluationContext evaluationContext) [0x00023] in <2338fdb301034c1d9c6b95e564d514b0>:0
at Microsoft.Build.Evaluation.Project.Initialize (System.Collections.Generic.IDictionary`2[TKey,TValue] globalProperties, System.String toolsVersion, System.String subToolsetVersion, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings, Microsoft.Build.Evaluation.Context.EvaluationContext evaluationContext) [0x00126] in <2338fdb301034c1d9c6b95e564d514b0>:0
at Microsoft.Build.Evaluation.Project..ctor (System.String projectFile, System.Collections.Generic.IDictionary`2[TKey,TValue] globalProperties, System.String toolsVersion, System.String subToolsetVersion, Microsoft.Build.Evaluation.ProjectCollection projectCollection, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings, Microsoft.Build.Evaluation.Context.EvaluationContext evaluationContext) [0x0009e] in <2338fdb301034c1d9c6b95e564d514b0>:0
at Microsoft.Build.Evaluation.Project..ctor (System.String projectFile, System.Collections.Generic.IDictionary`2[TKey,TValue] globalProperties, System.String toolsVersion, System.String subToolsetVersion, Microsoft.Build.Evaluation.ProjectCollection projectCollection, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings) [0x00000] in <2338fdb301034c1d9c6b95e564d514b0>:0
at Microsoft.Build.Evaluation.Project..ctor (System.String projectFile, System.Collections.Generic.IDictionary`2[TKey,TValue] globalProperties, System.String toolsVersion, Microsoft.Build.Evaluation.ProjectCollection projectCollection, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings) [0x00000] in <2338fdb301034c1d9c6b95e564d514b0>:0
at Microsoft.Build.Evaluation.Project..ctor (System.String projectFile, System.Collections.Generic.IDictionary`2[TKey,TValue] globalProperties, System.String toolsVersion, Microsoft.Build.Evaluation.ProjectCollection projectCollection) [0x00000] in <2338fdb301034c1d9c6b95e564d514b0>:0
at Microsoft.Build.Evaluation.ProjectCollection.LoadProject (System.String fileName, System.Collections.Generic.IDictionary`2[TKey,TValue] globalProperties, System.String toolsVersion) [0x000f5] in <2338fdb301034c1d9c6b95e564d514b0>:0
at Microsoft.Build.Evaluation.ProjectCollection.LoadProject (System.String fileName, System.String toolsVersion) [0x00000] in <2338fdb301034c1d9c6b95e564d514b0>:0
at OmniSharp.MSBuild.ProjectLoader.EvaluateProjectFileCore (System.String filePath) [0x0003f] in <410de907c9654d6593c7a8d4ded6b20a>:0
at OmniSharp.MSBuild.ProjectLoader.BuildProject (System.String filePath) [0x0000d] in <410de907c9654d6593c7a8d4ded6b20a>:0
at OmniSharp.MSBuild.ProjectFile.ProjectFileInfo.Load (System.String filePath, OmniSharp.MSBuild.ProjectLoader loader) [0x00015] in <410de907c9654d6593c7a8d4ded6b20a>:0
at OmniSharp.MSBuild.ProjectManager+<>c__DisplayClass25_0.<LoadProject>b__0 () [0x00000] in <410de907c9654d6593c7a8d4ded6b20a>:0
at (wrapper delegate-invoke) System.Func`1[System.ValueTuple`3[OmniSharp.MSBuild.ProjectFile.ProjectFileInfo,System.Collections.Immutable.ImmutableArray`1[OmniSharp.MSBuild.Logging.MSBuildDiagnostic],OmniSharp.MSBuild.Notification.ProjectLoadedEventArgs]].invoke_TResult()
at OmniSharp.MSBuild.ProjectManager.LoadOrReloadProject (System.String projectFilePath, System.Func`1[TResult] loader) [0x0001b] in <410de907c9654d6593c7a8d4ded6b20a>:0

@akshita31 I have the same issue on macOS. And I believe that's because there is no proper MSBuildInstanceProvider implementation that will find msbuild to use on macOS and Linux. On Windows it works for you because there is VisualStudioInstanceProvider that looks if VS is installed and gets the correct path to msbuild from it. On macOS without installed mono you only have StandAloneInstanceProvider that has hardcoded path to msbuild to look for ...
here is the code from src/OmniSharp.Host/MSBuild/Discovery/MSBuildInstanceProvider.cs
protected static string FindLocalMSBuildDirectory()
{
   // If OmniSharp is running normally, MSBuild is located in an 'msbuild' folder beneath OmniSharp.exe.
   var msbuildDirectory = Path.Combine(AppContext.BaseDirectory, "msbuild");
  ...
}

Moreover, the whole current logic of choosing msbuild to use seems more like guessing... this general approach doesn't work on Windows when you have two Visual Studio instancies installed (e.g. 2017 and 2019). I think OmniSharp.MSBuild.Discovery.MSBuildLocator should take into consideration TargetFramework or it's equvalent in old project's file format, or should be configurable. Otherwise it won't work.

Exact same issue on my Mac. Setting MsBuildSDKsPath in omnisharp.json and omnisharp.path to latest results in warn]: OmniSharp.MSBuild.ProjectManager         Failed to load project file '/Users/puccio/Desktop/myApp/myApp.csproj'. /Users/puccio/Desktop/myApp/myApp.csproj(1,1) Microsoft.Build.Exceptions.InvalidProjectFileException: The SDK 'Microsoft.NET.Sdk' specified could not be found.
I've tried reinstalling VSCode, .Net Core 2.2, mono and the C# extension so many times now to no avail.
`puccio @ ~/Desktop/myApp
$: dotnet --info
.NET Core SDK (reflecting any global.json):
Version:   2.2.103
Commit:    8edbc2570a
Runtime Environment:
OS Name:     Mac OS X
OS Version:  10.12
OS Platform: Darwin
RID:         osx.10.12-x64
Base Path:   /usr/local/share/dotnet/sdk/2.2.103/
Host (useful for support):
Version: 2.2.1
Commit:  878dd11e62
.NET Core SDKs installed:
2.2.103 [/usr/local/share/dotnet/sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.2.1 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.2.1 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.2.1 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download`

I guess there is nothing to do with the OS here. It happens in Windows too. See the error below:
Microsoft.Build.Exceptions.InvalidProjectFileException: The SDK 'Microsoft.NET.Sdk' specified could not be found.

Here is my environment details:
dotnet --info

.NET Core SDK (reflecting any global.json):
 Version:   3.0.100-preview-010184
 Commit:    c57bde4593

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.17134
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\3.0.100-preview-010184\

Host (useful for support):
  Version: 3.0.0-preview-27324-5
  Commit:  63a01b08e5

@KeyurRamoliya you're absolutely right, this problem has nothing to do with OS. On Windows it's easier, because you have more options: you could install Visual Studio 2019, and than OmniSharp will be able to pick up MSbuild from it, thanks to MSBuildInstanceProvider. On Linux and macOS you don't have it. Even though there is VS for Mac, but the last version of VS for Mac is 7.7, and it only supports .net core 2.2. The only way that I can see is to write a new implementation of MSBuildInstanceProvider, that will be able to pick up MSBuild from the path where .net core's installed.

FYI if it helps anyone. I've got a Hyper-V VM running Ubuntu 19.04 and the snap vscode is installed, and I had this same issue, which I seem to have resolved by installing the dotnet-sdk snap and doing a "sudo ln -sv /snap/dotnet-sdk/current/dotnet /usr/local/bin/dotnet" to manually create a symbolic link where Omnisharp would find it. In a perfect world, all I'd have to do is something like "sudo snap alias dotnet-sdk.dotnet dotnet" but I never could get Omnisharp to work that way as it appears to ignore /snap/bin or something (not sure). You can also just create a "~/bin" folder and make the symbolic link there (no sudo required, obviously, but I went ahead and made it system-wide for the VM).

@byroniac Yea I've tried that before on a Mac before where you create a symbolic link from /usr/local/bin/dotnet -> /usr/local/share/dotnet/dotnet but it still doesn't work.

In my case I only have the snaps installed (dotnet-sdk, vscode). So I am not exactly in the same scenario (I did get the same Omnisharp error message and failed to get Intellisense to load). I was hoping this would give someone an idea, but apparently, there is an issue with the preview version of dotnet? I'm not familiar with Macs, so do they even have a /usr/local/bin in the default PATH? Have you tried /usr/bin? (like renaming any existing dotnet, and creating a symbolic link to point to the dotnet you want to use?)

For folks hitting this issue on windows, please try installing .Net Core Build Tools as described here

For ubuntu can you try adding a omnisharp.json file as suggested here

@akshita31 I am not able to install ".NET Core build tools" workload because of some reason. So is there any chance that it will be fixed by Omnisharp devs?

I got this issue on windows too, it feels that last updated msbuild wins. I installed 3.0 SDK -> broken. Installed VS2019 preview -> works again. Updated project tools for VS2017 -> broken again. Now VS2019 version is second on list and not first.

@KeyurRamoliya Could you set omnisharp.loggingLevel: debug and share the omnisharp log?

@akshita31 Here is the omnisharp log with log level debug.
Starting OmniSharp server at 6/3/2019, 4:25:06 PM
    Target: c:\Projects\Github\performance\src\benchmarks\micro\MicroBenchmarks.sln

OmniSharp server started.
    Path: C:\Users\keyurramoliya\.vscode\extensions\ms-vscode.csharp-1.17.1\.omnisharp\1.32.8\OmniSharp.exe
    PID: 3588

[dbug]: OmniSharp.CompositionHostBuilder
        Loaded OmniSharp.Cake, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null
[dbug]: OmniSharp.CompositionHostBuilder
        Loaded OmniSharp.DotNet, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null
[dbug]: OmniSharp.CompositionHostBuilder
        Loaded OmniSharp.DotNetTest, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null
[dbug]: OmniSharp.CompositionHostBuilder
        Loaded OmniSharp.Host, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null
[dbug]: OmniSharp.CompositionHostBuilder
        Loaded OmniSharp.MSBuild, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null
[dbug]: OmniSharp.CompositionHostBuilder
        Loaded OmniSharp.Plugins, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null
[dbug]: OmniSharp.CompositionHostBuilder
        Loaded OmniSharp.Roslyn, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null
[dbug]: OmniSharp.CompositionHostBuilder
        Loaded OmniSharp.Roslyn.CSharp, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null
[dbug]: OmniSharp.CompositionHostBuilder
        Loaded OmniSharp.Script, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null
[info]: OmniSharp.Stdio.Host
        Starting OmniSharp on Windows 6.2.9200.0 (x64)
[info]: OmniSharp.Services.DotNetCliService
        DotNetPath set to dotnet
[dbug]: OmniSharp.MSBuild.Discovery.Providers.VisualStudioInstanceProvider
        An exception was thrown while retrieving Visual Studio instances.
System.DllNotFoundException: Unable to load DLL 'Microsoft.VisualStudio.Setup.Configuration.Native.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
   at OmniSharp.MSBuild.Discovery.Interop.GetSetupConfiguration(ISetupConfiguration& configuration, IntPtr reserved)
   at OmniSharp.MSBuild.Discovery.Interop.GetSetupConfiguration()
   at OmniSharp.MSBuild.Discovery.Providers.VisualStudioInstanceProvider.GetInstances()
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Located 1 MSBuild instance(s)
            1: StandAlone 15.0 - "C:\Users\keyurramoliya\.vscode\extensions\ms-vscode.csharp-1.17.1\.omnisharp\1.32.8\msbuild\15.0\Bin"
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        SUCCESS: Resolved to 'C:\Users\keyurramoliya\.vscode\extensions\ms-vscode.csharp-1.17.1\.omnisharp\1.32.8\msbuild\15.0\Bin\Microsoft.Build.Utilities.Core.dll' (name-only).
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        SUCCESS: Resolved to 'C:\Users\keyurramoliya\.vscode\extensions\ms-vscode.csharp-1.17.1\.omnisharp\1.32.8\msbuild\15.0\Bin\Microsoft.Build.Tasks.Core.dll' (name-only).
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        SUCCESS: Resolved to 'C:\Users\keyurramoliya\.vscode\extensions\ms-vscode.csharp-1.17.1\.omnisharp\1.32.8\msbuild\15.0\Bin\Microsoft.Build.dll' (name-only).
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        SUCCESS: Resolved to 'C:\Users\keyurramoliya\.vscode\extensions\ms-vscode.csharp-1.17.1\.omnisharp\1.32.8\msbuild\15.0\Bin\Microsoft.Build.Framework.dll' (name-only).
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        MSBUILD_EXE_PATH environment variable set to 'C:\Users\keyurramoliya\.vscode\extensions\ms-vscode.csharp-1.17.1\.omnisharp\1.32.8\msbuild\15.0\Bin\MSBuild.exe'
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Registered MSBuild instance: StandAlone 15.0 - "C:\Users\keyurramoliya\.vscode\extensions\ms-vscode.csharp-1.17.1\.omnisharp\1.32.8\msbuild\15.0\Bin"
            CscToolExe = csc.exe
            CscToolPath = C:\Users\keyurramoliya\.vscode\extensions\ms-vscode.csharp-1.17.1\.omnisharp\1.32.8\msbuild\15.0\Bin\Roslyn
            MSBuildExtensionsPath = C:\Users\keyurramoliya\.vscode\extensions\ms-vscode.csharp-1.17.1\.omnisharp\1.32.8\msbuild
            MSBuildToolsPath = C:\Users\keyurramoliya\.vscode\extensions\ms-vscode.csharp-1.17.1\.omnisharp\1.32.8\msbuild\15.0\Bin
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Attempting to resolve 'Microsoft.Build.Utilities.Core, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        SUCCESS: Resolved to 'C:\Users\keyurramoliya\.vscode\extensions\ms-vscode.csharp-1.17.1\.omnisharp\1.32.8\msbuild\15.0\Bin\Microsoft.Build.Utilities.Core.dll' (name-only).
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Attempting to resolve 'Microsoft.Build.Framework, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        SUCCESS: Resolved to 'C:\Users\keyurramoliya\.vscode\extensions\ms-vscode.csharp-1.17.1\.omnisharp\1.32.8\msbuild\15.0\Bin\Microsoft.Build.Framework.dll' (name-only).
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Attempting to resolve 'Microsoft.CodeAnalysis.VisualBasic.Workspaces, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        FAILURE: Could not locate 'C:\Users\keyurramoliya\.vscode\extensions\ms-vscode.csharp-1.17.1\.omnisharp\1.32.8\msbuild\15.0\Bin\Microsoft.CodeAnalysis.VisualBasic.Workspaces.dll'.
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Attempting to resolve 'Microsoft.CodeAnalysis.VisualBasic.Features, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        FAILURE: Could not locate 'C:\Users\keyurramoliya\.vscode\extensions\ms-vscode.csharp-1.17.1\.omnisharp\1.32.8\msbuild\15.0\Bin\Microsoft.CodeAnalysis.VisualBasic.Features.dll'.
[info]: OmniSharp.Cake.CakeProjectSystem
        Detecting Cake files in 'c:\Projects\Github\performance\src\benchmarks\micro'.
[info]: OmniSharp.Cake.CakeProjectSystem
        Could not find any Cake files
[info]: OmniSharp.WorkspaceInitializer
        Project system 'OmniSharp.DotNet.DotNetProjectSystem' is disabled in the configuration.
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Attempting to resolve 'Microsoft.Build'
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        SUCCESS: Resolved to 'C:\Users\keyurramoliya\.vscode\extensions\ms-vscode.csharp-1.17.1\.omnisharp\1.32.8\msbuild\15.0\Bin\Microsoft.Build.dll' (name-only).
[dbug]: OmniSharp.MSBuild.ProjectSystem
        MSBuild environment:
Mode: Standalone
RunningTests: False
RunningInVisualStudio: False
MSBuildToolsDirectory32: C:\Users\keyurramoliya\.vscode\extensions\ms-vscode.csharp-1.17.1\.omnisharp\1.32.8\msbuild\15.0\Bin
MSBuildToolsDirectory64: C:\Users\keyurramoliya\.vscode\extensions\ms-vscode.csharp-1.17.1\.omnisharp\1.32.8\msbuild\15.0\Bin
MSBuildSDKsPath: C:\Users\keyurramoliya\.vscode\extensions\ms-vscode.csharp-1.17.1\.omnisharp\1.32.8\msbuild\15.0\Bin\Sdks
CurrentMSBuildConfigurationFile: C:\Users\keyurramoliya\.vscode\extensions\ms-vscode.csharp-1.17.1\.omnisharp\1.32.8\msbuild\15.0\Bin\MSBuild.exe.config
CurrentMSBuildExePath: C:\Users\keyurramoliya\.vscode\extensions\ms-vscode.csharp-1.17.1\.omnisharp\1.32.8\msbuild\15.0\Bin\MSBuild.exe
CurrentMSBuildToolsDirectory: C:\Users\keyurramoliya\.vscode\extensions\ms-vscode.csharp-1.17.1\.omnisharp\1.32.8\msbuild\15.0\Bin
VisualStudioInstallRootDirectory:
MSBuildExtensionsPath: C:\Users\keyurramoliya\.vscode\extensions\ms-vscode.csharp-1.17.1\.omnisharp\1.32.8\msbuild\15.0\Bin

[dbug]: OmniSharp.MSBuild.ProjectLoader
        'MSBuildExtensionsPath' set to 'C:\Users\keyurramoliya\.vscode\extensions\ms-vscode.csharp-1.17.1\.omnisharp\1.32.8\msbuild'
[dbug]: OmniSharp.MSBuild.ProjectLoader
        'CscToolPath' set to 'C:\Users\keyurramoliya\.vscode\extensions\ms-vscode.csharp-1.17.1\.omnisharp\1.32.8\msbuild\15.0\Bin\Roslyn'
[dbug]: OmniSharp.MSBuild.ProjectLoader
        'CscToolExe' set to 'csc.exe'
[info]: OmniSharp.MSBuild.ProjectSystem
        Detecting projects in 'c:\Projects\Github\performance\src\benchmarks\micro\MicroBenchmarks.sln'.
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'c:\Projects\Github\performance\src\benchmarks\micro\MicroBenchmarks.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'c:\Projects\Github\performance\src\tests\benchmarks\micro\Tests.csproj'
[info]: OmniSharp.Script.ScriptProjectSystem
        Detecting CSX files in 'c:\Projects\Github\performance\src\benchmarks\micro'.
[info]: OmniSharp.Script.ScriptProjectSystem
        Could not find any CSX files
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpWorkspaceOptionsProvider
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: c:\Projects\Github\performance\src\benchmarks\micro\MicroBenchmarks.csproj
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Attempting to resolve 'Microsoft.Build, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        SUCCESS: Resolved to 'C:\Users\keyurramoliya\.vscode\extensions\ms-vscode.csharp-1.17.1\.omnisharp\1.32.8\msbuild\15.0\Bin\Microsoft.Build.dll' (name-only).
[info]: OmniSharp.WorkspaceInitializer
        Configuration finished.
[info]: OmniSharp.Stdio.Host
        Omnisharp server running using Stdio at location 'c:\Projects\Github\performance\src\benchmarks\micro' on host 24988.
[dbug]: OmniSharp.Stdio.Host
        ************ Request ************
{
  "Type": "request",
  "Seq": 1,
  "Command": "/projects"
}
[dbug]: OmniSharp.Stdio.Host
        ************ Request ************
{
  "Type": "request",
  "Seq": 2,
  "Command": "/projects"
}
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Attempting to resolve 'Microsoft.Build.resources, Version=<IP_ADDRESS>, Culture=en-US, PublicKeyToken=b03f5f7f11d50a3a'
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        FAILURE: Could not locate 'C:\Users\keyurramoliya\.vscode\extensions\ms-vscode.csharp-1.17.1\.omnisharp\1.32.8\msbuild\15.0\Bin\Microsoft.Build.resources.dll'.
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Attempting to resolve 'Microsoft.Build.resources, Version=<IP_ADDRESS>, Culture=en-US, PublicKeyToken=b03f5f7f11d50a3a'
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        FAILURE: Could not locate 'C:\Users\keyurramoliya\.vscode\extensions\ms-vscode.csharp-1.17.1\.omnisharp\1.32.8\msbuild\15.0\Bin\Microsoft.Build.resources.dll'.
[warn]: OmniSharp.MSBuild.ProjectManager
        Failed to load project file 'c:\Projects\Github\performance\src\benchmarks\micro\MicroBenchmarks.csproj'.
c:\Projects\Github\performance\src\benchmarks\micro\MicroBenchmarks.csproj(1,1)
Microsoft.Build.Exceptions.InvalidProjectFileException: The SDK 'Microsoft.NET.Sdk' specified could not be found.  c:\Projects\Github\performance\src\benchmarks\micro\MicroBenchmarks.csproj
   at Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject(String errorSubCategoryResourceName, IElementLocation elementLocation, String resourceName, Object[] args)
   at Microsoft.Build.Evaluation.Evaluator`4.ExpandAndLoadImportsFromUnescapedImportExpressionConditioned(String directoryOfImportingFile, ProjectImportElement importElement, List`1& projects, Boolean throwOnFileNotExistsError)
   at Microsoft.Build.Evaluation.Evaluator`4.ExpandAndLoadImports(String directoryOfImportingFile, ProjectImportElement importElement)
   at Microsoft.Build.Evaluation.Evaluator`4.EvaluateImportElement(String directoryOfImportingFile, ProjectImportElement importElement)
   at Microsoft.Build.Evaluation.Evaluator`4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport)
   at Microsoft.Build.Evaluation.Evaluator`4.Evaluate(ILoggingService loggingService, BuildEventContext buildEventContext)
   at Microsoft.Build.Evaluation.Project.Reevaluate(ILoggingService loggingServiceForEvaluation, ProjectLoadSettings loadSettings)
   at Microsoft.Build.Evaluation.Project.ReevaluateIfNecessary(ILoggingService loggingServiceForEvaluation, ProjectLoadSettings loadSettings)
   at Microsoft.Build.Evaluation.Project.Initialize(IDictionary`2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectLoadSettings loadSettings)
   at Microsoft.Build.Evaluation.Project..ctor(String projectFile, IDictionary`2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings)
   at Microsoft.Build.Evaluation.ProjectCollection.LoadProject(String fileName, IDictionary`2 globalProperties, String toolsVersion)
   at OmniSharp.MSBuild.ProjectLoader.EvaluateProjectFileCore(String filePath)
   at OmniSharp.MSBuild.ProjectLoader.BuildProject(String filePath)
   at OmniSharp.MSBuild.ProjectFile.ProjectFileInfo.Load(String filePath, ProjectLoader loader)
   at OmniSharp.MSBuild.ProjectManager.LoadOrReloadProject(String projectFilePath, Func`1 loader)

[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: c:\Projects\Github\performance\src\tests\benchmarks\micro\Tests.csproj
[warn]: OmniSharp.MSBuild.ProjectManager
        Failed to load project file 'c:\Projects\Github\performance\src\tests\benchmarks\micro\Tests.csproj'.
c:\Projects\Github\performance\src\tests\benchmarks\micro\Tests.csproj(1,1)
Microsoft.Build.Exceptions.InvalidProjectFileException: The SDK 'Microsoft.NET.Sdk' specified could not be found.  c:\Projects\Github\performance\src\tests\benchmarks\micro\Tests.csproj
   at Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject(String errorSubCategoryResourceName, IElementLocation elementLocation, String resourceName, Object[] args)
   at Microsoft.Build.Evaluation.Evaluator`4.ExpandAndLoadImportsFromUnescapedImportExpressionConditioned(String directoryOfImportingFile, ProjectImportElement importElement, List`1& projects, Boolean throwOnFileNotExistsError)
   at Microsoft.Build.Evaluation.Evaluator`4.ExpandAndLoadImports(String directoryOfImportingFile, ProjectImportElement importElement)
   at Microsoft.Build.Evaluation.Evaluator`4.EvaluateImportElement(String directoryOfImportingFile, ProjectImportElement importElement)
   at Microsoft.Build.Evaluation.Evaluator`4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport)
   at Microsoft.Build.Evaluation.Evaluator`4.Evaluate(ILoggingService loggingService, BuildEventContext buildEventContext)
   at Microsoft.Build.Evaluation.Project.Reevaluate(ILoggingService loggingServiceForEvaluation, ProjectLoadSettings loadSettings)
   at Microsoft.Build.Evaluation.Project.ReevaluateIfNecessary(ILoggingService loggingServiceForEvaluation, ProjectLoadSettings loadSettings)
   at Microsoft.Build.Evaluation.Project.Initialize(IDictionary`2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectLoadSettings loadSettings)
   at Microsoft.Build.Evaluation.Project..ctor(String projectFile, IDictionary`2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings)
   at Microsoft.Build.Evaluation.ProjectCollection.LoadProject(String fileName, IDictionary`2 globalProperties, String toolsVersion)
   at OmniSharp.MSBuild.ProjectLoader.EvaluateProjectFileCore(String filePath)
   at OmniSharp.MSBuild.ProjectLoader.BuildProject(String filePath)
   at OmniSharp.MSBuild.ProjectFile.ProjectFileInfo.Load(String filePath, ProjectLoader loader)
   at OmniSharp.MSBuild.ProjectManager.LoadOrReloadProject(String projectFilePath, Func`1 loader)

[fail]: OmniSharp.MSBuild.ProjectManager
        Attemped to update project that is not loaded: c:\Projects\Github\performance\src\benchmarks\micro\MicroBenchmarks.csproj
[fail]: OmniSharp.MSBuild.ProjectManager
        Attemped to update project that is not loaded: c:\Projects\Github\performance\src\tests\benchmarks\micro\Tests.csproj
[dbug]: OmniSharp.Stdio.Host
        ************  Response ************
{
  "Request_seq": 1,
  "Command": "/projects",
  "Running": true,
  "Success": true,
  "Message": null,
  "Body": {
    "Cake": {
      "Projects": []
    },
    "DotNet": {
      "Projects": [],
      "RuntimePath": null
    },
    "MsBuild": {
      "SolutionPath": "c:\\Projects\\Github\\performance\\src\\benchmarks\\micro\\MicroBenchmarks.sln",
      "Projects": []
    },
    "Script": {
      "Projects": []
    }
  },
  "Seq": 52,
  "Type": "response"
}
[dbug]: OmniSharp.Stdio.Host
        ************  Response ************
{
  "Request_seq": 2,
  "Command": "/projects",
  "Running": true,
  "Success": true,
  "Message": null,
  "Body": {
    "Cake": {
      "Projects": []
    },
    "DotNet": {
      "Projects": [],
      "RuntimePath": null
    },
    "MsBuild": {
      "SolutionPath": "c:\\Projects\\Github\\performance\\src\\benchmarks\\micro\\MicroBenchmarks.sln",
      "Projects": []
    },
    "Script": {
      "Projects": []
    }
  },
  "Seq": 51,
  "Type": "response"
}
[dbug]: OmniSharp.Stdio.Host
        ************ Request ************
{
  "Type": "request",
  "Seq": 3,
  "Command": "/projects"
}
[dbug]: OmniSharp.Stdio.Host
        ************  Response ************
{
  "Request_seq": 3,
  "Command": "/projects",
  "Running": true,
  "Success": true,
  "Message": null,
  "Body": {
    "Cake": {
      "Projects": []
    },
    "DotNet": {
      "Projects": [],
      "RuntimePath": null
    },
    "MsBuild": {
      "SolutionPath": "c:\\Projects\\Github\\performance\\src\\benchmarks\\micro\\MicroBenchmarks.sln",
      "Projects": []
    },
    "Script": {
      "Projects": []
    }
  },
  "Seq": 67,
  "Type": "response"
}
[dbug]: OmniSharp.Stdio.Host
        ************ Request ************
{
  "Type": "request",
  "Seq": 4,
  "Command": "/codecheck",
  "Arguments": {
    "FileName": "c:\\Projects\\Github\\performance\\src\\benchmarks\\micro\\coreclr\\Span\\Indexer.cs"
  }
}
[dbug]: OmniSharp.Stdio.Host
        ************ Request ************
{
  "Type": "request",
  "Seq": 5,
  "Command": "/v2/blockstructure",
  "Arguments": {
    "FileName": "c:\\Projects\\Github\\performance\\src\\benchmarks\\micro\\coreclr\\Span\\Indexer.cs"
  }
}
[dbug]: OmniSharp.Stdio.Host
        ************  Response ************
{
  "Request_seq": 4,
  "Command": "/codecheck",
  "Running": true,
  "Success": true,
  "Message": null,
  "Body": {
    "QuickFixes": []
  },
  "Seq": 70,
  "Type": "response"
}
[dbug]: OmniSharp.Stdio.Host
        ************ Request ************
{
  "Type": "request",
  "Seq": 6,
  "Command": "/v2/codestructure",
  "Arguments": {
    "FileName": "c:\\Projects\\Github\\performance\\src\\benchmarks\\micro\\coreclr\\Span\\Indexer.cs"
  }
}
[dbug]: OmniSharp.Stdio.Host
        ************  Response ************
{
  "Request_seq": 6,
  "Command": "/v2/codestructure",
  "Running": true,
  "Success": true,
  "Message": null,
  "Body": null,
  "Seq": 75,
  "Type": "response"
}
[dbug]: OmniSharp.Stdio.Host
        ************ Request ************
{
  "Type": "request",
  "Seq": 7,
  "Command": "/v2/codestructure",
  "Arguments": {
    "FileName": "c:\\Projects\\Github\\performance\\src\\benchmarks\\micro\\coreclr\\Span\\Indexer.cs"
  }
}
[dbug]: OmniSharp.Stdio.Host
        ************  Response ************
{
  "Request_seq": 7,
  "Command": "/v2/codestructure",
  "Running": true,
  "Success": true,
  "Message": null,
  "Body": null,
  "Seq": 78,
  "Type": "response"
}
[dbug]: OmniSharp.Stdio.Host
        ************ Request ************
{
  "Type": "request",
  "Seq": 8,
  "Command": "/v2/codestructure",
  "Arguments": {
    "FileName": "c:\\Projects\\Github\\performance\\src\\benchmarks\\micro\\coreclr\\Span\\Indexer.cs"
  }
}
[dbug]: OmniSharp.Stdio.Host
        ************  Response ************
{
  "Request_seq": 8,
  "Command": "/v2/codestructure",
  "Running": true,
  "Success": true,
  "Message": null,
  "Body": null,
  "Seq": 81,
  "Type": "response"
}
[dbug]: OmniSharp.Stdio.Host
        ************ Request ************
{
  "Type": "request",
  "Seq": 9,
  "Command": "/v2/codestructure",
  "Arguments": {
    "FileName": "c:\\Projects\\Github\\performance\\src\\benchmarks\\micro\\coreclr\\Span\\Indexer.cs"
  }
}
[dbug]: OmniSharp.Stdio.Host
        ************  Response ************
{
  "Request_seq": 9,
  "Command": "/v2/codestructure",
  "Running": true,
  "Success": true,
  "Message": null,
  "Body": null,
  "Seq": 84,
  "Type": "response"
}
[dbug]: OmniSharp.Stdio.Host
        ************ Request ************
{
  "Type": "request",
  "Seq": 10,
  "Command": "/v2/codestructure",
  "Arguments": {
    "FileName": "c:\\Projects\\Github\\performance\\src\\benchmarks\\micro\\coreclr\\Span\\Indexer.cs"
  }
}
[dbug]: OmniSharp.Stdio.Host
        ************  Response ************
{
  "Request_seq": 10,
  "Command": "/v2/codestructure",
  "Running": true,
  "Success": true,
  "Message": null,
  "Body": null,
  "Seq": 87,
  "Type": "response"
}
[dbug]: OmniSharp.Stdio.Host
        ************ Request ************
{
  "Type": "request",
  "Seq": 11,
  "Command": "/v2/getcodeactions",
  "Arguments": {
    "FileName": "c:\\Projects\\Github\\performance\\src\\benchmarks\\micro\\coreclr\\Span\\Indexer.cs",
    "Line": 30,
    "Column": 44
  }
}
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Attempting to resolve 'Microsoft.CodeAnalysis.Workspaces.resources, Version=<IP_ADDRESS>, Culture=en-US, PublicKeyToken=31bf3856ad364e35'
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        FAILURE: Could not locate 'C:\Users\keyurramoliya\.vscode\extensions\ms-vscode.csharp-1.17.1\.omnisharp\1.32.8\msbuild\15.0\Bin\Microsoft.CodeAnalysis.Workspaces.resources.dll'.
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Attempting to resolve 'Microsoft.CodeAnalysis.Workspaces.resources, Version=<IP_ADDRESS>, Culture=en-US, PublicKeyToken=31bf3856ad364e35'
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        FAILURE: Could not locate 'C:\Users\keyurramoliya\.vscode\extensions\ms-vscode.csharp-1.17.1\.omnisharp\1.32.8\msbuild\15.0\Bin\Microsoft.CodeAnalysis.Workspaces.resources.dll'.
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Attempting to resolve 'Microsoft.CodeAnalysis.Workspaces.resources, Version=<IP_ADDRESS>, Culture=en, PublicKeyToken=31bf3856ad364e35'
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        FAILURE: Could not locate 'C:\Users\keyurramoliya\.vscode\extensions\ms-vscode.csharp-1.17.1\.omnisharp\1.32.8\msbuild\15.0\Bin\Microsoft.CodeAnalysis.Workspaces.resources.dll'.
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Attempting to resolve 'Microsoft.CodeAnalysis.Workspaces.resources, Version=<IP_ADDRESS>, Culture=en, PublicKeyToken=31bf3856ad364e35'
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        FAILURE: Could not locate 'C:\Users\keyurramoliya\.vscode\extensions\ms-vscode.csharp-1.17.1\.omnisharp\1.32.8\msbuild\15.0\Bin\Microsoft.CodeAnalysis.Workspaces.resources.dll'.
[dbug]: OmniSharp.Stdio.Host
        ************  Response ************
{
  "Request_seq": 5,
  "Command": "/v2/blockstructure",
  "Running": true,
  "Success": false,
  "Message": "\"System.NullReferenceException: Object reference not set to an instance of an object.\\r\\n   at OmniSharp.Roslyn.CSharp.Services.Structure.BlockStructureService.<Handle>d__12.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at OmniSharp.Endpoint.EndpointHandler`2.<HandleSingleRequest>d__18.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at OmniSharp.Endpoint.EndpointHandler`2.<Process>d__16.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at OmniSharp.Stdio.Host.<HandleRequest>d__13.MoveNext()\"",
  "Body": null,
  "Seq": 72,
  "Type": "response"
}
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Attempting to resolve 'Microsoft.CodeAnalysis.Features.resources, Version=<IP_ADDRESS>, Culture=en-US, PublicKeyToken=31bf3856ad364e35'
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        FAILURE: Could not locate 'C:\Users\keyurramoliya\.vscode\extensions\ms-vscode.csharp-1.17.1\.omnisharp\1.32.8\msbuild\15.0\Bin\Microsoft.CodeAnalysis.Features.resources.dll'.
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Attempting to resolve 'Microsoft.CodeAnalysis.Features.resources, Version=<IP_ADDRESS>, Culture=en-US, PublicKeyToken=31bf3856ad364e35'
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        FAILURE: Could not locate 'C:\Users\keyurramoliya\.vscode\extensions\ms-vscode.csharp-1.17.1\.omnisharp\1.32.8\msbuild\15.0\Bin\Microsoft.CodeAnalysis.Features.resources.dll'.
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Attempting to resolve 'Microsoft.CodeAnalysis.Features.resources, Version=<IP_ADDRESS>, Culture=en, PublicKeyToken=31bf3856ad364e35'
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        FAILURE: Could not locate 'C:\Users\keyurramoliya\.vscode\extensions\ms-vscode.csharp-1.17.1\.omnisharp\1.32.8\msbuild\15.0\Bin\Microsoft.CodeAnalysis.Features.resources.dll'.
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Attempting to resolve 'Microsoft.CodeAnalysis.Features.resources, Version=<IP_ADDRESS>, Culture=en, PublicKeyToken=31bf3856ad364e35'
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        FAILURE: Could not locate 'C:\Users\keyurramoliya\.vscode\extensions\ms-vscode.csharp-1.17.1\.omnisharp\1.32.8\msbuild\15.0\Bin\Microsoft.CodeAnalysis.Features.resources.dll'.
[dbug]: OmniSharp.Stdio.Host
        ************  Response ************
{
  "Request_seq": 11,
  "Command": "/v2/getcodeactions",
  "Running": true,
  "Success": true,
  "Message": null,
  "Body": {
    "CodeActions": []
  },
  "Seq": 90,
  "Type": "response"
}
[dbug]: OmniSharp.Stdio.Host
        ************ Request ************
{
  "Type": "request",
  "Seq": 12,
  "Command": "/v2/getcodeactions",
  "Arguments": {
    "FileName": "c:\\Projects\\Github\\performance\\src\\benchmarks\\micro\\coreclr\\Span\\Indexer.cs",
    "Line": 30,
    "Column": 44
  }
}
[dbug]: OmniSharp.Stdio.Host
        ************  Response ************
{
  "Request_seq": 12,
  "Command": "/v2/getcodeactions",
  "Running": true,
  "Success": true,
  "Message": null,
  "Body": {
    "CodeActions": []
  },
  "Seq": 110,
  "Type": "response"
}

Let me know if you need anything else.

@KeyurRamoliya I think the problem for you is the one listed here https://github.com/OmniSharp/omnisharp-vscode/issues/2937. Basically msbuild 15 that ships with omnisharp currently is not compatible with the .net core sdk 3.0. We are working on this. Sorry that it is taking so long and thank you for the patience.

I had a similar issue with DotnetCore 2.2. I added the following to .bashrc on Ubuntu:
export MSBuildSDKsPath="/usr/share/dotnet/sdk/$(dotnet --version)/Sdks"

FWIW, on my Fedora installation where I suffered from this issues for months, I found out that the issue was that some dotnet symlink was dead in my installation. IIRC, it was the one in /opt/dotnet/dotnet that was broken, while .NET Core was installed someplace, and MSBuild was using this broken symlink anyway then failed resolution of Sdks. Removing the broken symlink fixed it.

I had a similar issue with DotnetCore 2.2. I added the following to .bashrc on Ubuntu:
export MSBuildSDKsPath="/usr/share/dotnet/sdk/$(dotnet --version)/Sdks"

This fixed for me. Thanks!

I had a similar issue with DotnetCore 2.2. I added the following to .bashrc on Ubuntu:
export MSBuildSDKsPath="/usr/share/dotnet/sdk/$(dotnet --version)/Sdks"

Oh wow... it works in my Ubuntu 18.04 VM! THANK YOU. Kudos.

FWIW, on my Fedora installation where I suffered from this issues for months, I found out that the issue was that some dotnet symlink was dead in my installation. IIRC, it was the one in /opt/dotnet/dotnet that was broken, while .NET Core was installed someplace, and MSBuild was using this broken symlink anyway then failed resolution of Sdks. Removing the broken symlink fixed it.

@mickaelistria  I appreciate your comment. Unfortunately, this was not my issue. In another Ubuntu VM, I am running Ubuntu 18.10 so I am using the Dotnet and VSCode snaps. I haven't tried the suggestion above for it, yet. When I do, I will put in my .bash_aliases file instead of ,bashrc and use the path for the Snap Dotnet, which is something like /snap/dotnet-sdk/current.... whatever, and I hope it will work. Before Dotnet 2.2.205, all I needed was a symlink to the snap version of dotnet, which I created as "/usr/local/bin/dotnet" pointing to the snap version of dotnet, and it worked fine. Not sure why that stopped working with this release, but I'll try a modified version of the suggestion above and see. Fingers crossed. Hope you don't have issues (I don't on Windows, but I haven't used Fedora in quite a while).

I had a similar issue with DotnetCore 2.2. I added the following to .bashrc on Ubuntu:
export MSBuildSDKsPath="/usr/share/dotnet/sdk/$(dotnet --version)/Sdks"

This fixed my issue on Fedora 29! Thank you!

I had a similar issue with DotnetCore 2.2. I added the following to .bashrc on Ubuntu:
export MSBuildSDKsPath="/usr/share/dotnet/sdk/$(dotnet --version)/Sdks"

I had a similar issue with dotnetcore 2.2.203 sdk. I add it by tar.gz on my Gentoo, solved it as you said. Thank you.

FWIW, on my Fedora installation where I suffered from this issues for months, I found out that the issue was that some dotnet symlink was dead in my installation. IIRC, it was the one in /opt/dotnet/dotnet that was broken, while .NET Core was installed someplace, and MSBuild was using this broken symlink anyway then failed resolution of Sdks. Removing the broken symlink fixed it.

@mickaelistria I appreciate your comment. Unfortunately, this was not my issue. In another Ubuntu VM, I am running Ubuntu 18.10 so I am using the Dotnet and VSCode snaps. I haven't tried the suggestion above for it, yet. When I do, I will put in my .bash_aliases file instead of ,bashrc and use the path for the Snap Dotnet, which is something like /snap/dotnet-sdk/current.... whatever, and I hope it will work. Before Dotnet 2.2.205, all I needed was a symlink to the snap version of dotnet, which I created as "/usr/local/bin/dotnet" pointing to the snap version of dotnet, and it worked fine. Not sure why that stopped working with this release, but I'll try a modified version of the suggestion above and see. Fingers crossed. Hope you don't have issues (I don't on Windows, but I haven't used Fedora in quite a while).

I'm on Ubuntu 19.04 with both vscode and dotnet installed from snap. I haven't manged to get it working by setting $MSBuildSDKsPath. (Or any other way, for that matter :nerd_face: )

I'm on Ubuntu 19.04 with both vscode and dotnet installed from snap. I haven't manged to get it working by setting $MSBuildSDKsPath. (Or any other way, for that matter 🤓 )

On my Ubuntu 19.04 machine, I have 2.2.204 working (disclaimer: have not tried 3.0-preview), by making sure my snaps were all up to date with "sudo snap refresh" and then making sure I had a link to dotnet by doing something like (from memory, as I'm not on that machine at the moment): "sudo ln -sv /snap/dotnet-sdk/current/dotnet /usr/local/bin/dotnet" to make a global link to "dotnet". Making a snap alias was insufficient for VSCode, though for CLI work it was fine, so I removed it and did the symbolic link approach. This might all go out the window with the 3.0-preview, though.

Thanks! That got me to the next error: The imported project "/usr/lib/mono/xbuild/15.0/Microsoft.Common.props" was not found
But luckily that one has its own issue (OmniSharp/omnisharp-vscode#3049) :smile:


Add image GET API implementation.

Purpose

Add image GET API implementation.

Codecov Report

Merging #31 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #31   +/-   ##
=======================================
  Coverage   30.35%   30.35%
=======================================
  Files          42       42
  Lines         883      883
  Branches      137      137
=======================================
  Hits          268      268
  Misses        561      561
  Partials       54       54

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a248d32...2ed0668. Read the comment docs.


Add a Nix flake

Summary
Add a basic nix flake that simply exports several packages from the toplevel default.nix
Notes

This is mostly based on the work by @hamishmack in #2517
The flake is only added because using bitte requires it
The current flake outputs are only temporary but in general the idea is for the flake to only provide what is essential for using bitte
For the most part the flake just imports from niv sources and default.nix, but inputs.nixpkgs and inputs.haskell-nix have to be kept in sync with the niv revisions manually (for now?).

Pre-submit checklist:

Branch

[x] Commit sequence broadly makes sense
[x] Key commits have useful messages
[x] Relevant tickets are mentioned in commit messages
[x] Formatting, materialized Nix files, PNG optimization, etc. are updated

PR

[x] Self-reviewed the diff
[x] Useful pull request description
[x] Reviewer requested

Pre-merge checklist:

[ ] Someone approved it
[ ] Commits have useful messages
[ ] Review clarifications made it into the code
[ ] History is moderately tidy; or going to squash-merge

After chatting with @michaelpj we came to the conclusion that it should be possible to make this much simpler. So i tried, and failed :sweat_smile:
In https://github.com/input-output-hk/plutus/commit/1f1d22f31e703573fb6dae66eb7bec4780ec413f I tried to just have the flake.nix import the default.nix directly by:

making sure to pass system when importing sources.nix which is enough to actually use niv sources from flakes
trying to use the correct haskell.nix overlay:

haskellNixOverlays =
if useFlakes
  then [ haskellNix.allOverlays.combined-eval-on-build ]
  else haskellNix.overlays;

This failed in haskell.nix because it doesn't pass system when importing niv's sources.nix so I tried to fix that as well in
https://github.com/tweag/haskell.nix/commit/3bf36164e9cb2e5df47551777d8e5386f10984ad and make sure to actually pass system when importing haskell.nix
But ultimately this still fails:
error: attribute 'currentSystem' missing

       at /nix/store/g9vf0rrmn3g50g7fsn19vk0md0f4fya1-haskell.nix-src/nix/sources.nix:163:16:

          162|     , sources ? if isNull sourcesFile then {} else builtins.fromJSON (builtins.readFile sourcesFile)
          163|     , system ? builtins.currentSystem
             |                ^
          164|     , pkgs ? mkPkgs sources system

       … while evaluating the attribute 'system'

       at /nix/store/g9vf0rrmn3g50g7fsn19vk0md0f4fya1-haskell.nix-src/nix/sources.nix:65:91:

           64|       sourcesNixpkgs =
           65|         import (builtins_fetchTarball { inherit (sources.nixpkgs) url sha256; }) { inherit system; };
             |                                                                                ^
           66|       hasNixpkgsPath = builtins.any (x: x.prefix == "nixpkgs") builtins.nixPath;

       … while evaluating 'addContextFrom'

And i honestly don't understand why. Could you perhaps take a look @angerman or @hamishmack ? :) The key point here is that we are only adding the flake because we have to in order to be able to use bitte but we don't want to maintain or use it much otherwise. So ideally it would mostly just import stuff from the existing setup.

While the latest sate of this builds, flake builds yield different outputs and i don't understand why that might be:
$ nix-build -A web-ghc -o ./web-ghc
$ nix build .#web-ghc-server
$ nix-diff $(nix-store --query --deriver ./result) $(nix-store --query --deriver ./web-ghc)

- /nix/store/znfwxgphsq7vj47c1gr34cq75m3zaprr-web-ghc-exe-web-ghc-server-<IP_ADDRESS>.drv:{out}
+ /nix/store/6xrgr181hh2fidr6v2amkw6j3m97c5pl-web-ghc.drv:{out}
• The set of input sources do not match:
    - /nix/store/y4wpxza56pmnsmknfjhazihwv69bdm82-plutus-root-web-ghc-exe-web-ghc-server-root
• The set of input names do not match:
    - data-default-class-lib-data-default-class-<IP_ADDRESS>
    - default-Setup-setup
    - exceptions-lib-exceptions-0.10.4
    - glibc-locales-2.32-24
    - http-types-lib-http-types-0.12.3
    - monad-logger-lib-monad-logger-0.3.36
    - optparse-applicative-lib-optparse-applicative-<IP_ADDRESS>
    - playground-common-lib-playground-common-<IP_ADDRESS>
    - prometheus-lib-prometheus-2.2.2
    - remove-references-to
    - servant-lib-servant-0.18.2
    - servant-server-lib-servant-server-0.18.2
    - wai-cors-lib-wai-cors-0.2.7
    - wai-extra-lib-wai-extra-3.1.6
    - wai-lib-wai-3.2.3
    - warp-lib-warp-3.3.14
    - web-ghc-exe-web-ghc-server-<IP_ADDRESS>-config
    - web-ghc-exe-web-ghc-server-<IP_ADDRESS>-ghc-<IP_ADDRESS>10212-env
    - web-ghc-lib-web-ghc-<IP_ADDRESS>
    - yaml-lib-yaml-<IP_ADDRESS>
    + ghc-shell-for-packages-ghc-<IP_ADDRESS>10212-env
    + hook
    + web-ghc-exe-web-ghc-server-<IP_ADDRESS>
• The input named `stdenv-linux` differs
  - /nix/store/5galpnsdfi02x7x0d3gn162k9jfsn4xr-stdenv-linux.drv:{out}
  + /nix/store/v6aj0hzvj7p9m4iiaqjs4d0nbrspc98f-stdenv-linux.drv:{out}
  • The environments do not match:
      allowedRequisites=''
          /nix/store/782n0xrdgdl1a32nvpdfnrx06xxa1zlp-gzip-1.10 /nix/store/782n0xrdgdl1a32nvpdfnrx06xxa1zlp-gzip-1.10 /nix/store/c5jgwpwxc1nxl9gzd9m4wlalrw7sr0z7-bzip2-<IP_ADDRESS>.1-bin /nix/store/7l68hmbqhmxib2wlmwyd5ib5czfyb25g-bzip2-<IP_ADDRESS>.1 /nix/store/9ikwdf54fsq002g4d36vp6r6qvwk5n3a-xz-5.2.5-bin /nix/store/f2l18n620bw7cmvrs1vh35kry3nrkfy0-xz-5.2.5 /nix/store/kl6lr3czkbnr6m5crcy8ffwfzbj8a22i-bash-4.4-p23 /nix/store/kl6lr3czkbnr6m5crcy8ffwfzbj8a22i-bash-4.4-p23 /nix/store/c1gipyfc161lm0fqfg65k4ak7yl2i17i-binutils-2.34 /nix/store/c1gipyfc161lm0fqfg65k4ak7yl2i17i-binutils-2.34 /nix/store/87ipxqn2ah5ba282cnip9z4mm3dbczjc-coreutils-8.32 /nix/store/87ipxqn2ah5ba282cnip9z4mm3dbczjc-coreutils-8.32 /nix/store/ck3kak4rp8j3649bwy0vk114qpy53q7g-diffutils-3.7 /nix/store/ck3kak4rp8j3649bwy0vk114qpy53q7g-diffutils-3.7 /nix/store/87l6ag9v5pa96axxg756hj4pfcajsmbh-findutils-4.7.0 /nix/store/87l6ag9v5pa96axxg756hj4pfcajsmbh-findutils-4.7.0 /nix/store/vnf5x5ggba946dpan66r1npqj4slrinw-gawk-5.1.0 /nix/store/vnf5x5ggba946dpan66r1npqj4slrinw-gawk-5.1.0 /nix/store/1pms77gm9l4rw8k180wmklagcwsya605-gnumake-4.3 /nix/store/1pms77gm9l4rw8k180wmklagcwsya605-gnumake-4.3 /nix/store/6qyl2yyqjrciypyb8728llsm2mqrhqsp-gnused-4.8 /nix/store/6qyl2yyqjrciypyb8728llsm2mqrhqsp-gnused-4.8 /nix/store/vkbdjkwqf7qxhxwd86cik7nfdppj04n2-gnutar-1.32 /nix/store/vkbdjkwqf7qxhxwd86cik7nfdppj04n2-gnutar-1.32 /nix/store/ipd8n0w9pwhfg1hsna9gv1z46y3j76d2-gnugrep-3.6 /nix/store/ipd8n0w9pwhfg1hsna9gv1z46y3j76d2-gnugrep-3.6 /nix/store/40sgch0d26mqjmrfvg6iq9vmkj2m5b7g-patch-2.7.6 /nix/store/40sgch0d26mqjmrfvg6iq9vmkj2m5b7g-patch-2.7.6 /nix/store/cfvww6slpwnvz19hf169ickmjda4l6jb-patchelf-0.12 /nix/store/cfvww6slpwnvz19hf169ickmjda4l6jb-patchelf-0.12 /nix/store/1s7h0ll18n2988ax3hhg2pjyni5jrf36-ed-1.16 /nix/store/1s7h0ll18n2988ax3hhg2pjyni5jrf36-ed-1.16 /nix/store/sylh15pml1cphys55sy0dr28cp8c42d0-attr-2.4.48 /nix/store/vy7phrnzkbjvsf9j5bkg2f3z8mf0fabv-acl-2.2.53 /nix/store/nnqw9pa10j11r3jjc0fw2rwdipram6gc-zlib-1.2.11 /nix/store/v3aw5ip513vsh6r36fs07niv0b3f7f8l-pcre-8.44 /nix/store/0cbzck6xac05rpg8wnz943vmikl1ws1d-libidn2-2.3.0 /nix/store/48j0w68fyd6lpwwfkjghphxvysgjl84x-libunistring-0.9.10 /nix/store/vbr3p4y2azrgwq2s7h2hbip8x06w50z5-glibc-2.32-24 /nix/store/x4v6h4gcw5vb2d0dm86mwk6kvxiyvxf8-glibc-2.32-24-dev /nix/store/y0mjg5mwdvq7m1dwhpz46wjck76bvba5-glibc-2.32-24-bin /nix/store/5njhh92vrhq6bq7vk56pqzp4mspqc3nr-linux-headers-5.10.4 /nix/store/fws5qmgl882n7zva366sw207b4rmgcyz-binutils-wrapper-2.34 /nix/store/d2fqghv083a8q7j8sjb2m5q6i840h691-gcc-wrapper-10.2.0 /nix/store/5wfh94xwg2hd7n82j8klgn4nmf07is24-gcc-10.2.0 /nix/store/xsqxamd86mh21dk0b775acaqgdijgf6p-gcc-10.2.0-lib /nix/store/xxwq0vv7pjinrr6gjfl2wv54qiaq1zsb-expand-response-params /nix/store/cfvww6slpwnvz19hf169ickmjda4l6jb-patchelf-0.12 /nix/store/mjjy30kxz775bhhi6j9phw81qh6dsbrf-move-docs.sh /nix/store/kxw6q8v6isaqjm702d71n2421cxamq68-make-symlinks-relative.sh /nix/store/cl3qd985p1yxyfkj96v0hqxiy3w69xq5-compress-man-pages.sh /nix/store/iw4rfvg0cmk6nyaprhmn4avrzmlwg9mf-strip.sh /nix/store/6k829xz9v508ncxfcf2p1b8g1wq54946-patch-shebangs.sh /nix/store/cickvswrvann041nqxb0rxilc46svw1n-prune-libtool-files.sh /nix/store/8zxndz5ag0p6s526c2xyllhk1nrn4c3i-audit-tmpdir.sh /nix/store/c8n9kcdddp9np665xz6ri61b383nxvz8-move-systemd-user-units.sh /nix/store/1i5y55x4b4m9qkx5dqbmr1r6bvrqbanw-multiple-outputs.sh /nix/store/kd4xwxjpjxi71jkm6ka0np72if9rm3y0-move-sbin.sh /nix/store/fyaryjvghbkpfnsyw97hb3lyb37s1pd6-move-lib64.sh /nix/store/ngg1cv31c8c7bcm2n8ww4g06nq7s4zhm-set-source-date-epoch-to-latest.sh /nix/store/pr6nzbscdpg94yvr151lrif2kg0csx7b-reproducible-builds.sh ←/nix/store/d2fqghv083a8q7j8sjb2m5q6i840h691-gcc-wrapper-10.2.0←
      ''
      defaultNativeBuildInputs=''
          /nix/store/cfvww6slpwnvz19hf169ickmjda4l6jb-patchelf-0.12 /nix/store/mjjy30kxz775bhhi6j9phw81qh6dsbrf-move-docs.sh /nix/store/kxw6q8v6isaqjm702d71n2421cxamq68-make-symlinks-relative.sh /nix/store/cl3qd985p1yxyfkj96v0hqxiy3w69xq5-compress-man-pages.sh /nix/store/iw4rfvg0cmk6nyaprhmn4avrzmlwg9mf-strip.sh /nix/store/6k829xz9v508ncxfcf2p1b8g1wq54946-patch-shebangs.sh /nix/store/cickvswrvann041nqxb0rxilc46svw1n-prune-libtool-files.sh /nix/store/8zxndz5ag0p6s526c2xyllhk1nrn4c3i-audit-tmpdir.sh /nix/store/c8n9kcdddp9np665xz6ri61b383nxvz8-move-systemd-user-units.sh /nix/store/1i5y55x4b4m9qkx5dqbmr1r6bvrqbanw-multiple-outputs.sh /nix/store/kd4xwxjpjxi71jkm6ka0np72if9rm3y0-move-sbin.sh /nix/store/fyaryjvghbkpfnsyw97hb3lyb37s1pd6-move-lib64.sh /nix/store/ngg1cv31c8c7bcm2n8ww4g06nq7s4zhm-set-source-date-epoch-to-latest.sh /nix/store/pr6nzbscdpg94yvr151lrif2kg0csx7b-reproducible-builds.sh ←/nix/store/d2fqghv083a8q7j8sjb2m5q6i840h691-gcc-wrapper-10.2.0←
      ''
• Skipping environment comparison

I tried building something without flakes with haskellNix.allOverlays.combined-eval-on-build and haskellNix.overlays respectively and the outputs were identical. So that shouldn't be the problem.
I also tried building some output that doesn't use haskell at all and it's the same for flakes/non-flakes builds.

@michaelpj @angerman do you have an ideas what this might be and what else i could perhaps try?


⚠ Bofrost.nl has degraded performance

In 8561590, Bofrost.nl (https://www.bofrost.nl) experienced degraded performance:

HTTP code: 200
Response time: 1862 ms

Resolved: Bofrost.nl performance has improved in 6650ca8.


Playback stutters, Koel UI Slow, in Mobile Chrome Android 6.0.1.

Running Koel v3.6.2 on CentOS7, Apache/2.4.6 (CentOS), PHP 5.6.30, and Maria DB 10, and latest verison of chrome on Android 6.0.1 on Verizon Note4.
When I enter my username and pw, and signin, takes 45-60 seconds to get to the UI, during playback of any song Koel UI is slow, and phone is warm to the touch and depletes my 3200mah battery within 2 hours of playback while Koel is running, if I place the chrome app in the background, the playback stutters, at times chrome doesn't even play, no other apps are running in the background.
I have better results with playback in Firefox and Opera for android, I can at least listen but the app needs to be in the foreground and screen active or app goes to sleep and media controls can't be invoked, still a battery drain and phone is warm to the touch.
Perfectly fine on the desktop chrome, no issues there, still takes 30 seconds to login to the UI, nothing in the webconsole. ,
I have over 14k songs in the library.
I have streaming in .env set to default php.
Since I do have php5.6 would upgrading to php7 be an advantage to the slow ui response? I know php7 is twice as fast as php5 but would this aid in the responsiveness of Koel?
I was also looking to x-sendfile module for apache to offload the php work, but the last module that was released was in 2012, and concerned its not upto date with todays security standards.

Hey, thanks for contributing to Koel! To save time for both of us, please make sure these checkboxes are checked before submitting the issue:

[X] You have read and followed closely the Wiki, Upgrade Guide, as well as Troubleshooting
[X] The issue has not been reported before
[X] This is not a "how to install on Windows" or "why is my npm messed up" question
[X] You're a cool person

All checked? Now also make sure your issue

[x] Is associated with a version. Or better yet, a commit.
[X] Is as detailed as possible (ahem... OS, browser, steps to reproduce, maybe?)
[X] Includes the error output if it's a bug/error report ("Whoops!" is not very helpful, you know)
[X] Is in English, 因为我不说中文。

PHP version and x-sendfile won't help. This looks like a limitation of your phone/Android/browser. Don't think I can help, sorry.


cloudera-scm-agent: bash: /var/log/cloudera-scm-agent/cloudera-scm-agent.out: No such file or directory

[root@vm02 ~]# clusterdock_run ./bin/start_cluster -n testing cdh --primary-node=node-1 --secondary-nodes='node-{2..4}' --include-service-types=HDFS,HIVE,HUE,ZOOKEEPER,HBASE,YARN,SPARK_ON_YARN,SQOOP2
++ clusterdock_run ./bin/start_cluster -n testing cdh --primary-node=node-1 '--secondary-nodes=node-{2..4}' --include-service-types=HDFS,HIVE,HUE,ZOOKEEPER,HBASE,YARN,SPARK_ON_YARN,SQOOP2
++ '[' -z docker.io/cloudera/clusterdock:latest ']'
++ '[' '' '!=' false ']'
++ sudo docker pull docker.io/cloudera/clusterdock:latest
++ '[' -n '' ']'
++ '[' -n '' ']'
++ '[' -n '' ']'
++ '[' -n '' ']'
++ '[' -n '' ']'
++ B
-bash: B: command not found
++ sudo docker run --net=host -t --privileged -v /tmp/clusterdock -v /etc/hosts:/etc/hosts -v /etc/localtime:/etc/localtime -v /var/run/docker.sock:/var/run/docker.sock docker.io/cloudera/clusterdock:latest ./bin/start_cluster -n testing cdh --primary-node=node-1 '--secondary-nodes=node-{2..4}' --include-service-types=HDFS,HIVE,HUE,ZOOKEEPER,HBASE,YARN,SPARK_ON_YARN,SQOOP2
INFO:clusterdock.topologies.cdh.actions:Pulling image docker.io/cloudera/clusterdock:cdh580_cm581_primary-node. This might take a little while...
Trying to pull repository docker.io/cloudera/clusterdock ...
cdh580_cm581_primary-node: Pulling from docker.io/cloudera/clusterdock
Digest: sha256:9feffbfc5573262a6efbbb0a969efde890e63ced8a4ab3c9982f4f0dc607e429
INFO:clusterdock.topologies.cdh.actions:Pulling image docker.io/cloudera/clusterdock:cdh580_cm581_secondary-node. This might take a little while...
Trying to pull repository docker.io/cloudera/clusterdock ...
cdh580_cm581_secondary-node: Pulling from docker.io/cloudera/clusterdock
Digest: sha256:251778378b362adff4e93b99d423848216e4823965dabd1bd4c41dbb4c79afcf
INFO:clusterdock.cluster:Successfully started node-2.testing (IP address: <IP_ADDRESS>).
INFO:clusterdock.cluster:Successfully started node-3.testing (IP address: <IP_ADDRESS>).
INFO:clusterdock.cluster:Successfully started node-4.testing (IP address: <IP_ADDRESS>).
INFO:clusterdock.cluster:Successfully started node-1.testing (IP address: <IP_ADDRESS>).
INFO:clusterdock.cluster:Started cluster in 12.68 seconds.
INFO:clusterdock.topologies.cdh.actions:Changing server_host to node-1.testing in /etc/cloudera-scm-agent/config.ini...
INFO:clusterdock.topologies.cdh.actions:Removing files (/var/lib/cloudera-scm-agent/uuid, /dfs*/dn/current/*) from hosts (node-3.testing, node-4.testing)...
INFO:clusterdock.topologies.cdh.actions:Restarting CM agents...
cloudera-scm-agent is already stopped
cloudera-scm-agent is already stopped
Starting cloudera-scm-agent: bash: /var/log/cloudera-scm-agent/cloudera-scm-agent.out: No such file or directory
[FAILED]
Starting cloudera-scm-agent: bash: /var/log/cloudera-scm-agent/cloudera-scm-agent.out: No such file or directory
[FAILED]
Fatal error: run() received nonzero return code 1 while executing!
Requested: service cloudera-scm-agent restart
Executed: /bin/bash -l -c "service cloudera-scm-agent restart"
Aborting.
Fatal error: run() received nonzero return code 1 while executing!
Requested: service cloudera-scm-agent restart
Executed: /bin/bash -l -c "service cloudera-scm-agent restart"
Aborting.
cloudera-scm-agent is already stopped
Starting cloudera-scm-agent: bash: /var/log/cloudera-scm-agent/cloudera-scm-agent.out: No such file or directory
[FAILED]
Fatal error: run() received nonzero return code 1 while executing!
Requested: service cloudera-scm-agent restart
Executed: /bin/bash -l -c "service cloudera-scm-agent restart"
Aborting.
cloudera-scm-agent is already stopped
Starting cloudera-scm-agent: bash: /var/log/cloudera-scm-agent/cloudera-scm-agent.out: No such file or directory
[FAILED]
Fatal error: run() received nonzero return code 1 while executing!
Requested: service cloudera-scm-agent restart
Executed: /bin/bash -l -c "service cloudera-scm-agent restart"
Aborting.
Fatal error: One or more hosts failed while executing task '_task'
Aborting.
INFO:clusterdock.topologies.cdh.actions:Waiting for Cloudera Manager server to come online...
Traceback (most recent call last):
File "./bin/start_cluster", line 70, in
main()
File "./bin/start_cluster", line 63, in main
actions.start(args)
File "/root/clusterdock/clusterdock/topologies/cdh/actions.py", line 108, in start
CM_SERVER_PORT, timeout_sec=180)
File "/root/clusterdock/clusterdock/utils.py", line 52, in wait_for_port_open
timeout_sec, address, port
Exception: Timed out after 180 seconds waiting for <IP_ADDRESS>:7180 to be open.
++ '[' -n '' ']'
++ printf '\033]0;%s@%s:%s\007' root vm02 '~'

How many CPUs/how much RAM does the machine you're using have? What OS is it running?

[root@vm-02 ~]# free -g
total        used        free      shared  buff/cache   available
Mem:             47           1          43           0           1          45
Swap:             7           0           7
[root@vm-02 ~]# rpm --query centos-release
centos-release-7-3.1611.el7.centos.x86_64
[root@vm-02 ~]# cat /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 21
model           : 2
model name      : AMD Opteron(tm) Processor 6386 SE
stepping        : 0
microcode       : 0x6000832
cpu MHz         : 2792.034
cache size      : 2048 KB
physical id     : 0
siblings        : 8
core id         : 0
cpu cores       : 8
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm constant_tsc art rep_good nopl tsc_reliable nonstop_tsc aperfmperf pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 popcnt aes xsave avx hypervisor lahf_lm extapic abm sse4a misalignsse 3dnowprefetch osvw xop fma4 arat
bogomips        : 5586.00
TLB size        : 1536 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:
processor       : 1
vendor_id       : AuthenticAMD
cpu family      : 21
model           : 2
model name      : AMD Opteron(tm) Processor 6386 SE
stepping        : 0
microcode       : 0x6000832
cpu MHz         : 2792.034
cache size      : 2048 KB
physical id     : 0
siblings        : 8
core id         : 1
cpu cores       : 8
apicid          : 1
initial apicid  : 1
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm constant_tsc art rep_good nopl tsc_reliable nonstop_tsc aperfmperf pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 popcnt aes xsave avx hypervisor lahf_lm extapic abm sse4a misalignsse 3dnowprefetch osvw xop fma4 arat
bogomips        : 5586.00
TLB size        : 1536 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:
processor       : 2
vendor_id       : AuthenticAMD
cpu family      : 21
model           : 2
model name      : AMD Opteron(tm) Processor 6386 SE
stepping        : 0
microcode       : 0x6000832
cpu MHz         : 2792.034
cache size      : 2048 KB
physical id     : 0
siblings        : 8
core id         : 2
cpu cores       : 8
apicid          : 2
initial apicid  : 2
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm constant_tsc art rep_good nopl tsc_reliable nonstop_tsc aperfmperf pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 popcnt aes xsave avx hypervisor lahf_lm extapic abm sse4a misalignsse 3dnowprefetch osvw xop fma4 arat
bogomips        : 5586.00
TLB size        : 1536 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:
processor       : 3
vendor_id       : AuthenticAMD
cpu family      : 21
model           : 2
model name      : AMD Opteron(tm) Processor 6386 SE
stepping        : 0
microcode       : 0x6000832
cpu MHz         : 2792.034
cache size      : 2048 KB
physical id     : 0
siblings        : 8
core id         : 3
cpu cores       : 8
apicid          : 3
initial apicid  : 3
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm constant_tsc art rep_good nopl tsc_reliable nonstop_tsc aperfmperf pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 popcnt aes xsave avx hypervisor lahf_lm extapic abm sse4a misalignsse 3dnowprefetch osvw xop fma4 arat
bogomips        : 5586.00
TLB size        : 1536 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:
processor       : 4
vendor_id       : AuthenticAMD
cpu family      : 21
model           : 2
model name      : AMD Opteron(tm) Processor 6386 SE
stepping        : 0
microcode       : 0x6000832
cpu MHz         : 2792.034
cache size      : 2048 KB
physical id     : 0
siblings        : 8
core id         : 4
cpu cores       : 8
apicid          : 4
initial apicid  : 4
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm constant_tsc art rep_good nopl tsc_reliable nonstop_tsc aperfmperf pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 popcnt aes xsave avx hypervisor lahf_lm extapic abm sse4a misalignsse 3dnowprefetch osvw xop fma4 arat
bogomips        : 5586.00
TLB size        : 1536 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:
processor       : 5
vendor_id       : AuthenticAMD
cpu family      : 21
model           : 2
model name      : AMD Opteron(tm) Processor 6386 SE
stepping        : 0
microcode       : 0x6000832
cpu MHz         : 2792.034
cache size      : 2048 KB
physical id     : 0
siblings        : 8
core id         : 5
cpu cores       : 8
apicid          : 5
initial apicid  : 5
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm constant_tsc art rep_good nopl tsc_reliable nonstop_tsc aperfmperf pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 popcnt aes xsave avx hypervisor lahf_lm extapic abm sse4a misalignsse 3dnowprefetch osvw xop fma4 arat
bogomips        : 5586.00
TLB size        : 1536 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:
processor       : 6
vendor_id       : AuthenticAMD
cpu family      : 21
model           : 2
model name      : AMD Opteron(tm) Processor 6386 SE
stepping        : 0
microcode       : 0x6000832
cpu MHz         : 2792.034
cache size      : 2048 KB
physical id     : 0
siblings        : 8
core id         : 6
cpu cores       : 8
apicid          : 6
initial apicid  : 6
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm constant_tsc art rep_good nopl tsc_reliable nonstop_tsc aperfmperf pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 popcnt aes xsave avx hypervisor lahf_lm extapic abm sse4a misalignsse 3dnowprefetch osvw xop fma4 arat
bogomips        : 5586.00
TLB size        : 1536 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:
processor       : 7
vendor_id       : AuthenticAMD
cpu family      : 21
model           : 2
model name      : AMD Opteron(tm) Processor 6386 SE
stepping        : 0
microcode       : 0x6000832
cpu MHz         : 2792.034
cache size      : 2048 KB
physical id     : 0
siblings        : 8
core id         : 7
cpu cores       : 8
apicid          : 7
initial apicid  : 7
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm constant_tsc art rep_good nopl tsc_reliable nonstop_tsc aperfmperf pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 popcnt aes xsave avx hypervisor lahf_lm extapic abm sse4a misalignsse 3dnowprefetch osvw xop fma4 arat
bogomips        : 5586.00
TLB size        : 1536 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:
[root@vm-02 ~]# docker version
Client:
Version:         1.12.6
API version:     1.24
Package version: docker-common-1.12.6-11.el7.centos.x86_64
Go version:      go1.7.4
Git commit:      96d83a5/1.12.6
Built:           Tue Mar  7 09:23:34 2017
OS/Arch:         linux/amd64
Server:
Version:         1.12.6
API version:     1.24
Package version: docker-common-1.12.6-11.el7.centos.x86_64
Go version:      go1.7.4
Git commit:      96d83a5/1.12.6
Built:           Tue Mar  7 09:23:34 2017
OS/Arch:         linux/amd64
Thanks :)

I'm pretty confident this is caused by running devicemapper as the storage backend driver. Switch over to aufs or overlayfs and you should never see this issue.

reinstall docker to docker-ce
[root@vm-02 ~]# docker info
Containers: 7
Running: 4
Paused: 0
Stopped: 3
Images: 4
Server Version: 17.03.1-ce
Storage Driver: overlay
Backing Filesystem: xfs
Supports d_type: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 4ab9917febca54791c5f071a9d1f404867857fcc
runc version: 54296cf40ad8143b62dbcaa1d90e520a2136ddfe
init version: 949e6fa
Security Options:
seccomp
Profile: default
Kernel Version: 3.10.0-514.6.2.el7.x86_64
Operating System: CentOS Linux 7 (Core)
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 47.01 GiB
Name: hdp-test-02.hpls.local
ID: RJLD:4XQQ:JUMN:KPWO:5D4X:MM3K:CDVF:CN7G:EDHD:UWMO:RUYB:PFFV
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
<IP_ADDRESS>/8
Live Restore Enabled: false
[root@vm-02 ~]# clusterdock_run ./bin/start_cluster -n testing cdh --primary-node=node-1 --secondary-nodes='node-{2..4}' --include-service-types=HDFS,HIVE,HUE,ZOOKEEPER,HBASE,YARN,SPARK_ON_YARN,SQOOP2
-bash: B: command not found
INFO:clusterdock.cluster:Network (testing) not present, creating it...
INFO:clusterdock.cluster:Successfully setup network (name: testing).
INFO:clusterdock.cluster:Successfully started node-2.testing (IP address: <IP_ADDRESS>).
INFO:clusterdock.cluster:Successfully started node-3.testing (IP address: <IP_ADDRESS>).
INFO:clusterdock.cluster:Successfully started node-4.testing (IP address: <IP_ADDRESS>).
INFO:clusterdock.cluster:Successfully started node-1.testing (IP address: <IP_ADDRESS>).
INFO:clusterdock.cluster:Started cluster in 27.74 seconds.
INFO:clusterdock.topologies.cdh.actions:Changing server_host to node-1.testing in /etc/cloudera-scm-agent/config.ini...
INFO:clusterdock.topologies.cdh.actions:Removing files (/var/lib/cloudera-scm-agent/uuid, /dfs*/dn/current/*) from hosts (node-3.testing, node-4.testing)...
rm: cannot remove /dfs/dn/current/BP-637181590-<IP_ADDRESS>-1469835153284/current/finalized/subdir0/subdir0': Directory not empty rm: cannot remove /dfs/dn/current/BP-637181590-<IP_ADDRESS>-1469835153284/current/finalized/subdir0/subdir0': Directory not empty
rm: cannot remove /dfs/dn/current/BP-637181590-<IP_ADDRESS>-1469835153284/current/finalized/subdir0/subdir1': Directory not empty rm: cannot remove /dfs/dn/current/BP-637181590-<IP_ADDRESS>-1469835153284/current/finalized/subdir0/subdir1': Directory not empty
rm: cannot remove /dfs/dn/current/BP-637181590-<IP_ADDRESS>-1469835153284/current/finalized/subdir0/subdir2': Directory not empty rm: cannot remove /dfs/dn/current/BP-637181590-<IP_ADDRESS>-1469835153284/current/finalized/subdir0/subdir2': Directory not empty
Fatal error: run() received nonzero return code 1 while executing!
Requested: rm -rf /var/lib/cloudera-scm-agent/uuid /dfs*/dn/current/*
Executed: /bin/bash -l -c "rm -rf /var/lib/cloudera-scm-agent/uuid /dfs*/dn/current/*"
Aborting.
Fatal error: run() received nonzero return code 1 while executing!
Requested: rm -rf /var/lib/cloudera-scm-agent/uuid /dfs*/dn/current/*
Executed: /bin/bash -l -c "rm -rf /var/lib/cloudera-scm-agent/uuid /dfs*/dn/current/*"
Aborting.
Fatal error: One or more hosts failed while executing task '_task'
Aborting.

Did you completely remove the /var/lib/docker folder after reinstalling?
Still looks like something caused by holdover from devicemapper.

--
-Dima

Retried.

It stop as below
[root@vm-02 ~]# clusterdock_run ./bin/start_cluster -n cluster cdh --primary-node=node-1 --secondary-nodes=node-{2..3} --include-service-types=HDFS,YARN --dont-start-cluster
-bash: B: command not found
INFO:clusterdock.topologies.cdh.actions:Pulling image docker.io/cloudera/clusterdock:cdh580_cm581_secondary-node. This might take a little while...
cdh580_cm581_secondary-node: Pulling from cloudera/clusterdock
3eaa9b70c44a: Already exists
99ba8e23f310: Already exists
c9c08e9a0d03: Already exists
7434a9a99daa: Already exists
d52d9baa0ee6: Already exists
f70deff0592f: Pull complete
Digest: sha256:251778378b362adff4e93b99d423848216e4823965dabd1bd4c41dbb4c79afcf
Status: Image is up to date for cloudera/clusterdock:cdh580_cm581_secondary-node
INFO:clusterdock.cluster:Network (cluster) not present, creating it...
INFO:clusterdock.cluster:Successfully setup network (name: cluster).
INFO:clusterdock.cluster:Successfully started node-3.cluster (IP address: <IP_ADDRESS>).
INFO:clusterdock.cluster:Successfully started node-1.cluster (IP address: <IP_ADDRESS>).
INFO:clusterdock.cluster:Started cluster in 26.85 seconds.
INFO:clusterdock.topologies.cdh.actions:Changing server_host to node-1.cluster in /etc/cloudera-scm-agent/config.ini...
INFO:clusterdock.topologies.cdh.actions:Restarting CM agents...
cloudera-scm-agent is already stopped
Starting cloudera-scm-agent: [  OK  ]
Stopping cloudera-scm-agent: [  OK  ]
Starting cloudera-scm-agent: [  OK  ]
INFO:clusterdock.topologies.cdh.actions:Waiting for Cloudera Manager server to come online...
INFO:clusterdock.topologies.cdh.actions:Detected Cloudera Manager server after 108.39 seconds.
INFO:clusterdock.topologies.cdh.actions:CM server is now accessible at http://hdp-test-02.hpls.local:32769
INFO:clusterdock.topologies.cdh.cm:Detected CM API v13.
INFO:clusterdock.topologies.cdh.cm_utils:Updating database configurations...
INFO:clusterdock.topologies.cdh.cm:Updating NameNode references in Hive metastore...

[root@vm-02 ~]# docker ps -a
CONTAINER ID        IMAGE                                                        COMMAND                  CREATED             STATUS                      PORTS                                              NAMES
026bab52e24e        docker.io/cloudera/clusterdock:cdh580_cm581_secondary-node   "/sbin/init"             3 minutes ago       Up 3 minutes                                                                   cocky_clarke
46bf9a62c5b3        docker.io/cloudera/clusterdock:cdh580_cm581_primary-node     "/sbin/init"             3 minutes ago       Up 3 minutes                <IP_ADDRESS>:32775->7180/tcp, <IP_ADDRESS>:32774->8888/tcp   romantic_hamilton
25367e5e6e93        docker.io/cloudera/clusterdock:latest                        "python ./bin/star..."   3 minutes ago       Up 3 minutes                                                                   vigilant_minsky
81b596f7fe27        docker.io/cloudera/clusterdock:latest                        "python ./bin/hous..."   10 minutes ago      Exited (0) 10 minutes ago                                                      gracious_hamilton
Login to CM
2) Why ALL services installed? But I have specified  --include-service-types=HDFS,YARN,ZOOKEEPER
3) At Host Page, why only 2 nodes? But I have specified --primary-node=node-1 --secondary-nodes=node-{2..4}
node-1.cluster 	<IP_ADDRESS> 	22 Role(s)
HBase Master
HDFS Balancer
HDFS NameNode
HDFS SecondaryNameNode
Hive Gateway
Hive Metastore Server
HiveServer2
Hue Server
Impala Catalog Server
Impala StateStore
Key-Value Store Indexer Lily HBase Indexer
Cloudera Management Service Alert Publisher
Cloudera Management Service Event Server
Cloudera Management Service Host Monitor
Cloudera Management Service Service Monitor
Oozie Server
Solr Server
Spark Gateway
Spark History Server
YARN (MR2 Included) JobHistory Server
YARN (MR2 Included) ResourceManager
ZooKeeper Server
node-2.cluster 	<IP_ADDRESS> 	6 Role(s)
HBase RegionServer
HDFS DataNode
Hive Gateway
Impala Daemon
Spark Gateway
YARN (MR2 Included) NodeManager

If it didn't timeout, sounds like it's still running. Removing services is only done once CM setup is complete, thus why you still saw them there.

Ah, part of your problem is that you need to quote arguments if you're passing in --secondary-nodes that use Bash expansion. That is, --secondary-nodes='node-{2..4}', not --secondary-nodes=node-{2..4}. That would explain why you're only seeing two nodes, though you're specifying three (not four).

oops ..  corrected --secondary-nodes='node-{2..4}'   but still got the same errors.
rm: cannot remove /dfs/dn/current/BP-637181590-<IP_ADDRESS>-1469835153284/current/finalized/subdir0/subdir0': Directory not empty rm: cannot remove /dfs/dn/current/BP-637181590-<IP_ADDRESS>-1469835153284/current/finalized/subdir0/subdir0': Directory not empty
rm: cannot remove /dfs/dn/current/BP-637181590-<IP_ADDRESS>-1469835153284/current/finalized/subdir0/subdir1': Directory not empty rm: cannot remove /dfs/dn/current/BP-637181590-<IP_ADDRESS>-1469835153284/current/finalized/subdir0/subdir1': Directory not empty
rm: cannot remove `/dfs/dn/current/BP-637181590-<IP_ADDRESS>-1469835153284/current/finalized/subdir0/subdir2': Directory not empty
Fatal error: run() received nonzero return code 1 while executing!
Requested: rm -rf /var/lib/cloudera-scm-agent/uuid /dfs*/dn/current/*
Executed: /bin/bash -l -c "rm -rf /var/lib/cloudera-scm-agent/uuid /dfs*/dn/current/*"
Aborting.
rm: cannot remove `/dfs/dn/current/BP-637181590-<IP_ADDRESS>-1469835153284/current/finalized/subdir0/subdir2': Directory not empty
Fatal error: run() received nonzero return code 1 while executing!
Requested: rm -rf /var/lib/cloudera-scm-agent/uuid /dfs*/dn/current/*
Executed: /bin/bash -l -c "rm -rf /var/lib/cloudera-scm-agent/uuid /dfs*/dn/current/*"
Aborting.
Fatal error: One or more hosts failed while executing task '_task'
Aborting.
Retried with 2 nodes, but stuck at Hive logging ..
[root@vm-02 ~]# clusterdock_run ./bin/housekeeping nuke
-bash: B: command not found
INFO:housekeeping:Removing all containers on this host...
INFO:housekeeping:Successfully removed all containers on this host.
INFO:housekeeping:Removing all user-defined networks on this host...
INFO:housekeeping:Successfully removed all user-defined networks on this host.
INFO:housekeeping:Clearing container entries from /etc/hosts...
INFO:housekeeping:Successfully cleared container entries from /etc/hosts.
INFO:housekeeping:Restarting Docker daemon...
INFO:housekeeping:Successfully nuked this host.
[root@vm-02 ~]# docker ps -a
CONTAINER ID        IMAGE                                   COMMAND                  CREATED             STATUS                      PORTS               NAMES
0d4936fe85f4        docker.io/cloudera/clusterdock:latest   "python ./bin/hous..."   14 seconds ago      Exited (0) 10 seconds ago                       festive_edison
[root@vm-02 ~]# clusterdock_run ./bin/start_cluster -n testing cdh --include-service-types=HDFS,YARN,ZOOKEEPER --dont-start-cluster        -bash: B: command not found
INFO:clusterdock.cluster:Network (testing) not present, creating it...
INFO:clusterdock.cluster:Successfully setup network (name: testing).
INFO:clusterdock.cluster:Successfully started node-2.testing (IP address: <IP_ADDRESS>).
INFO:clusterdock.cluster:Successfully started node-1.testing (IP address: <IP_ADDRESS>).
INFO:clusterdock.cluster:Started cluster in 26.68 seconds.
INFO:clusterdock.topologies.cdh.actions:Changing server_host to node-1.testing in /etc/cloudera-scm-agent/config.ini...
INFO:clusterdock.topologies.cdh.actions:Restarting CM agents...
cloudera-scm-agent is already stopped
Starting cloudera-scm-agent: [  OK  ]
Stopping cloudera-scm-agent: [  OK  ]
Starting cloudera-scm-agent: [  OK  ]
INFO:clusterdock.topologies.cdh.actions:Waiting for Cloudera Manager server to come online...
INFO:clusterdock.topologies.cdh.actions:Detected Cloudera Manager server after 88.23 seconds.
INFO:clusterdock.topologies.cdh.actions:CM server is now accessible at http://test.local:32779
INFO:clusterdock.topologies.cdh.cm:Detected CM API v13.
INFO:clusterdock.topologies.cdh.cm_utils:Updating database configurations...
INFO:clusterdock.topologies.cdh.cm:Updating NameNode references in Hive metastore...

Unless it returns an error saying it's timed out, it looks like it's still running... How long do you let it stay at that NameNode references step before giving up on it? Also, wanna look in Cloudera Manager to see if the command is running?

http://<IP_ADDRESS>:32781/cmf/process/67/logs?filename=stdout.log
HTTP ERROR 502
Problem accessing /cmf/process/67/logs. Reason:
BAD_GATEWAY

Login to CM, aborted Hive commands ... then
INFO:clusterdock.topologies.cdh.cm:Updating NameNode references in Hive metastore...
WARNING:clusterdock.topologies.cdh.cm:Failed to update NameNode references in Hive metastore (command returned : 'HiveUpdateLocationServiceCommand' (id: 231; active: False; success: False)).
INFO:clusterdock.topologies.cdh.actions:Removing service ks_indexer from Cluster 1 (clusterdock)...
INFO:clusterdock.topologies.cdh.actions:Removing service impala from Cluster 1 (clusterdock)...
INFO:clusterdock.topologies.cdh.actions:Removing service hbase from Cluster 1 (clusterdock)...
INFO:clusterdock.topologies.cdh.actions:Removing service solr from Cluster 1 (clusterdock) ...
INFO:clusterdock.topologies.cdh.actions:Removing service spark_on_yarn from Cluster 1 (clusterdock)...
INFO:clusterdock.topologies.cdh.actions:Removing service oozie from Cluster 1 (clusterdock)...
INFO:clusterdock.topologies.cdh.actions:Removing service hue from Cluster 1 (clusterdock)..
INFO:clusterdock.topologies.cdh.actions:Removing service hive from Cluster 1 (clusterdock) ...
INFO:clusterdock.topologies.cdh.actions:Deploying client configuration...
INFO:clusterdock.topologies.cdh.actions:We'd love to know what you think of our CDH topology for clusterdock! Please direct any feedback to our community forum at http://tiny.cloudera.com/hadoop-01-forum.
INFO:start_cluster:CDH cluster started in 15 min, 22 sec.
But  ..when i start HDFS  ... also getting the same errors
http://<IP_ADDRESS>:32781/cmf/process/68/logs?filename=stdout.log
HTTP ERROR 502
Problem accessing /cmf/process/68/logs. Reason:
BAD_GATEWAY
Powered by Jetty://

Reimage to Ubuntu 14.  No problems at all.
Thanks


Fix Race Condition in Parallel AWS Lambda Server Mode Tests

When the Server Mode tests are run in parallel, it's possible for multiple tests to call get_role_name at approximately the same time.  When this happens at the beginning of a test run--before my-role has been created--the call to iam.get_role can fail for more than one caller, all of whom then attempt to execute iam.create_role.  The first call to iam.create_role will succeed, but all others will result in an EntityAlreadyExistsException, which was not handled by the original code and would result in the test failing.
This updated code wraps the entire process in an infinite loop and adds an exception clause for the iam.create_role call, which simply passes, allowing the loop to attempt the iam.get_role call again.
An explicit test case has been added, which was failing 100% of the time prior to the included get_role_name code changes.  Unfortunately, neither the boto3 client nor our own IAMBackend class are thread-safe, so the test itself also includes an infinite retry loop in order to be deterministic and avoid creating another flaky test that fails intermittently.
Note: Normally, infinite loops like this would be a Bad Idea, but this code is only run as part of the test suite (and not moto itself) and I simply encountered too many multithreading edge cases to find a suitable alternative.
Closes #5642

Codecov Report

Merging #5643 (c617a41) into master (d560ff0) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #5643   +/-   ##
=======================================
  Coverage   96.20%   96.20%
=======================================
  Files         742      742
  Lines       72683    72683
=======================================
  Hits        69923    69923
  Misses       2760     2760

Flag
Coverage Δ

servertests
36.93% <ø> (ø)

unittests
96.14% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


cdba-power: add tool to control power-on/-off

Add simple tool reusing CDBA code to power boards on and off.

oh whoops automerge is unhappy about unsigned  signatures


👾 Add dependabot rule to bump CAPI Operator dependency as early as possible

What this PR does / why we need it:
With this change we will get dependency bump early (which can be just a notification in case of incompatible changes), including CAPI version and CAPI Operator version for CAPIProvider implementation.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #384
Special notes for your reviewer:
Checklist:

[ ] squashed commits into logical changes
[ ] includes documentation
[ ] adds unit tests
[ ] adds or updates e2e tests

Can we please use a set of labels defined in our contributing guides https://docs.rancher-turtles.com/docs/contributing/guidelines#pr-submission-guidelines in PRs? That is mostly because it aligns with upstream and has cleaner release notes.


[7.x] File::guessedExtension() method

This PR provides a File::guessedExtension() method which could be useful in case we want to know the extension of the file which actually doesn't have one.
>>> File::name(public_path('image.png'))
=> "image"
>>> File::extension(public_path('image.png'))
=> "png"
>>> File::guessedExtension(public_path('image.png'))
=> "png"
>>> File::copy(public_path('image.png'), public_path('image'))
=> true
>>> File::name(public_path('image'))
=> "image"
>>> File::extension(public_path('image'))
=> ""
>>> File::guessedExtension(public_path('image'))
=> "png"

Under the hood, it guesses the extension by the mime-type.

It this PR gets approved, I'll provide tests.

>>> File::guessedExtension(public_path('image.png'))
=> "png"

But your last example actually has an extension? I think that defeats the purpose?

Sorry, that was a typo.

This will not work if I use Filesystem component outside of Laravel, because symfony/mime package is missing in composer.json:
https://github.com/laravel/framework/blob/7.x/src/Illuminate/Filesystem/composer.json

Don't we already have a method for guessing extensions in the framework?

https://github.com/laravel/framework/blob/v7.13.0/src/Illuminate/Http/Testing/MimeType.php


lit-html 1.3.0 Release Plan

1.3.0 Release Plan
Release Plan that outlines the focused tasks for lit-html 1.3.0.
Milestone
Notable Changes

Enhancements

[x] Restore Trusted Types support
[ ] Set type in package.json to "module"
[ ] Add a generic for directive factories to type check against
[ ] Export shadyTemplateFactory

Infrastructure

[x] Upgrade TypeDoc and fix API docs

Documentation
N/A
Release Process

[ ] 1.3.0 Release: Run Google Internal Tests
[ ] 1.3.0 Release Notes
[ ] Verify 1.3.0 CHANGELOG
[ ] 1.3.0 Prelease

internal tests are :+1:

Generics for directives aren't really critical, and it seems like there's only two built-ins that would use it, so I'm doing to bump it to another release.


hello_world.py in https://14946363-23cd-404a-a700-73e1a60ec29c.internal.dedicated.h2o.ai/#hello_world needs to add main to the import

I was trying to learn how to write an app and notice a problem with hello_world.py:
from h2o_wave import site, ui
The problem is with the import, it needs to import main as well.
Quick fix is just to do this:
from h2o_wave import site, ui, main

Hey @wendycwong!
The main import is missing because hello_world example is a Wave script and not a Wave app.


Dialog radio button considered internal by OakPAL

The component generator is creating radio buttons with sling:resourceType="granite/ui/components/coral/foundation/form/radio".  However, OakPAL is flagging this as an error.
[ERROR]    +- <MAJOR> /apps/aem-activate/components/content/demo-comp/cq:dialog/content/items/tabs/items/tab-1/items/column/items/radioTest/items/radio1 [restricted resource type]: /libs/granite/ui/components/coral/foundation/form/radio is implicitly marked INTERNAL [aem-activate.ui.apps-5.1.0-SNAPSHOT.zip]
[ERROR]    +- <MAJOR> /apps/aem-activate/components/content/demo-comp/cq:dialog/content/items/tabs/items/tab-1/items/column/items/radioTest/items/radio2 [restricted resource type]: /libs/granite/ui/components/coral/foundation/form/radio is implicitly marked INTERNAL [aem-activate.ui.apps-5.1.0-SNAPSHOT.zip]

@adamcin ^^^

sure enough, the radio resource type isn’t even available in cloud service sdk, and instead, radiogroup is there and explicitly marked granite:FinalArea , which allows for the usage that is failing in the build