Unable to start profiling. Profiler attach failed (HRESULT: 0x8007007E) in Centos7
Hello,
I have a dotnet application running in a Centos7 server. And I am using the following command,
./dotMemory.sh get-snapshot 913 --save-to-dir=Snapshots
This is resulting in the error.
Found 1 process(es):
[913] dotnet
Attaching to [913] dotnet runtime...
---
Unable to start profiling. Profiler attach failed (HRESULT: 0x8007007E)
More Info = Dotnet 6
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Kernel version = 3.10.0-1160.119.1.el7.x86_64
CentOS version = CentOS Linux release 7.9.2009 (Core)
NOTE: Earlier I got this issue /lib64/libstdc++.so.6: version GLIBCXX_3.4.20' not found
Which I resolved using these steps:
wget https://repo.anaconda.com/archive/Anaconda3-2019.07-Linux-x86_64.sh
sh Anaconda3-2019.07-Linux-x86_64.sh
cp anaconda3/lib/libstdc++.so.6.0.26 /usr/lib64
rm /usr/lib64/libstdc++.so.6
ln -s /usr/lib64/libstdc++.so.6.0.26 /usr/lib64/libstdc++.so.6
Please sign in to leave a comment.
Hi!
This issue usually happens when there are some issues with access rights. Please make sure that:
You can do this by moving the folder with dotMemory command line tool to a folder accessible to the both apps and running dotmemory attach command from this folder.
Hello,
I moved both command line profiler and my application to the same directory, with the same permission and user rights.
It worked. Thanks a lot for the support!