Fix WhatsApp Linking Stuck at "logging in"
Common Symptoms
Linking ... logging innever finishes- Dashboard shows
Linked: YesbutRunning: NoorConnected: No - Error eventually becomes
logged out
This usually means the WhatsApp session state is inconsistent: pairing partially succeeded, but runtime reconnect failed. A clean reset and single relink flow resolves most cases.
Next Step
Fix now, then reduce repeat incidents
If this issue keeps coming back, validate your setup in Doctor first, then harden your config.
Jump to Fix
Step 1: Stop channel and gateway
openclaw gateway stop openclaw gateway status
Step 2: Clear stale WhatsApp session state
Remove only WhatsApp session artifacts for the affected channel/profile, then restart. If you are unsure about exact file names, back up your config directory first.
# backup first cp -R ~/.openclaw ~/.openclaw.backup.$(date +%Y%m%d%H%M%S) # then remove stale whatsapp auth/session cache for the broken channel # (path differs by install mode; remove only whatsapp session artifacts)
Step 3: Start and relink once (clean flow)
openclaw gateway start openclaw gateway status # Open dashboard, trigger WhatsApp link, scan QR once # Avoid parallel relink attempts from multiple devices/sessions
If state flips between linked and logged out repeatedly, do not retry in a loop. Stop, clear stale session state once, then relink from a single fresh session.
Step 4: Verify success
Dashboard status: Linked Yes / Running Yes / Connected Yes
No logged out error after restart
Incoming and outgoing WhatsApp test messages succeed
Related Guides
Did this guide solve your problem?