Skip to content

Docker version v2.2.3 constantly gets "redis disconnected" error despite correct network setup #2074

@hasiburbondstein-dotcom

Description

Welcome!

  • Yes, I have searched for similar issues on GitHub and found none.

What did you do?

Hello,

I am having trouble getting the QR code to appear. The evolution-api container logs are constantly spammed with ERROR [Redis] [string] redis disconnected.

I have confirmed this is not a networking issue. I have a full Docker Compose stack running with postgres and redis/redis-stack-server.

Diagnostic Steps I Have Taken:

From inside the evolution-api container (docker compose exec evolution-api /bin/sh):

ping redis succeeds.

nc -vz redis 6379 succeeds.

This proves that the container can resolve the Redis hostname and open a TCP connection to the port. The problem seems to be internal to the application's Redis client.

Here are my logs:
evolution-api | [Evolution API] [Md. Hasibur Rahman] v2.2.3 295 - Sun Oct 12 2025 03:33:33 INFO [ChannelStartupService] [string] Browser: Evolution API,Chrome,6.10.14-linuxkit
evolution-api | [Evolution API] [Md. Hasibur Rahman] v2.2.3 295 - Sun Oct 12 2025 03:33:33 INFO [ChannelStartupService] [string] Baileys version env: 2,3000,1015901307
evolution-api | [Evolution API] [Md. Hasibur Rahman] v2.2.3 295 - Sun Oct 12 2025 03:33:33 INFO [ChannelStartupService] [string] Group Ignore: false
evolution-api | [Evolution API] v2.2.3 295 - Sun Oct 12 2025 03:33:33 ERROR [Redis] [string] redis disconnected
evolution-api | [Evolution API] v2.2.3 295 - Sun Oct 12 2025 03:33:33 ERROR [Redis] [string] redis disconnected
evolution-api | [Evolution API] v2.2.3 295 - Sun Oct 12 2025 03:33:34 ERROR [Redis] [string] redis disconnected
evolution-api | [Evolution API] v2.2.3 295 - Sun Oct 12 2025 03:33:34 ERROR [Redis] [string] redis disconnected
evolution-api | [Evolution API] v2.2.3 295 - Sun Oct 12 2025 03:33:35 ERROR [Redis] [string] redis disconnected

Here is my docker-compose.yml file:
version: '3.8'

services:
postgres:
image: postgres:13
container_name: postgres
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: mypassword
POSTGRES_DB: evolution_api
volumes:
- evolution_pg_data:/var/lib/postgresql/data
networks:
- evolution-net

redis:
image: redis/redis-stack-server
container_name: redis
restart: always
networks:
- evolution-net

evolution-api:
image: atendai/evolution-api
container_name: evolution-api
restart: always
ports:
- "8080:8080"
environment:
AUTHENTICATION_API_KEY: "change-me"
DATABASE_PROVIDER: "postgresql"
DATABASE_CONNECTION_URI: "postgresql://postgres:mypassword@postgres:5432/evolution_api"
CACHE_PROVIDER: "redis"
CACHE_HOST: "redis"
CACHE_PORT: "6379"
volumes:
- evolution_store:/evolution/store
- evolution_instances:/evolution/instances
networks:
- evolution-net
depends_on:
- postgres
- redis

volumes:
evolution_pg_data:
evolution_store:
evolution_instances:

networks:
evolution-net:

What did you expect?

Solution Need

What did you observe instead of what you expected?

Solution Need

Screenshots/Videos

No response

Which version of the API are you using?

Solution Need

What is your environment?

Windows

Other environment specifications

No response

If applicable, paste the log output

No response

Additional Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions