Giter Club home page Giter Club logo

Comments (16)

hervelemeur avatar hervelemeur commented on May 30, 2024 4

Lost far too many hours on this warning message trying to resolve this redis "problem" which wasn't one.

There should be a following "Redis connected successfully" message in the gateway logs IMHO.

from tyk-helm-chart.

anup-krai avatar anup-krai commented on May 30, 2024 1

I checked all the gateway pod logs and all have same error and this is running for quite some time-

time="Apr 07 15:48:55" level=error msg="Redis health check failed" error="storage: Redis is either down or ws not configured" liveness-check=true prefix=main
time="Apr 07 15:48:56" level=warning msg="Reconnecting storage: Redis is either down or ws not configured" prefix=pub-sub

from tyk-helm-chart.

ultd avatar ultd commented on May 30, 2024 1

I was able to solve this issue. Just use my shell script here and it should install & configure Tyk-CE and Tyk-Operator on a k8s cluster without any problem.

from tyk-helm-chart.

flyte avatar flyte commented on May 30, 2024 1

Of course I solve it 5 minutes after asking for help! I was missing the port from the addrs section:

redis:
  addrs:
    - my-redis-master:6379

now works 🎉

from tyk-helm-chart.

gernest avatar gernest commented on May 30, 2024

This has more to do with accessing redis. You can try to verify that you can indeed connect to redis on the tyk-redis-master.tyk.svc.cluster.local:6379

You need to have redis installed and working for tyk to operate. This will eventually go away though if the redis service is available and tyk has successfully established the connection.

can you please share the result of

kubectl get svc -n tyk

from tyk-helm-chart.

anup-krai avatar anup-krai commented on May 30, 2024

Below is the output -

NAME                       TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)         AGE
gateway-svc-tyk-headless   NodePort    10.73.32.165    <none>        443:30716/TCP   127m
tyk-redis-headless         ClusterIP   None            <none>        6379/TCP        151m
tyk-redis-master           ClusterIP   10.73.71.169    <none>        6379/TCP        151m
tyk-redis-slave            ClusterIP   10.73.37.126    <none>        6379/TCP        151m

from tyk-helm-chart.

gernest avatar gernest commented on May 30, 2024

What happens when you make api calls to the gateway ?

This error can be sometime ignored, try creating api's and make api calls.

from tyk-helm-chart.

gernest avatar gernest commented on May 30, 2024

You can try to get more context from the logs by elevating log level to debug . In th gateway on values.yaml set extaenv like this

  extraEnvs: 
    - name: TYK_LOGLEVEL
      value: debug

This might help us to know what is going on.

from tyk-helm-chart.

anup-krai avatar anup-krai commented on May 30, 2024

I tried setting the loglevel but looks like its not getting set, still info/error logs are coming. Below is the gateway config on values.yaml

gateway:
  kind: DaemonSet
  replicaCount: 1
  hostName: "gateway.tykbeta.com"
  tls: false
  containerPort: 8080
  tags: ""
  image:
    repository: tykio/tyk-gateway
    tag: v3.1.2
    pullPolicy: IfNotPresent
  service:
    type: NodePort
    port: 443
    externalTrafficPolicy: Local
    annotations: {}
  control:
    enabled: false
    containerPort: 9696
    port: 9696
    type: ClusterIP
    annotations: {}
  ingress:
    enabled: false
    annotations: {}
    # kubernetes.io/ingress.class: nginx
    # kubernetes.io/tls-acme: "true"
    path: /
    hosts:
      - tyk-gw.local
    tls: []
    #  - secretName: chart-example-tls
    #    hosts:
    #      - chart-example.local
  extraEnvs: 
    - name: TYK_LOGLEVEL
      value: debug
  resources: {}

from tyk-helm-chart.

gernest avatar gernest commented on May 30, 2024

I asked, what you get after making calls to the gateway?
Ignore the logs for now.

from tyk-helm-chart.

anup-krai avatar anup-krai commented on May 30, 2024

Sorry for the delayed response. We have installed tyk gateway though [https://github.com/TykTechnologies/tyk-oss-k8s-deployment#tyk-oss-deployment](Tyk OSS K8s Deployment) and redis error did not come.

But when we install through helm chat we are getting this error. Below is the response when we do an API call to the gateway -

404 page not found

from tyk-helm-chart.

sedkis avatar sedkis commented on May 30, 2024

404 page not found

This isn't an error that the Gateway normally generates. What else could be creating that message?

from tyk-helm-chart.

zalbiraw avatar zalbiraw commented on May 30, 2024

Sorry for the delayed response. We have installed tyk gateway though [https://github.com/TykTechnologies/tyk-oss-k8s-deployment#tyk-oss-deployment](Tyk OSS K8s Deployment) and redis error did not come.

But when we install through helm chat we are getting this error. Below is the response when we do an API call to the gateway -

404 page not found

What endpoint did you hit on the GW?

from tyk-helm-chart.

anup-krai avatar anup-krai commented on May 30, 2024

We are able to call gateway both through control port and service port successfully. Also we have enabled redis with TLS.

We are able to connect to redis through redis client successfully and also there are no errors in gateway. We also created few keys and those are also visible in redis.

But in redis pod I can see below logs -

1:M 21 Apr 2021 12:40:56.830 # Error accepting a client connection: error:14094412:SSL routines:ssl3_read_bytes:sslv3 alert bad certificate

Is there any change we need to do in gateway configs?

from tyk-helm-chart.

ultd avatar ultd commented on May 30, 2024

Any progress on this? We're still running into the same error and the /hello route gives us following JSON response:

{
    "status": "fail",
    "version": "v3.1.2",
    "description": "Tyk GW",
    "details": {
        "redis": {
            "status": "fail",
            "output": "storage: Redis is either down or ws not configured",
            "componentType": "datastore",
            "time": "2021-06-06T21:26:04Z"
        }
    }
}

from tyk-helm-chart.

flyte avatar flyte commented on May 30, 2024

I was able to solve this issue

Could you please let us know what you did to solve the issue?

from tyk-helm-chart.

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.