<?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 Cluster cannot find init script stored in Volume in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/cluster-cannot-find-init-script-stored-in-volume/m-p/133950#M10790</link>
    <description>&lt;P&gt;I have created an init script stored in a Volume which I want to execute on a cluster with runtime 16.4 LTS. The cluster has policy = Unrestricted and Access mode = Standard. I have additionally added the init script to the allowlist. This should be sufficient per the&lt;A class="" href="https://docs.databricks.com/aws/en/init-scripts/cluster-scoped" target="_blank" rel="noopener nofollow noreferrer ugc"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;documentation.&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;However, when I try to start the cluster, I get&lt;/P&gt;&lt;PRE&gt;cannot execute: required file not found&lt;/PRE&gt;&lt;P&gt;when I try to start the cluster. Anyone who knows how to fix this? I am the owner of the volume where the script is stored, so access should not be an issue.&lt;/P&gt;</description>
    <pubDate>Mon, 06 Oct 2025 13:13:12 GMT</pubDate>
    <dc:creator>jimoskar</dc:creator>
    <dc:date>2025-10-06T13:13:12Z</dc:date>
    <item>
      <title>Cluster cannot find init script stored in Volume</title>
      <link>https://community.databricks.com/t5/get-started-discussions/cluster-cannot-find-init-script-stored-in-volume/m-p/133950#M10790</link>
      <description>&lt;P&gt;I have created an init script stored in a Volume which I want to execute on a cluster with runtime 16.4 LTS. The cluster has policy = Unrestricted and Access mode = Standard. I have additionally added the init script to the allowlist. This should be sufficient per the&lt;A class="" href="https://docs.databricks.com/aws/en/init-scripts/cluster-scoped" target="_blank" rel="noopener nofollow noreferrer ugc"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;documentation.&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;However, when I try to start the cluster, I get&lt;/P&gt;&lt;PRE&gt;cannot execute: required file not found&lt;/PRE&gt;&lt;P&gt;when I try to start the cluster. Anyone who knows how to fix this? I am the owner of the volume where the script is stored, so access should not be an issue.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Oct 2025 13:13:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/cluster-cannot-find-init-script-stored-in-volume/m-p/133950#M10790</guid>
      <dc:creator>jimoskar</dc:creator>
      <dc:date>2025-10-06T13:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster cannot find init script stored in Volume</title>
      <link>https://community.databricks.com/t5/get-started-discussions/cluster-cannot-find-init-script-stored-in-volume/m-p/133964#M10791</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/189109"&gt;@jimoskar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Since you're using standard access mode you need to add init script to allowlist. Did you add your init script to allowlist? If not, do the following:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;In your&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Databricks&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;workspace, click&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Catalog&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;Click the gear icon&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;.&lt;/LI&gt;&lt;LI&gt;Click the metastore name to open the metastore details and permissions UI.&lt;/LI&gt;&lt;LI&gt;Select&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Allowed JARs/Init Scripts&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;Click&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Add&lt;/STRONG&gt;.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Next add an &lt;STRONG&gt;init script&lt;/STRONG&gt; to the allowlist perform following steps:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;For&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Type&lt;/STRONG&gt;, select&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Init Script&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;For&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Source Type&lt;/STRONG&gt;, select&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Volume&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;or the object storage protocol.&lt;/LI&gt;&lt;LI&gt;Specify the source path to add to the allowlist. See&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://docs.databricks.com/aws/en/data-governance/unity-catalog/manage-privileges/allowlist#paths" target="_blank" rel="noopener"&gt;How are permissions on paths enforced in the allowlist?&lt;/A&gt;.&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Mon, 06 Oct 2025 14:18:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/cluster-cannot-find-init-script-stored-in-volume/m-p/133964#M10791</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-10-06T14:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster cannot find init script stored in Volume</title>
      <link>https://community.databricks.com/t5/get-started-discussions/cluster-cannot-find-init-script-stored-in-volume/m-p/133991#M10796</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/189109"&gt;@jimoskar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Another possibility I can think of is that d&lt;SPAN&gt;uring cluster startup, the init script path is resolved using the &lt;STRONG&gt;cluster owner's privileges&lt;/STRONG&gt;. If the owner lacks access to the volume or script, the initialization fails even if the user starting the cluster does have the necessary permissions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;To identify the creator or owner of a cluster:&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Navigate to the cluster configuration UI.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Click the kebab menu and select&amp;nbsp;&lt;STRONG&gt;JSON&lt;/STRONG&gt;.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;In the JSON view, look for the field&amp;nbsp;creator_user_name&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to find the creator’s username.&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;To grant the necessary permissions on the volume:&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Navigate to the Catalog Explorer.&lt;/LI&gt;&lt;LI&gt;Click on the catalog that contains the volume.&lt;/LI&gt;&lt;LI&gt;Go to the&amp;nbsp;&lt;STRONG&gt;Permissions&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;tab.&lt;/LI&gt;&lt;LI&gt;Click the&amp;nbsp;&lt;STRONG&gt;Grant&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;button.&lt;/LI&gt;&lt;LI&gt;Assign the required permissions on the volume to the creator.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following image shows the UI after navigating to the&amp;nbsp;&lt;STRONG&gt;Permissions&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;tab and highlights the&amp;nbsp;&lt;STRONG&gt;Grant&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;button location on the screen.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Oct 2025 18:56:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/cluster-cannot-find-init-script-stored-in-volume/m-p/133991#M10796</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-10-06T18:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster cannot find init script stored in Volume</title>
      <link>https://community.databricks.com/t5/get-started-discussions/cluster-cannot-find-init-script-stored-in-volume/m-p/134040#M10807</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/110502"&gt;@szymon_dybczak&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thank you for your suggestions! I have added the init script to the allowlist. Additionally, my user is the creator of the compute, and has ALL PRIVELEGES on the Catalog where the init script is stored. However, I still get the same error.&lt;/P&gt;&lt;P&gt;Do you have any other suggestions for possible solutions?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Oct 2025 10:31:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/cluster-cannot-find-init-script-stored-in-volume/m-p/134040#M10807</guid>
      <dc:creator>jimoskar</dc:creator>
      <dc:date>2025-10-07T10:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster cannot find init script stored in Volume</title>
      <link>https://community.databricks.com/t5/get-started-discussions/cluster-cannot-find-init-script-stored-in-volume/m-p/134052#M10809</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/189109"&gt;@jimoskar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Yep, I have some other ideas that we can check.&amp;nbsp; In databricks you have 2 kinds of init scripts:&lt;/P&gt;&lt;P&gt;- global init scripts - a&amp;nbsp;&lt;SPAN&gt;global init script runs on all clusters in your workspace configured with&lt;STRONG&gt; dedicated&lt;/STRONG&gt; (formerly single user) or &lt;STRONG&gt;legacy no-isolation shared access mode.&amp;nbsp;&lt;/STRONG&gt;So it seems that global init script are supported only for those access mode.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-&amp;nbsp;Cluster-scoped init scripts -&amp;nbsp;Cluster-scoped init scripts are init scripts defined in a cluster configuration. Cluster-scoped init scripts apply to both clusters you create and those created to run jobs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So, do you happen to use global init script? Because it could be one explanation why it doesn't work in your case.&lt;BR /&gt;&lt;BR /&gt;Another thing to check - what is the size of your init script? In docs they mentioned that:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;The &lt;STRONG&gt;init script cannot be larger than 64KB&lt;/STRONG&gt;. If a script exceeds that size, the cluster will fail to launch and a failure message will appear in the cluster log."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also, you can try to check init script logs. Maybe we will find some additional info/error message there?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And last, but not least you can check below articles. It seems that&amp;nbsp;Windows Notepad and similar editors insert special characters like carriage returns (\r), that could cause some issues:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://kb.databricks.com/clusters/init-scripts-failing-with-unexpected-end-of-file-error?from_search=203725854" target="_blank" rel="noopener"&gt;Init scripts failing with unexpected end of file error - Databricks&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://kb.databricks.com/clusters/init-script-stored-on-a-volume-fails-to-execute-on-cluster-start" target="_blank" rel="noopener"&gt;Init script stored on a volume fails to execute on cluster start - Databricks&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Oct 2025 12:12:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/cluster-cannot-find-init-script-stored-in-volume/m-p/134052#M10809</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-10-07T12:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster cannot find init script stored in Volume</title>
      <link>https://community.databricks.com/t5/get-started-discussions/cluster-cannot-find-init-script-stored-in-volume/m-p/134317#M10828</link>
      <description>&lt;P&gt;The culrpit was the carriage returns, so removing those in VSCode fixed the error. Thanks a ton&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/110502"&gt;@szymon_dybczak&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;</description>
      <pubDate>Thu, 09 Oct 2025 07:46:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/cluster-cannot-find-init-script-stored-in-volume/m-p/134317#M10828</guid>
      <dc:creator>jimoskar</dc:creator>
      <dc:date>2025-10-09T07:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster cannot find init script stored in Volume</title>
      <link>https://community.databricks.com/t5/get-started-discussions/cluster-cannot-find-init-script-stored-in-volume/m-p/134318#M10829</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/189109"&gt;@jimoskar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for letting us know. I really appreciate it. And great that it worked!&lt;/P&gt;</description>
      <pubDate>Thu, 09 Oct 2025 07:49:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/cluster-cannot-find-init-script-stored-in-volume/m-p/134318#M10829</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-10-09T07:49:06Z</dc:date>
    </item>
  </channel>
</rss>

