CodexBloom - Programming Q&A Platform

OCI Function Deployment scenarios with 'Function Not Found' scenarios Even After Successful Build

👀 Views: 17 💬 Answers: 1 📅 Created: 2025-06-09
OCI Functions CLI Node.js bash

I've tried everything I can think of but I'm trying to deploy an Oracle Cloud Infrastructure (OCI) Function using the OCI CLI, but I keep working with a 'Function Not Found' behavior during deployment, even though the build process completes without issues. I have the following setup: - OCI CLI version: 3.12.0 - Function Runtime: Node.js 14 - Function Name: myFunction After building the function with the command: ```bash fn build --skip-push ``` I successfully verify the build with: ```bash fn deploy --app myApp --name myFunction ``` However, when I check the function's status or try to invoke it, I receive the behavior: ``` Function Not Found: myFunction ``` I've double-checked that the function is listed under my app with: ```bash fn list functions --app myApp ``` And it appears there. I’ve also verified that my function's configuration file (`func.yaml`) correctly points to the right handler and runtime. The contents of `func.yaml` look like this: ```yaml version: 0.0.1 runtime: node name: myFunction entrypoint: index.handler ``` To narrow down the scenario, I tried different entry points and even simplified the function to just return a static HTTP response, but the same behavior continues. Could this be related to permissions? I have the correct policies in place, allowing functions to be invoked. Is there something I might be missing in the deployment process? Any insights or suggestions would be greatly appreciated! Any advice would be much appreciated.