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
Directus crashed with SIGSEGV running in docker-container #12133
Comments
This is going to be near impossible to debug.. Especially seeing you weren't able to reproduce it after the fact 👀 I don't recall ever seeing SIGSEGV in any of our running containers of Directus, so I'm wondering if there's any specific mix of variables here that causes this. I might have to close this for now, as I wouldn't really know where to start looking for an answer.. |
I'm also wondering what are the actionable items we can take on our side in this situation here, as it seems to be a somewhat rare issue. Granted I don't really have much of a clue here myself, I'm wondering if it is something to do with the host instead (memory/drive issue). Perhaps a resource log such as cpu/memory usage up until the crash if you can reproduce it? It would also be very helpful if you can confirm whether this happens on another host as well. I'll close this for now, but if there is any new breakthroughs on this peculiar occurrence, feel free to update us 👍 |
Sorry guys for not responding earlier. I can fully understand your point of view, since then it never happened again and I'm not sure what originally caused it. At the time when the directus container crashed, all other containers on the same host were running fine. Unfortunately I don't run directus on another host, so I cannot confirm the issue on other hosts either. Just wanted to document it in case I'm not the only one and others have the same problem. I'll come back if there is a similar occurrence again and I'd kindly like to request everyone else stumbling across this issue and experiencing the same to comment here and re-open the issue. Thanks for your time! |
Hi there, tonight the very same thing happened again. Directus crashed with SIGSEGV. The log file is below, although I doubt there is much useful content in there. It did run fine in the last 20 days since issue creation, no problem there. I guess my main question: can I enable any kind of more verbose logging in case it happens again, such that we have more information to troubleshoot? For now I'll update to the most recent version and see if the problem still persists.
|
I'm wondering if this is Directus specific issue, or something bigger in running NodeJS projects through Docker on Linux Centos 8. From a quick search around, it seems like we're not the only ones seeing this: https://stackoverflow.com/questions/43167128/centos-docker-container-crashes-with-6-segmentation-fault-wheres-the-core-dum |
I know this issue is closed, just wanted to give some feedback. For a variety of reasons we switched from CentOS8 to Ubuntu 22.04. Since then, we haven't seen a single crash of the Directus container. Apparently it looks like the issue is somehow related to the underlying OS. |
Preflight Checklist
Describe the Bug
I am using Directus 9.6.0 in a docker-container using the following docker-compose statements:
Pretty basic stuff.
{{ directus_docker_version }}
evaluates to9.6.0
. The container worked fine for a couple of days but then suddenly exited with an exit code 1. The last few log entries were:The complete log that is referenced there contains:
Restarting the docker container fixed the issue apparently.
To Reproduce
I was unable to reproduce the issue since then
Errors Shown
See bug description above
What version of Directus are you using?
9.6.0
What version of Node.js are you using?
v16.14.0
What database are you using?
MySQL
What browser are you using?
Doesn't matter
What operating system are you using?
Linux CentOS 8 Stream
How are you deploying Directus?
Docker
The text was updated successfully, but these errors were encountered: