FAILED status
about and hour ago all my sessions are stuck in STARTING. Then after a while they go into FAILED status.
I have the latest version NOWEB (2026.7.1 PLUS)
I tried restarting the service, but makes no difference.
Does anyone else have this problem or knows how to solve it?
Thanks
yes, me too
+1
+1
I fixed it by forcing the WhatsApp Web version inside the WAHA container.
Run:
docker exec waha-2 bash -c "sed -i '/markOnlineOnConnect: markOnlineOnConnect,/a\ version: [2, 3000, 1037641644],' /app/dist/core/engines/noweb/session.noweb.core.js"
Then restart the container.
After doing this, my sessions started working again instead of getting stuck in STARTING and then changing to FAILED.
This is just a temporary workaround until an official fix is released.
I fixed it by forcing the WhatsApp Web version inside the WAHA container.
Run:
docker exec waha-2 bash -c "sed -i '/markOnlineOnConnect: markOnlineOnConnect,/a\ version: [2, 3000, 1037641644],' /app/dist/core/engines/noweb/session.noweb.core.js" Then restart the container.
After doing this, my sessions started working again instead of getting stuck in
STARTINGand then changing toFAILED.This is just a temporary workaround until an official fix is released.
That worked for me, thank you
Fix for Dokploy / Docker Swarm deployments
Same thing here on 2026.7.1 NOWEB, running on Dokploy (Docker Swarm). Fixed it by pinning the WhatsApp Web version — Baileys needs it passed to makeWASocket, see WhiskeySockets/Baileys#2731.
The patch itself applies to any setup, but the persistence part below is Swarm/Dokploy specific — that's the bit that kept biting me.
Heads up before you do this: you lose your sessions. Every number needs a fresh QR scan. Back up your session DB first.
Patch:
sed -i '/markOnlineOnConnect: markOnlineOnConnect,/a\ version: [2, 3000, 1043857760],' \
/app/dist/core/engines/noweb/session.noweb.core.js
Get the current build number from Baileys baileys-version.json. An outdated one fails exactly like no patch at all.
If you're on Docker Swarm or Dokploy the sed won't survive a restart — Swarm recreates the container from the image every time. Run it at startup instead.
Dokploy specifically: the Command field gets .split(" ") with no quote handling, so a sed one-liner shatters and breaks the container. Put it in Args, which is passed through as-is. Image is ENTRYPOINT ["/usr/bin/tini","--"] + CMD ["/entrypoint.sh"], so keep tini as PID 1:
Command:
/usr/bin/tini
Args:
["--", "/bin/sh", "-c",
"sed -i '/markOnlineOnConnect: markOnlineOnConnect,/a\\ version: [2, 3000, 1043857760],' /app/dist/core/engines/noweb/session.noweb.core.js; exec /entrypoint.sh"]
Use Redeploy, not Start. Start only scales the existing service and won't pick up the new config — looks like nothing happened. Check it landed with docker inspect <container> --format '{{json .Args}}'.
Compose:
services:
waha:
image: devlikeapro/waha-plus:2026.7.1
entrypoint: ["/usr/bin/tini", "--", "/bin/sh", "-c"]
command:
- >-
sed -i '/markOnlineOnConnect: markOnlineOnConnect,/a\ version: [2, 3000, 1043857760],'
/app/dist/core/engines/noweb/session.noweb.core.js;
exec /entrypoint.sh
Same symptom here, and we found the cause. It's the hardcoded WhatsApp Web version in the NOWEB engine.
Symptom: all NOWEB sessions dropped simultaneously, go STARTING → FAILED, restarting doesn't help, and no QR is ever generated. Logs loop like this:
session:xxx - connected to WA session:xxx - not logged in, attempting registration... session:xxx - connection errored {"trace":"Error: Connection Failure ... noise-handler.js decodeFrame"} session:xxx - Connection closed due to 'Error: Connection Failure', reconnecting... The socket connects fine, so it's not network or DNS. WhatsApp accepts the handshake and rejects the login. The QR never appears because the pairing reference comes from WhatsApp, so if login is refused there's nothing to render. Same root cause as WhiskeySockets/Baileys#2731.
Cause: NOWEB announces a fixed client version that WhatsApp now refuses. Ours was announcing 2.3000.1035920091 while WhatsApp was serving 2.3000.1044017588.
- Check your own numbers:
what WhatsApp requires right now
curl -s https://web.whatsapp.com/sw.js | grep -oE 'client_revision[^,}]*'
what your WAHA announces
docker logs
- Before touching anything, protect your pairings. Sessions that keep retrying and failing lose their credentials and will need a fresh QR. We lost 3 of 7 accounts this way while diagnosing. Stop every session that still shows me.id:
curl -X POST -H "X-Api-Key: $KEY" -H 'Content-Type: application/json'
-d '{"name":"SESSION_NAME"}' http://localhost:3000/api/sessions/stop
STOPPED survives a restart. FAILED may retry and burn the credential.
- Apply the fix (replace
and ):
F=/app/dist/core/engines/noweb/session.noweb.core.js
docker exec
docker exec
'/markOnlineOnConnect: markOnlineOnConnect,/a\ version: [2, 3000,
docker exec
docker restart
Caveats:
Use docker restart, not docker compose up -d. The patch lives in the container filesystem and is lost whenever the container is recreated or the image is updated. Re-apply after any of those. Upgrading WAHA does not fix this. Our outage started on 2026.5.1 and persisted after upgrading to 2026.7.1; only the version patch resolved it. The WEBJS engine was unaffected. Another deployment of ours running WEBJS kept pairing normally throughout, which is what pointed us at the engine in the first place. This is a workaround. The proper fix is Baileys' fetchLatestWaWebVersion() so the version isn't pinned at build time.
fetchLatestBaileysVersion() fetches from the Baileys GitHub repo (Defaults/index.ts), not from WhatsApp, so it returns whatever version the Baileys maintainers last committed. That's exactly the value that went stale and caused #2191, so auto-detection would return the broken version and the fix would appear not to work.
fetchLatestWaWebVersion() reads client_revision from https://web.whatsapp.com/sw.js, which is what WhatsApp actually serves. Measured during the outage: our NOWEB was announcing 2.3000.1035920091, web.whatsapp.com/sw.js returned 1044017588. Patching the compiled JS with the latter brought all sessions back immediately, including previously paired ones, with no re-scan.
Suggestion: try fetchLatestWaWebVersion() first and keep fetchLatestBaileysVersion() as the fallback, so there are two network sources before the bundled default.
What is the recommended action for users affected by this issue? Should we apply the temporary version patch manually, or is it safer to wait for the WAHA team to update the WhatsApp Web version in an official release?
I fixed it by forcing the WhatsApp Web version inside the WAHA container.
Run:
docker exec waha-2 bash -c "sed -i '/markOnlineOnConnect: markOnlineOnConnect,/a\ version: [2, 3000, 1037641644],' /app/dist/core/engines/noweb/session.noweb.core.js" Then restart the container.
After doing this, my sessions started working again instead of getting stuck in
STARTINGand then changing toFAILED.This is just a temporary workaround until an official fix is released.
Perfect man, it worked here as well thank you
I fixed it by forcing the WhatsApp Web version inside the WAHA container.
Run:
docker exec waha-2 bash -c "sed -i '/markOnlineOnConnect: markOnlineOnConnect,/a\ version: [2, 3000, 1037641644],' /app/dist/core/engines/noweb/session.noweb.core.js" Then restart the container.
After doing this, my sessions started working again instead of getting stuck in
STARTINGand then changing toFAILED.This is just a temporary workaround until an official fix is released.
Works for me! Thanks
Fix for Dokploy / Docker Swarm deployments
Same thing here on 2026.7.1 NOWEB, running on Dokploy (Docker Swarm). Fixed it by pinning the WhatsApp Web version — Baileys needs it passed to
makeWASocket, see WhiskeySockets/Baileys#2731.The patch itself applies to any setup, but the persistence part below is Swarm/Dokploy specific — that's the bit that kept biting me.
Heads up before you do this: you lose your sessions. Every number needs a fresh QR scan. Back up your session DB first.
Patch:
sed -i '/markOnlineOnConnect: markOnlineOnConnect,/a\ version: [2, 3000, 1043857760],'
/app/dist/core/engines/noweb/session.noweb.core.js Get the current build number from Baileysbaileys-version.json. An outdated one fails exactly like no patch at all.If you're on Docker Swarm or Dokploy the
sedwon't survive a restart — Swarm recreates the container from the image every time. Run it at startup instead.Dokploy specifically: the Command field gets
.split(" ")with no quote handling, so a sed one-liner shatters and breaks the container. Put it in Args, which is passed through as-is. Image isENTRYPOINT ["/usr/bin/tini","--"]+CMD ["/entrypoint.sh"], so keep tini as PID 1:Command:
/usr/bin/tiniArgs:
["--", "/bin/sh", "-c", "sed -i '/markOnlineOnConnect: markOnlineOnConnect,/a\ version: [2, 3000, 1043857760],' /app/dist/core/engines/noweb/session.noweb.core.js; exec /entrypoint.sh"] Use Redeploy, not Start. Start only scales the existing service and won't pick up the new config — looks like nothing happened. Check it landed with
docker inspect <container> --format '{{json .Args}}'.Compose:
services: waha: image: devlikeapro/waha-plus:2026.7.1 entrypoint: ["/usr/bin/tini", "--", "/bin/sh", "-c"] command: - >- sed -i '/markOnlineOnConnect: markOnlineOnConnect,/a\ version: [2, 3000, 1043857760],' /app/dist/core/engines/noweb/session.noweb.core.js; exec /entrypoint.sh
after restart docker cointainer waha
session=EDN_237183 session=EDN_237183 trace=Error: Stream Errored (conflict)
at WebSocketClient.
:point_right: https://waha.devlike.pro/docs/engines/noweb/#configuration
:cyclone: Auto-update WhatsApp Web Version
You can resolve the latest WhatsApp Web version right before WAHA starts and pass it via WAHA_NOWEB_WA_VERSION - no need to wait for a new WAHA release.
It’s safe by design: WAHA uses the fetched version only if it’s higher than the built-in one, so a failed or stale fetch simply falls back to the built-in version.
Save the script as fetch-wa-version.js - it prints the latest WhatsApp Web version (like 2.3000.1234567890) to stdout, or prints nothing and exits with code 1 on failure, so WAHA falls back to the built-in version.
Two versions of the script - fetching the version from WhatsApp Web directly (recommended) or from the latest Baileys sources on GitHub:
WhatsApp Web
// Prints the latest WhatsApp Web version (e.g. "2.3000.1234567890") to stdout.
// Prints nothing and exits 1 on failure, so WAHA falls back to the built-in version.
const HEADERS = {
'sec-fetch-site': 'none',
'user-agent':
'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36',
};
async function main() {
const response = await fetch('https://web.whatsapp.com/sw.js', {
headers: HEADERS,
signal: AbortSignal.timeout(15_000),
});
if (!response.ok) {
throw new Error(`HTTP ${response.status}`);
}
const text = await response.text();
const match = text.match(/\\?"client_revision\\?":\s*(\d+)/);
if (!match) {
throw new Error('client_revision not found in sw.js');
}
console.log(`2.3000.${match[1]}`);
}
main().catch((err) => {
console.error(`Could not fetch the latest WhatsApp Web version: ${err}`);
process.exit(1);
});
Baileys
// Prints the WhatsApp Web version pinned in the latest Baileys sources (e.g. "2.3000.1234567890") to stdout.
// Prints nothing and exits 1 on failure, so WAHA falls back to the built-in version.
const URL = 'https://raw.githubusercontent.com/WhiskeySockets/Baileys/master/src/Defaults/index.ts';
async function main() {
const response = await fetch(URL, { signal: AbortSignal.timeout(15_000) });
if (!response.ok) {
throw new Error(`HTTP ${response.status}`);
}
const text = await response.text();
const match = text.match(/const version = \[(\d+),\s*(\d+),\s*(\d+)\]/);
if (!match) {
throw new Error('version not found in Defaults/index.ts');
}
console.log(`${match[1]}.${match[2]}.${match[3]}`);
}
main().catch((err) => {
console.error(`Could not fetch the latest WhatsApp Web version: ${err}`);
process.exit(1);
});
Option 1 - docker-compose (no image build)
Mount the script and wrap the original entrypoint - the version is resolved once per container start:
services:
waha:
image: devlikeapro/waha
volumes:
- ./fetch-wa-version.js:/fetch-wa-version.js:ro
entrypoint:
- /usr/bin/tini
- --
- /bin/sh
- -c
- |
export WAHA_NOWEB_WA_VERSION="$${WAHA_NOWEB_WA_VERSION:-$$(node /fetch-wa-version.js)}"
exec /entrypoint.sh
👉 Note the $$ - Docker Compose interpolates single ${...} itself, so the dollars must be doubled to reach the shell.
Option 2 - your own image on top of WAHA
FROM devlikeapro/waha:latest
COPY fetch-wa-version.js /fetch-wa-version.js
# Original ENTRYPOINT ["/usr/bin/tini", "--"] is inherited - only the CMD changes
CMD ["/bin/sh", "-c", "export WAHA_NOWEB_WA_VERSION=\"${WAHA_NOWEB_WA_VERSION:-$(node /fetch-wa-version.js)}\"; exec /entrypoint.sh"]
A few things to keep in mind:
- If you set
WAHA_NOWEB_WA_VERSIONexplicitly - it wins over the fetched one (thanks to:-in the wrapper). - The version is resolved once per container start - restart the container to pick up a newer version.
- The fetch URL must be reachable from the container at startup - otherwise WAHA uses the built-in version.
Confirmed the same issue in production.
Environment
- Image:
devlikeapro/waha:noweb-arm-2026.7.1 - Engine:
NOWEB - Host: Ubuntu 24.04.4 LTS, ARM64/aarch64
- Resources: 4 vCPU, 24 GiB RAM
- Deployment: Docker Compose managed by Coolify
- Persistent volumes mounted for
.sessionsand.media
What happened
- An existing session had been working normally and stopped around 2026-07-28 22:00 UTC.
- WAHA first reported the session as
FAILED. - Restarting the session changed it to
STARTING, where it remained indefinitely. - Restarting the WAHA service did not resolve it.
- The container itself remained healthy and the session API returned HTTP 200, but outbound sends failed with HTTP 422 (
Unprocessable Entity).
Evidence and workaround
We applied the workaround suggested in this issue by adding the following socket version to /app/dist/core/engines/noweb/session.noweb.core.js, immediately after markOnlineOnConnect:
version: [2, 3000, 1037641644],
Then we restarted the WAHA process. After restart:
- Session changed from
STARTINGtoWORKING. - Presence became
online. - No QR scan or re-authentication was required for the existing session.
- Outbound sending resumed.
- We retried 17 messages that had failed during the incident; all 17 were accepted successfully after the workaround.
Operational note: a Coolify service restart recreated the container and removed the modified file. We had to apply the patch again and restart the process without recreating the container. This confirms the workaround is temporary and will be lost on container recreation or redeployment.
This incident and workaround were observed on 2026.7.1. We have since seen the maintainer update confirming that 2026.7.2 contains the NOWEB WhatsApp Web version fix.
Update after the official fix:
We manually bumped the ARM64 NOWEB image from devlikeapro/waha:noweb-arm-2026.7.1 to devlikeapro/waha:noweb-arm-2026.7.2.
Post-upgrade checks:
- Container recreated and started successfully.
- Existing persistent session returned to
WORKING. - No QR scan or re-authentication was required.
- Engine remains
NOWEB. - Existing per-session webhook configuration persisted.
- An authenticated webhook probe returned HTTP 200.
- A controlled outbound
POST /api/sendTextreturned HTTP 201.
The container recreation removed the previous runtime patch as expected. Version 2026.7.2 is working without reapplying that temporary patch.
Confirmed the same issue and root cause on 2026.7.1 CORE/NOWEB — sessions stuck STARTING→FAILED, same Connection Failure at noise-handler.js decodeFrame, same stale announced version 2.3000.1035920091.
@JrGrecco's fix worked immediately for us too, including recovering an already-paired session with no QR re-scan needed. For anyone hitting this later, WhatsApp's live client_revision as of 2026-07-29 ~06:00 UTC was 1044044195 (fetch fresh via curl -s https://web.whatsapp.com/sw.js | grep -o 'client_revision":[0-9]*' since it'll drift over time).
+1 on switching to fetchLatestWaWebVersion() as the primary source over fetchLatestBaileysVersion() for an official fix — would save everyone from needing to hand-patch the compiled JS on every recurrence.