Git Product home page Git Product logo

Comments (6)

nitishkumar71 avatar nitishkumar71 commented on August 20, 2024

Try faas-cli deploy without sudo as you have used faas-cli login without sudo.

from faas-cli.

hamedgibago avatar hamedgibago commented on August 20, 2024

@nitishkumar71 Now error changed to 400 and is like this:

WARNING! You are not using an encrypted connection to the gateway, consider using HTTPS.

Unexpected status: 400, message: unable to pull image docker.io/test3/callme:latest: cannot pull: failed to resolve reference "docker.io/test3/callme:latest": pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed


Function 'callme' failed to deploy with status code: 400

from faas-cli.

alexellis avatar alexellis commented on August 20, 2024

It sounds like you haven't pushed your image.

I can't docker pull docker.io/test3/callme:latest

Remember to run faas-cli publish or faas-cli build && faas-cli push on another machine where you have Docker installed.

I now recommend using ttl.sh instead of docker.io, it allows you to push images for testing without authentication or signing up.

Alex

from faas-cli.

alexellis avatar alexellis commented on August 20, 2024

All the instructions for faasd are in the eBook - it sounds like you would benefit from a copy if you don't already have one, it also explains why we don't building images in the same VM as faasd.

https://store.openfaas.com/l/serverless-for-everyone-else

from faas-cli.

hamedgibago avatar hamedgibago commented on August 20, 2024

Sorry for asking this simple question. I installed and ran OpenFaas from faasd, /hack/install.sh file. After building callme, I saw that in my images. I have docker installed in the same virtual machine (Ubuntu). Should I start image that added as test3/callme? How could I call the method after running this docker image?

It just starts with this message:

2023/07/07 13:58:58 Version: 0.2.1	SHA: cd8dc9f4e98049150d8079a74a18cd5a2e311aeb
2023/07/07 13:58:58 Timeouts: read: 5s write: 5s hard: 0s health: 5s.
2023/07/07 13:58:58 Listening on port: 8080
2023/07/07 13:58:58 Writing lock-file to: /tmp/.lock
2023/07/07 13:58:58 Metrics listening on port: 8081

In my sudo faas-cli list command I just see one function named Printer, once I added it accidentally from UI before with some errors, and can see my aimed function callme:

Function                      	Invocations    	Replicas
printer                       	0              	0 

from faas-cli.

hamedgibago avatar hamedgibago commented on August 20, 2024

@nitishkumar71 Hi, do you have any suggestion?

from faas-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.