ChromeLauncher fails

This is the error I get when I try to deploy my code:

Error: Tried to find the browser at the configured path (‘/opt/render/project/puppeteer’), but no executable was found.
at ChromeLauncher.resolveExecutablePath (/opt/render/project/src/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserLauncher.js:263:23)
at ChromeLauncher.executablePath (/opt/render/project/src/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ChromeLauncher.js:210:25)
at PuppeteerNode.executablePath (/opt/render/project/src/node_modules/puppeteer-core/lib/cjs/puppeteer/node/PuppeteerNode.js:160:31)
at /opt/render/project/src/node_modules/@open-wa/wa-automate/dist/controllers/browser.js:501:68
at Generator.next ()
at /opt/render/project/src/node_modules/@open-wa/wa-automate/dist/controllers/browser.js:31:71
at new Promise ()
at __awaiter (/opt/render/project/src/node_modules/@open-wa/wa-automate/dist/controllers/browser.js:27:12)
at initBrowser (/opt/render/project/src/node_modules/@open-wa/wa-automate/dist/controllers/browser.js:461:12)
at /opt/render/project/src/node_modules/@open-wa/wa-automate/dist/controllers/browser.js:73:29
node:internal/process/promises:391
triggerUncaughtException(err, true /* fromPromise */);
^
Error: Tried to find the browser at the configured path (‘/opt/render/project/puppeteer’), but no executable was found.
at ChromeLauncher.resolveExecutablePath (/opt/render/project/src/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserLauncher.js:263:23)
at ChromeLauncher.executablePath (/opt/render/project/src/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ChromeLauncher.js:210:25)
at PuppeteerNode.executablePath (/opt/render/project/src/node_modules/puppeteer-core/lib/cjs/puppeteer/node/PuppeteerNode.js:160:31)
at /opt/render/project/src/node_modules/@open-wa/wa-automate/dist/controllers/browser.js:501:68
at Generator.next ()
at /opt/render/project/src/node_modules/@open-wa/wa-automate/dist/controllers/browser.js:31:71
at new Promise ()
at __awaiter (/opt/render/project/src/node_modules/@open-wa/wa-automate/dist/controllers/browser.js:27:12)
at initBrowser (/opt/render/project/src/node_modules/@open-wa/wa-automate/dist/controllers/browser.js:461:12)
at /opt/render/project/src/node_modules/@open-wa/wa-automate/dist/controllers/browser.js:73:29

I saw on other thread that I need to set env to:

What am I doing wrong?

Hi there,

You should only need to set the PUPPETEER_CACHE_DIR. With only that in place, you can push a new manual deployment without any build cache.

Regards,
Keith
Render Support, UTC+10 :australia:

I did that, and the deploy got stuck on building.
So I deleted all envs.
the chrome is installed, eventhough I prefer FF.

and that what I getting now:

  • Starting
  • Version: 4.74.0
  • Initializing WA
  • Launching Browser
  • MD Enabled, turning off incognito mode.
  • Data dir: ./_IGNORE_IT_FAQ_BOT
  • Error launching browser
    Error: Browser was not found at the configured executablePath (C:\Program Files\Google\Chrome\Application\chrome.exe)
    at ChromeLauncher.launch (/opt/render/project/src/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserLauncher.js:76:19)
    at async PuppeteerExtra.launch (/opt/render/project/src/node_modules/puppeteer-extra/dist/index.cjs.js:128:25)
  • Browser was not found at the configured executablePath (C:\Program Files\Google\Chrome\Application\chrome.exe)
    Error: Browser was not found at the configured executablePath (C:\Program Files\Google\Chrome\Application\chrome.exe)
    at ChromeLauncher.launch (/opt/render/project/src/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserLauncher.js:76:19)
    at async PuppeteerExtra.launch (/opt/render/project/src/node_modules/puppeteer-extra/dist/index.cjs.js:128:25)
    Error initializing WhatsApp Bot: Error: Browser was not found at the configured executablePath (C:\Program Files\Google\Chrome\Application\chrome.exe)
    at ChromeLauncher.launch (/opt/render/project/src/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserLauncher.js:76:19)
    at async PuppeteerExtra.launch (/opt/render/project/src/node_modules/puppeteer-extra/dist/index.cjs.js:128:25)

I got the service “live”, but I still don’t have the chromium available.

  • Starting

  • Version: 4.74.0

  • Initializing WA

Server is running on port 10000

  • Launching Browser

Error

at new LauncherError (/opt/render/project/src/node_modules/chrome-launcher/dist/utils.js:26:22)

at new ChromePathNotSetError (/opt/render/project/src/node_modules/chrome-launcher/dist/utils.js:33:9)

at Object.linux (/opt/render/project/src/node_modules/chrome-launcher/dist/chrome-finder.js:128:15)

at Launcher.getInstallations (/opt/render/project/src/node_modules/chrome-launcher/dist/chrome-launcher.js:130:51)

at /opt/render/project/src/node_modules/@open-wa/wa-automate/dist/controllers/browser.js:471:65

at Generator.next ()

at fulfilled (/opt/render/project/src/node_modules/@open-wa/wa-automate/dist/controllers/browser.js:28:58)

at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Error initializing WhatsApp Bot: ChromePathNotSetError

at new LauncherError (/opt/render/project/src/node_modules/chrome-launcher/dist/utils.js:26:22)

at new ChromePathNotSetError (/opt/render/project/src/node_modules/chrome-launcher/dist/utils.js:33:9)

at Object.linux (/opt/render/project/src/node_modules/chrome-launcher/dist/chrome-finder.js:128:15)

at Launcher.getInstallations (/opt/render/project/src/node_modules/chrome-launcher/dist/chrome-launcher.js:130:51)

at /opt/render/project/src/node_modules/@open-wa/wa-automate/dist/controllers/browser.js:471:65

at Generator.next ()

at fulfilled (/opt/render/project/src/node_modules/@open-wa/wa-automate/dist/controllers/browser.js:28:58)

at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {

message: ‘The CHROME_PATH environment variable must be set to a Chrome/Chromium executable no older than Chrome stable.’,

code: ‘ERR_LAUNCHER_PATH_NOT_SET’

}

==> Your service is live :tada:

and these are my ENVs:

Hi there,

Can you see if unsetting CHROME_PATH and PUPPETEER_SKIP_DOWNLOAD to see if it helps.

Regards,
Keith
Render Support, UTC+10 :australia:

didn’t help…

Is there any other way to install chromium?
Maybe I didn’t configure my code properly? I even tried to use Docker - also didn’t work… (on replit I succeed to run my code)

Hi there,

You can do something like this to install Chrome.

Regards,
Keith
Render Support, UTC+10 :australia:

Eventually, I managed to run it with docker. But I encountered the same problem as Qr In Console Not displayed correctly

Is there a way not to display the timestamp in the logs?
I didn’t see an option to export the qr to somewhere else…