Error attaching to process
Unable to find the process with the PID 1676: Maybe it is not a .NET/.NET Core 3.0+ process or administrative rights are required to attach to this process. To profile a .NET Core 2.2 or earlier application, start this application under profiling using the 'start' command.
It's a dotnet 5 service running as PID 1676 (confirmed just before running dottrace). This is inside a docker container, as root.
Please sign in to leave a comment.
Hello,
Thank you for contacting us.
Please describe your scenario in more detail. Write what do you do step by step.
Describe how you run your process in docker container?
Describe how you run dotTrace in docker container?
The issue was resolved by changing the process ID specified in dotTrace to "1". I was unaware that the endpoint process for a docker image is always mapped to process ID "1", which seems to conflict with the docker CLI tool which returns the native process ID. Once I started specifying PID 1 I was able to attach successfully.
Hello,
We are glad that problem was solved.
Please tell us what process PID was in dotTrace after performing "dotTrace --attach" command?
Also, could you please send us all output from the console after you finished profiling scenario?
dotTrace does not appear to print out the process ID so I'm not sure what you're asking for there? The issue has been resolved.