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
0
2 comments

Hi!

This issue usually happens when there are some issues with access rights. Please make sure that:

  • The dotMemory process has access to the ‘temp’ folder of the profiled process. 
  • The profiled process has access to the profiler .dll files.
    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. 

 

 

1

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!

1

Please sign in to leave a comment.