<?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[chrome-pdf render error on container]]></title><description><![CDATA[<p>Hi,<br />
I'm using a customized jsreport dockerfile, to run jsreport on a container. When it renders a chrome-pdf template, it fails with the following error:</p>
<pre><code>report-jsreport-1           | 2022-09-08T13:25:17.301Z - debug: Executing recipe chrome-pdf rootId=aa5o7c991gyrzgz, id=aa5o7c991gyrzgz
report-jsreport-1           | 2022-09-08T13:25:17.338Z - error: Error when processing render request 1 Could not find expected browser (chrome) locally. Run `npm install` to download the correct Chromium revision (950341). Error: Could not find expected browser (chrome) locally. Run `npm install` to download the correct Chromium revision (950341).
report-jsreport-1           |     at ChromeLauncher.launch (/var/lib/nimbus-report-template/node_modules/puppeteer/lib/cjs/puppeteer/node/Launcher.js:109:27)
report-jsreport-1           |     at async createBrowser (/var/lib/nimbus-report-template/node_modules/@jsreport/jsreport-chrome-pdf/lib/chromePoolStrategy.js:98:26)
report-jsreport-1           |     at async allocateBrowser (/var/lib/nimbus-report-template/node_modules/@jsreport/jsreport-chrome-pdf/lib/chromePoolStrategy.js:113:5)
report-jsreport-1           |     at async getBrowser (/var/lib/nimbus-report-template/node_modules/@jsreport/jsreport-chrome-pdf/lib/chromePoolStrategy.js:23:30)
report-jsreport-1           |     at async module.exports (/var/lib/nimbus-report-template/node_modules/@jsreport/jsreport-chrome-pdf/lib/conversion.js:11:19)
report-jsreport-1           |     at async execute (/var/lib/nimbus-report-template/node_modules/@jsreport/jsreport-chrome-pdf/lib/chromePoolStrategy.js:20:22)
report-jsreport-1           |     at async /var/lib/nimbus-report-template/node_modules/@jsreport/jsreport-chrome-pdf/lib/lazyRecipe.js:62:20
report-jsreport-1           |     at async invokeRender (/var/lib/nimbus-report-template/node_modules/@jsreport/jsreport-core/lib/worker/render/render.js:95:5)
report-jsreport-1           |     at async WorkerReporter._render (/var/lib/nimbus-report-template/node_modules/@jsreport/jsreport-core/lib/worker/render/render.js:147:7)
report-jsreport-1           |     at async /var/lib/nimbus-report-template/node_modules/@jsreport/jsreport-core/lib/worker/reporter.js:179:19 rootId=aa5o7c991gyrzgz, id=aa5o7c991gyrzgz
report-jsreport-1           | 2022-09-08T13:25:17.347Z - error: Rendering request 1 finished with error in 4358 ms rootId=aa5o7c991gyrzgz, id=aa5o7c991gyrzgz
report-jsreport-1           | 2022-09-08T13:25:17.362Z - info: Async report render finished with error undefined
</code></pre>
<p>I'm using the following dockerfile:</p>
<pre><code>FROM jsreport/jsreport:3.7.1-full AS builder-image
WORKDIR /var/lib/nimbus-report-template
COPY src ./src
COPY package*.json ./
COPY .npmrc ./
COPY jsreport.config.json ./
RUN npm i
RUN npm install -g rimraf

FROM jsreport/jsreport:3.7.1-full AS runtime-image
WORKDIR /var/lib/nimbus-report-template
COPY --from=builder-image ./var/lib/nimbus-report-template .
CMD npm start
</code></pre>
<p>and set the extension config:</p>
<pre><code>  &quot;chrome&quot;: {
    &quot;timeout&quot;: 36000
  },
  &quot;extensions&quot;: {
    &quot;chrome-pdf&quot;: {
      &quot;timeout&quot;: 36000,
      &quot;launchOptions&quot;: {
        &quot;timeout&quot;: 36000,
        &quot;args&quot;: [&quot;--no-sandbox&quot;]
      }
    },
</code></pre>
<p>Thanks.</p>
]]></description><link>https://forum.jsreport.net/topic/2561/chrome-pdf-render-error-on-container</link><generator>RSS for Node</generator><lastBuildDate>Sun, 15 Nov 2026 03:05:59 GMT</lastBuildDate><atom:link href="https://forum.jsreport.net/topic/2561.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 08 Sep 2022 13:48:21 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to chrome-pdf render error on container on Invalid Date]]></title><description><![CDATA[<p>Hi,<br />
I'm using a customized jsreport dockerfile, to run jsreport on a container. When it renders a chrome-pdf template, it fails with the following error:</p>
<pre><code>report-jsreport-1           | 2022-09-08T13:25:17.301Z - debug: Executing recipe chrome-pdf rootId=aa5o7c991gyrzgz, id=aa5o7c991gyrzgz
report-jsreport-1           | 2022-09-08T13:25:17.338Z - error: Error when processing render request 1 Could not find expected browser (chrome) locally. Run `npm install` to download the correct Chromium revision (950341). Error: Could not find expected browser (chrome) locally. Run `npm install` to download the correct Chromium revision (950341).
report-jsreport-1           |     at ChromeLauncher.launch (/var/lib/nimbus-report-template/node_modules/puppeteer/lib/cjs/puppeteer/node/Launcher.js:109:27)
report-jsreport-1           |     at async createBrowser (/var/lib/nimbus-report-template/node_modules/@jsreport/jsreport-chrome-pdf/lib/chromePoolStrategy.js:98:26)
report-jsreport-1           |     at async allocateBrowser (/var/lib/nimbus-report-template/node_modules/@jsreport/jsreport-chrome-pdf/lib/chromePoolStrategy.js:113:5)
report-jsreport-1           |     at async getBrowser (/var/lib/nimbus-report-template/node_modules/@jsreport/jsreport-chrome-pdf/lib/chromePoolStrategy.js:23:30)
report-jsreport-1           |     at async module.exports (/var/lib/nimbus-report-template/node_modules/@jsreport/jsreport-chrome-pdf/lib/conversion.js:11:19)
report-jsreport-1           |     at async execute (/var/lib/nimbus-report-template/node_modules/@jsreport/jsreport-chrome-pdf/lib/chromePoolStrategy.js:20:22)
report-jsreport-1           |     at async /var/lib/nimbus-report-template/node_modules/@jsreport/jsreport-chrome-pdf/lib/lazyRecipe.js:62:20
report-jsreport-1           |     at async invokeRender (/var/lib/nimbus-report-template/node_modules/@jsreport/jsreport-core/lib/worker/render/render.js:95:5)
report-jsreport-1           |     at async WorkerReporter._render (/var/lib/nimbus-report-template/node_modules/@jsreport/jsreport-core/lib/worker/render/render.js:147:7)
report-jsreport-1           |     at async /var/lib/nimbus-report-template/node_modules/@jsreport/jsreport-core/lib/worker/reporter.js:179:19 rootId=aa5o7c991gyrzgz, id=aa5o7c991gyrzgz
report-jsreport-1           | 2022-09-08T13:25:17.347Z - error: Rendering request 1 finished with error in 4358 ms rootId=aa5o7c991gyrzgz, id=aa5o7c991gyrzgz
report-jsreport-1           | 2022-09-08T13:25:17.362Z - info: Async report render finished with error undefined
</code></pre>
<p>I'm using the following dockerfile:</p>
<pre><code>FROM jsreport/jsreport:3.7.1-full AS builder-image
WORKDIR /var/lib/nimbus-report-template
COPY src ./src
COPY package*.json ./
COPY .npmrc ./
COPY jsreport.config.json ./
RUN npm i
RUN npm install -g rimraf

FROM jsreport/jsreport:3.7.1-full AS runtime-image
WORKDIR /var/lib/nimbus-report-template
COPY --from=builder-image ./var/lib/nimbus-report-template .
CMD npm start
</code></pre>
<p>and set the extension config:</p>
<pre><code>  &quot;chrome&quot;: {
    &quot;timeout&quot;: 36000
  },
  &quot;extensions&quot;: {
    &quot;chrome-pdf&quot;: {
      &quot;timeout&quot;: 36000,
      &quot;launchOptions&quot;: {
        &quot;timeout&quot;: 36000,
        &quot;args&quot;: [&quot;--no-sandbox&quot;]
      }
    },
</code></pre>
<p>Thanks.</p>
]]></description><link>https://forum.jsreport.net/post/11119</link><guid isPermaLink="true">https://forum.jsreport.net/post/11119</guid><dc:creator><![CDATA[ShlomitG]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to chrome-pdf render error on container on Invalid Date]]></title><description><![CDATA[<p>Can you find the chrome binary inside the image here? Looks like it got lost somewhere during your install/copy.<br />
<img src="/uploads/files/1662717868959-upload-eeab0287-13d4-4937-bd61-5154ad9a1e62-resized.png" alt="0_1662717867372_upload-eeab0287-13d4-4937-bd61-5154ad9a1e62" class="img-responsive img-markdown" /></p>
]]></description><link>https://forum.jsreport.net/post/11121</link><guid isPermaLink="true">https://forum.jsreport.net/post/11121</guid><dc:creator><![CDATA[jan_blaha]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>