SIGTERM doesn't make Ubuntu Bedrock Server save and quit gracefully.
When the minecraft dedicated server gets a SIGTERM signal, it doesn't save and quit gracefully. It just immediately kills the process without saving.
I'm currently running BDS as a systemd service, so I'd like to not lose data if I have to call "systemctl stop minecraft".
Environment
Ubuntu Server 18.04 LTS. Server running as systemd service.
Linked Issues
Comments9
History11
Added labels: awaiting-response
Resolution: Unresolved β Awaiting Response
Resolution: Awaiting Response β Unresolved
Added Confirmation Status: Plausible
Resolution: Unresolved β Awaiting Response
Resolution: Awaiting Response β Unresolved
Resolution: Unresolved β Incomplete
Added affects versions: 1.16.201.03 Hotfix
Resolution: Incomplete β Unresolved
Added duplicates link: BDS-203BDS not stopping gracefully when running as a serviceIncomplete
Resolution: Unresolved β Duplicate
I am having this issue also.
If terminated 'ungracefully', ports get tied up and the server cannot restart without freeing those ports or a system reboot.
For now you can use tmux to work around it.
You can't have more than 1 instance per tmux socket, but you can use the -S flag for that if you must. Hopefully they change their handling of SIGTERM from apathetically to cleanly.
Hi,
Is this still an issue in 1.14.32.1?
I know enough about linux to be dangerous and help test some of the issues here but this one is a little outside my wheel house.
If someone is able to test and confirm that would be amazing.
Ionic
I've not heard back from you in a while.
In order to keep the Bedrock Dedicated Server project running smoothly I'm going to request this issue be closed as Awaiting Response.
Never fear though! If this is still affecting you in the latest version (and is related to Bedrock Dedicated Server and not the Minecraft Bedrock game) all you have to do is comment and it will reopen.
If your issue does still exist but is related to the game and not the server software please head over to the Minecraft (Bedrock codebase) project.
Ionic
Quick Links:
π Issue Guidelines β π¬ Community Support β π§ Customer Support β π BDS Wiki β π FAQs
This feature is needed on both Ubuntu and Windows. There is currently no safe way for an outside application to call for Save or shutdown when the server is running.
If the report could please be updated with the following information we can get the report confirmed. I have the knowledge to do it for Windows but no idea how this impacts Linux or how to repro.
Cleaning up old tickets: This ticket had been set to 'Awaiting Response', but has not received a response from the reporter (~3 months+) so is being closed as Incomplete. If you feel this is still a valid issue then please comment, or create a new ticket following the Issue Guidelines which includes steps to reproduce the problem.
Quick Links:
π Issue Guidelines β π¬ Mojang Support β π§ Suggestions β π Minecraft Wiki
I can confirm server versionΒ 1.16.201.3 on ubuntu and windows do not handle SIGTERM correctly. The server process ends immediately and does not shut down correctly.
Β
What I expected to happen was...:
When I type ctrl+c, I expect the server to shut down as if I had issued the stop command.
Β
What actually happened was...:
Instead, the process exits immediately without properly shutting down.Β
Β
Steps to Reproduce:
Thank you for your report!
We're tracking this issue in
BDS-203, so this ticket is being resolved and linked as a duplicate.If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
π Bug Tracker Guidelines β π§ Mojang Support
π Project Summary β βοΈ Feedback and Suggestions β π BDS Wiki β π FAQs