Closed livarcocc closed 3 years ago
Please provide the source files and a build script that demonstrates the failure.
Reply from CircleCI:
Exit code 137 typically means that your process is getting killed because it is running out of memory.
Could that point to potentially memory leak in the toolchain?
I have 33 projects in the .sln. I can build the .csproj individually without the error MSB6006
.
Hey Did anybody solved this error? Because I am getting the same error whilst trying to build nopcommerce on centos with dotnet.
Hey Did anybody solved this error? Because I am getting the same error whilst trying to build nopcommerce on centos with dotnet.
How much RAM do you have? In my situation after restarting the server everything was ok. After some time, build was falling with this error until I restart the server.
This exact same error occurs on my TeamCity build agent that runs on Ubuntu as well.
My observation is that I have sonarqube analyzer step enabled
when this error in dotnet build
occurs.
If I disable that step, I haven't encountered the error. 🤔
Although I watched the memory usage while the build is running and it didn't peak, I also think it might be something to do with memory.
In my situation after restarting the server everything was ok. After some time, build was falling with this error until I restart the server.
What on earth is happening.. been trying to solve this for days and solution is just to restart the server, wish I tried your suggestion first time I saw it!!
Facing the same issue. Any plans of fixing it?
Free up more space for Docker.
Wow, glad I stumbled up on....a restart fixed it but I was really scratching my head since this worked for me the very first time I tried!
Happend right now on our azure build agents:
`##[error] [174.86s] /tmp/hmi/pennywise2/hmi/dotnet_sdk_freebsd_x64/sdk/5.0.100-dev/Roslyn/Microsoft.CSharp.Core.targets(70,5): error MSB6006: "csc.dll" exited with code 137. [/usr/home/msbuild/agent02/_work/2/s/TcHmiServer/_build/freebsd-x64/Microsoft.NET/TcHmiExtensionContainer/Core/TcHmiExtensionContainer.Core/TcHmiExtensionContainer.Core.csproj]
[175.18s] [175.18s] Build FAILED. [175.18s] [175.18s] /usr/home/msbuild/agent02/_work/2/s/TcHmiServer/_build/freebsd-x64/Microsoft.NET/TcHmiExtensionContainer/Core/TcHmiExtensionContainer.Core/TcHmiExtensionContainer.Core.proj(6,3): warning MSB4011: "/tmp/hmi/pennywise2/hmi/dotnet_sdk_freebsd_x64/sdk/5.0.100-dev/Sdks/Microsoft.NET.Sdk/Sdk/Sdk.props" cannot be imported again. It was already imported at "/usr/home/msbuild/agent02/_work/2/s/TcHmiServer/_build/freebsd-x64/Microsoft.NET/TcHmiExtensionContainer/Core/TcHmiExtensionContainer.Core/TcHmiExtensionContainer.Core.csproj". This is most likely a build authoring error. This subsequent import will be ignored. [175.18s] /usr/home/msbuild/agent02/_work/2/s/TcHmiServer/_build/freebsd-x64/Microsoft.NET/TcHmiExtensionContainer/Core/TcHmiExtensionContainer.Core/TcHmiExtensionContainer.Core.csproj : warning MSB4011: "/tmp/hmi/pennywise2/hmi/dotnet_sdk_freebsd_x64/sdk/5.0.100-dev/Sdks/Microsoft.NET.Sdk/Sdk/Sdk.targets" cannot be imported again. It was already imported at "/usr/home/msbuild/agent02/_work/2/s/TcHmiServer/_build/freebsd-x64/Microsoft.NET/TcHmiExtensionContainer/Core/TcHmiExtensionContainer.Core/TcHmiExtensionContainer.Core.proj (202,3)". This is most likely a build authoring error. This subsequent import will be ignored. [175.18s] /usr/home/msbuild/agent02/_work/2/s/TcHmiServer/_build/freebsd-x64/Microsoft.NET/TcHmiExtensionContainer/Core/TcHmiExtensionContainer.Core/TcHmiExtensionContainer.Core.proj(6,3): warning MSB4011: "/tmp/hmi/pennywise2/hmi/dotnet_sdk_freebsd_x64/sdk/5.0.100-dev/Sdks/Microsoft.NET.Sdk/Sdk/Sdk.props" cannot be imported again. It was already imported at "/usr/home/msbuild/agent02/_work/2/s/TcHmiServer/_build/freebsd-x64/Microsoft.NET/TcHmiExtensionContainer/Core/TcHmiExtensionContainer.Core/TcHmiExtensionContainer.Core.csproj". This is most likely a build authoring error. This subsequent import will be ignored. [175.18s] /usr/home/msbuild/agent02/_work/2/s/TcHmiServer/_build/freebsd-x64/Microsoft.NET/TcHmiExtensionContainer/Core/TcHmiExtensionContainer.Core/TcHmiExtensionContainer.Core.csproj : warning MSB4011: "/tmp/hmi/pennywise2/hmi/dotnet_sdk_freebsd_x64/sdk/5.0.100-dev/Sdks/Microsoft.NET.Sdk/Sdk/Sdk.targets" cannot be imported again. It was already imported at "/usr/home/msbuild/agent02/_work/2/s/TcHmiServer/_build/freebsd-x64/Microsoft.NET/TcHmiExtensionContainer/Core/TcHmiExtensionContainer.Core/TcHmiExtensionContainer.Core.proj (202,3)". This is most likely a build authoring error. This subsequent import will be ignored.
[175.18s] 4 Warning(s) [175.18s] 3 Error(s) `
I can reproduce this issue sporadically while building on a machine with 2gb of ram. I measured manually the ram usage on Task Manager, it was around 3.5gb.
So what I did is upgrade my builder instance to 4gb ram, and never encounter this issue again
Closing this issue as we've seen no reply to the request for more information. If you are able to get the requested information, please add it to the issue and we will retriage it.
Reply from CircleCI:
Exit code 137 typically means that your process is getting killed because it is running out of memory.
Could that point to potentially memory leak in the toolchain?
Thanks. This was the root of my problem. I was running dotnet publish in docker and encountered the same issue. My problem was I had limited WSL2 on my machine to only use 2GB RAM max. Docker for Windows uses WSL2 in the background so removing this limitation solved my issue (y)
Hi Everyone, Did anybody solve this issue? I have a same issue. I ran build docker in local without error. But when I run in pipeline, It raised error. I increase memory to 6GB RAM, but it is not work. I am being upgrade from .net 2.2 to .net 6.
@khteh commented on Thu Oct 10 2019
Steps to reproduce
Expected behavior
Actual behavior
Environment data
dotnet --info
output: