Skip to content

[Bug]: #3673

@cloudadmintest

Description

@cloudadmintest

Nuclio Version checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of Nuclio.

Issue Description

when i run the platform into the k8s, while i use the kaniko as extension,but when i use python template to create fuction ,it failed, here is run log result:
[19:19:57.446] (I) Deploying function [requestID: "nuclio-dashboard-6f7d9fbb5d-v7k4v/mENNkW5QKT-000521"]
[19:19:57.452] (I) Building [builderKind: "kaniko", requestID: "nuclio-dashboard-6f7d9fbb5d-v7k4v/mENNkW5QKT-000521", versionInfo: "Label: 1.14.7, Git commit: https://github.com/nuclio/nuclio/commit/0c3f3ff1628ff0d180b72d41df7e23511c3ac8ec, OS: linux, Arch: amd64, Go version: go1.23.8"]
[19:19:57.478] (I) Staging files and preparing base images
[19:19:57.482] (I) Building processor image [registryURL: "", requestID: "nuclio-dashboard-6f7d9fbb5d-v7k4v/mENNkW5QKT-000521", taggedImageName: "nuclio/processor-111:latest"]
[19:21:02.634] (W) [conditions: [{"lastProbeTime":null,"lastTransitionTime":"2025-06-25T11:20:00Z","status":"True","type":"Initialized"},{"lastProbeTime":null,"lastTransitionTime":"2025-06-25T11:20:55Z","reason":"PodFailed","status":"False","type":"Ready"},{"lastProbeTime":null,"lastTransitionTime":"2025-06-25T11:20:55Z","reason":"PodFailed","status":"False","type":"ContainersReady"},{"lastProbeTime":null,"lastTransitionTime":"2025-06-25T11:19:57Z","status":"True","type":"PodScheduled"}], containerStatuses: [{"containerID":"docker://ae2119f88047266f63094079348b24e3c7c7b5d99cda68a2a951e5a1d9b76fac","image":"192.168.23.190:80/gcr.io/kaniko-project/executor:v1.23.2","imageID":"docker-pullable://192.168.23.190:80/gcr.io/kaniko-project/executor@sha256:b9fda52720a8c6ae739df862b988abcc29dd6b223b681afc2dc7387bcd42c9e0","lastState":{},"name":"kaniko-executor","ready":false,"restartCount":0,"started":false,"state":{"terminated":{"containerID":"docker://ae2119f88047266f63094079348b24e3c7c7b5d99cda68a2a951e5a1d9b76fac","exitCode":1,"finishedAt":"2025-06-25T11:20:53Z","reason":"Error","startedAt":"2025-06-25T11:20:00Z"}}}], initContainerStatuses: [{"containerID":"docker://1050b7cec440ef07cc86ccdb02b713e59301aadaedf53c164750095c24e57347","image":"libarys/busybox:stable","imageID":"docker-pullable://dockerhub.kubekey.local/library/busybox@sha256:ff6bba6f18535e7ccb3c1bbed0b84e5c733d7d9dd8815f1ea93ee73073135aa4","lastState":{},"name":"fetch-bundle","ready":true,"restartCount":0,"state":{"terminated":{"containerID":"docker://1050b7cec440ef07cc86ccdb02b713e59301aadaedf53c164750095c24e57347","exitCode":0,"finishedAt":"2025-06-25T11:19:59Z","reason":"Completed","startedAt":"2025-06-25T11:19:59Z"}}},{"containerID":"docker://3591b10c02f6d8b69a8e3103367c886721db265163aefca72e1ba423cea888f9","image":"libarys/busybox:stable","imageID":"docker-pullable://dockerhub.kubekey.local/library/busybox@sha256:ff6bba6f18535e7ccb3c1bbed0b84e5c733d7d9dd8815f1ea93ee73073135aa4","lastState":{},"name":"extract-bundle","ready":true,"restartCount":0,"state":{"terminated":{"containerID":"docker://3591b10c02f6d8b69a8e3103367c886721db265163aefca72e1ba423cea888f9","exitCode":0,"finishedAt":"2025-06-25T11:19:59Z","reason":"Completed","startedAt":"2025-06-25T11:19:59Z"}}}], jobName: "nuclio-kanikojob.nuclioprocessor111latest.e1ha3zsc1u", phase: "Failed", reason: "", requestID: "nuclio-dashboard-6f7d9fbb5d-v7k4v/mENNkW5QKT-000521"]
[19:21:02.667] (W) Function creation failed, setting state to error
Error - Job failed. Job logs:
INFO[0000] Resolved base name 192.168.23.190:80/nuclio/handler-builder-python-onbuild:1.14.7-amd64 to python-onbuild
INFO[0000] Retrieving image manifest 192.168.23.190:80/nuclio/handler-builder-python-onbuild:1.14.7-amd64
INFO[0000] Retrieving image 192.168.23.190:80/nuclio/handler-builder-python-onbuild:1.14.7-amd64 from registry 192.168.23.190:80
INFO[0000] Retrieving image manifest 192.168.23.190:80/nuclio/handler-builder-python-onbuild:1.14.7-amd64
INFO[0000] Returning cached image manifest
INFO[0000] Retrieving image manifest /nuclio/python:3.9
INFO[0000] Retrieving image /nuclio/python:3.9 from registry 192.168.23.190:80
INFO[0000] Retrieving image manifest /nuclio/python:3.9
INFO[0000] Returning cached image manifest
INFO[0000] Built cross stage deps: map[0:[/home/nuclio/bin/processor /home/nuclio/bin/py /home/nuclio/bin/py3.9-whl]]
INFO[0000] Retrieving image manifest /nuclio/handler-builder-python-onbuild:1.14.7-amd64
INFO[0000] Returning cached image manifest
INFO[0000] Retrieving image manifest /nuclio/handler-builder-python-onbuild:1.14.7-amd64
INFO[0000] Returning cached image manifest
INFO[0000] Executing 0 build triggers
INFO[0000] Building stage '192.168.23.190:80/nuclio/handler-builder-python-onbuild:1.14.7-amd64' [idx: '0', base-idx: '-1']
INFO[0050] ARG NUCLIO_LABEL
INFO[0050] No files changed in this command, skipping snapshotting.
INFO[0050] ARG NUCLIO_ARCH
INFO[0050] No files changed in this command, skipping snapshotting.
INFO[0050] Deleting filesystem...
INFO[0052] Retrieving image manifest 192.168.23.190:80/nuclio/python:3.9
INFO[0052] Returning cached image manifest
INFO[0052] Retrieving image manifest 192.168.23.190:80/nuclio/python:3.9
INFO[0052] Returning cached image manifest
INFO[0052] Executing 0 build triggers
INFO[0052] Building stage '192.168.23.190:80/nuclio/python:3.9' [idx: '1', base-idx: '-1']
error building image: error building stage: failed to optimize instructions: failed to get files used from context: failed to get fileinfo for /kaniko/0/home/nuclio/bin/processor: lstat /kaniko/0/home/nuclio/bin/processor: no such file or directory
/nuclio/pkg/processor/build/builder.go:278

Call stack:
Failed to build processor image
/nuclio/pkg/processor/build/builder.go:278
[requestID: "nuclio-dashboard-6f7d9fbb5d-v7k4v/mENNkW5QKT-000521"]

Expected Behavior

success

Deployment Method

Kubernetes

Nuclio Version

1.14.7-amd64

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions