cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

agents.deploy NOT_FOUND: The directory being accessed is not found. error

stevomcnevo007
New Contributor III
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

VZLA
Databricks Employee
Databricks Employee

@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)

ezermoysis
New Contributor III

Does the model need to be served before deployment?

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group