-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
containerd mount is invalid #5064
Comments
Yes, debugging is supported in Gitpod. See this demonstration app over at https://community.gitpod.io/t/debugging-net-unit-tests/2928/10 from March. It looks like something is not working correctly related to containerd and there has been a regression? |
I've been able to reproduce this in https://github.com/ghuntley/gitpod-dotnet-csharp-breakpoints.
The |
We're impacted by this bug as well. |
I'm absolutely amazed to see dotnet/csharp digging this path out. It's something that should not necessarily be possible. Either way, this is not so much a regression in containerd but most likely a bug in dotnet, or our own workspacekit. I have yet to find out where this path is coming from - I'm looking around https://github.com/dotnet/roslyn/blob/1cca63b5d8ea170f8d8e88e1574aa3ebe354c23b/src/Compilers/Core/MSBuildTask/Utilities.cs#L174-L176 right now. Does anyone know this codebase well enough to be able to point me to where those paths come from? |
I suspect it's the I don't expect the code that implements this location bit to be open source, no? I've seen there's a |
/schedule |
/assign |
It is indeed open-source under MIT over at https://github.com/dotnet/runtime.
I've got some contacts, going to ask. Park for 12 hours? Twooted at https://twitter.com/GeoffreyHuntley/status/1423561511285362690 Also going to generate a https://msbuildlog.com/ support bundle and attach shortly. |
Attached you will find a msbuild binlog: Here's how you configure vscode to generate them @csweichel: |
From https://live.msbuildlog.com/ and the attached binlog: |
If you want to repro this then click this link https://gitpod.io/#https://github.com/ghuntley/gitpod-dotnet-csharp-breakpoints |
Setting
v5.0.205 of .NET
|
Setting .. and Can you check what |
I've modified @ghuntley's example like this:
Because of this very issue I could not build it in the workspace directly.
|
strace(80) available at https://gist.github.com/ghuntley/83c981cc9c038a52a447753c5ccb55e2 A larger strace(365) available at https://gist.github.com/ghuntley/2eb8a54146c4882c0ada767d3e1b346c $ strace -s 80 -f dotnet build > strace.log 2>&1
$ ack containerd strace.log
read(7, "48 8:1 /var/lib/containerd/io.containerd.grpc.v1.cri/sandboxes/c489f09f69190bb17"..., 1024) = 1024
read(7, "48 8:1 /var/lib/containerd/io.containerd.grpc.v1.cri/sandboxes/c489f09f69190bb17"..., 1024) = 1024
[pid 2635] read(14, "000 r--p 00000000 00:1b9f 4396653 /run/containerd/io.containerd"..., 1024) = 1024
[pid 2635] read(14, "n/containerd/io.containerd.runtime.v2.task/k8s.io/3d4002b8437b0021f2b69774ef4569"..., 1024) = 1024
[pid 2635] read(14, "6e29a2000 ---p 001e7000 00:1b9f 4396346 /run/containerd/io.cont"..., 1024) = 1024
[pid 2635] read(14, "f 3616988 /run/containerd/io.containerd.runtime.v2.task/k8s.io/"..., 1024) = 1024
[pid 2635] read(14, "2cf1000 r--p 001cf000 00:1b9f 3617058 /run/containerd/io.contai"..., 1024) = 1024
[pid 2635] read(14, "003000 00:1b9f 4396387 /run/containerd/io.containerd.runtime.v2"..., 1024) = 1024
[pid 2635] read(14, "000 r--p 00000000 00:1b9f 4396653 /run/containerd/io.containerd"..., 1024) = 1024
[pid 2635] read(14, "n/containerd/io.containerd.runtime.v2.task/k8s.io/3d4002b8437b0021f2b69774ef4569"..., 1024) = 1024
[pid 2635] read(14, "6e29a2000 ---p 001e7000 00:1b9f 4396346 /run/containerd/io.cont"..., 1024) = 1024
[pid 2635] read(14, "f 3616988 /run/containerd/io.containerd.runtime.v2.task/k8s.io/"..., 1024) = 1024
[pid 2635] read(14, "2cf1000 r--p 001cf000 00:1b9f 3617058 /run/containerd/io.contai"..., 1024) = 1024
[pid 2635] read(14, "003000 00:1b9f 4396387 /run/containerd/io.containerd.runtime.v2"..., 1024) = 1024
[pid 2635] read(17, "48 8:1 /var/lib/containerd/io.containerd.grpc.v1.cri/sandboxes/c489f09f69190bb17"..., 1024) = 1024
[pid 2635] read(17, "48 8:1 /var/lib/containerd/io.containerd.grpc.v1.cri/sandboxes/c489f09f69190bb17"..., 1024) = 1024
[pid 2635] read(95, "rd/io.containerd.runtime.v2.task/k8s.io/3d4002b8437b0021f2b69774ef45692ffef0052b"..., 4096) = 3990
[pid 2635] <... read resumed>"0:1b9f 7754111 /run/containerd/io.containerd.runtime.v2.task/k8"..., 4096) = 4096
[pid 2635] <... read resumed>"/run/containerd/io.containerd.runtime.v2.task/k8s.io/3d4002b8437b0021f2b69774ef4"..., 4096) = 4096
[pid 2635] <... read resumed>"184 /run/containerd/io.containerd.runtime.v2.task/k8s.io/3d4002"..., 4096) = 4096
[pid 2635] <... read resumed>"/run/containerd/io.containerd.runtime.v2.task/k8s.io/3d4002b8437b0021f2b69774ef4"..., 4096) = 4096
[pid 2635] read(95, " /run/containerd/io.containerd.runtime.v2.task/k8s.io/3d4002b8437b0021f2b69774ef"..., 4096) = 4029
[pid 2635] <... read resumed>" /run/containerd/io.containerd.runtime.v2.task/k8s.io/3d4002b8437b0021f2b69"..., 4096) = 4044
[pid 2635] <... read resumed>"123 /run/containerd/io.containerd.runtime.v2.task/k8s.io/3d4002"..., 4096) = 4096
[pid 2635] <... read resumed>" /run/containerd/io.containerd.runtime.v2.task/k8s.io/3d4002b8437b0021f2b69774ef"..., 4096) = 4096
[pid 2635] <... read resumed>" 00:1b9f 4396151 /run/containerd/io.containerd.runtime.v2.task/"..., 4096) = 803
[pid 2654] read(7, "48 8:1 /var/lib/containerd/io.containerd.grpc.v1.cri/sandboxes/c489f09f69190bb17"..., 1024) = 1024
[pid 2654] <... read resumed>"48 8:1 /var/lib/containerd/io.containerd.grpc.v1.cri/sandboxes/c489f09f69190bb17"..., 1024) = 1024
[pid 2654] <... read resumed>"000 r--p 00000000 00:1b9f 4396653 /run/containerd/io.containerd"..., 1024) = 1024
[pid 2654] <... read resumed>"n/containerd/io.containerd.runtime.v2.task/k8s.io/3d4002b8437b0021f2b69774ef4569"..., 1024) = 1024
[pid 2654] <... read resumed>"c2def4000 ---p 001e7000 00:1b9f 4396346 /run/containerd/io.cont"..., 1024) = 1024
[pid 2654] <... read resumed>"f 3616988 /run/containerd/io.containerd.runtime.v2.task/k8s.io/"..., 1024) = 1024
[pid 2654] <... read resumed>"e243000 r--p 001cf000 00:1b9f 3617058 /run/containerd/io.contai"..., 1024) = 1024
[pid 2654] <... read resumed>"003000 00:1b9f 4396387 /run/containerd/io.containerd.runtime.v2"..., 1024) = 1024
[pid 2654] <... read resumed>"000 r--p 00000000 00:1b9f 4396653 /run/containerd/io.containerd"..., 1024) = 1024
[pid 2654] <... read resumed>"n/containerd/io.containerd.runtime.v2.task/k8s.io/3d4002b8437b0021f2b69774ef4569"..., 1024) = 1024
[pid 2654] <... read resumed>"c2def4000 ---p 001e7000 00:1b9f 4396346 /run/containerd/io.cont"..., 1024) = 1024
[pid 2654] <... read resumed>"f 3616988 /run/containerd/io.containerd.runtime.v2.task/k8s.io/"..., 1024) = 1024
[pid 2654] read(17, "e243000 r--p 001cf000 00:1b9f 3617058 /run/containerd/io.contai"..., 1024) = 1024
[pid 2654] <... read resumed>"003000 00:1b9f 4396387 /run/containerd/io.containerd.runtime.v2"..., 1024) = 1024
[pid 2654] read(18, "48 8:1 /var/lib/containerd/io.containerd.grpc.v1.cri/sandboxes/c489f09f69190bb17"..., 1024) = 1024
[pid 2654] <... read resumed>"48 8:1 /var/lib/containerd/io.containerd.grpc.v1.cri/sandboxes/c489f09f69190bb17"..., 1024) = 1024
[pid 2654] <... read resumed>"run/containerd/io.containerd.runtime.v2.task/k8s.io/3d4002b8437b0021f2b69774ef45"..., 4096) = 4096
[pid 2654] <... read resumed>"000-7f4bb4e62000 rw-p 00000000 00:1b9f 7754102 /run/containerd/"..., 4096) = 4096
[pid 2654] <... read resumed>" /run/containerd/io.containerd.runtime.v2.task/k8s.io/3d4002b8437b0021f2b69774e"..., 4096) = 4096
[pid 2677] stat("/run/containerd/io.containerd.runtime.v2.task/k8s.io/3d4002b8437b0021f2b69774ef45692ffef0052bcb82b082ebf2ac2d94fe2f2e/rootfs/home/gitpod/dotnet/dotnet", <unfinished ...>
[pid 2677] lstat("/run/containerd/io.containerd.runtime.v2.task/k8s.io/3d4002b8437b0021f2b69774ef45692ffef0052bcb82b082ebf2ac2d94fe2f2e/rootfs/home/gitpod/dotnet/dotnet", 0x7f372fffcdd0) = -1 ENOENT (No such file or directory)
/home/gitpod/dotnet/sdk/5.0.205/Roslyn/Microsoft.CSharp.Core.targets(71,5): error MSB6004: The specified task executable location "/run/containerd/io.containerd.runtime.v2.task/k8s.io/3d4002b8437b0021f2b69774ef45692ffef0052bcb82b082ebf2ac2d94fe2f2e/rootfs/[pid 2680] <... sched_yield resumed>) = 0
[pid 2677] sched_yield(/home/gitpod/dotnet/sdk/5.0.205/Roslyn/Microsoft.CSharp.Core.targets(71,5): error MSB6004: The specified task executable location "/run/containerd/io.containerd.runtime.v2.task/k8s.io/3d4002b8437b0021f2b69774ef45692ffef0052bcb82b082ebf2ac2d94fe2f2e/rootfs/ <unfinished ...> |
It would seem that I'll file an issue. |
I'm facing the same issue with dotnet build on #5191 Is there a temporary work around we can work with until this is fixed? |
@lawrencetaur You can run it inside a Docker container in the workspace. For example:
|
This works thanks! |
Is there any news related to the fix of this bug? Thanks! |
the error is
is suport debug in gitpod?
The text was updated successfully, but these errors were encountered: