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

Redis disconnect

Open ddean6232 opened this issue 4 months ago • 10 comments

Welcome!

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

What did you do?

  └─ 20250516012152_remove_unique_atribute_for_file_name_in_media/
    └─ migration.sql
  └─ 20250612155048_add_coluns_trypebot_tables/
    └─ migration.sql
  └─ 20250613143000_add_lid_column_to_is_onwhatsapp/
    └─ migration.sql
      
All migrations have been successfully applied.
npm notice
npm notice New major version of npm available! 10.8.2 -> 11.5.2
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.5.2
npm notice To update run: npm install -g [email protected]
npm notice
Migration succeeded
> [email protected] db:generate
> node runWithProvider.js "npx prisma generate --schema ./prisma/DATABASE_PROVIDER-schema.prisma"
Environment variables loaded from .env
Prisma schema loaded from prisma/postgresql-schema.prisma
┌─────────────────────────────────────────────────────────┐
│  Update available 6.11.1 -> 6.14.0                      │
│  Run the following to update                            │
│    npm i --save-dev prisma@latest                       │
│    npm i @prisma/client@latest                          │
└─────────────────────────────────────────────────────────┘
✔ Generated Prisma Client (v6.11.1) to ./node_modules/@prisma/client in 908ms
Start by importing your Prisma Client (See: https://pris.ly/d/importing-client)
Tip: Want to turn off tips and other hints? https://pris.ly/tip-4-nohints
Prisma generate succeeded
> [email protected] start:prod
> node dist/main
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:36     VERBOSE   [CacheEngine]  [string]  RedisCache initialized for groups 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:36     VERBOSE   [CacheService]  [string]  cacheservice created using cache engine: es 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:36     VERBOSE   [CacheEngine]  [string]  RedisCache initialized for instance 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:36     VERBOSE   [CacheService]  [string]  cacheservice created using cache engine: es 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:36     VERBOSE   [CacheEngine]  [string]  RedisCache initialized for baileys 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:36     VERBOSE   [CacheService]  [string]  cacheservice created using cache engine: es 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:36     INFO   [WA MODULE]  [string]  Module - ON 
(node:192) V8: file:///evolution/node_modules/baileys/lib/Defaults/index.js:5 'assert' is deprecated in import statements and support will be removed in a future version; use 'with' instead
(Use `node --trace-warnings ...` to show where the warning was created)
(node:192) V8: file:///evolution/node_modules/baileys/lib/Utils/generics.js:6 'assert' is deprecated in import statements and support will be removed in a future version; use 'with' instead
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:36     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:36     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:36     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:37     INFO   [PrismaRepository]  [string]  Repository:Prisma - ON 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:37     LOG   [SERVER]  [string]  HTTP - ON: 8080 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:37     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:37     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:37     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:37     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:37     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:38     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:38     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:39     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:39     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:40     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:40     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:41     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:41     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:42     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:42     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:43     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:43     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:44     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:44     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:45     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:45     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:46     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:46     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:47     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:47     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:48     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:48     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:49     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:49     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:50     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:50     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:51     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:51     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:52     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:52     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:53     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:53     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:54     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:54     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:55     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:55     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:56     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:56     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:57     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:57     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:58     ERROR   [Redis]  [string]  redis disconnected 
[Evolution API]    v2.3.1  192   -  Wed Aug 20 2025 13:39:58     ERROR   [Redis]  [string]  redis disconnected 

What did you expect?

redis does not disconnect

What did you observe instead of what you expected?

see log

Screenshots/Videos

No response

Which version of the API are you using?

latest

What is your environment?

Docker

Other environment specifications

No response

If applicable, paste the log output

No response

Additional Notes

No response

ddean6232 avatar Aug 20 '25 16:08 ddean6232

estou enfrentando o mesmo problema

Gtiware avatar Aug 20 '25 21:08 Gtiware

Se estiverem usando Docker, no .env, coloque a variavel CACHE_REDIS_URI como redis://redis, pois no docker o redis fica num outro container local.

VitorS0uza avatar Aug 21 '25 16:08 VitorS0uza

may be in english like the original and if it's in the docker compose may you should change the template

On Thu, Aug 21, 2025 at 10:35 AM Vítor Souza @.***> wrote:

VitorS0uza left a comment (EvolutionAPI/evolution-api#1856) https://github.com/EvolutionAPI/evolution-api/issues/1856#issuecomment-3211325287

Se estiverem usando Docker, no .env, coloque a variavel CACHE_REDIS_URI como redis://redis, pois no docker o redis fica num outro container local.

— Reply to this email directly, view it on GitHub https://github.com/EvolutionAPI/evolution-api/issues/1856#issuecomment-3211325287, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFTZG4OBQA75FDCVN2X5NBD3OXYMFAVCNFSM6AAAAACEMCJADWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTEMJRGMZDKMRYG4 . You are receiving this because you authored the thread.Message ID: @.***>

ddean6232 avatar Aug 21 '25 20:08 ddean6232

Facing the same:

[Evolution API] v2.2.3 171 - Sun Aug 24 2025 13:01:38 ERROR [Redis] [string] redis disconnected [Evolution API] v2.2.3 171 - Sun Aug 24 2025 13:01:38 ERROR [Redis] [string] redis disconnected [Evolution API] v2.2.3 171 - Sun Aug 24 2025 13:01:39 ERROR [Redis] [string] redis disconnected [Evolution API] v2.2.3 171 - Sun Aug 24 2025 13:01:39 ERROR [Redis] [string] redis disconnected [Evolution API] v2.2.3 171 - Sun Aug 24 2025 13:01:40 ERROR [Redis] [string] redis disconnected [Evolution API] v2.2.3 171 - Sun Aug 24 2025 13:01:40 ERROR [Redis] [string] redis disconnected

amo-mkt avatar Aug 24 '25 16:08 amo-mkt

[Evolution API] v2.3.1 205 - Sat Aug 30 2025 15:50:14 ERROR [Redis] [string] redis disconnected

[Evolution API] v2.3.1 205 - Sat Aug 30 2025 15:50:14 ERROR [Redis] [string] redis disconnected

[Evolution API] v2.3.1 205 - Sat Aug 30 2025 15:50:15 ERROR [Redis] [string] redis disconnected

[Evolution API] v2.3.1 205 - Sat Aug 30 2025 15:50:15 ERROR [Redis] [string] redis disconnected

[Evolution API] v2.3.1 205 - Sat Aug 30 2025 15:50:16 ERROR [Redis] [string] redis disconnected

life347 avatar Aug 30 '25 18:08 life347

Está usando Docker ou npm?

VitorS0uza avatar Aug 30 '25 18:08 VitorS0uza

Está usando Docker ou npm?

Docker

life347 avatar Aug 30 '25 18:08 life347

Se estiverem usando Docker, no .env, coloque a variavel CACHE_REDIS_URI como redis://redis, pois no docker o redis fica num outro container local.

worked for me, thanks:

Redis (obrigatório na v2)

5 REDIS_URI=redis://redis:6379
6 CACHE_REDIS_URI=redis://redis:6379
7 CACHE_REDIS_ENABLED=true
8 CACHE_REDIS_TTL=604800

franciscof5 avatar Sep 09 '25 07:09 franciscof5

deu certo pra mim essa solução acima

Jpcampos123 avatar Oct 23 '25 20:10 Jpcampos123

Tente trocar de:

CACHE_REDIS_URI=redis://default:SENHA@NOME_INSTANCIA_EVO_NOME_INSTANCIA_REDIS:6379

Para

CACHE_REDIS_URI=redis://default:SENHA@NOME_INSTANCIA_REDIS:6379

Exemplo:

CACHE_REDIS_URI=redis://default:SENHA@evolutionoutside_redisoutsidecorp:6379 Para CACHE_REDIS_URI=redis://default:SENHA@redisoutsidecorp:6379

allan-outside avatar Nov 20 '25 18:11 allan-outside