#Problems with the session.json file. Unable to restore the session after restarting the server. Any

6 messages · Page 1 of 1 (latest)

grim atlas
#

I am having trouble restoring WhatsApp sessions after restarting the server because the session.json file is no longer available in the .wwebjs_auth folder. My system was set up to restore all sessions created after a restart or update. It seems to be some kind of error related to Puppeteer.

pearl monolith
#

The auth is stored as chrome data dir right? How you did that?

grim atlas
#

When I authenticate with QR, I store the session data in my database, but I need the session.json that whatsapp-web.js saved when I authenticated. However, it is not being saved due to the update, and I can no longer restore the sessions after restarting the server.

grim atlas
#

{
"table": "whatsapp_sessions",
"rows":
[
{
"id": 12,
"session_id": "ws_session_1_1_sharba",
"client_info": "{"pushname":"VITRAL STORE","wid":{"server":"c.us","user":"535593985892","_serialized":"[email protected]"},"me":{"server":"c.us","user":"595388359592","_serialized":"[email protected]"},"platform":"smba"}",
"whatsapp_tokens": "{"clientId":"ws_session_1_1_sharba","phone":"583593958592","platform":"smba","pushname":"VITRAL STORE","status":"ready","_source":"session_tracking","_capturedAt":"2026-01-22T16:36:50.535Z","_note":"Tokens manejados internamente por WhatsApp Web"}",
"status": "ready",
"sucursal_id": 1,
"created_at": "2026-01-22 11:36:12",
"updated_at": "2026-01-22 11:36:50"
}
]
}

This is how it manages storage to restore the session, but whatsapp-web.js is no longer giving me the session.json file.

pearl monolith
#

That isn't looks like a tokens

#

Token must've been an unique crypto generated key, this one looks like a stat