question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Serverless functions not deployed: image created, but not starting in docker, just keeps restarting

See original GitHub issue

Serverless functions not deployed: function image is created, but can’t start in docker, just keeps restarting

My actions before raising this issue

Hi, I’ve got local cvat from https://github.com/openvinotoolkit/cvat.git install on Windows 10 Pro, WSL2 with Ubuntu, Docker Desktop latest, nuctl-1.5.16-linux-amd64, all seems to be in full accordance with installation docs

cvat is OK on localhost:8080 nuclio is OK on localhost:8070, cvat project is created OK in nuclio

Try to deploy with below commands in WSL command line:

nuctl deploy --project-name cvat \
  --path serverless/openvino/dextr/nuclio \
  --volume `pwd`/serverless/common:/opt/nuclio/common \
  --platform local

or

./deploy_cpu.sh openvino/dextr/

results in error:

Error - fork/exec /opt/nuclio/common/openvino/python3: no such file or directory
    ...//nuclio/pkg/processor/runtime/rpc/abstract.go:231

Call stack:
Can't run wrapper
    ...//nuclio/pkg/processor/runtime/rpc/abstract.go:231
Failed to run wrapper
    ...//nuclio/pkg/processor/runtime/rpc/abstract.go:106
Failed to start runtime
    /nuclio/pkg/processor/worker/factory.go:101
Failed to create worker
    /nuclio/pkg/processor/worker/factory.go:122
Failed to create workers
    /nuclio/pkg/processor/worker/factory.go:132

    /nuclio/pkg/platform/local/platform.go:1001
Failed to deploy function
    ...//nuclio/pkg/platform/abstract/platform.go:182
  NAMESPACE |      NAME      | PROJECT | STATE | NODE PORT | REPLICAS
  nuclio    | openvino-dextr | cvat    | error |         0 | 1/1

the function image is actually created. function appears in Docker Desktop dashboard, tries to start and then goes to restart again, and keeps restarting until above error is returned in WSL CLI. Function also appears in Nuclio dashboard with error status under cvat project the same behavior for all functions, not DEXTR only

Is it possible to deploy serverless functions on local Windows installation?

I’ve read many of similar cases but neither work or applicable

Thank you very much for your help!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
irisitystefannilssoncommented, Feb 10, 2022

Hello, if you have checked out cvat using git on windows there is a possibility you’ve got the wrong kind of EOL in the python3 script. You can check this by: $ file serverless/common/openvino/python3 If it returns: serverless/common/openvino/python3: Bourne-Again shell script, ASCII text executable, with CRLF line terminators you have windows line-endings in the file. Fix this by running $ dos2unix serverless/common/openvino/python3 dos2unix: converting file serverless/common/openvino/python3 to Unix format…

0reactions
vividzhangcommented, Nov 4, 2022

Alright, my command is [nuctl deploy --project-name cvat --path “./serverless/openvino/omz/public/mask_rcnn_inception_resnet_v2_atrous_coco/nuclio” --platform local], no --volume param, add [–volume pwd/serverless/common:/opt/nuclio/common] param, solved.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Docker: Container keeps on restarting again on again
Solution: Something might have corrupted your container. Starting a fresh container should ideally do the job. Share.
Read more >
Start containers automatically
The following example starts a Redis container and configures it to always restart unless it is explicitly stopped or Docker is restarted.
Read more >
Container Image Support for AWS Lambda
We are now able to generate our containers, deploy them to ECR and execute functions. However, if you want to centralize creation of...
Read more >
Advanced workflows - Serverless containers - Amplify Docs
If your build pipeline completes and rolling deployment to your ECS cluster begins, but you notice that the process is not completing, it...
Read more >
Lifecycle of a container on Cloud Run
Serverless platform Cloud Run runs and autoscales your ... Remember, Cloud Run can only deploy container images that are stored in a Docker...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found