Thank you for the problem description and demo replicating it.
I've submitted task to github, we will look at it and come back to you
https://github.com/jsreport/jsreport/issues/1183
Jan Blaha
@admin
Posts made by admin
-
RE: Merged Cells in HTML-XLSX dropping content
-
RE: Issue with generating reports from HTML to XLSX
What if you run the report locally without limits, does it work?
The chrome may have issues handling big tables, you can try the approaches mentioned here
https://jsreport.net/learn/html-to-xlsx#performance -
RE: nchrome_crashpad_handler: --database is required
I've tried the
jsreport/jsreport:4.6.0-full
image on Windows docker desktop and it renders the chrome-pdf recipe without issues. I've also tried to run the image on a brand new Ubuntu server with docker, and it also works.Does the render fail for you every time, also on a simple "hello world" template? Do you apply anything specific on your server and when running docker?
The error pops up when running with
--read-only
flag. Isn't this the case? To fix it you need to add additional envs like in this command.ENV XDG_CONFIG_HOME=/tmp/.chromium ENV XDG_CACHE_HOME=/tmp/.chromium
This command should work for testing
docker run -p 5488:5488 --read-only --tmpfs=/tmp -e store_provider=memory -e blobStorage_provider=memory -e logger_file_filename=/tmp/reporter.log -e logger_error_filename=/tmp/error.log -e XDG_CONFIG_HOME=/tmp/.chromium -e XDG_CACHE_HOME=/tmp/.chromium jsreport/jsreport:4.6.0
-
RE: Error: EACCES: permission denied, open '/app/data/fs.lock'
@irkhamdivistant Can you upgrade to the latest jsreport version? jsreport 2.7.0 is very old.
-
RE: SSD Shown No Media - Why?
Please elaborate... I don't know what you mean...
-
RE: insert html data in xlsx recipe
There is no such helper in the xlsx recipe currently.
Excel isn't as rich as Word when adding structures and styles to cells and I don't know how much this is a valid feature request. It's likely not. Or it would need to be limited just to font-color styling different parts of the cell's text. -
RE: Log original request JSON
You can add this to your
server.js
jsreport.beforeRenderWorkerAllocatedListeners.add('logging', (req) => { jsreport.logger.info('input request ' + req.rawContent) })
-
RE: Does the Template File Identify the Page break??
I am not sure I understand, could you demonstrate the problem on a simple playground demo?
https://playground.jsreport.net/Maybe you are looking for the avoid page break css
https://developer.mozilla.org/en-US/docs/Web/CSS/page-break-insideTechnically we don't know when the page break happens and don't have a tool to dynamically react on page breaks.
When this is needed, we typically have to render the template twice, the first time we parse the page and notice where are page breaks. The second time we can render with the aware of page breaks.
https://playground.jsreport.net/w/admin/tV6sVKbV -
RE: Using jsreport.Local in Docker using RedHat UBI - extra dependencies?
I apologize for the late answer.
The
jsreport.Linux.Binary
includes the chrome binary but you typically need some extra dependencies installed on the running system.The list of required dependencies for a particular Linux distro can be found here
https://pptr.dev/troubleshooting#chrome-doesnt-launch-on-linuxIn the past, the list was changing and often incomplete. Therefore our red-hat install guide rather installs chrome from rpm package, which assures the required dependencies are installed along with the chrome binary. You should be good to for
jsreport.Linux.Binary
with the mentioned guide.Note I typically recommend running jsreport standalone. For example in an extra container with docker compose. In this case you can simply use our official images.