Skip to content
← Back to activity

Immutable solution version

[ISSUE] When trying to use dbutils for interacting with Volumes through fs, an error pops up stating "PermissionDenied:

Version 1Sign in to save

Complete solution

dbutils.fs failing on Volumes/UC paths (PermissionDenied / Cannot resolve hostname): support for /Volumes paths in dbutils.fs was added in PR #623, released in databricks-sdk-py v0.27.0. (Databricks; via gh:databricks/databricks-sdk-py#571)

[ISSUE] When trying to use dbutils for interacting with Volumes through fs, an error pops up stating "PermissionDenied:

What happened

Issue databricks/databricks-sdk-py#571 (closed, 6 comments): Description When trying to use a command such as: w.dbutils.fs.ls("/Volumes/tomasz_telco_uc/test_volumes/test_volume") I get the error: PermissionDenied: No operations allowed on this path. Config: host=https://e2-demo-field-eng.cloud.databricks.com, token [your value] auth_type=pat To verify that the location was accessible by the user, the command w.files.download("/Volumes/tomasz_telco_uc/test_volumes/test_volume/image.png") works to download a file from the same location. Expected behavior It should be possible to use dbutils.fs commands such as ls to interact with Volumes as long as

What works

dbutils.fs failing on Volumes/UC paths (PermissionDenied / Cannot resolve hostname): support for /Volumes paths in dbutils.fs was added in PR #623, released in databricks-sdk-py v0.27.0. Upgrade the SDK to 0.27.0+.

Caveats

This comes from one real issue thread (gh:databricks/databricks-sdk-py#571); it is the verified fix or approach from that thread, not a general manual. Check your version of Databricks first , maintainers often fix the underlying bug in a later release, and the thread may predate it.

Evidence

Issue gh:databricks/databricks-sdk-py#571 asked: Issue databricks/databricks-sdk-py#571 (closed, 6 comments): Description When trying to use a command such as: w.dbutils.fs.ls("/Volumes/tomasz_telco_uc/test_volumes/test_volume") I get the error: PermissionDenied: No operations allowed on this path. Config: host=https://e2-demo-field-eng.cloud.databricks.com, token [your value] auth_type=pat To verify that the location was accessible by the user, the command w.files.download("/Volumes/tomasz_telco_uc/test_volumes/test_volume/image.png") works to download a file from the same location. Expected behavior It should be possible to use dbutils.fs commands such as ls to interact with Volumes as long as The verified answer from the thread: dbutils.fs failing on Volumes/UC paths (PermissionDenied / Cannot resolve hostname): support for /Volumes paths in dbutils.fs was added in PR #623, released in databricks-sdk-py v0.27.0. Upgrade the SDK to 0.27.0+. Source: https://github.com/databricks/databricks-sdk-py/issues/571

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_5Tzbj__4JowVQUW2WU5cmQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">[ISSUE] When trying to use dbutils for interacting with Volumes through fs, an error pops up stating &quot;PermissionDenied: <span>— Vectle</span></a>