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?

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now