<?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 Re: build_plugin gives &amp;quot;Permission denied: 'top_level.txt'&amp;quot; when not executed as root in Extensions</title>
    <link>https://community.dynatrace.com/t5/Extensions/Build-plugin-gives-quot-permission-denied-top-level-txt-quot/m-p/180639#M2006</link>
    <description>&lt;P&gt;The reason was very simple... I was running the build from within the directory containing the sources. Just moving one dir up did the trick.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Feb 2022 14:34:49 GMT</pubDate>
    <dc:creator>Bert_VanderHeyd</dc:creator>
    <dc:date>2022-02-11T14:34:49Z</dc:date>
    <item>
      <title>Build_plugin gives "permission denied: 'top_level.txt'" when not executed as root</title>
      <link>https://community.dynatrace.com/t5/Extensions/Build-plugin-gives-quot-permission-denied-top-level-txt-quot/m-p/178304#M1895</link>
      <description>&lt;P&gt;Hey Community,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I guess this is more a python thingy but I only have this recently when moving to the latest sdk and Python3.8.&lt;/P&gt;
&lt;P&gt;Problem is that building a plugin fails with message:&amp;nbsp;&lt;FONT face="andale mono,times"&gt;Error occured: [Errno 13] Permission denied: 'top_level.txt'&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;(I will include the entire log with verbose)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have checked the entire system for top_level.txt files and the permissions on them and they are all ok. I guess that the build process has this file open at the moment it wants to do something with it.&lt;BR /&gt;Running it with root (sudo) seems to work, but then all downloaded modules have the wrong privileges which is even more anoying.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know this is a very specific one, but I hope to find some help or some tricks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 11:11:39 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Build-plugin-gives-quot-permission-denied-top-level-txt-quot/m-p/178304#M1895</guid>
      <dc:creator>Bert_VanderHeyd</dc:creator>
      <dc:date>2023-05-18T11:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: build_plugin gives "Permission denied: 'top_level.txt'" when not executed as root</title>
      <link>https://community.dynatrace.com/t5/Extensions/Build-plugin-gives-quot-permission-denied-top-level-txt-quot/m-p/178305#M1896</link>
      <description>&lt;P&gt;See attached log.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 15:30:07 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Build-plugin-gives-quot-permission-denied-top-level-txt-quot/m-p/178305#M1896</guid>
      <dc:creator>Bert_VanderHeyd</dc:creator>
      <dc:date>2022-01-04T15:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: build_plugin gives "Permission denied: 'top_level.txt'" when not executed as root</title>
      <link>https://community.dynatrace.com/t5/Extensions/Build-plugin-gives-quot-permission-denied-top-level-txt-quot/m-p/178312#M1897</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/11940"&gt;@Bert_VanderHeyd&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;it looks like an issue with python virtual environment. How do you have it installed? Maybe you could try it with the default system-wide python.&lt;BR /&gt;&lt;BR /&gt;Julius&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 21:41:33 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Build-plugin-gives-quot-permission-denied-top-level-txt-quot/m-p/178312#M1897</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2022-01-04T21:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: build_plugin gives "Permission denied: 'top_level.txt'" when not executed as root</title>
      <link>https://community.dynatrace.com/t5/Extensions/Build-plugin-gives-quot-permission-denied-top-level-txt-quot/m-p/178334#M1898</link>
      <description>&lt;P&gt;I am using venv to be able to switch to 3.8. When I build with 3.6 (system wide python) I get exactly the same error.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 08:06:25 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Build-plugin-gives-quot-permission-denied-top-level-txt-quot/m-p/178334#M1898</guid>
      <dc:creator>Bert_VanderHeyd</dc:creator>
      <dc:date>2022-01-05T08:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: build_plugin gives "Permission denied: 'top_level.txt'" when not executed as root</title>
      <link>https://community.dynatrace.com/t5/Extensions/Build-plugin-gives-quot-permission-denied-top-level-txt-quot/m-p/178381#M1900</link>
      <description>&lt;P&gt;I'd try run strace on the plugin_sdk build_plugin and see where and why it fails:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;strace -f -o /tmp/build_plugin.txt plugin_sdk build_plugin&lt;/LI-CODE&gt;&lt;P&gt;Can you share the output here?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 20:53:37 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Build-plugin-gives-quot-permission-denied-top-level-txt-quot/m-p/178381#M1900</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2022-01-05T20:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: build_plugin gives "Permission denied: 'top_level.txt'" when not executed as root</title>
      <link>https://community.dynatrace.com/t5/Extensions/Build-plugin-gives-quot-permission-denied-top-level-txt-quot/m-p/178394#M1901</link>
      <description>&lt;P&gt;Here you go.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looks like it has to do with the removal of a temp directory.&lt;BR /&gt;rmdir("/tmp/tmppc7q0iw_")&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 10:25:46 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Build-plugin-gives-quot-permission-denied-top-level-txt-quot/m-p/178394#M1901</guid>
      <dc:creator>Bert_VanderHeyd</dc:creator>
      <dc:date>2022-01-06T10:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: build_plugin gives "Permission denied: 'top_level.txt'" when not executed as root</title>
      <link>https://community.dynatrace.com/t5/Extensions/Build-plugin-gives-quot-permission-denied-top-level-txt-quot/m-p/180639#M2006</link>
      <description>&lt;P&gt;The reason was very simple... I was running the build from within the directory containing the sources. Just moving one dir up did the trick.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 14:34:49 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Build-plugin-gives-quot-permission-denied-top-level-txt-quot/m-p/180639#M2006</guid>
      <dc:creator>Bert_VanderHeyd</dc:creator>
      <dc:date>2022-02-11T14:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: build_plugin gives "Permission denied: 'top_level.txt'" when not executed as root</title>
      <link>https://community.dynatrace.com/t5/Extensions/Build-plugin-gives-quot-permission-denied-top-level-txt-quot/m-p/188261#M2249</link>
      <description>&lt;P&gt;Had a very similar issue with the file "METADATA" instead of "top_level.txt".&lt;/P&gt;&lt;P&gt;In my case, it was that in the directory /opt/dynatrace/remotepluginmodule/plugin_deployment&lt;BR /&gt;the directory for the extension was owned by root.&lt;/P&gt;&lt;P&gt;Deleting that directory and building again had no issue.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jun 2022 19:48:28 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Build-plugin-gives-quot-permission-denied-top-level-txt-quot/m-p/188261#M2249</guid>
      <dc:creator>AntonioSousa</dc:creator>
      <dc:date>2022-06-11T19:48:28Z</dc:date>
    </item>
  </channel>
</rss>

