Comments (5)
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 orange-cloudfoundry/paas-templates#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.
from hedgedoc.
I've tried to get a dump core of the app using the flag : "--abort-on-uncaught-exception", but without success.
I have also tried a bunch of other options in my search for useful traces to debug the application without getting anything that seemed relevant to me.
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 :
NET 7: _read - n 16384 isConnecting? false hasHandle? true
NET 7: onconnection
NET 7: _read - n 16384 isConnecting? false hasHandle? true
NET 7: Socket._handle.readStart
HTTP 7: SERVER new http connection
NET 7: onconnection
NET 7: _read - n 16384 isConnecting? false hasHandle? true
NET 7: Socket._handle.readStart
HTTP 7: SERVER new http connection
HTTP 7: SERVER socketOnParserExecute 111
HTTP 7: write ret = true
HTTP 7: SERVER socketOnParserExecute 110
2023-11-08T15:30:03.765Z info: Executing (default): SELECT `sid`, `expires`, `data`, `createdAt`, `updatedAt` FROM `Sessions` AS `Session` WHERE `Session`.`sid` = 'G9gb8WsrBXmlRZAoj-p99ktuaV5ozV04';
2023-11-08T15:30:03.766Z info: Executing (default): SELECT count(*) AS `count` FROM `Notes` AS `Note`;
NET 7: _read - n 16384 isConnecting? false hasHandle? true
NET 7: _read - n 16384 isConnecting? false hasHandle? true
2023-11-08T15:30:03.767Z info: Executing (default): SELECT count(*) AS `count` FROM `Users` AS `User`;
2023-11-08T15:30:03.768Z info: Executing (default): INSERT INTO `Sessions` (`sid`,`expires`,`data`,`createdAt`,`updatedAt`) VALUES (?,?,?,?,?);
NET 7: _read - n 16384 isConnecting? false hasHandle? true
HTTP 7: write ret = true
HTTP 7: outgoing message end.
NET 7: _final: not ended, call shutdown()
2023-11-08T15:30:03.769Z info: 10.16.18.69 - - [08/Nov/2023:15:30:03 +0000] "GET /status HTTP/1.1" 200 266 "-" "kube-probe/1.24"
NET 7: afterShutdown destroyed=false
NET 7: destroy
NET 7: close
NET 7: close handle
NET 7: has server
NET 7: SERVER _emitCloseIfDrained
NET 7: SERVER handle? true connections? 2
NET 7: _read - n 16384 isConnecting? false hasHandle? true
NET 7: emit close
HTTP 7: server socket close
HTTP 7: write ret = true
HTTP 7: outgoing message end.
NET 7: _final: not ended, call shutdown()
2023-11-08T15:30:03.770Z info: 10.16.18.69 - - [08/Nov/2023:15:30:03 +0000] "GET /_health HTTP/1.1" 200 14 "-" "kube-probe/1.24"
NET 7: afterShutdown destroyed=false
NET 7: destroy
NET 7: close
NET 7: close handle
NET 7: has server
NET 7: SERVER _emitCloseIfDrained
NET 7: SERVER handle? true connections? 1
NET 7: emit close
HTTP 7: server socket close
NET 7: _read - n 16384 isConnecting? false hasHandle? true
Illegal instruction
from hedgedoc.
Wasn't that fixed some time back? I remember we had that issue about 2019 or so? I can research deeper if info needed
from hedgedoc.
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
from hedgedoc.
Wasn't that fixed some time back? I remember we had that issue about 2019 or so? I can research deeper if info needed
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.
from hedgedoc.
Related Issues (20)
- Revision viewer showing error during revision loading HOT 2
- Check Windows compatibility
- plotting mathematical functions with `gnuplot` code block extension HOT 1
- "Note not found" page not readable with light theme
- Re-add user-friendly error pages
- Hedgedoc 2 alpha: endless memory leak in the editor reproducible under Firefox HOT 2
- Dev Setup is not working on HTTP HOT 2
- Firefox Favicon changes randomly on refresh HOT 1
- running ./bin/setup failed: meta-marked: The remote archive doesn't match the expected checksum HOT 2
- Heroku build error: Couldn't find the node_modules state file
- Add error message when upload limit applies
- Azure Activate Directory setup documentation is invalid HOT 2
- Prevent Problem with colons for e.g. list introductions HOT 1
- LaTeX Display Mode Breaks Syntax Highlighting HOT 1
- Can't register a new user on https://pad.cas.cat/ HOT 3
- Redirect error on alpha2 container setup HOT 2
- Allow the upload of WebM animations
- hedgedoc2 upload image permission denied , frontend reject request
- Untitled document HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hedgedoc.