CodexBloom - Programming Q&A Platform

OCI Functions Deployment scenarios with 'FunctionNotFound' scenarios When Using the Latest OCI CLI

๐Ÿ‘€ Views: 25 ๐Ÿ’ฌ Answers: 1 ๐Ÿ“… Created: 2025-08-22
oci functions serverless cli bash

I'm reviewing some code and I've looked through the documentation and I'm still confused about I've been researching this but This might be a silly question, but I'm trying to deploy a serverless function to Oracle Cloud Infrastructure (OCI) using the latest OCI CLI version 3.4.2, but I keep working with a 'FunctionNotFound' behavior... It seems to occur when I attempt to invoke the function after a successful deployment. Hereโ€™s the command Iโ€™m using to deploy the function: ```bash oci fn function create --application-id <app_id> --display-name MyFunction --compartment-id <compartment_id> --image <image_url> --memory-in-mbs 128 --timeout-in-seconds 30 ``` The deployment log indicates that the function was created successfully, but when I try to invoke it with: ```bash oci fn function invoke --function-id <function_id> ``` I receive the following behavior message: ``` behavior: FunctionNotFound: The function with the specified OCID does not exist. ``` I've double-checked that the OCID is correct, and Iโ€™ve also verified that the application ID is valid. To troubleshoot, I ran: ```bash oci fn function list --application-id <app_id> ``` This shows no functions listed under the specified application, even though the creation command returned a success message. Iโ€™ve also tried re-authenticating using the CLI and ensured that my IAM policy allows the necessary permissions for function creation and invocation. Could there be a delay in the function becoming available after deployment, or might I be missing a crucial step in the deployment process? Any insights would be greatly appreciated. This issue appeared after updating to Bash 3.10. I'm working on a web app that needs to handle this. I'm working with Bash in a Docker container on macOS. Hoping someone can shed some light on this. The project is a microservice built with Bash. What are your experiences with this?