Giter Club home page Giter Club logo

Comments (5)

alexellis avatar alexellis commented on June 18, 2024 1

Hey @goncalo-oliveira

You need to run through the troubleshooting guide to find out what's wrong with the faasnetes container.

https://docs.openfaas.com/deployment/troubleshooting/

I also have a good post on my blog about this:

https://blog.alexellis.io/troubleshooting-on-kubernetes/

Alex

from faas-netes.

goncalo-oliveira avatar goncalo-oliveira commented on June 18, 2024

Hi @alexellis,

I've gone through your guides, which cover mostly what I already checked, thanks for that, but I still can't say why it's failing, other than the probes are failing. Here's the gateway logs

$ kubectl -n openfaas logs deploy/gateway 
Found 2 pods, using pod/gateway-7684989679-qkmfl
Defaulted container "gateway" out of: gateway, operator
OpenFaaS Gateway - Community Edition (CE)

Version: 0.26.3 Commit: a128df471f406690b1021a32317340b29689c315
Timeouts: read=1m5s	write=1m5s	upstream=1m0s
Function provider: http://127.0.0.1:8081/

2023/06/06 13:19:29 Async enabled: Using NATS Streaming
2023/06/06 13:19:29 Deprecation Notice: NATS Streaming is no longer maintained and won't receive updates from June 2023
2023/06/06 13:19:29 Opening connection to nats://nats.openfaas.svc.cluster.local:4222
2023/06/06 13:19:29 Connect: nats://nats.openfaas.svc.cluster.local:4222
2023/06/06 13:19:34 Get "http://127.0.0.1:8081/system/namespaces": dial tcp 127.0.0.1:8081: connect: connection refused
2023/06/06 13:19:34 Get "http://127.0.0.1:8081/system/functions?namespace=openfaas-fn": dial tcp 127.0.0.1:8081: connect: connection refused
2023/06/06 13:19:39 Get "http://127.0.0.1:8081/system/namespaces": dial tcp 127.0.0.1:8081: connect: connection refused
2023/06/06 13:19:39 Get "http://127.0.0.1:8081/system/functions?namespace=openfaas-fn": dial tcp 127.0.0.1:8081: connect: connection refused
2023/06/06 13:19:44 Get "http://127.0.0.1:8081/system/namespaces": dial tcp 127.0.0.1:8081: connect: connection refused
2023/06/06 13:19:44 Get "http://127.0.0.1:8081/system/functions?namespace=openfaas-fn": dial tcp 127.0.0.1:8081: connect: connection refused
2023/06/06 13:19:49 Get "http://127.0.0.1:8081/system/namespaces": dial tcp 127.0.0.1:8081: connect: connection refused
2023/06/06 13:19:49 Get "http://127.0.0.1:8081/system/functions?namespace=openfaas-fn": dial tcp 127.0.0.1:8081: connect: connection refused
2023/06/06 13:19:54 Get "http://127.0.0.1:8081/system/namespaces": dial tcp 127.0.0.1:8081: connect: connection refused
2023/06/06 13:19:54 Get "http://127.0.0.1:8081/system/functions?namespace=openfaas-fn": dial tcp 127.0.0.1:8081: connect: connection refused

The events tell me the same... liveness and readiness probes failing.

openfaas      13m         Warning   Unhealthy            pod/gateway-65f6b959c5-5jpwg                                Readiness probe failed: HTTP probe failed with statuscode: 502
openfaas      13m         Warning   Unhealthy            pod/gateway-65f6b959c5-5jpwg                                Liveness probe failed: HTTP probe failed with statuscode: 502

from faas-netes.

alexellis avatar alexellis commented on June 18, 2024

I'm so sorry for the confusion.

I asked you for the logs from faas-netes - not the gateway.

The troubleshooting guide gives you the exact commands, when you run them, you'll get more info.

image

Perhaps it was also unclear, but my troubleshooting guide tells you to get the events for the namespace.

Please can you do that too.

As a rule, we do not troubleshoot or debug the clusters of community edition (free) users. I'm doing this as an exception.

Alex

from faas-netes.

goncalo-oliveira avatar goncalo-oliveira commented on June 18, 2024

Hi again @alexellis,

The confusion was mine, I misread your advise.

$ kubectl -n openfaas logs deploy/gateway -c operator  
Found 2 pods, using pod/gateway-7684989679-qkmfl
2023/06/06 14:02:52 A license is required via --license or --license-file

Now this was unexpected, maybe it was a change that I missed in the release notes. Is a license file required for CE?

from faas-netes.

alexellis avatar alexellis commented on June 18, 2024

I'll get this issue closed as there is no problem that I can see above.

No additional license is required for CE, however you should consult the docs for what's available for free users vs paid:

  1. https://docs.openfaas.com/openfaas-pro/introduction/#comparison
  2. https://www.openfaas.com/pricing/

You should convert that installation to use the controller mode, no custom resource is available for the community edition.

Or you can revert to the prior version that you were using previously - but beware that the base image and some libraries used contain high severity CVEs.

Of course, you know that we are always here, if you want to talk about options for OpenFaaS Standard for your use within your business.

Alex

from faas-netes.

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.