ConnectionError: Error 101 connecting to localhost:6379. Network is unreachable

Downloaded the latest Redash image from Dockerhub and when I run the image , it is showing listening on port 5000 but it gave error when doing any GET request

ConnectionError: Error 101 connecting to localhost:6379. Network is unreachable

Running on CentOS…

Hi

We need more info, how do you start it?
please provide the docker run command or the docker-compose.yml.

but you say its listning on port 5000 but you query on port 6379?

Thanks, Here is the docker-compose yml … It shows it is listening on port 5000 and end up with error for port 6379

# For a production example please refer to setup/docker-compose.yml.

version: '3.2'

services:

  server:

    build: .

    command: dev_server

    depends_on:

      - postgres

      - redis

    ports:

      - "5000:5000"

      - "5678:5678"

    volumes:

      - ".:/app"

    environment:

      PYTHONUNBUFFERED: 0

      REDASH_LOG_LEVEL: "INFO"

      REDASH_REDIS_URL: "redis://redis:6379/0"

      REDASH_DATABASE_URL: "postgresql://postgres@postgres/postgres"

      REDASH_RATELIMIT_ENABLED: "false"

  worker:

    build: .

    command: dev_worker

    volumes:

      - type: bind

        source: .

        target: /app

    depends_on:

      - server

    environment:

      PYTHONUNBUFFERED: 0

      REDASH_LOG_LEVEL: "INFO"

      REDASH_REDIS_URL: "redis://redis:6379/0"

      REDASH_DATABASE_URL: "postgresql://postgres@postgres/postgres"

      QUEUES: "queries,scheduled_queries,celery,schemas"

      WORKERS_COUNT: 2

  redis:

    image: redis:3-alpine

    restart: unless-stopped

  postgres:

    image: postgres:9.5-alpine

    # The following turns the DB into less durable, but gains significant performance improvements for the tests run (x3

    # improvement on my personal machine). We should consider moving this into a dedicated Docker Compose configuration for

    # tests.

    ports:

      - "15432:5432"

    command: "postgres -c fsync=off -c full_page_writes=off -c synchronous_commit=OFF"

    restart: unless-stopped

I edited your post to fix the code. Please always use the code block button </> where you share codes. Otherwise the forums markdown filter will brake your post.

No it shows those ports are forwarded from the host to the container. But this is not the problem. As you can see in your compsoe file, it tries to connect redis on port 6379

REDASH_REDIS_URL: "redis://redis:6379/0"

Although I don’t know why it connects to localhost. Which container throws this error message? Are you sure it is redash?