CodexBloom - Programming Q&A Platform

OCI Data Science: scenarios While Deploying Model with OCI CLI - 'Invalid Model Path'

πŸ‘€ Views: 858 πŸ’¬ Answers: 1 πŸ“… Created: 2025-07-23
oci data-science cli model-deployment bash

I keep running into I tried several approaches but none seem to work. I've searched everywhere and can't find a clear answer. After trying multiple solutions online, I still can't figure this out. I've searched everywhere and can't find a clear answer. I'm trying to deploy a model using the OCI CLI in the Data Science service, but I'm running into an scenario where it fails with the behavior message: `Invalid model path: the provided path does not exist`. I've confirmed that the model artifact is correctly uploaded to Object Storage, and I'm specifying the full path correctly. Here’s the command I'm using: ```bash oci ds model create --compartment-id ocid1.compartment.oc1..exampleuniqueID --display-name 'MyModel' --model-path 'https://objectstorage.us-phoenix-1.oraclecloud.com/n/MyBucket/MyModel.zip' --model-type 'ML_MODEL' --model-framework 'scikit-learn' --resource-id ocid1.data-science-notebook-session.oc1..exampleuniqueID ``` I've double-checked the compartment ID and model path, but I still get the behavior. I also tried using a different model file and even a different bucket, but the scenario continues. The CLI version I’m using is `2.36.0`. I've read through the documentation and need to seem to find any discrepancies. Any insights on what might be causing this behavior or how to troubleshoot this further would be greatly appreciated! Has anyone else encountered this? I'm working on a API that needs to handle this. What's the best practice here? I recently upgraded to Bash LTS. Thanks for taking the time to read this! I'm working in a Windows 11 environment. I'm open to any suggestions. I'd be grateful for any help.