<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Failed to launch the browser process no usable sandbox]]></title><description><![CDATA[<p>to generate a report im using jsreport-core with chrome-pdf receipe, in azure vm im facing the below error when i tried to generate the report</p>
<pre><code>Error: Failed to launch the browser process!
[1109/182146.276783:FATAL:zygote_host_impl_linux.cc(127)] No usable sandbox! Update your kernel or see https://chromium.googlesource.com/chromium/src/+/main/docs/linux/suid_sandbox_development.md for more information on developing with the SUID sandbox. If you want to live dangerously and need an immediate workaround, you can try using --no-sandbox.
TROUBLESHOOTING: https://pptr.dev/troubleshooting at Interface.onClose (/home/azureuser/garuda/garuda-be/node_modules/@puppeteer/browsers/src/launch.ts:383:11)
at Interface.emit (node:events:525:35)
at Interface.close (node:internal/readline/interface:533:10)
at Socket.onend (node:internal/readline/interface:259:10)
at Socket.emit (node:events:525:35)
at endReadableNT (node:internal/streams/readable:1359:12)
at processTicksAndRejections (node:internal/process/task_queues:82:21)
</code></pre>
<p>the below code is used to generate the PDF in node js</p>
<pre><code>
const jsreport = require('jsreport-core')()
const ejsEngine = require('jsreport-ejs')
const chromePdf = require('jsreport-chrome-pdf');
const puppeteer = require('puppeteer');

console.log('puppeteer', puppeteer.executablePath());



jsreport.use(ejsEngine())
jsreport.use(chromePdf({
  launchOptions: {
    headless: true,
    executablePath: '/usr/bin/chromium-browser',
    args: [&quot;--no-sandbox&quot;, &quot;--disable-setuid-sandbox&quot;, &quot;--disable-gpu&quot;],
    ignoreDefaultArgs: [&quot;--disable-extensions&quot;],
  },
}));

jsreport.init();

const generateJSReport = async (details: any) =&gt; {
  console.log('report generation triggered');
  try {
    const {mainContent, headerContent, footerContent, data, marginBottom, marginTop, orientation} = details;
    const result = await jsreport.render({
      template: {
        content: mainContent,
        engine: 'ejs',
        recipe: 'chrome-pdf',
        chrome: {
          headerTemplate: headerContent,
          footerTemplate: footerContent,
          displayHeaderFooter: true,
          marginTop: marginTop,
          marginBottom: marginBottom,
          orientation: orientation,
          marginLeft: '0.8cm',
          marginRight: '0.8cm'
        }
      },
      data: {data}
    });
    return result.content;
  }
  catch (err) {
    throw err;
  }
}

export {generateJSReport};
</code></pre>
<p>im not sure where i made the mistake could you please anyone help me to solve this issue</p>
]]></description><link>https://forum.jsreport.net/topic/3348/failed-to-launch-the-browser-process-no-usable-sandbox</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Apr 2026 13:26:00 GMT</lastBuildDate><atom:link href="https://forum.jsreport.net/topic/3348.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 09 Nov 2024 18:27:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Failed to launch the browser process no usable sandbox on Mon, 11 Nov 2024 16:48:01 GMT]]></title><description><![CDATA[<p>to generate a report im using jsreport-core with chrome-pdf receipe, in azure vm im facing the below error when i tried to generate the report</p>
<pre><code>Error: Failed to launch the browser process!
[1109/182146.276783:FATAL:zygote_host_impl_linux.cc(127)] No usable sandbox! Update your kernel or see https://chromium.googlesource.com/chromium/src/+/main/docs/linux/suid_sandbox_development.md for more information on developing with the SUID sandbox. If you want to live dangerously and need an immediate workaround, you can try using --no-sandbox.
TROUBLESHOOTING: https://pptr.dev/troubleshooting at Interface.onClose (/home/azureuser/garuda/garuda-be/node_modules/@puppeteer/browsers/src/launch.ts:383:11)
at Interface.emit (node:events:525:35)
at Interface.close (node:internal/readline/interface:533:10)
at Socket.onend (node:internal/readline/interface:259:10)
at Socket.emit (node:events:525:35)
at endReadableNT (node:internal/streams/readable:1359:12)
at processTicksAndRejections (node:internal/process/task_queues:82:21)
</code></pre>
<p>the below code is used to generate the PDF in node js</p>
<pre><code>
const jsreport = require('jsreport-core')()
const ejsEngine = require('jsreport-ejs')
const chromePdf = require('jsreport-chrome-pdf');
const puppeteer = require('puppeteer');

console.log('puppeteer', puppeteer.executablePath());



jsreport.use(ejsEngine())
jsreport.use(chromePdf({
  launchOptions: {
    headless: true,
    executablePath: '/usr/bin/chromium-browser',
    args: [&quot;--no-sandbox&quot;, &quot;--disable-setuid-sandbox&quot;, &quot;--disable-gpu&quot;],
    ignoreDefaultArgs: [&quot;--disable-extensions&quot;],
  },
}));

jsreport.init();

const generateJSReport = async (details: any) =&gt; {
  console.log('report generation triggered');
  try {
    const {mainContent, headerContent, footerContent, data, marginBottom, marginTop, orientation} = details;
    const result = await jsreport.render({
      template: {
        content: mainContent,
        engine: 'ejs',
        recipe: 'chrome-pdf',
        chrome: {
          headerTemplate: headerContent,
          footerTemplate: footerContent,
          displayHeaderFooter: true,
          marginTop: marginTop,
          marginBottom: marginBottom,
          orientation: orientation,
          marginLeft: '0.8cm',
          marginRight: '0.8cm'
        }
      },
      data: {data}
    });
    return result.content;
  }
  catch (err) {
    throw err;
  }
}

export {generateJSReport};
</code></pre>
<p>im not sure where i made the mistake could you please anyone help me to solve this issue</p>
]]></description><link>https://forum.jsreport.net/post/14199</link><guid isPermaLink="true">https://forum.jsreport.net/post/14199</guid><dc:creator><![CDATA[venkatesh-sq]]></dc:creator><pubDate>Mon, 11 Nov 2024 16:48:01 GMT</pubDate></item><item><title><![CDATA[Reply to Failed to launch the browser process no usable sandbox on Invalid Date]]></title><description><![CDATA[<p>Please try to check our installation manual for your specific distribution<br />
<a href="https://jsreport.net/on-prem" rel="nofollow">https://jsreport.net/on-prem</a><br />
<a href="https://jsreport.net/learn/ubuntu" rel="nofollow">https://jsreport.net/learn/ubuntu</a><br />
<a href="https://jsreport.net/learn/red-hat" rel="nofollow">https://jsreport.net/learn/red-hat</a></p>
]]></description><link>https://forum.jsreport.net/post/14200</link><guid isPermaLink="true">https://forum.jsreport.net/post/14200</guid><dc:creator><![CDATA[admin]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Failed to launch the browser process no usable sandbox on Invalid Date]]></title><description><![CDATA[<p>thanks for your reply the above code is working now i just assigned puppetteer.executablePath() to the launchOptions</p>
]]></description><link>https://forum.jsreport.net/post/14202</link><guid isPermaLink="true">https://forum.jsreport.net/post/14202</guid><dc:creator><![CDATA[venkatesh-sq]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>