Replies: 3 comments
|
The give-away is in the log you pasted, and it is easy to read past: the auto-start banner appears twice. That line is logged once per run of The code says outright why this matters, right above the query: // Restricted to sessions this node may claim. Without it every replica scans the same rows and
// races to launch the same engines, which is a WhatsApp account being opened twice, not merely
// duplicated work.
const claimable = this.ownership?.claimableWhere() ?? [{}];Note the fallback. If This also explains the two things that make it look mysterious. There is no LOGOUT audit because nothing logged out: WhatsApp invalidated the credentials because the account was opened twice, which is not an event OpenWA sees as a logout. And the LocalAuth directory is intact at 449M because nothing deleted it — a second Chromium attaching to the same profile does not remove files, it just leaves the pairing unusable. Your deployment makes the overlap easy to hit, which fits the timing you describe. Both incidents happened on a restart or an update, and with Two things worth checking before assuming a If it turns out two containers were up at once, the fix is on the deployment side rather than the session side, and re-pairing will keep being undone until that is closed off. |
|
Thanks for the thorough report. Taking your questions in order, with what the code actually does. Two of the things you surfaced were real gaps on our side and are fixed on Q2, the doubled "Auto-starting 6" line. That was a bug, present since v0.19.0, and not specific to your setup: Q1 and Q3, why there is no unlink record and how to tell the cases apart. The Because that transition was invisible, #1452 adds a warning: a previously linked session that comes back asking for a QR now logs
One detail worth checking on your side: Q4, stopping the re-pair loop. There is no per-session auto-start switch today. Auto-start picks every session with a phone and status |
|
Thank you for the detailed, code-level explanation and for addressing both gaps so quickly — I genuinely appreciate the care you put into reviewing the report. To answer your question: I only used Stop, followed by Start, from the dashboard. I did not use Logout, Unlink, Delete, Kill Stuck, or the logout API. The first QR had already been generated by auto-start before my manual actions. When I checked Linked Devices later, after the account review, the OpenWA device was no longer listed. I did not check it at the exact moment of restart, so I cannot confirm when it disappeared. I’ll wait for the next release containing #1448 and #1452. Thanks again for the clear explanation and quick fixes. |
Uh oh!
There was an error while loading. Please reload this page.
OpenWA version
v0.23.0
Deployment
whatsapp-web.jsengineopenwa-data:/app/dataAUTO_START_SESSIONS=trueSTATUS_SEED_ON_READY=falseWWEBJS_AUTH_TIMEOUT_MS=120000stop_grace_period: 45sWhat happened?
One session (
rashed) was paired and worked normally for approximately three days with a low-volume webhook bot. Other sessions in the same container also worked normally.After an OpenWA update/restart, this session required a new QR while the other sessions restored successfully. It was re-paired and worked again. After upgrading to v0.23.0 it initially remained connected, but following a later host restart the same session again returned to QR.
The persistent LocalAuth directory was not deleted:
The session was active shortly before restart, but on startup it initialized and generated a QR instead of reaching ready:
The other five sessions reached
readyfrom the same persistent volume.The terminal-unlink audit query returned no records:
{"data":[],"total":0}There was no observed
LOGOUT,UNPAIRED,auth_failure, credential-cleanup warning, or profile error in the available logs. After stopping the QR-ready engine, the session row became:{ "status": "disconnected", "phone": null, "lastError": null, "engineLoaded": false }The first QR after restart appeared before any manual Stop/Start attempts. Multiple later
session_qr_generatedaudit rows were periodic QR refreshes while the pairing screen remained open, not confirmed QR scans.Expected behavior
A previously authenticated session with a populated LocalAuth directory should restore after a normal restart without requiring another QR, as the other sessions do.
If the stored authentication is unusable, OpenWA should expose whether this was:
Reporting
auto_start_successafter reaching only the QR screen is also unclear.Questions
Session is already starting?All reactions