<?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 Workspace folder is visible but .py file cannot be read on job cluster (DBR 18) in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/workspace-folder-is-visible-but-py-file-cannot-be-read-on-job/m-p/150710#M53501</link>
    <description>&lt;P&gt;Hi everyone,&lt;BR /&gt;We are running into a strange issue when running notebooks on Databricks job clusters using &lt;STRONG&gt;DBR 18&lt;/STRONG&gt;. It looks like the Workspace folder is mounted, but the .py file inside cannot be read immediately. I wanted to check if anyone else has experienced this or knows a recommended workaround.&lt;/P&gt;&lt;P&gt;The file is located here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;/Workspace/Shared/***/***/WidgetUtil.py.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;Inside the notebook we try to check if the file exists and then read it.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;STRONG&gt;What we observe:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;When the job cluster starts:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The Workspace folder appears to exist&lt;/LI&gt;&lt;LI&gt;os.path.exists("/Workspace/...") returns True&lt;/LI&gt;&lt;LI&gt;But trying to open the file fails. So the system thinks the folder is mounted, but the file cannot be read yet.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The output looks something like:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Notebook cwd: /Workspace/Shared/***/***&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;WidgetUtil exists: True&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Workspace exists: True&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Waiting for workspace file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/Workspace/Shared/***/***/WidgetUtil.py&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Exception: Workspace file not available after 120 seconds&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;&lt;SPAN&gt;Strange behavior:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;If we run the &lt;/SPAN&gt;same job later (sometimes an hour later)&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;UL&gt;&lt;LI&gt;The file becomes readable immediately&lt;/LI&gt;&lt;LI&gt;No code changes required&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;So it looks like the folder is mounted but the file contents are not available yet.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Additional notes:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;This issue happens mainly on job clusters&lt;/LI&gt;&lt;LI&gt;On interactive clusters, the file is available immediately&lt;/LI&gt;&lt;LI&gt;We are using Databricks Runtime 18&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Questions:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Is this expected behavior with Workspace FUSE mounts on job clusters on 18 DBR?&lt;/LI&gt;&lt;LI&gt;Is there a recommended way to reliably access .py files from /Workspace&amp;nbsp;in jobs?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;We would really appreciate any guidance or best practices.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 12 Mar 2026 14:39:28 GMT</pubDate>
    <dc:creator>Annie420</dc:creator>
    <dc:date>2026-03-12T14:39:28Z</dc:date>
    <item>
      <title>Workspace folder is visible but .py file cannot be read on job cluster (DBR 18)</title>
      <link>https://community.databricks.com/t5/data-engineering/workspace-folder-is-visible-but-py-file-cannot-be-read-on-job/m-p/150710#M53501</link>
      <description>&lt;P&gt;Hi everyone,&lt;BR /&gt;We are running into a strange issue when running notebooks on Databricks job clusters using &lt;STRONG&gt;DBR 18&lt;/STRONG&gt;. It looks like the Workspace folder is mounted, but the .py file inside cannot be read immediately. I wanted to check if anyone else has experienced this or knows a recommended workaround.&lt;/P&gt;&lt;P&gt;The file is located here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;/Workspace/Shared/***/***/WidgetUtil.py.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;Inside the notebook we try to check if the file exists and then read it.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;STRONG&gt;What we observe:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;When the job cluster starts:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The Workspace folder appears to exist&lt;/LI&gt;&lt;LI&gt;os.path.exists("/Workspace/...") returns True&lt;/LI&gt;&lt;LI&gt;But trying to open the file fails. So the system thinks the folder is mounted, but the file cannot be read yet.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The output looks something like:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Notebook cwd: /Workspace/Shared/***/***&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;WidgetUtil exists: True&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Workspace exists: True&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Waiting for workspace file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/Workspace/Shared/***/***/WidgetUtil.py&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Exception: Workspace file not available after 120 seconds&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;&lt;SPAN&gt;Strange behavior:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;If we run the &lt;/SPAN&gt;same job later (sometimes an hour later)&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;UL&gt;&lt;LI&gt;The file becomes readable immediately&lt;/LI&gt;&lt;LI&gt;No code changes required&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;So it looks like the folder is mounted but the file contents are not available yet.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Additional notes:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;This issue happens mainly on job clusters&lt;/LI&gt;&lt;LI&gt;On interactive clusters, the file is available immediately&lt;/LI&gt;&lt;LI&gt;We are using Databricks Runtime 18&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Questions:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Is this expected behavior with Workspace FUSE mounts on job clusters on 18 DBR?&lt;/LI&gt;&lt;LI&gt;Is there a recommended way to reliably access .py files from /Workspace&amp;nbsp;in jobs?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;We would really appreciate any guidance or best practices.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 12 Mar 2026 14:39:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/workspace-folder-is-visible-but-py-file-cannot-be-read-on-job/m-p/150710#M53501</guid>
      <dc:creator>Annie420</dc:creator>
      <dc:date>2026-03-12T14:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Workspace folder is visible but .py file cannot be read on job cluster (DBR 18)</title>
      <link>https://community.databricks.com/t5/data-engineering/workspace-folder-is-visible-but-py-file-cannot-be-read-on-job/m-p/150875#M53537</link>
      <description>&lt;P&gt;Can you try this method for reading workspace files .&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/aws/en/files/workspace-interact" target="_blank"&gt;https://docs.databricks.com/aws/en/files/workspace-interact&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you can , use git folders instead of workspace files fi above method doesn't work for some reason.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Mar 2026 05:50:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/workspace-folder-is-visible-but-py-file-cannot-be-read-on-job/m-p/150875#M53537</guid>
      <dc:creator>pradeep_singh</dc:creator>
      <dc:date>2026-03-14T05:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: Workspace folder is visible but .py file cannot be read on job cluster (DBR 18)</title>
      <link>https://community.databricks.com/t5/data-engineering/workspace-folder-is-visible-but-py-file-cannot-be-read-on-job/m-p/150876#M53538</link>
      <description>&lt;P&gt;The error might be because of delay in workspace files being accessible .&amp;nbsp;&lt;/P&gt;&lt;P&gt;The /Workspace mount point appears quickly, but the FUSE daemon may still be initializing auth, metadata, and connections to the workspace storage account.&lt;/P&gt;&lt;P&gt;FUSE = Filesystem in Userspace: a Linux mechanism where a user‑space daemon implements a filesystem that the kernel exposes as a normal mount point.On Databricks, paths like /Workspace/... (workspace files) and /Volumes/... (Unity Catalog volumes) are exposed via a FUSE layer .&lt;/P&gt;</description>
      <pubDate>Sat, 14 Mar 2026 05:54:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/workspace-folder-is-visible-but-py-file-cannot-be-read-on-job/m-p/150876#M53538</guid>
      <dc:creator>pradeep_singh</dc:creator>
      <dc:date>2026-03-14T05:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Workspace folder is visible but .py file cannot be read on job cluster (DBR 18)</title>
      <link>https://community.databricks.com/t5/data-engineering/workspace-folder-is-visible-but-py-file-cannot-be-read-on-job/m-p/151662#M53678</link>
      <description>&lt;P&gt;+1 to&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/202980"&gt;@pradeep_singh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Workspace FUSE (WSFS) daemons use ports 1015, 1017, and 1021 for communication between the driver and the executor. NFS tooling (hardcoded in glibc) can race with these ports during cluster startup, causing FUSE daemons to fail to bind. This explains the intermittent nature, sometimes the port race doesn't happen and it works fine.&lt;/P&gt;
&lt;P&gt;On interactive clusters, the driver accesses /Workspace via a local FUSE mount. On multi-node job clusters, executors must RPC to the driver over those ports (a fundamentally different code path).&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Check your VPC security group rules to&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;&amp;nbsp;ensure all TCP ports are open between nodes in the same security group (if you are using a managed VPC).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2026 00:55:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/workspace-folder-is-visible-but-py-file-cannot-be-read-on-job/m-p/151662#M53678</guid>
      <dc:creator>stbjelcevic</dc:creator>
      <dc:date>2026-03-23T00:55:18Z</dc:date>
    </item>
  </channel>
</rss>

