pedroslopez / whatsapp-web.js

A WhatsApp client library for NodeJS that connects through the WhatsApp Web browser app
https://wwebjs.dev
Apache License 2.0
15.53k stars 3.7k forks source link

EBUSY: resource busy or locked, unlink 'C:\wp\.wwebjs_auth\session\lockfile' #3232

Closed mralpern closed 3 months ago

mralpern commented 3 months ago

Is there an existing issue for this?

Describe the bug

When the session is terminated through the phone, the "client is ready" event is triggered, and then the work stops. I have reviewed other questions, and no one has found a permanent solution. The solutions found cause different errors. It would be great if someone with expertise could address this issue. Best regards to everyone.

Error: EBUSY: resource busy or locked, unlink 'C:\wp.wwebjs_auth\session\lockfile'

image

Expected behavior

Ensuring the session ends without errors and the session file is deleted

Steps to Reproduce the Bug or Issue

  1. I terminated the session of the connected device through the phone.

Relevant Code

No response

Browser Type

Chromium

WhatsApp Account Type

Standard

Does your WhatsApp account have multidevice enabled?

Yes, I am using Multi Device

Environment

OS: Windows Phone OS: Android whatsapp-web.js version 1.25

Additional context

No response