Skip to content

Function failed to get deployed on the ocp cluster when using namespace/project other than default #242

@odockal

Description

@odockal

When deploying the function to the ocp cluster I am encountering following error on the deployed pod:

Log from the terminal:

$ func deploy -p '/home/odockal/Temp/vscode-function/debug-node-test' -i quay.io/odockal/debug-node-test:latest -v -n debugging -r ""
Building function image
2022/04/22 12:42:43.767479 DEBUG:  Pulling image gcr.io/paketo-buildpacks/builder:base
....
Pushing function image to the registry
The push refers to repository [quay.io/odockal/debug-node-test:latest] (100%)
latest: digest: sha256:d170d7d5f07db5912afa3351232527b224abbcf642760ca18f095c28d1e4e16c (100%)
Deploying function to the cluster
Waiting for Knative Service to become ready
Error: knative deployer failed to wait for the Knative Service to become ready: timeout: service 'debug-node-test' not ready after 120 seconds

And the pod log:

2022/04/22 11:04:14 unlinkat /workspace/node_modules: operation not permitted
ERROR: failed to launch: exec.d: failed to execute exec.d file at path '/layers/paketo-buildpacks_npm-install/launch-modules/exec.d/0-setup-symlinks': exit status 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions