Puppeteer - Failed to launch the browser process!

I’ve been trying all morning to solve this error and I can’t find the solution. any ideas? Thank you

root@DietPi:/mnt/USB/VineMonitoringBot# node vineScrapper.js
node-telegram-bot-api deprecated Automatic enabling of cancellation of promises is deprecated.
In the future, you will have to enable it yourself.
See https://github.com/yagop/node-telegram-bot-api/issues/319. internal/modules/cjs/loader.js:999:30
se inicia el monitoreo
(node:13480) UnhandledPromiseRejectionWarning: Error: Failed to launch the browser process!
/mnt/USB/VineMonitoringBot/node_modules/puppeteer/.local-chromium/linux-1022525/chrome-linux/chrome: 1: Syntax error: Unt

TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md

    at onClose (/mnt/USB/VineMonitoringBot/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:290:20)
    at Interface.<anonymous> (/mnt/USB/VineMonitoringBot/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:2
    at Interface.emit (events.js:326:22)
    at Interface.close (readline.js:416:8)
    at Socket.onend (readline.js:194:10)
    at Socket.emit (events.js:326:22)
    at endReadableNT (_stream_readable.js:1241:12)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)
(node:13480) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing insiminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nod
(node:13480) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections
working test: Hay 0productos

There seems to be a syntax error in one of the script you are trying to run. Maybe something to check with the provider of that script.

One hint for the forum usage. Pls try to do screen prints. It should be possible to copy everything from SSH terminal directly :wink:

I have this in ‘‘vineScrapper.js’’. Let’s see if you see any error

//Constantes del usuario
const C = require('./constants');

//Telegram bot constants
const token = C.botToken;
const TelegramBot = require('node-telegram-bot-api');
const bot = new TelegramBot(token, {polling: true});

//Puppeteer constants
const puppeteer = require('puppeteer');

//Constantes de selectores de Amazon para Puppeteer
const USERNAME_SELECTOR = '#ap_email';
const PASSWORD_SELECTOR = '#ap_password';
const CTA_SELECTOR = '#signInSubmit';
const NUMBER_ITEMS_SELECTOR = '#vvp-items-grid-container > p';

//Constantes configurables
const URL = "https://www.amazon.es/vine/vine-items?queue=potluck";
const DELAY = 15000;

//Variables usadas por la app
let chatId = "";
let scrap = 0;
let numbItems = 0;

//introduce un retraso de los milisegundos pasados cómo parámetro
function delay(milliseconds){
  return new Promise(resolve => {
      setTimeout(resolve, milliseconds);

//Inicia un navegador con Puppeteer en modo headless (sin mostrar el navegador)
async function startBrowser() {
  const browser = await puppeteer.launch({
      args: ['--no-sandbox'],
  const page = await browser.newPage();
  return {browser, page};

//Cierra el navegador abierto
async function closeBrowser(browser) {
  return browser.close();

//Realiza las acciones asociadas al login en Amazon con Puppeteer
async function login(page){
  await page.click(USERNAME_SELECTOR);
  await page.keyboard.type(C.username);
  await page.click(PASSWORD_SELECTOR);
  await page.keyboard.type(C.pass);
  await page.click(CTA_SELECTOR);

//Inicia el monitoreo de la lista de Vine configurada

It would be good to see the entire error message as it is cut off.

Did you created the script by your own or do you get it from somewhere?