Faas: PUT /system/functions endpoint returns 404

Created on 8 Oct 2017  路  13Comments  路  Source: openfaas/faas


When trying to re-deploy a function using the HTTP PUT method the server returns a 404 like here:

image

Your Environment

  • Docker version docker version (e.g. Docker 17.0.05 ):

image

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

Swarm

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

MacOS

question

All 13 comments

@schickling can you retry your curls adding the scheme to the urls:

curl -X http://localhost:8080/system/functions ...

edit - ignore that, red herring

Derek add label: question

Is it just the update that fails, can you hit any other endpoint successfully?

And does it also fail with the faas-cli

Our recommended approach for interacting with OpenFaaS is via the faas-cli.

https://blog.alexellis.io/quickstart-openfaas-cli/

PUT for updates is available in the latest release and Docker image (functions/gateway:0.6.6-beta2)

faas-cli works, HTTP POST and HTTP GET works.

Just gave the latest release a test on my "lab" - appears to take the update as expected. Can you move to a newer gateway image please @schickling ? Also getting Chromeless working on OpenFaaS is very interesting if you have any ideas about that.

If you'd like to join our community on Slack just email [email protected] for an invite.

I've installed the CLI via brew install faas-cli - any instructions how to upgrade the versions?

Re Chromeless: Yes, that would definitely be interesting, however, I won't be able to look into that before November. Maybe someone can open an issue?

For the gateway edit your docker-compose.yml file and change image: functions/gateway:... to the above then run ./deploy_stack.sh again. It's late in the UK so will catch up with you in the morning. Unless you want to join Slack where we may have folks in your timezone.

Thanks @alexellis - this works with the functions/gateway:0.6.6-beta2 image.

Is there a way to make the PUT/POST call blocking until the function has been deployed and is ready to be used without running into Can't reach service: errors?

@schickling not currently. is there a particular situation where you would not want that feedback?

@schickling closing for now, but if you have further input or want to re-open, please feel free!

Derek close

@schickling Austin is correct - but @ericstoekl is doing some work which will help your scenario by giving data over the RESTful endpoints and CLI as to when a function has a replica ready. Are you on our Slack channel? Maybe we could chat more there.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

FlankMiao picture FlankMiao  路  4Comments

alexellis picture alexellis  路  7Comments

derailed picture derailed  路  6Comments

rorpage picture rorpage  路  7Comments

edouardkleinhans picture edouardkleinhans  路  8Comments