<?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: Splunk Cloud Custom app request failed for the package created locally in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Why-does-Splunk-Cloud-Custom-app-request-fail-for-the-package/m-p/636529#M10977</link>
    <description>&lt;P&gt;Sure no problem.&lt;/P&gt;&lt;P&gt;This validation error pertains to the fact some of your files outside of the bin directory have execute permissions set.&lt;/P&gt;&lt;P&gt;The way to fix this is to remove the execute permissions for any file that does not need to be executed.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WARNING&lt;/STRONG&gt;: This command will change file permissions so make sure that you only run this in your app directory (do not run this command elsewhere on your OS), firstly lets find all of the non-bin files in the app because these will not need to have execute permissions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;cd my_app
find -type f -not -path "./bin/*"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;Once you're happy that this is finding the correct files, we can then add the permission change:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;find -type f -not -path "./bin/*" -exec chmod 644 {} +&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then we'll need to deal with the bin directory, if your bin is entirely Python based, then because Python is an interpreted language (e.g. the Python binary executes and reads the Python scripts) we can remove the execution permissions from the bin contents too:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;find -type f -path "./bin/*" -exec chmod 644 {} +&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only thing in your bin that will need execution permissions are shell scripts and other executables. You can explicitly set these individually with a chmod (e.g. allow all users to execute and read my_executable):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;chmod 755 ./bin/my_executable&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Mar 2023 13:59:27 GMT</pubDate>
    <dc:creator>Tom_Lundie</dc:creator>
    <dc:date>2023-03-29T13:59:27Z</dc:date>
    <item>
      <title>Why does Splunk Cloud Custom app request fail for the package created locally?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Why-does-Splunk-Cloud-Custom-app-request-fail-for-the-package/m-p/636456#M10973</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4879AB54-416D-4E42-A56F-A17A3EA873FE.png" style="width: 750px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/24602iA9FA69F4313255FD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="4879AB54-416D-4E42-A56F-A17A3EA873FE.png" alt="4879AB54-416D-4E42-A56F-A17A3EA873FE.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="A609CF7E-727E-4DBB-8BD1-EADD10E7A3D8.png" style="width: 750px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/24603iFDA09B75E7A74CCE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="A609CF7E-727E-4DBB-8BD1-EADD10E7A3D8.png" alt="A609CF7E-727E-4DBB-8BD1-EADD10E7A3D8.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="A8ACDBB0-3197-4B4A-A98F-24291FFC4127.png" style="width: 750px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/24604i49896D57CE5D766D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="A8ACDBB0-3197-4B4A-A98F-24291FFC4127.png" alt="A8ACDBB0-3197-4B4A-A98F-24291FFC4127.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4C409153-5871-40E1-ADB6-20741C9B98C4.png" style="width: 750px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/24605iA96F4BF5C44BB15E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="4C409153-5871-40E1-ADB6-20741C9B98C4.png" alt="4C409153-5871-40E1-ADB6-20741C9B98C4.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;  &lt;/P&gt;
&lt;P&gt;Hi Team, I have been trying to create a custom app with some config files and created it manually with the directory structures. But once submitted, I came across the below failures as mentioned by splunk.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="6C2EE980-7DE9-49E4-8D34-8E92F533F4B2.png" style="width: 750px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/24601iBB2176D4E3D7ED71/image-size/medium?v=v2&amp;amp;px=400" role="button" title="6C2EE980-7DE9-49E4-8D34-8E92F533F4B2.png" alt="6C2EE980-7DE9-49E4-8D34-8E92F533F4B2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;splunk.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="6C2EE980-7DE9-49E4-8D34-8E92F533F4B2.png" style="width: 750px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/24601iBB2176D4E3D7ED71/image-size/medium?v=v2&amp;amp;px=400" role="button" title="6C2EE980-7DE9-49E4-8D34-8E92F533F4B2.png" alt="6C2EE980-7DE9-49E4-8D34-8E92F533F4B2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;please help me how I can solve the issues and also let me know if there are any other ways to package the app if I have some config items&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 16:10:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Why-does-Splunk-Cloud-Custom-app-request-fail-for-the-package/m-p/636456#M10973</guid>
      <dc:creator>Sucheta_new</dc:creator>
      <dc:date>2023-03-29T16:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Cloud Custom app request failed for the package created locally</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Why-does-Splunk-Cloud-Custom-app-request-fail-for-the-package/m-p/636458#M10974</link>
      <description>&lt;P&gt;That's a lot of errors...&lt;/P&gt;&lt;P&gt;Start with the &lt;A href="https://dev.splunk.com/enterprise/reference/appinspect/appinspectcheck" target="_self"&gt;Cloud Appinspect Criteria.&lt;/A&gt;&amp;nbsp;Hopefully something obvious jumps out.&lt;/P&gt;&lt;P&gt;If that doesn't help then it's going to be very hard to help debug this without some more details about what your app contains. Feel free to share the (obfuscated) config within the app and the high-level structure too.&lt;/P&gt;&lt;P&gt;If you (understandably) don't want to share this on here then I would raise a ticket for Splunk support.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 02:28:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Why-does-Splunk-Cloud-Custom-app-request-fail-for-the-package/m-p/636458#M10974</guid>
      <dc:creator>Tom_Lundie</dc:creator>
      <dc:date>2023-03-29T02:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Cloud Custom app request failed for the package created locally</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Why-does-Splunk-Cloud-Custom-app-request-fail-for-the-package/m-p/636481#M10975</link>
      <description>&lt;P&gt;thanks. All the other errors I can sort out except the File_generic_execute issue. Can you assist me to resolve that one?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 08:42:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Why-does-Splunk-Cloud-Custom-app-request-fail-for-the-package/m-p/636481#M10975</guid>
      <dc:creator>Sucheta_new</dc:creator>
      <dc:date>2023-03-29T08:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Cloud Custom app request failed for the package created locally</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Why-does-Splunk-Cloud-Custom-app-request-fail-for-the-package/m-p/636529#M10977</link>
      <description>&lt;P&gt;Sure no problem.&lt;/P&gt;&lt;P&gt;This validation error pertains to the fact some of your files outside of the bin directory have execute permissions set.&lt;/P&gt;&lt;P&gt;The way to fix this is to remove the execute permissions for any file that does not need to be executed.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WARNING&lt;/STRONG&gt;: This command will change file permissions so make sure that you only run this in your app directory (do not run this command elsewhere on your OS), firstly lets find all of the non-bin files in the app because these will not need to have execute permissions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;cd my_app
find -type f -not -path "./bin/*"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;Once you're happy that this is finding the correct files, we can then add the permission change:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;find -type f -not -path "./bin/*" -exec chmod 644 {} +&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then we'll need to deal with the bin directory, if your bin is entirely Python based, then because Python is an interpreted language (e.g. the Python binary executes and reads the Python scripts) we can remove the execution permissions from the bin contents too:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;find -type f -path "./bin/*" -exec chmod 644 {} +&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only thing in your bin that will need execution permissions are shell scripts and other executables. You can explicitly set these individually with a chmod (e.g. allow all users to execute and read my_executable):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;chmod 755 ./bin/my_executable&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 13:59:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Why-does-Splunk-Cloud-Custom-app-request-fail-for-the-package/m-p/636529#M10977</guid>
      <dc:creator>Tom_Lundie</dc:creator>
      <dc:date>2023-03-29T13:59:27Z</dc:date>
    </item>
  </channel>
</rss>

