-
-
Notifications
You must be signed in to change notification settings - Fork 433
Description
I'm running a self-contained drawio docker image and self-contained export-server image.
The export to pdf is not working, i'm receiving a internal server error from export-server container. The connection from the drawio to the export-server works because we can see in the logs that he gets it with the correct url.
Here the error log of the export-server:
::ffff:10.128.4.1 - - [04/Jul/2025:12:26:30 +0000] "POST / HTTP/1.1" 500 - "https://diagrams-test.domain.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36"
::ffff:10.128.4.1 - - [04/Jul/2025:12:26:30 +0000] "GET /favicon.ico HTTP/1.1" 400 - "https://diagrams-export-server-test.domain.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36"
warn: Handled exception: Could not find Chrome (ver. 138.0.7204.49). This can occur if either
- you did not perform an installation before running the script (e.g.
npx puppeteer browsers install chrome) or- your cache path is incorrectly configured (which is: /.cache/puppeteer).
For (2), check out our guide on configuring puppeteer at https://pptr.dev/guides/configuration. req=ip=10.8.39.41 format=pdf w=0 h=0 s=1 bg=%23ffffff {"stack":"Error: Could not find Chrome (ver. 138.0.7204.49). This can occur if either\n 1. you did not perform an installation before running the script (e.g.npx puppeteer browsers install chrome) or\n 2. your cache path is incorrectly configured (which is: /.cache/puppeteer).\nFor (2), check out our guide on configuring puppeteer at https://pptr.dev/guides/configuration.\n at ChromeLauncher.resolveExecutablePath (/home/pptruser/draw-image-export2/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserLauncher.js:308:27)\n at ChromeLauncher.computeLaunchArguments (/home/pptruser/draw-image-export2/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ChromeLauncher.js:93:24)\n at ChromeLauncher.launch (/home/pptruser/draw-image-export2/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserLauncher.js:84:39)\n at ChromeLauncher.launch (/home/pptruser/draw-image-export2/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ChromeLauncher.js:45:22)\n at PuppeteerNode.launch (/home/pptruser/draw-image-export2/node_modules/puppeteer-core/lib/cjs/puppeteer/node/PuppeteerNode.js:143:31)\n at handleRequest (/home/pptruser/draw-image-export2/export.js:473:33)\n at Layer.handleRequest (/home/pptruser/draw-image-export2/node_modules/router/lib/layer.js:152:17)\n at next (/home/pptruser/draw-image-export2/node_modules/router/lib/route.js:157:13)\n at Route.dispatch (/home/pptruser/draw-image-export2/node_modules/router/lib/route.js:117:3)\n at handle (/home/pptruser/draw-image-export2/node_modules/router/index.js:435:11)"}
I don't know what could be missing, is smth wrong with the jgraph/export-server image or am I missing an environment?
Here are the environments I'm using.
Env Drawio:
- DRAWIO_BASE_URL: https://diagrams-test.domain.lu/draw/
- DRAWIO_SERVER_URL: https://diagrams-test.domain.lu/draw/
- EXPORT_URL: https://diagrams-export-server--test.domain.lu/
Env export-server:
- DRAWIO_BASE_URL: https://diagrams-test.domain.lu
Thanks,