waha icon indicating copy to clipboard operation
waha copied to clipboard

[BUG][WEBJS] - WEJBS fails to restore sessions form MongoDB

Open devlikepro opened this issue 1 year ago • 3 comments

[BUG][WEBJS] - WEJBS fails to restore sessions form MongoDB

unexpected end of file` in Zlip.zlipOnError

patron:PRO

devlikepro avatar Jul 24 '24 10:07 devlikepro

image https://discord.com/channels/1228605717372604466/1228639621391585354/1265610607168720948

patron:PRO

devlikepro avatar Jul 24 '24 10:07 devlikepro

tried to fix adm-zip to previous well tested version.

The next step will be to try using uncaughtException to catch the exception to prevent container restart. We need to find where the archive got corrupted as well anyway

patron:PRO

devlikepro avatar Jul 24 '24 16:07 devlikepro

Fixed in 2024.8.2

We switched to zip and unzip binaries by default in the official image, instead of using nodejs steams approach, it should be more stable (and faster)

If you're using WEBJS + MongoDB , but ARE NOT using official docker image devlikeapro/waha-plus (or any other versions of it) - kindly install zip and unzip binaries and set WAHA_ZIPPER=ZIPUNZIP env variable (by default we do not enable it, because people can use the project by npm install as well


  • WAHA_ZIPPER=ZIPUNZIP - use zip and unzip system binaries to pack WEBJS authentication data. Disabled by default.
    • It's relevant if you're using WEBJS + MongoDB. Install zip and unzip if you don't use our official docker image and set the variable

patron:PRO

devlikepro avatar Aug 07 '24 10:08 devlikepro