quality-time icon indicating copy to clipboard operation
quality-time copied to clipboard

PDF-export does not work on some platforms

Open fniessink opened this issue 2 years ago • 2 comments

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)

fniessink avatar Sep 14 '23 09:09 fniessink

@denniebouman. Please add any relevant info you have and can share.

fniessink avatar Sep 14 '23 09:09 fniessink

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)

timselier avatar Sep 27 '23 13:09 timselier

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.

fniessink avatar Sep 05 '24 09:09 fniessink