Skip to content

Unable to connect to instace #1808

@teovillanueva

Description

@teovillanueva

Welcome!

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

What did you do?

Hello! I've deployed successfully evolution api v2.3.1 to AWS ECS.

When I create an instance and try to scan the QR Code, nothing happens. I've got it to show as connected sometimes but the inside the whatsapp app it should app as syncing forever.

This is how I'm deploying my container

export const service = new sst.aws.Service("EvolutionService", {
  cluster,
  link: [postgres, redis],
  loadBalancer: {
    rules: [{ listen: "443/https", forward: "8080/http" }],
    domain,
  },
  containers: [
    {
      environment: {
        SERVER_URL: `https://${domain?.name}`,
        DATABASE_URL,
        DATABASE_CONNECTION_URI: DATABASE_URL,
        DATABASE_PROVIDER: "postgresql",
        CACHE_REDIS_ENABLED: "true",
        EVOAI_ENABLED: "true",
        CACHE_REDIS_URI: REDIS_URL,
        AUTHENTICATION_API_KEY: authenticationApiKey.value,
        LOG_LEVEL: "ERROR,WARN,DEBUG,INFO,LOG,VERBOSE,DARK,WEBHOOKS,WEBSOCKET",
        LOG_COLOR: "true",
        LOG_BAILEYS: "error",
        DEL_INSTANCE: "false",
      },
      name: "EvolutionContainer",
      image: "evoapicloud/evolution-api:v2.3.1",
      cpu: "0.25 vCPU",
      memory: "0.5 GB",
    },
  ],
});

And this are some of the logs i've gathered

{"level":50,"time":1754435407444,"pid":189,"hostname":"ip-10-0-10-222.ec2.internal","node":{"tag":"stream:error","attrs":{"code":"515"}},"msg":"stream errored out"}
[Evolution API]  [be1ec712-f428-404c-b3f0-4a002f983ddc]  v2.3.1  189   -  Tue Aug 05 2025 20:10:07     INFO   [ChannelStartupService]  [string]  Browser: Evolution API,Chrome,5.10.238-234.956.amzn2.x86_64 
[Evolution API]  [be1ec712-f428-404c-b3f0-4a002f983ddc]  v2.3.1  189   -  Tue Aug 05 2025 20:10:07     INFO   [ChannelStartupService]  [string]  Baileys version: 2.3000.1025534275 
[Evolution API]  [be1ec712-f428-404c-b3f0-4a002f983ddc]  v2.3.1  189   -  Tue Aug 05 2025 20:10:07     INFO   [ChannelStartupService]  [string]  Group Ignore: false 

What did you expect?

I expected it to connect

What did you observe instead of what you expected?

It sometimes connect and sometimes not.

Screenshots/Videos

No response

Which version of the API are you using?

2.3.1

What is your environment?

Docker

Other environment specifications

AWS ECS

If applicable, paste the log output

{"level":50,"time":1754435407444,"pid":189,"hostname":"ip-10-0-10-222.ec2.internal","node":{"tag":"stream:error","attrs":{"code":"515"}},"msg":"stream errored out"}
[Evolution API] [be1ec712-f428-404c-b3f0-4a002f983ddc] v2.3.1 189 - Tue Aug 05 2025 20:10:07 INFO [ChannelStartupService] [string] Browser: Evolution API,Chrome,5.10.238-234.956.amzn2.x86_64
[Evolution API] [be1ec712-f428-404c-b3f0-4a002f983ddc] v2.3.1 189 - Tue Aug 05 2025 20:10:07 INFO [ChannelStartupService] [string] Baileys version: 2.3000.1025534275
[Evolution API] [be1ec712-f428-404c-b3f0-4a002f983ddc] v2.3.1 189 - Tue Aug 05 2025 20:10:07 INFO [ChannelStartupService] [string] Group Ignore: false

Additional Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    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