Couldn't create nuclio functions
See original GitHub issueHi there,
I am new to cvat and am trying to follow instructions at https://github.com/opencv/cvat/blob/develop/cvat/apps/documentation/installation.md#semi-automatic-and-automatic-annotation to setup automatic annotation with nuclio.
The project in nuclio was created without any problem but I got errors creating the functions. Here is what I see:
(base) seki@xubuntu-20:~/src/cvat$ nuctl deploy --project-name cvat --path serverless/openvino/dextr/nuclio --volume `pwd`/serverless/openvino/common:/opt/nuclio/common --platform local
20.08.23 16:05:46.718 nuctl (I) Deploying function {"name": ""}
20.08.23 16:05:46.718 nuctl (I) Building {"versionInfo": "Label: 1.4.17, Git commit: 278c7a4fb23a93973d16d87dbaaad87823e9644f, OS: linux, Arch: amd64, Go version: go1.14.3", "name": ""}
20.08.23 16:05:46.960 nuctl (I) Cleaning up before deployment
20.08.23 16:05:47.050 nuctl (I) Staging files and preparing base images
20.08.23 16:05:47.051 nuctl (I) Building processor image {"imageName": "cvat/openvino.dextr:latest"}
20.08.23 16:05:47.051 nuctl.platform.docker (I) Pulling image {"imageName": "quay.io/nuclio/handler-builder-python-onbuild:1.4.17-amd64"}
20.08.23 16:05:48.333 nuctl.platform.docker (W) Docker command outputted to stderr - this may result in errors {"workingDir": "/tmp/nuclio-build-479579805/staging", "cmd": "docker build --network host --force-rm -t nuclio-onbuild-bt1egf28hvo5093nhgs0 -f /tmp/nuclio-build-479579805/staging/Dockerfile.onbuild --build-arg NUCLIO_BUILD_LOCAL_HANDLER_DIR=handler --build-arg NUCLIO_LABEL=1.4.17 --build-arg NUCLIO_ARCH=amd64 .", "stderr": "unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /tmp/nuclio-build-479579805: no such file or directory\n"}
20.08.23 16:05:48.334 nuctl (W) Create function failed, setting function status {"err": "Failed to build processor image", "errVerbose": "\nError - exit status 1\n /nuclio/pkg/cmdrunner/cmdrunner.go:124\n\nCall stack:\nstdout:\n\nstderr:\nunable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /tmp/nuclio-build-479579805: no such file or directory\n\n /nuclio/pkg/cmdrunner/cmdrunner.go:124\nFailed to build onbuild image\n .../pkg/containerimagebuilderpusher/docker.go:233\nFailed to copy objects from onbuild\n .../pkg/containerimagebuilderpusher/docker.go:194\nFailed to build image artifacts\n .../pkg/containerimagebuilderpusher/docker.go:51\nFailed to build processor image\n /nuclio/pkg/processor/build/builder.go:250\nFailed to build processor image", "errCauses": [{"error": "Failed to build image artifacts", "errorVerbose": "\nError - exit status 1\n /nuclio/pkg/cmdrunner/cmdrunner.go:124\n\nCall stack:\nstdout:\n\nstderr:\nunable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /tmp/nuclio-build-479579805: no such file or directory\n\n /nuclio/pkg/cmdrunner/cmdrunner.go:124\nFailed to build onbuild image\n .../pkg/containerimagebuilderpusher/docker.go:233\nFailed to copy objects from onbuild\n .../pkg/containerimagebuilderpusher/docker.go:194\nFailed to build image artifacts\n .../pkg/containerimagebuilderpusher/docker.go:51\nFailed to build image artifacts", "errorCauses": [{"error": "Failed to copy objects from onbuild", "errorVerbose": "\nError - exit status 1\n /nuclio/pkg/cmdrunner/cmdrunner.go:124\n\nCall stack:\nstdout:\n\nstderr:\nunable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /tmp/nuclio-build-479579805: no such file or directory\n\n /nuclio/pkg/cmdrunner/cmdrunner.go:124\nFailed to build onbuild image\n .../pkg/containerimagebuilderpusher/docker.go:233\nFailed to copy objects from onbuild\n .../pkg/containerimagebuilderpusher/docker.go:194\nFailed to copy objects from onbuild", "errorCauses": [{"error": "Failed to build onbuild image", "errorVerbose": "\nError - exit status 1\n /nuclio/pkg/cmdrunner/cmdrunner.go:124\n\nCall stack:\nstdout:\n\nstderr:\nunable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /tmp/nuclio-build-479579805: no such file or directory\n\n /nuclio/pkg/cmdrunner/cmdrunner.go:124\nFailed to build onbuild image\n .../pkg/containerimagebuilderpusher/docker.go:233\nFailed to build onbuild image", "errorCauses": [{"error": "stdout:\n\nstderr:\nunable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /tmp/nuclio-build-479579805: no such file or directory\n", "errorVerbose": "\nError - exit status 1\n /nuclio/pkg/cmdrunner/cmdrunner.go:124\n\nCall stack:\nstdout:\n\nstderr:\nunable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /tmp/nuclio-build-479579805: no such file or directory\n\n /nuclio/pkg/cmdrunner/cmdrunner.go:124\nstdout:\n\nstderr:\nunable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /tmp/nuclio-build-479579805: no such file or directory\n", "errorCauses": [{"error": "exit status 1"}]}]}]}]}]}
Error - exit status 1
/nuclio/pkg/cmdrunner/cmdrunner.go:124
Call stack:
stdout:
stderr:
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /tmp/nuclio-build-479579805: no such file or directory
/nuclio/pkg/cmdrunner/cmdrunner.go:124
Failed to build onbuild image
.../pkg/containerimagebuilderpusher/docker.go:233
Failed to copy objects from onbuild
.../pkg/containerimagebuilderpusher/docker.go:194
Failed to build image artifacts
.../pkg/containerimagebuilderpusher/docker.go:51
Failed to build processor image
/nuclio/pkg/processor/build/builder.go:250
I assume we are missing files under the /tmp/nuclio-build-xxx
folder but I don’t see anything like that in the /tmp
folder and I made sure I do have the permission to create a new folder within /tmp
.
Has anyone seen this problem before? Any advice is greatly appreciated.
Thanks a lot
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (2 by maintainers)
Top Results From Across the Web
Deploying Functions | Nuclio
This tutorial guides you through the process of deploying functions and specifying the function configuration.
Read more >Couldn't create function using nuctl - Bountysource
Hi, when I tried to create my first functiton using nuctl, I got the following error (base) seki@xubuntu-20:~$ nuctl deploy helloworld ...
Read more >opencv-cvat/public - Gitter
Hi everybody, I have some strange error when I try to deploy the person reidentification function to nuclio. Here is my error log:....
Read more >Source code for mlrun.runtimes.function
__name__} is supported since nuclio {' or '.join(versions)}, ... zero function requires to either add the # x-nuclio-target header or to create the...
Read more >Kubernetes docker image cache - Seba Online
Create an Azure container registry and push images to the registry. ... Deploy a function with the Nuclio CLI (nuctl) fluent / fluentd-kubernetes-daemonset ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I had workaround the problem but seems like cvat serverless+nuclio has an issue with all kernel versions running on hyper-v , I had solved it by installing on a proxmox cpu type “host” so that the virtual machine will use all the cpu assets. I was very hopefull from hyper-v since I was going to use cvat on a double core 24processor with 32gb ram , insisted trying. I am preparing all the errors now , also shared on https://github.com/openvinotoolkit/cvat/issues/3109
@kiteklan , could you please post your error message please? Let’s try to investigate the issue together.