<?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: Permissions error on cluster requirements.txt installation in Administration &amp; Architecture</title>
    <link>https://community.databricks.com/t5/administration-architecture/permissions-error-on-cluster-requirements-txt-installation/m-p/104130#M2668</link>
    <description>&lt;P&gt;Noting here for other users: I was able to resolve the issue on a shared cluster by cloning the cluster and using the clone.&lt;/P&gt;</description>
    <pubDate>Fri, 03 Jan 2025 18:22:53 GMT</pubDate>
    <dc:creator>rtreves</dc:creator>
    <dc:date>2025-01-03T18:22:53Z</dc:date>
    <item>
      <title>Permissions error on cluster requirements.txt installation</title>
      <link>https://community.databricks.com/t5/administration-architecture/permissions-error-on-cluster-requirements-txt-installation/m-p/103159#M2593</link>
      <description>&lt;P&gt;Hi Databricks Community,&lt;/P&gt;&lt;P&gt;I'm looking to resolve the following error:&lt;BR /&gt;&lt;EM&gt;Library installation attempted on the driver node of cluster &lt;/EM&gt;{My cluster ID}&lt;EM&gt; and failed. Please refer to the following error message to fix the library or contact Databricks support. Error code: DRIVER_LIBRARY_INSTALLATION_FAILURE. Error message: org.apache.spark.SparkException: requirements.txt installation failed with output: ERROR: Could not open requirements file: [Errno 13] Permission denied: &lt;/EM&gt;{Path to my requirements.txt file}&lt;BR /&gt;The error appears in the cluster "Libraries" tab when I start up a compute cluster which is managed by a cluster policy linked to my requirements.txt file. Note that my requirements file is in a github-linked "Repos" folder (/Workspace/Repos/...). I'm able to read and write the requirements.txt file when I navigate to it independently. I've also determined that the error is not cluster- or cluster-policy specific - it recurs when I use a different cluster policy (either shared or single-user clusters) or start a different cluster attached to a policy linked to the file.&lt;BR /&gt;&lt;BR /&gt;I've copied below the full cluster policy spec:&lt;BR /&gt;{&lt;BR /&gt;"spark_version": {&lt;BR /&gt;"type": "fixed",&lt;BR /&gt;"value": "15.4.x-scala2.12"&lt;BR /&gt;},&lt;BR /&gt;"spark_conf.spark.databricks.cluster.profile": {&lt;BR /&gt;"type": "forbidden",&lt;BR /&gt;"hidden": true&lt;BR /&gt;},&lt;BR /&gt;"node_type_id": {&lt;BR /&gt;"type": "unlimited",&lt;BR /&gt;"defaultValue": "i3.xlarge"&lt;BR /&gt;},&lt;BR /&gt;"num_workers": {&lt;BR /&gt;"type": "forbidden",&lt;BR /&gt;"hidden": true&lt;BR /&gt;},&lt;BR /&gt;"data_security_mode": {&lt;BR /&gt;"type": "fixed",&lt;BR /&gt;"value": "USER_ISOLATION",&lt;BR /&gt;"hidden": true&lt;BR /&gt;},&lt;BR /&gt;"cluster_type": {&lt;BR /&gt;"type": "fixed",&lt;BR /&gt;"value": "all-purpose"&lt;BR /&gt;},&lt;BR /&gt;"driver_instance_pool_id": {&lt;BR /&gt;"type": "forbidden",&lt;BR /&gt;"hidden": true&lt;BR /&gt;},&lt;BR /&gt;"instance_pool_id": {&lt;BR /&gt;"type": "forbidden",&lt;BR /&gt;"hidden": true&lt;BR /&gt;},&lt;BR /&gt;"autotermination_minutes": {&lt;BR /&gt;"type": "fixed",&lt;BR /&gt;"value": 60&lt;BR /&gt;},&lt;BR /&gt;"autoscale.min_workers": {&lt;BR /&gt;"type": "unlimited",&lt;BR /&gt;"defaultValue": 1&lt;BR /&gt;},&lt;BR /&gt;"autoscale.max_workers": {&lt;BR /&gt;"type": "unlimited",&lt;BR /&gt;"defaultValue": 5&lt;BR /&gt;},&lt;BR /&gt;"enable_elastic_disk": {&lt;BR /&gt;"type": "fixed",&lt;BR /&gt;"value": true,&lt;BR /&gt;"hidden": true&lt;BR /&gt;},&lt;BR /&gt;"aws_attributes.availability": {&lt;BR /&gt;"type": "fixed",&lt;BR /&gt;"value": "SPOT_WITH_FALLBACK",&lt;BR /&gt;"hidden": true&lt;BR /&gt;},&lt;BR /&gt;"aws_attributes.spot_bid_price_percent": {&lt;BR /&gt;"type": "fixed",&lt;BR /&gt;"value": 100,&lt;BR /&gt;"hidden": true&lt;BR /&gt;},&lt;BR /&gt;"aws_attributes.first_on_demand": {&lt;BR /&gt;"type": "range",&lt;BR /&gt;"minValue": 1,&lt;BR /&gt;"defaultValue": 1&lt;BR /&gt;},&lt;BR /&gt;"aws_attributes.instance_profile_arn": {&lt;BR /&gt;"type": "fixed",&lt;BR /&gt;"value": "arn:aws:iam::775333757806:instance-profile/databricks-workspace-stack-access-data-buckets"&lt;BR /&gt;},&lt;BR /&gt;"aws_attributes.zone_id": {&lt;BR /&gt;"type": "unlimited",&lt;BR /&gt;"defaultValue": "auto",&lt;BR /&gt;"hidden": true&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Thank you in advance.&lt;BR /&gt;Tagging&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/134652"&gt;@ablee&lt;/a&gt;&amp;nbsp;for visibility.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2024 20:11:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/permissions-error-on-cluster-requirements-txt-installation/m-p/103159#M2593</guid>
      <dc:creator>rtreves</dc:creator>
      <dc:date>2024-12-24T20:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Permissions error on cluster requirements.txt installation</title>
      <link>https://community.databricks.com/t5/administration-architecture/permissions-error-on-cluster-requirements-txt-installation/m-p/103160#M2594</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/105962"&gt;@rtreves&lt;/a&gt;,&lt;/P&gt;
&lt;P class="p1"&gt;The error you are encountering, "DRIVER_LIBRARY_INSTALLATION_FAILURE" with the message "ERROR: Could not open requirements file: [Errno 13] Permission denied," indicates that the driver node does not have the necessary permissions to access the requirements.txt file located in your GitHub-linked "Repos" folder.&lt;/P&gt;
&lt;P class="p1"&gt;Can you try installing the libraries via a notebook?&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;%pip install -r /Workspace/Repos/path/to/requirements.txt&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2024 20:16:01 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/permissions-error-on-cluster-requirements-txt-installation/m-p/103160#M2594</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2024-12-24T20:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: Permissions error on cluster requirements.txt installation</title>
      <link>https://community.databricks.com/t5/administration-architecture/permissions-error-on-cluster-requirements-txt-installation/m-p/103161#M2595</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/106294"&gt;@Alberto_Umana&lt;/a&gt;&amp;nbsp;Thank you for the speedy response. I am indeed able to install the libraries using `%pip` in a notebook attached to the cluster in question.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2024 20:17:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/permissions-error-on-cluster-requirements-txt-installation/m-p/103161#M2595</guid>
      <dc:creator>rtreves</dc:creator>
      <dc:date>2024-12-24T20:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: Permissions error on cluster requirements.txt installation</title>
      <link>https://community.databricks.com/t5/administration-architecture/permissions-error-on-cluster-requirements-txt-installation/m-p/103162#M2596</link>
      <description>&lt;P&gt;Understood! have you enabled logging on the cluster, that would give us more details on the failure.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.databricks.com/en/compute/configure.html" target="_blank"&gt;https://docs.databricks.com/en/compute/configure.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2024 20:20:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/permissions-error-on-cluster-requirements-txt-installation/m-p/103162#M2596</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2024-12-24T20:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Permissions error on cluster requirements.txt installation</title>
      <link>https://community.databricks.com/t5/administration-architecture/permissions-error-on-cluster-requirements-txt-installation/m-p/103163#M2597</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/106294"&gt;@Alberto_Umana&lt;/a&gt;&amp;nbsp;I have not enabled logging, no. However, I can see the "Event log" and "Driver log" tabs on the cluster page.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2024 20:25:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/permissions-error-on-cluster-requirements-txt-installation/m-p/103163#M2597</guid>
      <dc:creator>rtreves</dc:creator>
      <dc:date>2024-12-24T20:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Permissions error on cluster requirements.txt installation</title>
      <link>https://community.databricks.com/t5/administration-architecture/permissions-error-on-cluster-requirements-txt-installation/m-p/103940#M2648</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/106294"&gt;@Alberto_Umana&lt;/a&gt;&amp;nbsp;, do you have any further recommendations or updates?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2025 13:52:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/permissions-error-on-cluster-requirements-txt-installation/m-p/103940#M2648</guid>
      <dc:creator>rtreves</dc:creator>
      <dc:date>2025-01-02T13:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Permissions error on cluster requirements.txt installation</title>
      <link>https://community.databricks.com/t5/administration-architecture/permissions-error-on-cluster-requirements-txt-installation/m-p/103944#M2649</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/105962"&gt;@rtreves&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Could you please enable logging on the cluster and restart it so that when error happens you can validate logging to have more details on why library installation fails?&lt;/P&gt;
&lt;P&gt;What type of cluster are you using? shared access mode or single mode?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2025 14:14:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/permissions-error-on-cluster-requirements-txt-installation/m-p/103944#M2649</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2025-01-02T14:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Permissions error on cluster requirements.txt installation</title>
      <link>https://community.databricks.com/t5/administration-architecture/permissions-error-on-cluster-requirements-txt-installation/m-p/103957#M2650</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/106294"&gt;@Alberto_Umana&lt;/a&gt;&amp;nbsp;I enabled logging and restarted the cluster (which is shared access, though the issue recurs with single access mode clusters). I've uploaded the log files at this google drive folder:&amp;nbsp;&lt;A href="https://drive.google.com/drive/folders/1EdEF6yYjqgdJuUgcAX22xYN7P2bLsTwf?usp=sharing" target="_blank"&gt;https://drive.google.com/drive/folders/1EdEF6yYjqgdJuUgcAX22xYN7P2bLsTwf?usp=sharing&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2025 14:56:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/permissions-error-on-cluster-requirements-txt-installation/m-p/103957#M2650</guid>
      <dc:creator>rtreves</dc:creator>
      <dc:date>2025-01-02T14:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: Permissions error on cluster requirements.txt installation</title>
      <link>https://community.databricks.com/t5/administration-architecture/permissions-error-on-cluster-requirements-txt-installation/m-p/103961#M2651</link>
      <description>&lt;P&gt;Thanks, I will review them and get back if I can find the root of the issue.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2025 15:04:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/permissions-error-on-cluster-requirements-txt-installation/m-p/103961#M2651</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2025-01-02T15:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: Permissions error on cluster requirements.txt installation</title>
      <link>https://community.databricks.com/t5/administration-architecture/permissions-error-on-cluster-requirements-txt-installation/m-p/103962#M2652</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/105962"&gt;@rtreves&lt;/a&gt;&amp;nbsp;- is there a chance you can raise a case with us? Do you have any active support plan?&lt;/P&gt;
&lt;P&gt;Based on the error, problem is definitely with permissions on the git folder. Can you validate the "Share" permissions under your git folder /Workspace/Repos?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="a-b-r-La"&gt;25/01/02 14:28:15 WARN LibraryState: [Thread 186] Failed to install library file:/Workspace/Repos/BC/tributary-lab-utils/requirements.txt
org.apache.spark.SparkException: requirements.txt installation failed with output: ERROR: Could not open requirements file: [Errno 13] Permission denied: '/Workspace/Repos/BC/tributary-lab-utils/requirements.txt'
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2025 15:11:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/permissions-error-on-cluster-requirements-txt-installation/m-p/103962#M2652</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2025-01-02T15:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Permissions error on cluster requirements.txt installation</title>
      <link>https://community.databricks.com/t5/administration-architecture/permissions-error-on-cluster-requirements-txt-installation/m-p/103966#M2653</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/106294"&gt;@Alberto_Umana&lt;/a&gt;&amp;nbsp;I don't believe we have an active support plan.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached below is a screenshot of the share permissions for the&amp;nbsp; /Workspace/Repos folder. It is the same for the /Workspace/Repos/BC subfolder. I am not an admin.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-01-02 at 10.15.27 AM.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/13828i5BBFB59679C1C376/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2025-01-02 at 10.15.27 AM.png" alt="Screenshot 2025-01-02 at 10.15.27 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2025 15:16:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/permissions-error-on-cluster-requirements-txt-installation/m-p/103966#M2653</guid>
      <dc:creator>rtreves</dc:creator>
      <dc:date>2025-01-02T15:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Permissions error on cluster requirements.txt installation</title>
      <link>https://community.databricks.com/t5/administration-architecture/permissions-error-on-cluster-requirements-txt-installation/m-p/103967#M2654</link>
      <description>&lt;P&gt;Got it, so it does look you don't have access, can you add yourself (or ask you admin to add you) and test it?&lt;/P&gt;
&lt;P&gt;You need to have the necessary permissions to install libraries on the cluster. This typically means you should have the "Can Manage" permission on the cluster&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2025 15:18:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/permissions-error-on-cluster-requirements-txt-installation/m-p/103967#M2654</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2025-01-02T15:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: Permissions error on cluster requirements.txt installation</title>
      <link>https://community.databricks.com/t5/administration-architecture/permissions-error-on-cluster-requirements-txt-installation/m-p/103971#M2655</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/106294"&gt;@Alberto_Umana&lt;/a&gt;&amp;nbsp;Ah, that makes sense. I gave myself manage permissions on the folder and the issue resolved. I think this is a workable solution for my use case. Thank you for your help!&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2025 15:32:01 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/permissions-error-on-cluster-requirements-txt-installation/m-p/103971#M2655</guid>
      <dc:creator>rtreves</dc:creator>
      <dc:date>2025-01-02T15:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Permissions error on cluster requirements.txt installation</title>
      <link>https://community.databricks.com/t5/administration-architecture/permissions-error-on-cluster-requirements-txt-installation/m-p/103979#M2656</link>
      <description>&lt;P&gt;Glad it got solved! let me know if you have any other questions.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2025 16:26:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/permissions-error-on-cluster-requirements-txt-installation/m-p/103979#M2656</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2025-01-02T16:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Permissions error on cluster requirements.txt installation</title>
      <link>https://community.databricks.com/t5/administration-architecture/permissions-error-on-cluster-requirements-txt-installation/m-p/103997#M2657</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/106294"&gt;@Alberto_Umana&lt;/a&gt;&amp;nbsp; Apologies, but I realized the issue resolved when I tested on a single-access cluster, but I'm still seeing the error on a shared access cluster (the same one from which the error logs were produced). I have manage permissions on the github folder, as well as on the cluster itself. I have "Can use" permission on the cluster policy (I don't see an option to change that permission to any other value).&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2025 19:32:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/permissions-error-on-cluster-requirements-txt-installation/m-p/103997#M2657</guid>
      <dc:creator>rtreves</dc:creator>
      <dc:date>2025-01-02T19:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Permissions error on cluster requirements.txt installation</title>
      <link>https://community.databricks.com/t5/administration-architecture/permissions-error-on-cluster-requirements-txt-installation/m-p/104130#M2668</link>
      <description>&lt;P&gt;Noting here for other users: I was able to resolve the issue on a shared cluster by cloning the cluster and using the clone.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2025 18:22:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/permissions-error-on-cluster-requirements-txt-installation/m-p/104130#M2668</guid>
      <dc:creator>rtreves</dc:creator>
      <dc:date>2025-01-03T18:22:53Z</dc:date>
    </item>
  </channel>
</rss>

