Skip to content
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

Blockcluster backend crashes if server crashes immediately #272

Closed
jojomatik opened this issue Jan 3, 2022 · 3 comments
Closed

Blockcluster backend crashes if server crashes immediately #272

jojomatik opened this issue Jan 3, 2022 · 3 comments
Assignees
Milestone

Comments

@jojomatik
Copy link
Owner

Describe the bug
Blockcluster backend crashes if server crashes immediately.

To Reproduce
Steps to reproduce the behavior:

  1. Open a server
  2. Select a java runtime that will immediately crash the server
  3. See error
 node:internal/process/promises:246
           triggerUncaughtException(err, true /* fromPromise */);
           ^
 
 [Error: No matching pid found] {
   errno: -2,
   code: 'ENOENT',
   syscall: 'open',
   path: '/proc/772/stat'
 }

Expected behavior
The server status should return to STOPPED and the backend should continue running.

Environment:

  • Backend OS: Alpine Linux
  • Client Browser: Chrome
  • Version: 0.10.0-beta.2
@jojomatik jojomatik added the type:fix A bug report or fix label Jan 3, 2022
@jojomatik
Copy link
Owner Author

The issue is that the process is not unset if the server stops immediately and the backend tries to read the resource usage of the stopped process which throws an unhandled exception.

Therefore the exception should be handled properly and the process should be set to null if a non-zero exit code is available.

@jojomatik jojomatik self-assigned this Jan 3, 2022
@jojomatik-bot
Copy link
Collaborator

🎉 This issue has been resolved in version 0.10.0-beta.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@jojomatik-bot
Copy link
Collaborator

🎉 This issue has been resolved in version 0.10.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants