Dynatrace / dynatrace-api

BSD 3-Clause "New" or "Revised" License
102 stars 87 forks source link

Getting Error(No module named 'dynatrace.environment_v1') when I add endpoint on Ping plugin #67

Closed tushargks closed 3 years ago

tushargks commented 3 years ago

Getting Error(No module named 'dynatrace.environment_v1') when I add endpoint on Ping plugin: Not sure if i am doing something wrong, Please advise ASAP

Ping Version: 1.012 Type: ActiveGate extension Id: custom.remote.python.thirdparty_ping ping extension error

myieye commented 3 years ago

@dlopes7 Could you help out here maybe?

tushargks commented 3 years ago

@myieye @dlopes7

The port check extension is working fine on the same cluster, but seeing above error for Ping extension, could you please check and help me at the earliest

Thanks

myieye commented 3 years ago

I don't know a ton about extensions, but if it can't find a module, I'd assume that it's not deployed on the ActiveGate properly. Did you deploy the right zip file? Is it maybe corrupted? image

tushargks commented 3 years ago

@myieye

I am doing it on Linux server and yes the Extension is deployed on the Activegate under path: "/opt/dynatrace/remotepluginmodule/plugin_deployment"

Today I tried to deploy the same extension on different AG on the same cluster and it works, looks like its issue with the Active Gate, is there any location i can look for the logs on the not working AG? Weird part is the other extensions are working on this AG

myieye commented 3 years ago

Here's the troubleshooting page. Right at the top it tells you where to find logs: https://www.dynatrace.com/support/help/extend-dynatrace/extensions/troubleshooting/troubleshoot-extensions/

myieye commented 3 years ago

dynatrace.environment_v1 is packaged in the extension for both the ping and port extensions. image

So, I'm not sure how it could be missing unless it's corrupted. I'm assuming you tried redownloading the zip and redeploying it on both the cluster and AG?

tushargks commented 3 years ago

@myieye yes i re done all the steps but same results, not sure how to proceed from here

myieye commented 3 years ago

I've reached out to several developers now. Will let you know when I learn anything.

dlopes7 commented 3 years ago

@tushargks this is likely an issue with different extensions using the same dynatrace package in different versions.

Make sure you have all synthetic extensions (ping, port, dns) on the latest version on that AG, the latest version uses the same dynatrace package version.

Also when troubleshooting this please take a look at the plugin logs, and maybe attach the exception here. You would have seen a stacktrace that indicates that the ping extension is trying to import code from another extension.

tushargks commented 3 years ago

@dlopes7

This works, thanks you! Could you let me know what directory i can find the plugin logs, i did check under /var/log/dynatrace but no plugin directory available to check the logs

myieye commented 3 years ago

@dlopes7 Thanks for the help!!

@tushargks As stated on the troubleshooting page, the logs should be in /var/lib/dynatrace/remotepluginmodule/log/remoteplugin

myieye commented 3 years ago

Closing as @tushargks's problem has been solved by using the most current version of all extensions so that there aren't conflicting dependency versions.