Skip to content

Ledge will only connect to Redis running on localhost #194

@jsierles

Description

@jsierles

With the following config, I consistently see a Connection refused error:

2020-07-16T20:16:37Z service/web/web-cc7d6bd9c-g2hqr 2020/07/16 20:16:37 [error] 13#13: *881 connect() failed (111: Connection refused), client: 10.10.10.2, server: _, request: "GET / HTTP/2.0", host: "my.host"

If I point CACHE_URL at localhost Redis, it works. I've tried higher timeout settings. I am able to connect to redis instantly from the command line with redis-cli.

init_by_lua_block {

    local ledge = require "ledge"
    local redis_host = os.getenv("CACHE_URL")

    ledge.configure({
      redis_connector_params = {
        url = redis_host,
        connect_timeout = 2000
      }
    })
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions