Troubleshooting Code-only Functions

Find out how to troubleshoot common issues with code-only functions in OCI Functions.

Use this topic to troubleshoot common code-only function creation, update, archive validation, Object Storage access, runtime, and invocation issues.

Archive validation issues

ProblemLikely causeRecommended fix
Archive is too large for direct uploadArchive exceeds 25 MBUse Object Storage if the archive is 250 MB or smaller, or reduce archive size.
Archive is too large for Object Storage sourceArchive exceeds 250 MBReduce archive size.
Unsupported archive formatArchive is not ZIP, or is a JAR file for a non-Java runtimeUse a supported archive format.
Archive layout does not match runtimeFiles are not in the required runtime-specific locationsUse the runtime-specific packaging topic.
Archive layout does not match application architectureArchive contains artifacts for the wrong architectureRebuild or repackage for the application architecture.

Object Storage access issues

ProblemLikely causeRecommended fix
Function creation fails when using Object Storage archiveOCI Functions application resource principal cannot read the objectAdd a policy that grants read access to the archive object.
Object version cannot be foundIncorrect object version selectedConfirm the object version exists and is accessible.
Archive object is in another compartmentPolicy does not cover the archive compartmentAdd the policy in the compartment where the archive object resides.

Runtime issues

ProblemLikely causeRecommended fix
Runtime version cannot be selectedRuntime version is not valid for the selected runtime or is inactiveSelect a valid active runtime version.
Function does not move to newer runtimeFunction is in manual modeChange runtime update mode if appropriate.
Function moved runtime only after updateExpected behavior for function update modeNo action needed unless a specific runtime version is required.

Deployment model issues

ProblemExplanationRecommended fix
Existing image-based function cannot be converted to a code-only functionChanging between code-only and image-based deployment models is unsupported.Create a new function using the required deployment model.
Existing code-only function cannot be converted to an image-based functionChanging between code-only and image-based deployment models is unsupported.Create a new function using the required deployment model.

Runtime-specific issues