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

Stuck on "LOADING SCREEN 0 WhatsApp" on Ubuntu 20.04 #2708

Closed RikyPy closed 10 months ago

RikyPy commented 10 months ago

Is there an existing issue for this?

Describe the bug

On startup with the session already saved it gets stuck on "LOADING SCREEN 0 WhatsApp" only happens with Ubuntu 20.04, 1GB RAM. Instead with Windows 32gb RAM it works normally. I tried deleting the session file and scanning the qr but it gives error, unable to connect the device.

Expected behavior

working bot

Steps to Reproduce the Bug or Issue

use wweb.js in ubuntu 20.04 with 1 gb of ram

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: Ubuntu 20.04 Phone OS: Android whatsapp-web.js version: https://github.com/Julzk/whatsapp-web.js/tarball/jkr_hotfix_7 Node.js Version: v14.21.3

Additional context

Is it maybe because there is only 1GB of RAM? if so how much should there be at least?

alechkos commented 10 months ago

Please ensure the session is saved properly, you have to wait for full sync while saving a session

RikyPy commented 10 months ago

@alechkos

Please ensure the session is saved properly, you have to wait for full sync while saving a session

I save it from windows then putting the files in my ubuntu server? because as I said before when I try to do it from ubuntu it gives me the error impossible to connect the device https://imgur.com/a/lkmcamK

alechkos commented 10 months ago

@RikyPy Everything that is not related to the library bug you have to solve yourself, check #1621