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

Redeploying only hello function fails with an error #201

Open
cscetbon opened this issue Mar 27, 2020 · 4 comments
Open

Redeploying only hello function fails with an error #201

cscetbon opened this issue Mar 27, 2020 · 4 comments

Comments

@cscetbon
Copy link
Contributor

I'm testing that plugin and I have issues just following the tutorial. The first issue I met is regarding deploying to a namespace different from default #188 (comment).

The other issue I have is redeploying the function hello only. When I try I get the following

serverless deploy function -f hello
Serverless: Packaging function: hello...
Serverless: Excluding development dependencies...
Serverless: Redeploying hello...

  Type Error ---------------------------------------------

  TypeError: Cannot read property 'artifact' of undefined
      at KubelessDeployFunction.getPkg (/Users/cscetbon/src/git/serverless-kubeless/examples/get-python/node_modules/serverless-kubeless/deploy/kubelessDeploy.js:85:37)
      at /Users/cscetbon/src/git/serverless-kubeless/examples/get-python/node_modules/serverless-kubeless/deploy/kubelessDeploy.js:111:28
      at /Users/cscetbon/src/git/serverless-kubeless/examples/get-python/node_modules/lodash/lodash.js:4905:15
      at baseForOwn (/Users/cscetbon/src/git/serverless-kubeless/examples/get-python/node_modules/lodash/lodash.js:2990:24)
      at /Users/cscetbon/src/git/serverless-kubeless/examples/get-python/node_modules/lodash/lodash.js:4874:18
      at Function.forEach (/Users/cscetbon/src/git/serverless-kubeless/examples/get-python/node_modules/lodash/lodash.js:9342:14)
      at /Users/cscetbon/src/git/serverless-kubeless/examples/get-python/node_modules/serverless-kubeless/deploy/kubelessDeploy.js:110:11
      at processTicksAndRejections (internal/process/task_queues.js:97:5)

     For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.

  Get Support --------------------------------------------
     Docs:          docs.serverless.com
     Bugs:          github.com/serverless/serverless/issues
     Issues:        forum.serverless.com

  Your Environment Information ---------------------------
     Operating System:          darwin
     Node Version:              13.8.0
     Framework Version:         1.67.0
     Plugin Version:            3.6.1
     SDK Version:               2.3.0
     Components Version:        2.22.3

The issue from line https://github.com/serverless/serverless-kubeless/blob/master/deploy/kubelessDeploy.js#L85 where description.package is undefined. I'm using the default serverless.yaml provided
I'm using version 0.9.2. I've been looking at that plugin a year ago and thought it was mature, but just following the tutorial fails..

@donhui
Copy link
Contributor

donhui commented Oct 9, 2020

I've met the problem as you too.

@sepetrov
Copy link
Contributor

sepetrov commented Oct 9, 2020

Hi @cscetbon , @donhui , replace python2.7 with python3.7. Runtime python2.7 does not exist any more.

@donhui
Copy link
Contributor

donhui commented Oct 10, 2020

Hi @sepetrov , I've replaced python2.7 with python3.7. But the problem still exist.

@Gurkiran-Singh
Copy link

Hi @cscetbon , @donhui , replace python2.7 with python3.7. Runtime python2.7 does not exist any more.

Hi @sepetrov Can we create the serverless-kubeless template with python2.7 runtime and then edit it to python3.7?

or Is there any other workaround by which we can use python3 instead of python2 for serverless-kubeless?

Any help/references would be appreciated.
Thanks

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

4 participants