07 Jul 2024
01:06 PM
- last edited on
08 Aug 2024
12:12 PM
by
Michal_Gebacki
Hi guys,
Prospect deploy their node.js code from zip package on Linux web app.
There is no startup command (pm2....) that we can hook on the OA download and set the LD_PRELOAD (link).
We see in the web app log that its use docker run to start the application but there is no deploy command that we can add the OneAgent (link) with.
Any suggestion how to add OA in this case
Thanks for any input
Yos
08 Jul 2024 09:29 AM
Hi Yosi,
Maybe you could try setting LD_PRELOAD as an environment variable in the App Service level with the value of /opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so. This is where the installer places the library to be loaded. Then, in the custom startup script add a command to restart the node.js server and see if the OA gets picked up.
Regards,
George
08 Jul 2024 07:27 PM
Hi @g_kat
We have tried that with no success 🤔
Any other suggestions ?
Thanks in advance
Yos
09 Jul 2024 10:53 AM
Hi Yosi,
I don't have any other ideas besides that.
I guess you can SSH into the App and check whether the wrapper is downloaded correctly, this will confirm that the startup script works at least, since I have found the App logs insufficient at best.
Regards,
George