agents.deploy NOT_FOUND: The directory being accessed is not found. error
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2024 05:15 AM - edited 12-27-2024 05:20 AM
I keep getting the following error although the model definitely does exist and version names and model name is correct
RestException: NOT_FOUND: The directory being accessed is not found.
when calling
# Deploy the model to the review app and a model serving endpoint
agents.deploy(model_name, model_version, scale_to_zero=True)
( i'm on a free trial )
16 REPLIES 16
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2025 05:13 AM
@stevomcnevo007 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:
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)
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2025 10:18 AM
Does the model need to be served before deployment?


- « Previous
-
- 1
- 2
- Next »