Tyk-ce is showing the following error : "Failed to create key - storage: Redis is either down or ws not configured

Hello @james6 and welcome to the community.

Have you completed the installation process or are you still setting it up?

Also, can you confirm that the gateway (Tyk) establishes a connection with Redis? You can verify if the gateway is connected to Redis with the Liveness health check

curl --location -g --request GET '{{GATEWAY_ENDPOINT}}/hello'

A successful result should be something like this

{
    "status": "pass",
    "version": "v4.0.3",
    "description": "Tyk GW",
    "details": {
        "redis": {
            "status": "pass",
            "componentType": "datastore",
            "time": "2022-07-23T00:09:02Z"
        }
    }
}

A failed one would look something like this

{
    "status": "fail",
    "version": "v4.0.3",
    "description": "Tyk GW",
    "details": {
        "redis": {
            "status": "fail",
            "output": "dial tcp: lookup tyk-open-source-redis on XXX.X.X.XX:XX: no such host",
            "componentType": "datastore",
            "time": "2022-07-23T00:10:02Z"
        }
    }
}

If it’s failing to connect then can you verify your redis environment and config as shared here

1 Like