New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server crash when hedgedoc container infrastructure is missing avx cpu flag with "Illegal instruction" #5229
Comments
I've tried to get a dump core of the app using the flag : "--abort-on-uncaught-exception", but without success. NODE_DEBUG=cluster,net,http,fs,tls,module,timers nodejs --report-uncaught-exception --report-on-signal --report-on-fatalerror --report-compact --abort-on-uncaught-exception --report-filename="/hedgedoc/public/uploads/report.json" app.js >public/uploads/logs.txt 2>&1 Here a tail of the 50 last lines before crashing with the previous flags :
|
Wasn't that fixed some time back? I remember we had that issue about 2019 or so? I can research deeper if info needed |
If you found the old issue maybe it could help, also this post from the forum seems to have similar symptoms : https://community.hedgedoc.org/t/cannot-cut-copy-paste/996/4 |
So, I looked up similar old issues to try to find out the issue you were talking about :
However, they seem to be related to configuration issues with unset CMD_DOMAIN, CMD_PROTOCOL_USESSL, and CMD_URL_ADDPORT. In my case, they are set up, as you can see in the configuration specified above. Only the CMD_URL_ADDPORT hasn't been specified because the default value is already false. If you have any ideas, it would be helpful. On my side, I'll try to obtain more logs or traces from Hedgedoc. |
The issue we were observing seems related to hedgedoc container image provided at https://docs.hedgedoc.org/setup/docker/, likely requiring use of AVX extension in the CPU instruction set, see full details into https://github.com/orange-cloudfoundry/paas-templates/issues/2195 The problem does not reproduce after modifying the container infrastructure with a linux kernel properly exposing the CPU avx capabilities. If other hedgedoc users are running old cpus without the avx capability, then it would be helpful to confirm which nodejs library is requiring avx to consider alternatives. For our part, the lack of avx capability is rather an infrastructure-specific issue which can be best addressed at the infrastructure level. |
Description
Issue Description
We are currently transitioning from Etherpad to Hedgedoc as our primary note taking tool.
During the migration, we encountered an issue where copying and pasting bullet points from Etherpad into a Hedgedoc note, as well as uploading images, have been consistently resulting in a server crash.
As an example the following text always triggers a server crash :
For the images, they are correctly uploaded on the server before the crash, but not displayed when the server restart.
We have successfully used the migration tool for old notes, and although the final layout requires some adjustments, no crashes occurred during the migration process.
Steps to reproduce
Expected behaviour
Content from Etherpad should be pasted into Hedgedoc notes without causing server crashes, and image uploads should work as expected.
Logs
Config
Your Setup
hedgedoc-0.3.1@sha1:2a36e588196b6b06e86c318e266dff8d0c96aece
The chart use the official docker image : https://quay.io/repository/hedgedoc/hedgedoc
as we can see here : https://github.com/adfinis/helm-charts/blob/44765d55692c21a7e08b34a88bafde6dfc69e4e2/charts/hedgedoc/values.yaml#L9
Same error encountered using this other chart :
https://artifacthub.io/packages/helm/truecharts/hedgedoc/9.0.9
Additional context
More information about our intended use of hedgedoc : https://github.com/orange-cloudfoundry/paas-templates/issues/1979
The text was updated successfully, but these errors were encountered: