.NetCore on Linux - Profiler doesn't start and doesn't produce any log
Problem
I see the TestListener entry in the Cockpit Live agents attached to my application under test, but the Profiler doesn’t start.
Even when I enable logs to file nothing happens despite the permissions to the executables, files and folders look good.
Cause
Sometimes there are missing dependencies on Linux, and the Profiler cannot tell us about it since its process fails immediately before the initialization of the logger.
Solution
You can use the Linux ldd
command to show dependencies of the agent’s library on Linux (see ldd(1) - Linux manual page )
ldd libSL.DotNet.ProfilerLib.Linux.so
# OR ldd <path-to-agent>/libSL.DotNet.ProfilerLib.Linux.so
It will produce a status of the agent dependencies like in the screenshot below
If you cannot resolve the missing dependency, don't hesitate to get in touch with Sealights Support.