evolution-api icon indicating copy to clipboard operation
evolution-api copied to clipboard

Redis not working

Open rodrigocabraln opened this issue 1 year ago • 2 comments

Bem-vido!

  • [X] Sim, pesquisei problemas semelhantes no GitHub e não encontrei nenhum.

O que você fez?

Once the .env is configured as the documentation shows to activate Redis, it is not possible to create an instance from the api or from evolutionManager

https://doc.evolution-api.com/pt/optional-resources/redis

O que você esperava?

Activate redis as the documentation shows

O que vc observou ao invés do que esperava?

EvolutionApi not working and always loading

Capturas de Tela/Vídeos

No response

Qual versão da API você está usando?

1.8.1

Qual é o seu ambiente?

Linux

Outras expecificações do ambiente

AWS Instance

Se aplicável, cole a saída do log

[Evolution API] v1.8.1 1 - Mon Jun 17 2024 16:02:21 VERBOSE [Redis] [string] connecting new redis client [Evolution API] v1.8.1 1 - Mon Jun 17 2024 16:02:21 VERBOSE [Redis] [string] connected to new redis client [Evolution API] v1.8.1 1 - Mon Jun 17 2024 16:02:21 INFO [Redis] [string] RedisCache initialized for groups [Evolution API] v1.8.1 1 - Mon Jun 17 2024 16:02:21 VERBOSE [CacheService] [string] cacheservice created using cache engine: RedisCache [Evolution API] v1.8.1 1 - Mon Jun 17 2024 16:02:21 VERBOSE [RepositoryBroker] [string] initializing repository without db [Evolution API] v1.8.1 1 - Mon Jun 17 2024 16:02:21 VERBOSE [RepositoryBroker] [string] creating store path: /evolution/store [Evolution API] v1.8.1 1 - Mon Jun 17 2024 16:02:21 INFO [Redis] [string] RedisCache initialized for instance [Evolution API] v1.8.1 1 - Mon Jun 17 2024 16:02:21 VERBOSE [CacheService] [string] cacheservice created using cache engine: RedisCache [Evolution API] v1.8.1 1 - Mon Jun 17 2024 16:02:21 INFO [Redis] [string] RedisCache initialized for ChatwootService [Evolution API] v1.8.1 1 - Mon Jun 17 2024 16:02:21 VERBOSE [CacheService] [string] cacheservice created using cache engine: RedisCache [Evolution API] v1.8.1 1 - Mon Jun 17 2024 16:02:21 INFO [Redis] [string] RedisCache initialized for baileys [Evolution API] v1.8.1 1 - Mon Jun 17 2024 16:02:21 VERBOSE [CacheService] [string] cacheservice created using cache engine: RedisCache [Evolution API] v1.8.1 1 - Mon Jun 17 2024 16:02:21 VERBOSE [WAMonitoringService] [string] instance created [Evolution API] v1.8.1 1 - Mon Jun 17 2024 16:02:21 VERBOSE [WAMonitoringService] [string] checking instances without connection [Evolution API] v1.8.1 1 - Mon Jun 17 2024 16:02:21 INFO [WA MODULE] [string] Module - ON [Evolution API] v1.8.1 1 - Mon Jun 17 2024 16:02:21 VERBOSE [WAMonitoringService] [string] Loading instances [Evolution API] v1.8.1 1 - Mon Jun 17 2024 16:02:21 VERBOSE [WAMonitoringService] [string] Redis enabled [Evolution API] v1.8.1 1 - Mon Jun 17 2024 16:02:21 VERBOSE [CacheService] [string] cacheservice getting all keys [Evolution API] v1.8.1 1 - Mon Jun 17 2024 16:02:21 LOG [SERVER] [string] HTTP - ON: 8080 [Evolution API] v1.8.1 1 - Mon Jun 17 2024 16:02:24 VERBOSE [InstanceRouter] [string] request received in fetchInstances [Evolution API] v1.8.1 1 - Mon Jun 17 2024 16:02:24 VERBOSE [InstanceRouter] [string] request body:
[Evolution API] v1.8.1 1 - Mon Jun 17 2024 16:02:24 VERBOSE [InstanceRouter] [object]
{}

[Evolution API] v1.8.1 1 - Mon Jun 17 2024 16:02:24 VERBOSE [InstanceRouter] [string] request query:
[Evolution API] v1.8.1 1 - Mon Jun 17 2024 16:02:24 VERBOSE [InstanceRouter] [object]
{}

[Evolution API] v1.8.1 1 - Mon Jun 17 2024 16:02:24 VERBOSE [InstanceController] [string] requested fetchInstances (all instances) [Evolution API] v1.8.1 1 - Mon Jun 17 2024 16:02:24 VERBOSE [WAMonitoringService] [string] get instance info [Evolution API] v1.8.1 1 - Mon Jun 17 2024 16:02:24 VERBOSE [WAMonitoringService] [string] return instance info: 0 [Evolution API] v1.8.1 1 - Mon Jun 17 2024 16:02:26 ERROR [Redis] [string] redis disconnected [Evolution API] v1.8.1 1 - Mon Jun 17 2024 16:02:28 VERBOSE [CacheService] [string] cacheservice has key: grggfdgdf

Notas Adicionais

No response

rodrigocabraln avatar Jun 17 '24 19:06 rodrigocabraln

Estou com o mesmo problema

natanaelece avatar Aug 23 '24 23:08 natanaelece

Eu tive o mesmo problema. Configurei para usar um servidor Redis e o erro parou de aparecer. (traduzido do espanhol)

NandoScout avatar Aug 24 '24 01:08 NandoScout

mesmo problema aqui na 1.8.1, no meu caso ele fica apenas spammando o ERROR [Redis] [string] redis disconnected

eduardochaves1 avatar Oct 15 '24 17:10 eduardochaves1

mesmo problema aqui na 1.8.1, no meu caso ele fica apenas spammando o ERROR [Redis] [string] redis disconnected

O meu está com esse mesmo problema, como vocês resolveram este problema do redis?

andersonmenezesm avatar Oct 26 '24 01:10 andersonmenezesm

Alguém conseguiu resolver essa questão? estou com mesmo problem "redis disconnected"

JefersonBatistaSouza avatar Nov 07 '24 20:11 JefersonBatistaSouza

No meu caso era um problema de rede, ao acessar o container do redis. Se atentem à essa questão que pode ser o caso de vocês também, vejam bem a parte de network do docker entre os containers (ip, porta, network_name)

eduardochaves1 avatar Nov 07 '24 21:11 eduardochaves1

Eu Consegui resolver adicionando as variáveis de ambiente do redis, adicionei e tudo certo...

Agora o problema é que a mensagem do whatsapp chega no log, mas o bot não inicia...mas acho que e questão de configurar o webhook na evolutivon-api

JefersonBatistaSouza avatar Nov 07 '24 22:11 JefersonBatistaSouza

pelo fato da issue ser baseada em uma versão que não receberá mais correções, sugiro que faça uma instalação usando uma versão mais atual e caso o erro persista, trabalharemos nele. Enquanto isso fecharei esta issue até segunda ordem

dpaes avatar Nov 18 '24 20:11 dpaes

In your .env file replace localhost to redis

CACHE_REDIS_URI=redis://redis:6379/6

edgarleite avatar Feb 13 '25 20:02 edgarleite

In your .env file replace localhost to redis

CACHE_REDIS_URI=redis://redis:6379/6

Perfeito, aqui funcionou! Obrigado

matsnascimento avatar Apr 24 '25 17:04 matsnascimento

In your .env file replace localhost to redis

CACHE_REDIS_URI=redis://redis:6379/6

THAAAAAAAAAAAAAAAAANKSSSSSSSSSS

Victor-Almeida-Amorim avatar May 15 '25 12:05 Victor-Almeida-Amorim

Thanks Man @edgarleite

ogvieira100 avatar Jun 23 '25 21:06 ogvieira100