quality-time
quality-time copied to clipboard
PDF-export does not work on some platforms
Describe the bug On some platforms, headless chrome crashes on startup in the renderer container.
To Reproduce Open report - press the "Download report as PDF" button. Result: PDF Rendering failed HTTP code 500
Your environment:
- OS: Alpine/Debian (from Docker image) / OpenShift environment, rootless (x86 architecture)
- Quality-time version: 5.1.0
Additional context Logging from renderer:
Error: Failed to launch the browser process!
chrome_crashpad_handler: --database is required
Try 'chrome_crashpad_handler --help' for more information.
[18:18:0927/095038.711551:ERROR:socket.cc(120)] recvmsg: Connection reset by peer (104)
TROUBLESHOOTING: https://pptr.dev/troubleshooting
at Interface.onClose (file:///home/renderer/node_modules/@puppeteer/browsers/lib/esm/launch.js:268:24)
at Interface.emit (node:events:526:35)
at Interface.close (node:internal/readline/interface:533:10)
at Socket.onend (node:internal/readline/interface:259:10)
at Socket.emit (node:events:526:35)
at endReadableNT (node:internal/streams/readable:1359:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
@denniebouman. Please add any relevant info you have and can share.
We found out this error occurs when running with a different (non-root) user than renderer (uid 1001). We have a temporary workaround by applying the following in our kubernetes manifest:
securityContext:
runAsUser: 1001
However, it would be nice to be able to run using a user with arbitrary uid. (i.e. in a rootles openshift environment)
We've made quite a few changes to the renderer since this bug report. Please re-open this issue if it has not been solved.