<?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: agents.deploy NOT_FOUND: The directory being accessed is not found. error in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/agents-deploy-not-found-the-directory-being-accessed-is-not/m-p/104993#M41967</link>
    <description>&lt;P&gt;Thanks &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/106294"&gt;@Alberto_Umana&lt;/a&gt;.&amp;nbsp;I think so, yes.&lt;/P&gt;&lt;P&gt;I am using the following code to register the models and when I print the&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# Use Unity Catalog as the model registry&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;mlflow.&lt;/SPAN&gt;&lt;SPAN&gt;set_registry_uri&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"databricks-uc"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;&lt;SPAN&gt;(model_info.model_uri)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# Register the model to the Unity Catalog&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;uc_registered_model_info &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; mlflow.&lt;/SPAN&gt;&lt;SPAN&gt;register_model&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;model_uri&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;model_info.model_uri, &lt;/SPAN&gt;&lt;SPAN&gt;name&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;UC_MODEL_NAME&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;and when I print&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;&lt;SPAN&gt;(uc_registered_model_info)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;I get this, so I believe there are versions registered&lt;/P&gt;&lt;P&gt;&amp;lt;ModelVersion: aliases=[], creation_timestamp=1736436606155, current_stage=None, description='', last_updated_timestamp=1736436613763, name='emoysis_catalog.cookbook.sop_chatbot', run_id='', run_link=None, source='dbfs:/databricks/mlflow-tracking/3498969875739103/0ee0f2039ef54180b474e285380fabca/artifacts/agent', status='READY', status_message='', tags={}, user_id='e.moysis@instadeep.com', version='10'&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jan 2025 16:52:06 GMT</pubDate>
    <dc:creator>ezermoysis</dc:creator>
    <dc:date>2025-01-09T16:52:06Z</dc:date>
    <item>
      <title>agents.deploy NOT_FOUND: The directory being accessed is not found. error</title>
      <link>https://community.databricks.com/t5/data-engineering/agents-deploy-not-found-the-directory-being-accessed-is-not/m-p/103300#M41397</link>
      <description>&lt;DIV&gt;I keep getting the following error although the model definitely&amp;nbsp;does exist and version names and model name is correct&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN class=""&gt;RestException: &lt;/SPAN&gt;&lt;SPAN&gt;NOT_FOUND: The directory being accessed is not found.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;when calling&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# Deploy the model to the review app and a model serving endpoint&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;agents.&lt;/SPAN&gt;&lt;SPAN&gt;deploy&lt;/SPAN&gt;&lt;SPAN&gt;(model_name, model_version, &lt;/SPAN&gt;&lt;SPAN&gt;scale_to_zero&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;True&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;( i'm on a free trial )&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 27 Dec 2024 13:20:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/agents-deploy-not-found-the-directory-being-accessed-is-not/m-p/103300#M41397</guid>
      <dc:creator>stevomcnevo007</dc:creator>
      <dc:date>2024-12-27T13:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: agents.deploy NOT_FOUND: The directory being accessed is not found. error</title>
      <link>https://community.databricks.com/t5/data-engineering/agents-deploy-not-found-the-directory-being-accessed-is-not/m-p/103302#M41399</link>
      <description>&lt;P class="p1"&gt;The error message "RestException: NOT_FOUND: The directory being accessed is not found" typically indicates that the model or its version cannot be located in the specified directory. Here are a few steps you can take to troubleshoot and resolve this issue:&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL class="ol1"&gt;
&lt;LI class="li1"&gt;&lt;STRONG&gt;Verify Model URI&lt;/STRONG&gt;: Ensure that the model URI is correctly specified. The model URI should follow the format models:/&amp;lt;model_name&amp;gt;/&amp;lt;model_version&amp;gt;. Double-check for any typos in the model name or version.&lt;/LI&gt;
&lt;LI class="li1"&gt;&lt;STRONG&gt;Check Model Registration&lt;/STRONG&gt;: Confirm that the model and its version are registered in the MLflow Model Registry. You can do this by navigating to the Model Registry in the Databricks workspace and verifying that the model and version exist.&lt;/LI&gt;
&lt;LI class="li1"&gt;&lt;STRONG&gt;Permissions&lt;/STRONG&gt;: Ensure that you have the necessary permissions to access the model and its version. Lack of permissions can sometimes result in a "not found" error.&lt;/LI&gt;
&lt;LI class="li1"&gt;&lt;STRONG&gt;Model Serving Endpoint&lt;/STRONG&gt;: If you are using Unity Catalog, ensure that the model serving endpoint is correctly set up and that there are no issues with the endpoint configuration.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P class="p1"&gt;Here is an example of how to verify the model URI and check the model registration&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;import mlflow&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;# Set the registry URI to Databricks&lt;/P&gt;
&lt;P class="p1"&gt;mlflow.set_registry_uri("databricks-uc")&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;# Define the model URI&lt;/P&gt;
&lt;P class="p1"&gt;model_uri = f"models:/{model_name}/{model_version}"&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;# Check if the model exists&lt;/P&gt;
&lt;P class="p1"&gt;try:&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;model_info = mlflow.models.get_model_info(model_uri)&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;print(f"Model {model_name} version {model_version} exists.")&lt;/P&gt;
&lt;P class="p1"&gt;except mlflow.exceptions.MlflowException as e:&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;print(f"Error: {e}")&lt;/P&gt;</description>
      <pubDate>Fri, 27 Dec 2024 13:43:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/agents-deploy-not-found-the-directory-being-accessed-is-not/m-p/103302#M41399</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2024-12-27T13:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: agents.deploy NOT_FOUND: The directory being accessed is not found. error</title>
      <link>https://community.databricks.com/t5/data-engineering/agents-deploy-not-found-the-directory-being-accessed-is-not/m-p/103324#M41402</link>
      <description>&lt;P&gt;When running this, getting this which looks like it's going to the default directory, this is not where the model sits I think:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Error: RESOURCE_DOES_NOT_EXIST: Routine or Model 'viable_test.default.egg_chat' does not exist.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Dec 2024 15:54:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/agents-deploy-not-found-the-directory-being-accessed-is-not/m-p/103324#M41402</guid>
      <dc:creator>stevomcnevo007</dc:creator>
      <dc:date>2024-12-27T15:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: agents.deploy NOT_FOUND: The directory being accessed is not found. error</title>
      <link>https://community.databricks.com/t5/data-engineering/agents-deploy-not-found-the-directory-being-accessed-is-not/m-p/103358#M41416</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="_1t7bu9h1 paragraph"&gt;Check the code or configuration files where the model is being referenced or loaded. The path or directory of the model is often specified in these files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Dec 2024 20:17:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/agents-deploy-not-found-the-directory-being-accessed-is-not/m-p/103358#M41416</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2024-12-27T20:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: agents.deploy NOT_FOUND: The directory being accessed is not found. error</title>
      <link>https://community.databricks.com/t5/data-engineering/agents-deploy-not-found-the-directory-being-accessed-is-not/m-p/103538#M41474</link>
      <description>&lt;P&gt;Checked the config.yml file and it looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;agent_prompt: &lt;/SPAN&gt;&lt;SPAN&gt;"Use functions to interact with questions about eggs / henhouse."&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;llm_endpoint: &lt;/SPAN&gt;&lt;SPAN&gt;"databricks-meta-llama-3-3-70b-instruct"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;warehouse_id: &lt;/SPAN&gt;&lt;SPAN&gt;"1c7bf12e78b673de"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;uc_functions:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"main.egg_shop.*"&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;Still struggling to get this operational&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 30 Dec 2024 13:10:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/agents-deploy-not-found-the-directory-being-accessed-is-not/m-p/103538#M41474</guid>
      <dc:creator>stevomcnevo007</dc:creator>
      <dc:date>2024-12-30T13:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: agents.deploy NOT_FOUND: The directory being accessed is not found. error</title>
      <link>https://community.databricks.com/t5/data-engineering/agents-deploy-not-found-the-directory-being-accessed-is-not/m-p/103598#M41512</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/138036"&gt;@stevomcnevo007&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for sharing the details so far! To help construct the correct resource path and resolve the issue, could you provide a bit more information?&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Model Details&lt;/STRONG&gt;:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;What is the exact model name and version you’re trying to deploy?&lt;/LI&gt;
&lt;LI&gt;Is the model registered under Unity Catalog or the workspace's default model registry?&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Cluster/Endpoint Setup&lt;/STRONG&gt;:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Are you using a specific cluster mode (e.g., serverless, shared, or single-user)?&lt;/LI&gt;
&lt;LI&gt;Is the &lt;CODE&gt;llm_endpoint&lt;/CODE&gt; (&lt;CODE&gt;databricks-meta-llama-3-3-70b-instruct&lt;/CODE&gt;) accessible and correctly set up for your workspace?&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Error Message Context&lt;/STRONG&gt;:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Can you confirm where the deployment is failing (e.g., during &lt;CODE&gt;agents.deploy&lt;/CODE&gt; or a related step)?&lt;/LI&gt;
&lt;LI&gt;Share the full error message (or stack trace) if possible, as it can provide more insight.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Config File Alignment&lt;/STRONG&gt;:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Does the &lt;CODE&gt;config.yml&lt;/CODE&gt; align with the actual model location in the registry? For example, is &lt;CODE&gt;main.egg_shop.*&lt;/CODE&gt; referencing the correct schema for &lt;CODE&gt;viable_test.default.egg_chat&lt;/CODE&gt;?&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Ultimately, what is the version of this test code with values if it can be shared, to help us diagnose this problem.&amp;nbsp;If the uc_functions parameter (main.egg_shop.*) relates to Unity Catalog, ensure the model's schema (viable_test.default) matches the catalog/schema setup. Also, check you have the necessary permissions to access the model (GRANT USE on Catalog / GRANT SELECT ON Model).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2024 17:08:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/agents-deploy-not-found-the-directory-being-accessed-is-not/m-p/103598#M41512</guid>
      <dc:creator>VZLA</dc:creator>
      <dc:date>2024-12-30T17:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: agents.deploy NOT_FOUND: The directory being accessed is not found. error</title>
      <link>https://community.databricks.com/t5/data-engineering/agents-deploy-not-found-the-directory-being-accessed-is-not/m-p/103650#M41530</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Just wanted to add some clarity on this issue that might shine some light regarding the issue, i've tried setting up multiple models including the Databricks 'dbdemos', 'llm-tag-chatbot' examples and it's resulted in the same directory issues around agents.deploy()&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Model Details&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;What is the exact model name and version you’re trying to deploy?&lt;BR /&gt;- The model is called egg_chat and version 12 at the moment but i've been trying the right version throughout&lt;/LI&gt;&lt;LI&gt;Is the model registered under Unity Catalog or the workspace's default model registry?&lt;BR /&gt;- The model is registered in the Unity Catalog 'My organization' under the 'main' folder, I've tried switching the workspace default catalog to main but the problem still persists&amp;nbsp;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Cluster/Endpoint Setup&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Are you using a specific cluster mode (e.g., serverless, shared, or single-user)?&lt;BR /&gt;- Workspace is setup using 'Default Compute and storage' advanced option when creating workspace&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Is the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;llm_endpoint&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(databricks-meta-llama-3-3-70b-instruct) accessible and correctly set up for your workspace?&lt;BR /&gt;- Yes, everything is working fine when using Playground&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Error Message Context&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Can you confirm where the deployment is failing (e.g., during&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;agents.deploy&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;or a related step)?&lt;BR /&gt;- failing at agents.deploy() due to directory access issue&lt;/LI&gt;&lt;LI&gt;Share the full error message (or stack trace) if possible, as it can provide more insight.&lt;BR /&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;- &lt;STRONG&gt;This is the error message from the dbdemos example but it's the same error for the egg_chat notebook:&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;RestException: &lt;/SPAN&gt;NOT_FOUND: The directory being accessed is not found.&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;File &lt;SPAN class=""&gt;&lt;A target="_blank"&gt;&amp;lt;command-2153827424805746&amp;gt;&lt;/A&gt;, line 5&lt;/SPAN&gt; &lt;SPAN&gt;2&lt;/SPAN&gt; &lt;SPAN&gt;print&lt;/SPAN&gt;(MODEL_NAME_FQN) &lt;SPAN&gt;3&lt;/SPAN&gt; &lt;SPAN&gt;# Deploy to enable the Review APP and create an API endpoint&lt;/SPAN&gt; &lt;SPAN&gt;4&lt;/SPAN&gt; &lt;SPAN&gt;# Note: scaling down to zero will provide unexpected behavior for the chat app. Set it to false for a prod-ready application.&lt;/SPAN&gt; &lt;SPAN class=""&gt;----&amp;gt; 5&lt;/SPAN&gt; deployment_info &lt;SPAN&gt;=&lt;/SPAN&gt; agents&lt;SPAN&gt;.&lt;/SPAN&gt;deploy(&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;rag_chatbot.basic_rag_demo&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;, model_version&lt;SPAN&gt;=&lt;/SPAN&gt;uc_registered_model_info&lt;SPAN&gt;.&lt;/SPAN&gt;version, scale_to_zero&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;True&lt;/SPAN&gt;) &lt;SPAN&gt;7&lt;/SPAN&gt; instructions_to_reviewer &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;f&lt;/SPAN&gt;&lt;SPAN&gt;"""&lt;/SPAN&gt;&lt;SPAN&gt;## Instructions for Testing the Databricks Documentation Assistant chatbot&lt;/SPAN&gt; &lt;SPAN&gt;8&lt;/SPAN&gt; &lt;SPAN&gt;9&lt;/SPAN&gt; &lt;SPAN&gt;Your inputs are invaluable for the development team. By providing detailed feedback and corrections, you help us fix issues and improve the overall quality of the application. We rely on your expertise to identify any gaps or areas needing enhancement.&lt;/SPAN&gt;&lt;SPAN&gt;"""&lt;/SPAN&gt; &lt;SPAN&gt;11&lt;/SPAN&gt; &lt;SPAN&gt;# Add the user-facing instructions to the Review App&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Config File Alignment&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Does the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;config.yml&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;align with the actual model location in the registry? For example, is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;main.egg_shop.*&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;referencing the correct schema for&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;viable_test.default.egg_chat?&lt;BR /&gt;-&amp;nbsp;&lt;STRONG&gt;viable_test.default.egg_chat&lt;/STRONG&gt; does not exist, this is the issue I believe&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Tue, 31 Dec 2024 09:33:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/agents-deploy-not-found-the-directory-being-accessed-is-not/m-p/103650#M41530</guid>
      <dc:creator>stevomcnevo007</dc:creator>
      <dc:date>2024-12-31T09:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: agents.deploy NOT_FOUND: The directory being accessed is not found. error</title>
      <link>https://community.databricks.com/t5/data-engineering/agents-deploy-not-found-the-directory-being-accessed-is-not/m-p/103665#M41538</link>
      <description>&lt;LI-CODE lang="markup"&gt;- viable_test.default.egg_chat does not exist, this is the issue I believe&lt;/LI-CODE&gt;
&lt;P&gt;I see. Let's ignore the "&lt;SPAN&gt;rag_chatbot.basic_rag_demo" error for now, and focus on the egg_chat.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;So, you stated in your details:&amp;nbsp;&lt;EM&gt;"The model is registered in the Unity Catalog 'My organization' under the 'main' folder, I've tried switching the workspace default catalog to main but the problem still persists.".&amp;nbsp;&lt;/EM&gt;This indicates that the main catalog is where the model resides.&amp;nbsp;Your config.yml includes:&amp;nbsp;&lt;EM&gt;uc_functions: "main.egg_shop.*"&lt;/EM&gt;.&amp;nbsp;This suggests that egg_shop is the schema intended for use with this model.&amp;nbsp;The model name egg_chat is consistent throughout your responses, therefore assuming it’s the correct name, the fully qualified name (FQN) should logically be&amp;nbsp;&lt;STRONG&gt;main.egg_shop.egg_chat&amp;nbsp;&lt;/STRONG&gt;(please correct me if I'm wrong), instead of viable_test. Viable_test may be getting prepended as default catalog perhaps? Not really sure, but it does sounds like we have to manually set it to be "main" instead.&lt;/P&gt;
&lt;P&gt;Can you please run this code below once, from a notebook? It should check both UC and WMR, and ideally find and extract where it is registered if so along with metadata related to it, hope it helps:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;from mlflow.tracking.client import MlflowClient
import mlflow

# Initialize MLflow client
client = MlflowClient()

# Specify the model's logical name or partial name to search for
search_model = "egg_chat"

# Function to search for models in a specific registry
def search_registry(uri, model_name):
    mlflow.set_registry_uri(uri)
    client = MlflowClient()
    models = client.search_registered_models()
    for model in models:
        if model_name in model.name:
            return model
    return None

# Check Unity Catalog first
mlflow.set_registry_uri("databricks-uc")
uc_model = search_registry("databricks-uc", search_model)

# If not found in UC, check Workspace Model Registry
if not uc_model:
    print("Model not found in Unity Catalog. Searching Workspace Model Registry...")
    workspace_model = search_registry(None, search_model)
else:
    workspace_model = None

# Function to print detailed model metadata
def print_model_details(model, registry_type):
    print(f"Model found in {registry_type}: {model.name}")
    parts = model.name.split(".")
    if len(parts) == 3:
        catalog, schema, model_name = parts
        print(f"Catalog: {catalog}, Schema: {schema}, Model: {model_name}")
    else:
        print(f"Model Name: {model.name}")
    
    print(f"Tags: {model.tags}")
    if model.latest_versions:
        for version in model.latest_versions:
            print(f" - Version: {version.version}")
            print(f"   Source: {version.source}")
            print(f"   Stage: {version.current_stage}")
            print(f"   Run ID: {version.run_id}")
    else:
        print("No versions available for this model.")

# Print results for both registries
if uc_model:
    print_model_details(uc_model, "Unity Catalog")
if workspace_model:
    print_model_details(workspace_model, "Workspace Model Registry")
if not uc_model and not workspace_model:
    print("Model not found in either Unity Catalog or Workspace Model Registry.")
&lt;/LI-CODE&gt;
&lt;P&gt;Then update both the config.yml and agents.deploy as required.&lt;/P&gt;
&lt;P&gt;Going back to the original code, what's the output you're getting from:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;import mlflow
mlflow.set_registry_uri("databricks-uc")
model_uri = f"models:/main.egg_shop.egg_chat/1"
try:
    model_info = mlflow.models.get_model_info(model_uri)
    print(f"Model {model_name} version {model_version} exists.")
except mlflow.exceptions.MlflowException as e:
    print(f"Error: {e}")​&lt;/LI-CODE&gt;
&lt;P&gt;&lt;STRONG&gt;* Note&lt;/STRONG&gt;: you may need to later on check on the model grants, or version, these other side issues should be straight forward to resolve.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Dec 2024 12:34:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/agents-deploy-not-found-the-directory-being-accessed-is-not/m-p/103665#M41538</guid>
      <dc:creator>VZLA</dc:creator>
      <dc:date>2024-12-31T12:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: agents.deploy NOT_FOUND: The directory being accessed is not found. error</title>
      <link>https://community.databricks.com/t5/data-engineering/agents-deploy-not-found-the-directory-being-accessed-is-not/m-p/103687#M41550</link>
      <description>&lt;PRE&gt;When running the first section of code this is the reponse:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Model found in Unity Catalog: main.egg_shop.egg_chat Catalog: main, Schema: egg_shop, Model: egg_chat Tags: &amp;lt;bound method RegisteredModelSearch.tags of &amp;lt;RegisteredModelSearch: &amp;gt;&amp;gt; No versions available for this model.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When running second section&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Error: NOT_FOUND: The directory being accessed is not found.&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Dec 2024 13:36:01 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/agents-deploy-not-found-the-directory-being-accessed-is-not/m-p/103687#M41550</guid>
      <dc:creator>stevomcnevo007</dc:creator>
      <dc:date>2024-12-31T13:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: agents.deploy NOT_FOUND: The directory being accessed is not found. error</title>
      <link>https://community.databricks.com/t5/data-engineering/agents-deploy-not-found-the-directory-being-accessed-is-not/m-p/104981#M41962</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/34618"&gt;@VZLA&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/106294"&gt;@Alberto_Umana&lt;/a&gt; , I am currently facing the same issue as &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/138036"&gt;@stevomcnevo007&lt;/a&gt; . I get exactly the same outputs in the scripts that you have provided above and still unable to deploy the model. Can you please help?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 16:00:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/agents-deploy-not-found-the-directory-being-accessed-is-not/m-p/104981#M41962</guid>
      <dc:creator>ezermoysis</dc:creator>
      <dc:date>2025-01-09T16:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: agents.deploy NOT_FOUND: The directory being accessed is not found. error</title>
      <link>https://community.databricks.com/t5/data-engineering/agents-deploy-not-found-the-directory-being-accessed-is-not/m-p/104987#M41964</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/142035"&gt;@ezermoysis&lt;/a&gt;&amp;nbsp;/&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/138036"&gt;@stevomcnevo007&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Can you confirm that there are versions of the model registered yet?&lt;/P&gt;
&lt;P&gt;This can happen if the model has been registered but no versions have been created or logged yet&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 16:42:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/agents-deploy-not-found-the-directory-being-accessed-is-not/m-p/104987#M41964</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2025-01-09T16:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: agents.deploy NOT_FOUND: The directory being accessed is not found. error</title>
      <link>https://community.databricks.com/t5/data-engineering/agents-deploy-not-found-the-directory-being-accessed-is-not/m-p/104993#M41967</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/106294"&gt;@Alberto_Umana&lt;/a&gt;.&amp;nbsp;I think so, yes.&lt;/P&gt;&lt;P&gt;I am using the following code to register the models and when I print the&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# Use Unity Catalog as the model registry&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;mlflow.&lt;/SPAN&gt;&lt;SPAN&gt;set_registry_uri&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"databricks-uc"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;&lt;SPAN&gt;(model_info.model_uri)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# Register the model to the Unity Catalog&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;uc_registered_model_info &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; mlflow.&lt;/SPAN&gt;&lt;SPAN&gt;register_model&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;model_uri&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;model_info.model_uri, &lt;/SPAN&gt;&lt;SPAN&gt;name&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;UC_MODEL_NAME&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;and when I print&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;&lt;SPAN&gt;(uc_registered_model_info)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;I get this, so I believe there are versions registered&lt;/P&gt;&lt;P&gt;&amp;lt;ModelVersion: aliases=[], creation_timestamp=1736436606155, current_stage=None, description='', last_updated_timestamp=1736436613763, name='emoysis_catalog.cookbook.sop_chatbot', run_id='', run_link=None, source='dbfs:/databricks/mlflow-tracking/3498969875739103/0ee0f2039ef54180b474e285380fabca/artifacts/agent', status='READY', status_message='', tags={}, user_id='e.moysis@instadeep.com', version='10'&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 16:52:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/agents-deploy-not-found-the-directory-being-accessed-is-not/m-p/104993#M41967</guid>
      <dc:creator>ezermoysis</dc:creator>
      <dc:date>2025-01-09T16:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: agents.deploy NOT_FOUND: The directory being accessed is not found. error</title>
      <link>https://community.databricks.com/t5/data-engineering/agents-deploy-not-found-the-directory-being-accessed-is-not/m-p/104996#M41968</link>
      <description>&lt;P&gt;I note that I am using free version and trying to follow this guide: &lt;A href="https://ai-cookbook.io/nbs/5-hands-on-build-poc.html" target="_blank"&gt;https://ai-cookbook.io/nbs/5-hands-on-build-poc.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 16:56:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/agents-deploy-not-found-the-directory-being-accessed-is-not/m-p/104996#M41968</guid>
      <dc:creator>ezermoysis</dc:creator>
      <dc:date>2025-01-09T16:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: agents.deploy NOT_FOUND: The directory being accessed is not found. error</title>
      <link>https://community.databricks.com/t5/data-engineering/agents-deploy-not-found-the-directory-being-accessed-is-not/m-p/105177#M42027</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/106294"&gt;@Alberto_Umana&lt;/a&gt;Below I add all the log:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;File &amp;lt;command-3498969875739223&amp;gt;, line 12
     10 print(UC_MODEL_NAME)
     11 print(uc_registered_model_info.version)
---&amp;gt; 12 deployment_info = agents.deploy("emoysis_catalog.cookbook.sop_chatbot", 13)
     14 # Wait for the Review App to be ready
     15 print("\nWaiting for endpoint to deploy.  This can take 15 - 20 minutes.", end="")
File /local_disk0/.ephemeral_nfs/envs/pythonEnv-0ea80acf-754f-4b74-9414-f078ba584e3e/lib/python3.10/site-packages/databricks/agents/deployments.py:479, in deploy(model_name, model_version, scale_to_zero, environment_vars, instance_profile_arn, tags, workload_size, endpoint_name, **kwargs)
    451 def deploy(
    452     model_name: str,
    453     model_version: int,
   (...)
    460     **kwargs,
    461 ) -&amp;gt; Deployment:
    462     """
    463     Deploy new version of the agent.
    464 
   (...)
    477         Chain deployment metadata.
    478     """
--&amp;gt; 479     _check_model_is_rag_compatible(model_name, model_version)
    480     _check_model_name(model_name)
    481     if endpoint_name is None:
File /local_disk0/.ephemeral_nfs/envs/pythonEnv-0ea80acf-754f-4b74-9414-f078ba584e3e/lib/python3.10/site-packages/databricks/agents/utils/mlflow_utils.py:96, in _check_model_is_rag_compatible(model_name, version)
     95 def _check_model_is_rag_compatible(model_name: str, version: int):
---&amp;gt; 96     input_schema, output_schema = _load_model_schema(model_name, version)
     97     return _check_model_is_rag_compatible_helper(input_schema, output_schema)
File /local_disk0/.ephemeral_nfs/envs/pythonEnv-0ea80acf-754f-4b74-9414-f078ba584e3e/lib/python3.10/site-packages/databricks/agents/utils/mlflow_utils.py:90, in _load_model_schema(model_name, version)
     88 mlflow.set_registry_uri(get_databricks_uc_registry_uri())
     89 model_uri = f"models:/{model_name}/{str(version)}"
---&amp;gt; 90 model_info = mlflow.models.get_model_info(model_uri)
     91 signature = model_info.signature
     92 return signature.inputs, signature.outputs
File /local_disk0/.ephemeral_nfs/envs/pythonEnv-0ea80acf-754f-4b74-9414-f078ba584e3e/lib/python3.10/site-packages/mlflow/models/model.py:984, in get_model_info(model_uri)
    981 from mlflow.pyfunc import _download_artifact_from_uri
    983 meta_file_uri = model_uri.rstrip("/") + "/" + MLMODEL_FILE_NAME
--&amp;gt; 984 meta_local_path = _download_artifact_from_uri(artifact_uri=meta_file_uri)
    985 model_meta = Model.load(meta_local_path)
    986 return ModelInfo(
    987     artifact_path=model_meta.artifact_path,
    988     flavors=model_meta.flavors,
   (...)
    997     metadata=model_meta.metadata,
    998 )
File /local_disk0/.ephemeral_nfs/envs/pythonEnv-0ea80acf-754f-4b74-9414-f078ba584e3e/lib/python3.10/site-packages/mlflow/tracking/artifact_utils.py:111, in _download_artifact_from_uri(artifact_uri, output_path, lineage_header_info)
    108 repo = get_artifact_repository(artifact_uri=root_uri)
    110 if isinstance(repo, ModelsArtifactRepository):
--&amp;gt; 111     return repo.download_artifacts(
    112         artifact_path=artifact_path,
    113         dst_path=output_path,
    114         lineage_header_info=lineage_header_info,
    115     )
    116 return repo.download_artifacts(artifact_path=artifact_path, dst_path=output_path)
File /local_disk0/.ephemeral_nfs/envs/pythonEnv-0ea80acf-754f-4b74-9414-f078ba584e3e/lib/python3.10/site-packages/mlflow/store/artifact/models_artifact_repo.py:201, in ModelsArtifactRepository.download_artifacts(self, artifact_path, dst_path, lineage_header_info)
    199 # Pass lineage header info if model is registered in UC
    200 if isinstance(self.repo, UnityCatalogModelsArtifactRepository):
--&amp;gt; 201     model_path = self.repo.download_artifacts(
    202         artifact_path, dst_path, lineage_header_info=lineage_header_info
    203     )
    204 else:
    205     model_path = self.repo.download_artifacts(artifact_path, dst_path)
File /local_disk0/.ephemeral_nfs/envs/pythonEnv-0ea80acf-754f-4b74-9414-f078ba584e3e/lib/python3.10/site-packages/mlflow/store/artifact/unity_catalog_models_artifact_repo.py:157, in UnityCatalogModelsArtifactRepository.download_artifacts(self, artifact_path, dst_path, lineage_header_info)
    156 def download_artifacts(self, artifact_path, dst_path=None, lineage_header_info=None):
--&amp;gt; 157     return self._get_artifact_repo(lineage_header_info=lineage_header_info).download_artifacts(
    158         artifact_path, dst_path
    159     )
File /local_disk0/.ephemeral_nfs/envs/pythonEnv-0ea80acf-754f-4b74-9414-f078ba584e3e/lib/python3.10/site-packages/mlflow/store/artifact/artifact_repo.py:268, in ArtifactRepository.download_artifacts(self, artifact_path, dst_path)
    266 # Submit download tasks
    267 futures = {}
--&amp;gt; 268 if self._is_directory(artifact_path):
    269     for file_info in self._iter_artifacts_recursive(artifact_path):
    270         if file_info.is_dir:  # Empty directory
File /local_disk0/.ephemeral_nfs/envs/pythonEnv-0ea80acf-754f-4b74-9414-f078ba584e3e/lib/python3.10/site-packages/mlflow/store/artifact/artifact_repo.py:167, in ArtifactRepository._is_directory(self, artifact_path)
    166 def _is_directory(self, artifact_path):
--&amp;gt; 167     listing = self.list_artifacts(artifact_path)
    168     return len(listing) &amp;gt; 0
File /local_disk0/.ephemeral_nfs/envs/pythonEnv-0ea80acf-754f-4b74-9414-f078ba584e3e/lib/python3.10/site-packages/mlflow/store/artifact/presigned_url_artifact_repo.py:104, in PresignedUrlArtifactRepository.list_artifacts(self, path)
    101 req_body = json.dumps({"page_token": page_token}) if page_token else None
    103 response_proto = ListDirectoryResponse()
--&amp;gt; 104 resp = call_endpoint(
    105     host_creds=self.db_creds,
    106     endpoint=endpoint,
    107     method="GET",
    108     json_body=req_body,
    109     response_proto=response_proto,
    110 )
    111 for dir_entry in resp.contents:
    112     rel_path = posixpath.relpath(dir_entry.path, self.artifact_uri)
File /local_disk0/.ephemeral_nfs/envs/pythonEnv-0ea80acf-754f-4b74-9414-f078ba584e3e/lib/python3.10/site-packages/mlflow/utils/rest_utils.py:370, in call_endpoint(host_creds, endpoint, method, json_body, response_proto, extra_headers)
    367     call_kwargs["json"] = json_body
    368     response = http_request(**call_kwargs)
--&amp;gt; 370 response = verify_rest_response(response, endpoint)
    371 response_to_parse = response.text
    372 js_dict = json.loads(response_to_parse)
File /local_disk0/.ephemeral_nfs/envs/pythonEnv-0ea80acf-754f-4b74-9414-f078ba584e3e/lib/python3.10/site-packages/mlflow/utils/rest_utils.py:240, in verify_rest_response(response, endpoint)
    238 if response.status_code != 200:
    239     if _can_parse_as_json_object(response.text):
--&amp;gt; 240         raise RestException(json.loads(response.text))
    241     else:
    242         base_msg = (
    243             f"API request to endpoint {endpoint} "
    244             f"failed with error code {response.status_code} != 200"
    245         )&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 10 Jan 2025 13:38:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/agents-deploy-not-found-the-directory-being-accessed-is-not/m-p/105177#M42027</guid>
      <dc:creator>ezermoysis</dc:creator>
      <dc:date>2025-01-10T13:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: agents.deploy NOT_FOUND: The directory being accessed is not found. error</title>
      <link>https://community.databricks.com/t5/data-engineering/agents-deploy-not-found-the-directory-being-accessed-is-not/m-p/105451#M42130</link>
      <description>&lt;P&gt;Any fix here?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2025 16:47:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/agents-deploy-not-found-the-directory-being-accessed-is-not/m-p/105451#M42130</guid>
      <dc:creator>stevomcnevo007</dc:creator>
      <dc:date>2025-01-13T16:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: agents.deploy NOT_FOUND: The directory being accessed is not found. error</title>
      <link>https://community.databricks.com/t5/data-engineering/agents-deploy-not-found-the-directory-being-accessed-is-not/m-p/105576#M42191</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/138036"&gt;@stevomcnevo007&lt;/a&gt;&amp;nbsp;I would suggest raising a support ticket at this point for direct collaboration on the resolution. Meanwhile I'd like to understand if there are any errors related to permission or artifact paths, or some additional error details to pinpoint the root cause:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;import mlflow
from databricks import agents

# Set Unity Catalog as the registry
mlflow.set_registry_uri("databricks-uc")

# Verify the registered model and its schema
print(uc_registered_model_info)
model_info = mlflow.models.get_model_info(
    f"models:/emoysis_catalog.cookbook.sop_chatbot/{uc_registered_model_info.version}"
)
print(model_info.signature)

# Deploy the model
deployment_info = agents.deploy(
    model_name="emoysis_catalog.cookbook.sop_chatbot",
    model_version=int(uc_registered_model_info.version),
    environment_vars={},
)
print(deployment_info)
&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 14 Jan 2025 13:13:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/agents-deploy-not-found-the-directory-being-accessed-is-not/m-p/105576#M42191</guid>
      <dc:creator>VZLA</dc:creator>
      <dc:date>2025-01-14T13:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: agents.deploy NOT_FOUND: The directory being accessed is not found. error</title>
      <link>https://community.databricks.com/t5/data-engineering/agents-deploy-not-found-the-directory-being-accessed-is-not/m-p/105985#M42332</link>
      <description>&lt;P&gt;Does the model need to be served before deployment?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2025 18:18:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/agents-deploy-not-found-the-directory-being-accessed-is-not/m-p/105985#M42332</guid>
      <dc:creator>ezermoysis</dc:creator>
      <dc:date>2025-01-16T18:18:17Z</dc:date>
    </item>
  </channel>
</rss>

