cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Building demo plugin returns Status Code 400

jc__
Frequent Guest

Hi,

I am attempting to build a demo plugin in my Linux virtual machine and got this status code: status code: 400 {"error":{"code":400,"message":"VALIDATION_ERROR_VERSION_CONFLICT"}}

 

 

Below are the commands that I have executed:

 

[jc@jc demo_activegate_plugin]$ sudo plugin_sdk build_plugin
[sudo] password for jc:
Arguments=Namespace(deployment_dir=None, no_cert_ver=False, no_upload=False, plugin_dir='/home/jc/ag_plugin/examples/demo_activegate_plugin', server=None, token=None, token_file=None, verbose=False)
Starting oneagent_build_plugin
Checking plugin metadata: /home/jc/ag_plugin/examples/demo_activegate_plugin/plugin.json
Validating plugin.json against schema
"processTypeNames" is deprecated in custom extension JSON definition file. Please use "technologies" instead.
Plugin data: Plugin name=custom.remote.python.demo, version=1.3
Cleaning up previous build information
running bdist_wheel
running build
running build_py
creating build
creating build/lib
copying /home/jc/ag_plugin/examples/demo_activegate_plugin/demo_activegate_plugin.py -> build/lib
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/wheel
copying build/lib/demo_activegate_plugin.py -> build/bdist.linux-x86_64/wheel
running install_egg_info
running egg_info
creating /home/jc/ag_plugin/examples/demo_activegate_plugin/demo_activegate_plugin.egg-info
writing /home/jc/ag_plugin/examples/demo_activegate_plugin/demo_activegate_plugin.egg-info/PKG-INFO
writing dependency_links to /home/jc/ag_plugin/examples/demo_activegate_plugin/demo_activegate_plugin.egg-info/dependency_links.txt
writing requirements to /home/jc/ag_plugin/examples/demo_activegate_plugin/demo_activegate_plugin.egg-info/requires.txt
writing top-level names to /home/jc/ag_plugin/examples/demo_activegate_plugin/demo_activegate_plugin.egg-info/top_level.txt
writing manifest file '/home/jc/ag_plugin/examples/demo_activegate_plugin/demo_activegate_plugin.egg-info/SOURCES.txt'
reading manifest file '/home/jc/ag_plugin/examples/demo_activegate_plugin/demo_activegate_plugin.egg-info/SOURCES.txt'
writing manifest file '/home/jc/ag_plugin/examples/demo_activegate_plugin/demo_activegate_plugin.egg-info/SOURCES.txt'
Copying /home/jc/ag_plugin/examples/demo_activegate_plugin/demo_activegate_plugin.egg-info to build/bdist.linux-x86_64/wheel/demo_activegate_plugin-1.3-py3.8.egg-info
running install_scripts
creating build/bdist.linux-x86_64/wheel/demo_activegate_plugin-1.3.dist-info/WHEEL
creating 'dist/demo_activegate_plugin-1.3-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'demo_activegate_plugin.py'
adding 'demo_activegate_plugin-1.3.dist-info/METADATA'
adding 'demo_activegate_plugin-1.3.dist-info/WHEEL'
adding 'demo_activegate_plugin-1.3.dist-info/top_level.txt'
adding 'demo_activegate_plugin-1.3.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Leaving directory /tmp/tmpghifcabf
Created distribution of the plugin: [('bdist_wheel', '3.8', 'dist/demo_activegate_plugin-1.3-py3-none-any.whl')]
Installing plugin to temporary location
Processing /tmp/tmpghifcabf/dist/demo_activegate_plugin-1.3-py3-none-any.whl
Collecting requests>=2.6.0
Using cached requests-2.28.1-py3-none-any.whl (62 kB)
Collecting certifi>=2017.4.17
Using cached certifi-2022.9.24-py3-none-any.whl (161 kB)
Collecting charset-normalizer<3,>=2
Using cached charset_normalizer-2.1.1-py3-none-any.whl (39 kB)
Collecting urllib3<1.27,>=1.21.1
Using cached urllib3-1.26.12-py2.py3-none-any.whl (140 kB)
Collecting idna<4,>=2.5
Using cached idna-3.4-py3-none-any.whl (61 kB)
Installing collected packages: urllib3, idna, charset-normalizer, certifi, requests, demo-activegate-plugin
Successfully installed certifi-2022.9.24 charset-normalizer-2.1.1 demo-activegate-plugin-1.3 idna-3.4 requests-2.28.1 urllib3-1.26.12
WARNING: Running pip as root will break packages and permissions. You should install packages reliably by using venv: https://pip.pypa.io/warnings/venv
Copying plugin to target_directory: /opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3-1.26.12.dist-info
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/idna
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/idna-3.4.dist-info
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/charset_normalizer
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/charset_normalizer-2.1.1.dist-info
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/certifi
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/certifi-2022.9.24.dist-info
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/requests
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/requests-2.28.1.dist-info
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/demo_activegate_plugin-1.3.dist-info
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/bin
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/demo_activegate_plugin.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/plugin.json
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3/contrib
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3/packages
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3/util
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3/__init__.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3/_collections.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3/_version.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3/connection.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3/connectionpool.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3/exceptions.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3/fields.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3/filepost.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3/poolmanager.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3/request.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3/response.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3/contrib/_securetransport
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3/contrib/__init__.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3/contrib/_appengine_environ.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3/contrib/appengine.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3/contrib/ntlmpool.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3/contrib/pyopenssl.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3/contrib/securetransport.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3/contrib/socks.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3/contrib/_securetransport/__init__.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3/contrib/_securetransport/bindings.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3/contrib/_securetransport/low_level.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3/packages/backports
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3/packages/__init__.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3/packages/six.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3/packages/backports/__init__.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3/packages/backports/makefile.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3/util/__init__.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3/util/connection.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3/util/proxy.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3/util/queue.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3/util/request.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3/util/response.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3/util/retry.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3/util/ssl_.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3/util/ssl_match_hostname.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3/util/ssltransport.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3/util/timeout.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3/util/url.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3/util/wait.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3-1.26.12.dist-info/LICENSE.txt
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3-1.26.12.dist-info/METADATA
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3-1.26.12.dist-info/WHEEL
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3-1.26.12.dist-info/top_level.txt
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3-1.26.12.dist-info/RECORD
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/urllib3-1.26.12.dist-info/INSTALLER
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/idna/__init__.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/idna/codec.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/idna/compat.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/idna/core.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/idna/idnadata.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/idna/intranges.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/idna/package_data.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/idna/py.typed
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/idna/uts46data.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/idna-3.4.dist-info/LICENSE.md
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/idna-3.4.dist-info/WHEEL
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/idna-3.4.dist-info/METADATA
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/idna-3.4.dist-info/RECORD
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/idna-3.4.dist-info/INSTALLER
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/charset_normalizer/assets
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/charset_normalizer/cli
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/charset_normalizer/__init__.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/charset_normalizer/api.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/charset_normalizer/cd.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/charset_normalizer/constant.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/charset_normalizer/legacy.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/charset_normalizer/md.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/charset_normalizer/models.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/charset_normalizer/py.typed
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/charset_normalizer/utils.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/charset_normalizer/version.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/charset_normalizer/assets/__init__.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/charset_normalizer/cli/__init__.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/charset_normalizer/cli/normalizer.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/charset_normalizer-2.1.1.dist-info/LICENSE
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/charset_normalizer-2.1.1.dist-info/METADATA
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/charset_normalizer-2.1.1.dist-info/WHEEL
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/charset_normalizer-2.1.1.dist-info/entry_points.txt
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/charset_normalizer-2.1.1.dist-info/top_level.txt
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/charset_normalizer-2.1.1.dist-info/RECORD
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/charset_normalizer-2.1.1.dist-info/INSTALLER
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/certifi/__init__.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/certifi/__main__.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/certifi/cacert.pem
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/certifi/core.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/certifi/py.typed
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/certifi-2022.9.24.dist-info/LICENSE
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/certifi-2022.9.24.dist-info/METADATA
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/certifi-2022.9.24.dist-info/WHEEL
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/certifi-2022.9.24.dist-info/top_level.txt
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/certifi-2022.9.24.dist-info/RECORD
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/certifi-2022.9.24.dist-info/INSTALLER
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/requests/__init__.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/requests/__version__.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/requests/_internal_utils.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/requests/adapters.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/requests/api.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/requests/auth.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/requests/certs.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/requests/compat.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/requests/cookies.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/requests/exceptions.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/requests/help.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/requests/hooks.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/requests/models.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/requests/packages.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/requests/sessions.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/requests/status_codes.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/requests/structures.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/requests/utils.py
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/requests-2.28.1.dist-info/LICENSE
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/requests-2.28.1.dist-info/METADATA
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/requests-2.28.1.dist-info/WHEEL
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/requests-2.28.1.dist-info/top_level.txt
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/requests-2.28.1.dist-info/RECORD
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/requests-2.28.1.dist-info/INSTALLER
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/demo_activegate_plugin-1.3.dist-info/METADATA
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/demo_activegate_plugin-1.3.dist-info/WHEEL
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/demo_activegate_plugin-1.3.dist-info/top_level.txt
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/demo_activegate_plugin-1.3.dist-info/RECORD
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/demo_activegate_plugin-1.3.dist-info/INSTALLER
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/demo_activegate_plugin-1.3.dist-info/direct_url.json
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/demo_activegate_plugin-1.3.dist-info/REQUESTED
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo/bin/normalizer
Creating plugin archive
========================================
Plugin deployed successfully into /opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo
Plugin archive available at /opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo.zip
========================================
interactive upload -> oneagent_upload_plugin -p /opt/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.demo.zip -s https://xxxxxxxxx.live.dynatrace.com:443/api/v1/remoteplugins -t ################################################################################################
Attempting to send plugin to server https://xxxxxxx.live.dynatrace.com:443/api/v1/remoteplugins 
server https://xxxxxx.live.dynatrace.com:443/api/v1/remoteplugins/  returned status code: 400 {"error":{"code":400,"message":"VALIDATION_ERROR_VERSION_CONFLICT"}}
Please execute oneagent_verify_plugin before upload to validate plugin.json against the schema
[jc@jc demo_activegate_plugin]$ oneagent_verify_plugin
Arguments=Namespace(plugin_dir='/home/jc/ag_plugin/examples/demo_activegate_plugin', verbose=False)
Starting oneagent_verify_plugin
Checking plugin metadata: /home/jc/ag_plugin/examples/demo_activegate_plugin/plugin.json
Validating plugin.json against schema
"processTypeNames" is deprecated in custom extension JSON definition file. Please use "technologies" instead.
Plugin custom.remote.python.demo is valid

 

 

I installed the SDK on my ActiveGate and am running this command from within my ActiveGate.

1 REPLY 1

Mike_L
Dynatrace Guru
Dynatrace Guru

Hi!

That command also uploads the extension to your cluster. The error points to an extension with that name and version already existing on your environment. You can have a look in the UI to confirm it.

if so you’ll either have to delete the extension through the UI, or change the version or the id.

Mike

Mike

Featured Posts