waha icon indicating copy to clipboard operation
waha copied to clipboard

[BUG][WEBJS] - Can't start session on Google Cloud Run

Open yuanminglee opened this issue 1 year ago • 8 comments

Describe the bug Tried to deploy a few different docker image tags to Google Cloud Run — they either couldn't be deployed (ARM, expected), or the session couldn't be started. Have tried with the chrome version too.

Version

{
  "version": "2024.8.1",
  "engine": "WEBJS",
  "tier": "CORE",
  "browser": "/usr/bin/chromium"
}

yuanminglee avatar Aug 05 '24 04:08 yuanminglee

ARM, expected

for arm you need to use devlikeapro/waha:arm https://waha.devlike.pro/docs/how-to/engines/#docker-images

the session couldn't be started

Is there any logs in the console? Did it runs on your own laptop or any other VPS, like digitalocean?

patron:PRO

devlikepro avatar Aug 05 '24 04:08 devlikepro

Possible related issue, https://github.com/devlikeapro/waha/issues/471 It also stops working on Google Cloud, could a IP detection from WA side. Try using https://contabo.com/en/ or other service

patron:PRO

devlikepro avatar Aug 05 '24 04:08 devlikepro

Works on my M3 mac (using arm version).

Logs were not helpful — just threw errors related to screenshot API call failing

yuanminglee avatar Aug 06 '24 14:08 yuanminglee

Logs were not helpful

Could you share it here?

patron:PRO

devlikepro avatar Aug 07 '24 08:08 devlikepro

chromium browser has a bug on ARM processors

https://issues.chromium.org/issues/40257452

and the docker image for ARM has no way to choose google-chrome

hassegawa avatar Oct 27 '24 20:10 hassegawa

this is into the waha:arm container

`root@17d36447ce81:/app# chromium --headless --remote-debugging-port=9222 https://chromium.org

Trace/breakpoint trap (core dumped)`


container logs image

hassegawa avatar Oct 27 '24 20:10 hassegawa

@hassegawa is it the latest version? Could you try devlikeapro/waha:arm-2024.10.6, may be it's latest changes :thinking:

patron:PRO

devlikepro avatar Oct 28 '24 04:10 devlikepro

@hassegawa is it the latest version? Could you try devlikeapro/waha:arm-2024.10.6, may be it's latest changes 🤔

patron:PRO

Thanks for replying, I updated and it still has the same error

hassegawa avatar Oct 29 '24 00:10 hassegawa