-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
(Bug report) Server crashing #3240
Comments
Hi, this is probably something node.js related. Generally during a crash it should output something to stderr or stdout, perhaps outputting that to some file would help with debugging. |
There's no stderr and stdout looks normal - it just simply stops at some point. No errors printed at all before it stops |
Hmm, that's strange ... could perhaps OS be killing the process, maybe because it's out of memory or something? |
The process is still using the same equivalent memory post-crash - does that out-rule OOM as a possibility? Oddly enough it happens to multiple containers at once making me think it is an OOM somehow but I have only 60% of RAM used currently. I don't know how this can happen to multiple at once - they're properly container-ified of course. Also, it seems to commonly happen to a few users - though I'd expect it to be users who have the largest databases, it mostly is not. PS: There is now an error appearing consistently before the crash
This appears in the logs of every container that crashes.More investigating and it seems related to this - but they mention |
0.56.2 uses |
These containers are indeed running 0.56.2 - I wonder if there's some dependency relying on the old version, if that's possible. The reverse proxy is my suspicion currently - or maybe docker healthcheck. Maybe some health check is being interpreted as a websockets connection accidentally, though I can't imagine how it would happen randomly. I do suppose that this is not necessarily a bug caused by Trilium but I think the behavior caused (ie, server restarts and it is in invalid state, unable to respond to requests) could still be considered a bug. |
Okay, I suspect this is unrelated to Trilium. It's definitely caused by another component in the stack. Except for this: when a websockets connection is forcibly broken off and interrupted, the Trilium server will be in an invalid state that only a restart solves. No data corruption or anything, though. I'm unsure if I should report this bug because it is like saying "the server crashes when I hit it the wrong way" - maybe I shouldn't hit it like that. Regardless, I can say that this is not an underlying issue with Trilium crashing, just a symptom of another issue. Shall I file a bug for that websockets problem? |
Trilium Version
0.56.1
What operating system are you using?
Other Linux
What is your setup?
Local + server sync
Operating System Version
Debian
Description
When running the server for a while, it will simply crash. There's nothing on the logs or anything like that, it just returns a 503 on the
/
route. It seems to happen to some users more than others. A simple restart fixes it. I'm not sure how to begin debugging this - maybe a crash log of some kind. Is there anything you can recommend for me to do to discover the root cause of this? Once it occurs, what can I do to locate the error or anything?The text was updated successfully, but these errors were encountered: