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

Error deploying faas-cli #144

Closed
cmollis opened this issue Oct 5, 2017 · 18 comments
Closed

Error deploying faas-cli #144

cmollis opened this issue Oct 5, 2017 · 18 comments

Comments

@cmollis
Copy link

cmollis commented Oct 5, 2017

trying to deploy the sample.. I was able to successfully build:

Deploying: hello-python.
Error removing existing function: Delete http://localhost:8080/system/functions: dial tcp [::1]:8080: getsockopt: connection refused, gateway=http://localhost:8080, functionName=hello-python
Is FaaS deployed? Do you need to specify the -gateway flag?
Post http://localhost:8080/system/functions: dial tcp [::1]:8080: getsockopt: connection refused

Expected Behaviour

It should deploy

Current Behaviour

I see the above

Possible Solution

Steps to Reproduce (for bugs)

Context

Your Environment

  • Docker version docker version (e.g. Docker 17.0.05 ):
    Version 17.09.0-ce-mac33 (19543)

  • Are you using Docker Swarm or Kubernetes (FaaS-netes)?
    no

  • Operating System and version (e.g. Linux, Windows, MacOS):
    MacOS

  • Link to your project or a code example to reproduce issue:

@cmollis
Copy link
Author

cmollis commented Oct 5, 2017

I don't have anything running on :8080

@alexellis
Copy link
Member

Please try changing your yaml from localhost to 127.0.0.1

@rgee0
Copy link
Contributor

rgee0 commented Oct 5, 2017

I'm a little concerned that you answered no to Swarm or K8S. Where did you install openfaas @cmollis? The cli needs to be pointed at the openfaas gateway in order to deploy.

@cmollis
Copy link
Author

cmollis commented Oct 5, 2017 via email

@alexellis
Copy link
Member

@cmollis which guide / link were you following? Maybe we need to make this clearer. Thanks @rgee0 for helping

@cmollis
Copy link
Author

cmollis commented Oct 5, 2017 via email

@ericstoekl
Copy link
Contributor

When I started working on this project I ran into the same issue. I suspect that folks with 0 Docker experience might run into this unless the blog posts all explicitly state that Step 1 is to run docker swarm init, with the --advertise-addr flag if necessary.

@cmollis
Copy link
Author

cmollis commented Oct 5, 2017 via email

@jswhisperer
Copy link

Got the same error following https://blog.alexellis.io/quickstart-openfaas-cli/

@alexellis
Copy link
Member

@gregbenner which error did you run into?

@jswhisperer
Copy link

@alexellis Is FaaS deployed? Do you need to specify the -gateway flag?
I managed to get it going by running the TestDrive project then adding to it.

@alexellis
Copy link
Member

@gregbenner What was wrong? What needs changing?

@jswhisperer
Copy link

It's missing a deploy local swarm step in the docs I believe?
When you do the curl command to TestDrive it runs it for you. That's why nothing is running on port 8080 and it has nowhere to deploy a new faas too.

@jswhisperer
Copy link

As per https://github.com/openfaas/faas/blob/master/TestDrive.md
Starting out it wasn't clear to do this I think. (from a noob view)
# docker swarm init --advertise-addr eth0 && \ git clone https://github.com/openfaas/faas && \ cd faas && \ git checkout master && \ ./deploy_stack.sh && \ docker service ls

@rgee0
Copy link
Contributor

rgee0 commented Jan 22, 2018

Isn't it in the pre-requisites section?
image

The Docker Swarm link takes you off to here

@jswhisperer
Copy link

100% it is, I just re-read now and saw it there. Sorry, that sorts out my issue. #dyslexia

@alexellis
Copy link
Member

Thanks guys 👍 glad you are up and running now. Locking the thread.

@alexellis
Copy link
Member

Derek lock

@derek derek bot locked and limited conversation to collaborators Jan 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants