
An instance stuck on “connecting” means Evolution API is trying to reach WhatsApp and cannot, or that the service restarts before it finishes. The most common cause, according to people who install it, is a Baileys version that does not fit what WhatsApp is doing at the moment. But there are others, and the logs tell you which. Always read them first.
Read the logs first
|
|
|
The causes, most likely first
| Cause | How to recognise it | What to do |
| Incompatible Baileys version | The connection closes right after the QR is scanned, or the service restarts in a loop, with no network error. | Read the release notes and open issues in the project’s repository. Move to the version they name as correct, or go back to the last one that worked. Pin the image version. |
| Old or damaged session | The instance existed, stopped connecting, and the QR does not appear or does not work. | Delete the instance and create it again, scanning a new QR. See connecting with the QR and reconnecting. |
| The server cannot reach WhatsApp | The logs show network or name-resolution errors. | Test outbound traffic, for example with curl -I https://web.whatsapp.com, and check the outbound firewall and DNS. |
| Wrong server clock | Certificate or secure-connection errors with no other cause. | Check the server date and time with timedatectl and turn on synchronisation. |
| Out of memory | The container vanishes with no application error. See common VPS errors. | Cut what runs beside it, or add memory. |
| Database or Redis unreachable | The API complains about the database connection and restarts. | Check passwords and service names. See PostgreSQL and Redis. |
| The number was restricted or banned | The phone shows a WhatsApp notice. No QR works. | It is the Baileys risk. See the risk and the rules. Do not keep retrying. |
| Do not update blindly. Moving to the newest image may fix the problem, but it may also bring another and touch your data. Make a copy first (see updating and backing up) and change one thing at a time. |
A sequence that saves time
|
|
|
|
|
| If you ask a community or the project for help, bring the image version, the log lines of the first error and what you have already tried. Remove anything secret (the API key, tokens, numbers). Interweb support looks after the VPS and the network, but does not install or repair Evolution API: see the Support Policy. |
|
Is the server short of memory or disk? See which VPS gives you room. See VPS servers |
|
SEE ALSO Connecting with the QR code and reconnecting |
RECOMMENDED PRODUCT Web hosting with cPanel Domain and SSL included, daily backups and the panel you already know. from $5.36/mo (3-year plan, with coupon) See plans |
- 0 Users Found This Useful











