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

Process timeout when the Minecraft server is not up. #28

Open
slothbear opened this issue Oct 13, 2020 · 1 comment
Open

Process timeout when the Minecraft server is not up. #28

slothbear opened this issue Oct 13, 2020 · 1 comment

Comments

@slothbear
Copy link
Member

Issue the command wither boot. It eventually succeeds, but not before timing out with some communication to the previous server IP address.

Errno::ETIMEDOUT - Connection timed out - connect(2) for "165.22.32.143" port 25575:
@slothbear slothbear changed the title Process stalls when the Minecraft server is not up. Process timeout when the Minecraft server is not up. Oct 13, 2020
@slothbear
Copy link
Member Author

I've been watching the timeouts for a while. I think they're happening whenever we say something in chat, wither tries to send it to RCON on the Minecraft server, and the server's not there. But,

I was confused because the messages and behavior would differ from week to week, day to day. Sometimes the command would fail immediately, other times would wait, for something, then eventually fail. I think the difference depends on what happened to the IP address the Minecraft server was using. Sometimes there is nothing at the address. Other times Digital Ocean (or other) has assigned the IP address to some other server.

Conclusion: the config var RCON_IP is bad data after the server has shutdown. I'm planning to either remove that config var (or set it to some "N/A" value so the var still exists). The unset can happen during wither shutdown since I already have a function for setting config vars (used in the new wither boot <week_number> command).

Then add a check for a real RCON_IP destination before using that IP to send chat messages to the Minecraft server.

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

No branches or pull requests

1 participant