Excalidraw not working on Kubernetes?
RK-RS opened this issue · comments
Hi we have Kroki on our Kubernetes for about 2 years now, but recently Excalidraw seems to not work anymore... I looked a bit into in and is it possible that Excalidraw cannot run on Kubernetes anymore? I get these Messages whenever trying to create a diagram:
{"level":"error","time":1695707141411,"pid":1,"hostname":"excalidraw-54d4499585-xpj4z","stderr":"[0926/054541.411782:ERROR:zygote_host_impl_linux.cc(273)] Failed to adjust OOM score of renderer with pid 150: Permission denied (13)\n","msg":"chrome process"}
{"level":"warn","time":1695707171464,"pid":1,"hostname":"excalidraw-54d4499585-xpj4z","err":{"type":"TimeoutError","message":"Navigation timeout of 30000 ms exceeded","stack":"TimeoutError: Navigation timeout of 30000 ms exceeded\n at LifecycleWatcher._LifecycleWatcher_createTimeoutPromise (file:///usr/local/kroki/node_modules/puppeteer-core/lib/esm/puppeteer/common/LifecycleWatcher.js:154:12)","name":"TimeoutError"},"msg":"Exception during convert"}
The timeout is probably just caused by the error before...
Thanks for your help in advance.
It seems that Puppeteer/Chrome has some limitations/issues when running on Alpine. We might migrate to ubuntu
as base image to make Puppeteer/Chrome more reliable.
Might be related to #1651
@RK-RS does your Kubernetes cluster has access to https://unpkg.com/@excalidraw/excalidraw@0.15.2/dist/excalidraw-assets/ ?
Not by default, but I can get access. So yes.