<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Create OneAgent custom plugin / extension : fail to command line upload on Cluster in Extensions</title>
    <link>https://community.dynatrace.com/t5/Extensions/Create-OneAgent-custom-plugin-extension-fail-to-command-line/m-p/198320#M2528</link>
    <description>&lt;P&gt;Hello.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on &lt;A href="https://www.dynatrace.com/support/help/extend-dynatrace/extensions/oneagent-extensions/oneagent-extensions-hands-on" target="_blank" rel="noopener"&gt;https://www.dynatrace.com/support/help/extend-dynatrace/extensions/oneagent-extensions/oneagent-extensions-hands-on&lt;/A&gt; I built, uploaded manually on cluster, and deployed on a sand box OneAgent my custom extension. Fine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now I am trying to upload the extension on the cluster through command line as documented on &lt;A href="https://www.dynatrace.com/support/help/extend-dynatrace/extensions/oneagent-extensions/oneagent-extensions-hands-on#upload-your-extension" target="_blank" rel="noopener"&gt;https://www.dynatrace.com/support/help/extend-dynatrace/extensions/oneagent-extensions/oneagent-extensions-hands-on#upload-your-extension&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It says : plugin_sdk upload_plugin --plugin_zip...&amp;nbsp; --server ...&lt;/P&gt;
&lt;P&gt;But :&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;what is supposed to be --server option value ? I cannot find this.&lt;/LI&gt;
&lt;LI&gt;I guessed /api/v1/remoteplugins but I cannot find API tester for this : where is it ?&lt;/LI&gt;
&lt;LI&gt;when I try to run the plugin_sdk upload_plugin --plugin_zip /tmp/custom.python.my_plugin.zip ... I get a :&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="java"&gt;server https://xxx.xxx.xxx/e/&amp;lt;env_id&amp;gt;/api/v1/remoteplugins/ returned status code: 400 {"error":{"code":400,"message":"Plugin *.zip file name should match plugin id."}}​&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and I cannot make sens of this.&lt;/P&gt;
&lt;P&gt;Does any one know how to command line upload a OneAgent custom extension ?&lt;/P&gt;
&lt;P&gt;Regards.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Nov 2022 08:53:49 GMT</pubDate>
    <dc:creator>gilles_tabary</dc:creator>
    <dc:date>2022-11-15T08:53:49Z</dc:date>
    <item>
      <title>Create OneAgent custom plugin / extension : fail to command line upload on Cluster</title>
      <link>https://community.dynatrace.com/t5/Extensions/Create-OneAgent-custom-plugin-extension-fail-to-command-line/m-p/198320#M2528</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on &lt;A href="https://www.dynatrace.com/support/help/extend-dynatrace/extensions/oneagent-extensions/oneagent-extensions-hands-on" target="_blank" rel="noopener"&gt;https://www.dynatrace.com/support/help/extend-dynatrace/extensions/oneagent-extensions/oneagent-extensions-hands-on&lt;/A&gt; I built, uploaded manually on cluster, and deployed on a sand box OneAgent my custom extension. Fine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now I am trying to upload the extension on the cluster through command line as documented on &lt;A href="https://www.dynatrace.com/support/help/extend-dynatrace/extensions/oneagent-extensions/oneagent-extensions-hands-on#upload-your-extension" target="_blank" rel="noopener"&gt;https://www.dynatrace.com/support/help/extend-dynatrace/extensions/oneagent-extensions/oneagent-extensions-hands-on#upload-your-extension&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It says : plugin_sdk upload_plugin --plugin_zip...&amp;nbsp; --server ...&lt;/P&gt;
&lt;P&gt;But :&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;what is supposed to be --server option value ? I cannot find this.&lt;/LI&gt;
&lt;LI&gt;I guessed /api/v1/remoteplugins but I cannot find API tester for this : where is it ?&lt;/LI&gt;
&lt;LI&gt;when I try to run the plugin_sdk upload_plugin --plugin_zip /tmp/custom.python.my_plugin.zip ... I get a :&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="java"&gt;server https://xxx.xxx.xxx/e/&amp;lt;env_id&amp;gt;/api/v1/remoteplugins/ returned status code: 400 {"error":{"code":400,"message":"Plugin *.zip file name should match plugin id."}}​&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and I cannot make sens of this.&lt;/P&gt;
&lt;P&gt;Does any one know how to command line upload a OneAgent custom extension ?&lt;/P&gt;
&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 08:53:49 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Create-OneAgent-custom-plugin-extension-fail-to-command-line/m-p/198320#M2528</guid>
      <dc:creator>gilles_tabary</dc:creator>
      <dc:date>2022-11-15T08:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Create OneAgent custom plugin / extension : fail to command line upload on Cluster</title>
      <link>https://community.dynatrace.com/t5/Extensions/Create-OneAgent-custom-plugin-extension-fail-to-command-line/m-p/198322#M2529</link>
      <description>&lt;P&gt;BTW, plugin_sdk upload_plugin tell me&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Please execute oneagent_verify_plugin before upload to validate plugin.json against the schema&lt;/LI-CODE&gt;&lt;P&gt;which&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I did : oneagent_verify_plugin =&amp;gt; Plugin custom.python.myplugin is valid&lt;/LI&gt;&lt;LI&gt;I also did : plugin_sdk verify_plugin =&amp;gt; also says ok, and looks like it is the same command&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Mon, 14 Nov 2022 16:13:00 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Create-OneAgent-custom-plugin-extension-fail-to-command-line/m-p/198322#M2529</guid>
      <dc:creator>gilles_tabary</dc:creator>
      <dc:date>2022-11-14T16:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: Create OneAgent custom plugin / extension : fail to command line upload on Cluster</title>
      <link>https://community.dynatrace.com/t5/Extensions/Create-OneAgent-custom-plugin-extension-fail-to-command-line/m-p/198324#M2530</link>
      <description>&lt;P&gt;Also FYI :&lt;/P&gt;&lt;P&gt;my plugin.json&amp;nbsp; file says&lt;/P&gt;&lt;LI-CODE lang="java"&gt;{
  "name": "custom.python.my_plugin",&lt;/LI-CODE&gt;&lt;P&gt;and my plugin file is&lt;/P&gt;&lt;LI-CODE lang="java"&gt;/tmp/custom.python.my_plugin.zip&lt;/LI-CODE&gt;&lt;P&gt;I am puzzled.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 16:36:53 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Create-OneAgent-custom-plugin-extension-fail-to-command-line/m-p/198324#M2530</guid>
      <dc:creator>gilles_tabary</dc:creator>
      <dc:date>2022-11-14T16:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Create OneAgent custom plugin / extension : fail to command line upload on Cluster</title>
      <link>https://community.dynatrace.com/t5/Extensions/Create-OneAgent-custom-plugin-extension-fail-to-command-line/m-p/198376#M2531</link>
      <description>&lt;P&gt;The problem is you are uploading a OneAgent extension but have&amp;nbsp;&lt;STRONG&gt;/api/v1/remoteplugin&lt;/STRONG&gt; at the end of the server URL, which is for AG extensions. For oneagent extensions it is&amp;nbsp;&lt;STRONG&gt;/api/v1/plugins.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;But you can leave out the API Endpoint and enter the server as&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;https://XXXXXX.live.dynatrace.com/&amp;nbsp; &lt;/STRONG&gt;&lt;/EM&gt;or&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;https://xxx.xxx.xxx/e/env_id/&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;and it will pick the correct API endpoint depending on if you are building an activegate or oneagent extension.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 10:18:53 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Create-OneAgent-custom-plugin-extension-fail-to-command-line/m-p/198376#M2531</guid>
      <dc:creator>pahofmann</dc:creator>
      <dc:date>2022-11-15T10:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: Create OneAgent custom plugin / extension : fail to command line upload on Cluster</title>
      <link>https://community.dynatrace.com/t5/Extensions/Create-OneAgent-custom-plugin-extension-fail-to-command-line/m-p/198393#M2533</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;Shouldn't it be someone different to set an answer as a solution ? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;At least in my case this is not the solution :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;plugin_sdk upload_plugin --plugin_zip custom.python.my_oneagent_plugin.zip --server https://my.dynatrace.server/e/&amp;lt;env_id&amp;gt;/ --token dt0c01....
The server endpoint https://my.dynatrace.server/e/&amp;lt;env_id&amp;gt;/ is not designed for plugin upload

plugin_sdk upload_plugin --plugin_zip custom.python.my_oneagent_plugin.zip --server https://my.dynatrace.server/ --token dt0c01....
The server endpoint https://my.dynatrace.server/ is not designed for plugin upload&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At last :&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;plugin_sdk upload_plugin --plugin_zip custom.python.my_oneagent_plugin.zip --server https://my.dynatrace.server/e/&amp;lt;env_id&amp;gt;/api/v1/plugins --token dt0c01....
Attempting to send plugin to server https://my.dynatrace.server/e/&amp;lt;env_id&amp;gt;/api/v1/plugins
plugin has been uploaded successfully&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 12:57:41 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Create-OneAgent-custom-plugin-extension-fail-to-command-line/m-p/198393#M2533</guid>
      <dc:creator>gilles_tabary</dc:creator>
      <dc:date>2022-11-15T12:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Create OneAgent custom plugin / extension : fail to command line upload on Cluster</title>
      <link>https://community.dynatrace.com/t5/Extensions/Create-OneAgent-custom-plugin-extension-fail-to-command-line/m-p/198396#M2534</link>
      <description>&lt;P&gt;If you set it with --server you need to add the correct API endpoint.&lt;/P&gt;&lt;P&gt;Or you can just leave out the --server all together and enter it as mentioned above when prompted, that will select the correct endpoint then.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 13:01:30 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Create-OneAgent-custom-plugin-extension-fail-to-command-line/m-p/198396#M2534</guid>
      <dc:creator>pahofmann</dc:creator>
      <dc:date>2022-11-15T13:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Create OneAgent custom plugin / extension : fail to command line upload on Cluster</title>
      <link>https://community.dynatrace.com/t5/Extensions/Create-OneAgent-custom-plugin-extension-fail-to-command-line/m-p/198398#M2535</link>
      <description>&lt;P&gt;Not functionning in my case :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;plugin_sdk upload_plugin --plugin_zip custom.python.my_oneagent_plugin.zip  --token dt0c01....
File: /etc/init.d/dynatracefunctions not found - Remote Plugin Module is detected
Could not read file /var/lib/dynatrace/oneagent/agent/config/plugin_sdk.conf: No such file or directory - Neither OneAgent nor Remote Plugin Module is detected
server upload endpoint is missing&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 15 Nov 2022 13:06:07 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Create-OneAgent-custom-plugin-extension-fail-to-command-line/m-p/198398#M2535</guid>
      <dc:creator>gilles_tabary</dc:creator>
      <dc:date>2022-11-15T13:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Create OneAgent custom plugin / extension : fail to command line upload on Cluster</title>
      <link>https://community.dynatrace.com/t5/Extensions/Create-OneAgent-custom-plugin-extension-fail-to-command-line/m-p/198418#M2536</link>
      <description>&lt;P&gt;Looks like &lt;EM&gt;&lt;STRONG&gt;plugin_sdk upload_plugin&lt;/STRONG&gt; &lt;/EM&gt;needs the --server parameter.&lt;/P&gt;&lt;P&gt;So for a oneagent plugin&amp;nbsp; you'd have to use:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;plugin_sdk upload_plugin --server https://XXXXXX.live.dynatrace.com/api/v1/plugins  -t dt0c01.XXX.XXX&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or you can do it without the --server when building the plugin which would query:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;oneagent_build_plugin -t dt0c01.XXX.XXX
...
...
Enter server address, exemplary address: https://demo.dev.dynatracelabs.com, or for managed include the tenant ID in the path: https://latest.managed-dev.dynalabs.io/e/5c6cf54c-5fe3-47e8-af18-54439090370b:&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 15:50:53 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Create-OneAgent-custom-plugin-extension-fail-to-command-line/m-p/198418#M2536</guid>
      <dc:creator>pahofmann</dc:creator>
      <dc:date>2022-11-15T15:50:53Z</dc:date>
    </item>
  </channel>
</rss>

