Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Deploy functions fail #3231

Open
1 of 2 tasks
jenhaoyang opened this issue Apr 24, 2024 · 0 comments
Open
1 of 2 tasks

[Bug]: Deploy functions fail #3231

jenhaoyang opened this issue Apr 24, 2024 · 0 comments

Comments

@jenhaoyang
Copy link

jenhaoyang commented Apr 24, 2024

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

Can not deploy function. Here is the detail log.
log.txt

I see the error accour at 24.04.24 11:42:10.228 ,so I run this command.(just remove --deatch )

docker run --publish '8080' --name nuclio-nuclio-my-function --label 'nuclio.io/platform'='local' --label 'nuclio.io/namespace'='nuclio' --label 'nuclio.io/function-name'='my-function' --label 'nuclio.io/function-spec'='{\"handler\":\"my_function:my_entry_point\",\"runtime\":\"python:3.9\",\"resources\":{\"requests\":{\"cpu\":\"25m\",\"memory\":\"1Mi\"}},\"image\":\"nuclio/processor-my-function:latest\",\"targetCPU\":75,\"triggers\":{\"default-http\":{\"class\":\"\",\"kind\":\"http\",\"name\":\"default-http\",\"maxWorkers\":1}},\"build\":{\"path\":\"my_function.py\",\"functionSourceCode\":\"aW1wb3J0IG9zCgoKZGVmIG15X2VudHJ5X3BvaW50KGNvbnRleHQsIGV2ZW50KToKCgkjIHVzZSB0aGUgbG9nZ2VyLCBvdXRwdXR0aW5nIHRoZSBldmVudCBib2R5Cgljb250ZXh0LmxvZ2dlci5pbmZvX3dpdGgoJ0dvdCBpbnZva2VkJywKCQl0cmlnZ2VyX2tpbmQ9ZXZlbnQudHJpZ2dlci5raW5kLAoJCWV2ZW50X2JvZHk9ZXZlbnQuYm9keSwKCQlzb21lX2Vudj1vcy5lbnZpcm9uLmdldCgnTVlfRU5WX1ZBTFVFJykpCgoJIyBjaGVjayBpZiB0aGUgZXZlbnQgY2FtZSBmcm9tIGNyb24KCWlmIGV2ZW50LnRyaWdnZXIua2luZCA9PSAnY3Jvbic6CgoJCSMgbG9nIHNvbWV0aGluZwoJCWNvbnRleHQubG9nZ2VyLmluZm8oJ0ludm9rZWQgZnJvbSBjcm9uJykKCgllbHNlOgoKCQkjIHJldHVybiBhIHJlc3BvbnNlCgkJcmV0dXJuICdBIHN0cmluZyByZXNwb25zZScK\",\"timestamp\":1713930128},\"platform\":{},\"readinessTimeoutSeconds\":120,\"securityContext\":{},\"eventTimeout\":\"\"}' --label 'nuclio.io/project-name'='default' --label 'nuclio.io/annotations'='{}' --mount type=volume,source=nuclio-nuclio-my-function,destination=/etc/nuclio/config/processor,readonly nuclio/processor-my-function:latest 

and got this error

Error - open /etc/nuclio/config/processor/processor.yaml: no such file or directory
    .../nuclio/nuclio/cmd/processor/app/processor.go:289

Call stack:
Failed to open configuration file
    .../nuclio/nuclio/cmd/processor/app/processor.go:289

Is the the reason for this error?

Expected Behavior

Deploy function

Deployment Method

Docker

Nuclio Version

1.11.24

Additional Information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant