Closed mhbates closed 3 years ago
Do you happen to have an mc-backup container running alongside this?
Do you happen to have an mc-backup container running alongside this?
No, I don't. By the way, the server is whitelist only, and whenever a player does join, it shows that in the log, with their name and so on. The "Client connected" thing is puzzling.
This issue is stale because it has been open 30 days with no activity. Please add a comment describing the reason to keep this issue open.
@mhbates did you solve this? I seem to have the same issue.
I did not unfortunately. I just ended up disabling autopause since the server was basically kept awake anyway.
@mhbates Hm, alright. Shame, I don't mind lowering that idle CPU usage.
@itzg Do you have any idea how this can be troubleshooted? My log looks similar.
[2022-08-26T04:15:00+02:00] [Autopause] Pausing Java process
[04:25:24 WARN]: Can't keep up! Is the server overloaded? Running 624169ms or 12483 ticks behind
[Autopause loop] Server was knocked - waiting for clients or timeout
[Autopause loop] No client connected since startup / knocked - pausing
@mhbates Hm, alright. Shame, I don't mind lowering that idle CPU usage.
@itzg Do you have any idea how this can be troubleshooted? My log looks like this:
[2022-08-26T04:15:00+02:00] [Autopause] Pausing Java process
[04:25:24 WARN]: Can't keep up! Is the server overloaded? Running 624169ms or 12483 ticks behind
[Autopause loop] Server was knocked - waiting for clients or timeout
[Autopause loop] No client connected since startup / knocked - pausing
[04:27:28 INFO]: Thread RCON Client /127.0.0.1 started
[04:27:28 INFO]: [Rcon: Saved the game]
[04:27:28 INFO]: Thread RCON Client /127.0.0.1 shutting down
[2022-08-26T04:27:28+02:00] [Autopause] Pausing Java process
[05:19:03 WARN]: Can't keep up! Is the server overloaded? Running 3094787ms or 61895 ticks behind
[Autopause loop] Server was knocked - waiting for clients or timeout
[Autopause loop] No client connected since startup / knocked - pausing
[05:21:07 INFO]: Thread RCON Client /127.0.0.1 started
[05:21:07 INFO]: [Rcon: Saved the game]
[05:21:07 INFO]: Thread RCON Client /127.0.0.1 shutting down
[2022-08-26T05:21:07+02:00] [Autopause] Pausing Java process
[06:12:47 WARN]: Can't keep up! Is the server overloaded? Running 3099477ms or 61989 ticks behind
[Autopause loop] Server was knocked - waiting for clients or timeout
[Autopause loop] No client connected since startup / knocked - pausing
[06:14:52 INFO]: Thread RCON Client /127.0.0.1 started
[06:14:52 INFO]: [Rcon: Saved the game]
[06:14:52 INFO]: Thread RCON Client /127.0.0.1 shutting down
[2022-08-26T06:14:52+02:00] [Autopause] Pausing Java process
[07:06:15 WARN]: Can't keep up! Is the server overloaded? Running 3082985ms or 61659 ticks behind
[Autopause loop] Server was knocked - waiting for clients or timeout
[Autopause loop] No client connected since startup / knocked - pausing
[07:08:20 INFO]: Thread RCON Client /127.0.0.1 started
[07:08:20 INFO]: [Rcon: Saved the game]
[07:08:20 INFO]: Thread RCON Client /127.0.0.1 shutting down
[2022-08-26T07:08:20+02:00] [Autopause] Pausing Java process
[07:59:43 WARN]: Can't keep up! Is the server overloaded? Running 3083291ms or 61665 ticks behind
[Autopause loop] Server was knocked - waiting for clients or timeout
[Autopause loop] No client connected since startup / knocked - pausing
[08:01:43 INFO]: Thread RCON Client /127.0.0.1 started
[08:01:43 INFO]: [Rcon: Saved the game]
[08:01:43 INFO]: Thread RCON Client /127.0.0.1 shutting down
[2022-08-26T08:01:43+02:00] [Autopause] Pausing Java process
[08:12:45 WARN]: Can't keep up! Is the server overloaded? Running 661919ms or 13238 ticks behind
[Autopause loop] Server was knocked - waiting for clients or timeout
[04:27:28 INFO]: Thread RCON Client /127.0.0.1 started
[04:27:28 INFO]: [Rcon: Saved the game]
[04:27:28 INFO]: Thread RCON Client /127.0.0.1 shutting down
[2022-08-26T04:27:28+02:00] [Autopause] Pausing Java process
[05:19:03 WARN]: Can't keep up! Is the server overloaded? Running 3094787ms or 61895 ticks behind
[Autopause loop] Server was knocked - waiting for clients or timeout
[Autopause loop] No client connected since startup / knocked - pausing
[05:21:07 INFO]: Thread RCON Client /127.0.0.1 started
[05:21:07 INFO]: [Rcon: Saved the game]
[05:21:07 INFO]: Thread RCON Client /127.0.0.1 shutting down
[2022-08-26T05:21:07+02:00] [Autopause] Pausing Java process
[06:12:47 WARN]: Can't keep up! Is the server overloaded? Running 3099477ms or 61989 ticks behind
[Autopause loop] Server was knocked - waiting for clients or timeout
[Autopause loop] No client connected since startup / knocked - pausing
[06:14:52 INFO]: Thread RCON Client /127.0.0.1 started
[06:14:52 INFO]: [Rcon: Saved the game]
[06:14:52 INFO]: Thread RCON Client /127.0.0.1 shutting down
[2022-08-26T06:14:52+02:00] [Autopause] Pausing Java process
[07:06:15 WARN]: Can't keep up! Is the server overloaded? Running 3082985ms or 61659 ticks behind
[Autopause loop] Server was knocked - waiting for clients or timeout
[Autopause loop] No client connected since startup / knocked - pausing
[07:08:20 INFO]: Thread RCON Client /127.0.0.1 started
[07:08:20 INFO]: [Rcon: Saved the game]
[07:08:20 INFO]: Thread RCON Client /127.0.0.1 shutting down
[2022-08-26T07:08:20+02:00] [Autopause] Pausing Java process
[07:59:43 WARN]: Can't keep up! Is the server overloaded? Running 3083291ms or 61665 ticks behind
[Autopause loop] Server was knocked - waiting for clients or timeout
[Autopause loop] No client connected since startup / knocked - pausing
[08:01:43 INFO]: Thread RCON Client /127.0.0.1 started
[08:01:43 INFO]: [Rcon: Saved the game]
[08:01:43 INFO]: Thread RCON Client /127.0.0.1 shutting down
[2022-08-26T08:01:43+02:00] [Autopause] Pausing Java process
[08:12:45 WARN]: Can't keep up! Is the server overloaded? Running 661919ms or 13238 ticks behind
[Autopause loop] Server was knocked - waiting for clients or timeout
I don't have any tools running and there's only one other guy who knows about the server.
I just noticed the address of the knocker can be passed to the resume script. So, I'll adjust the code to log that and that will help.
I just noticed the address of the knocker can be passed to the resume script. So, I'll adjust the code to log that and that will help.
Awesome, thanks. Is there a way for me to enable it already now?
Oh no, this issue fell of my radar. Thanks for the ping @kocane and I'll post here when the debug info is available.
@kocane the latest image will now show the IP address of the knocker. If the origin was external, the address may not be useful due to NAT'ing within the docker network bridge.
@kocane the latest image will now show the IP address of the knocker. If the origin was external, the address may not be useful due to NAT'ing within the docker network bridge.
Thanks! Works exactly like it should and I found the culprit.
@itzg I'm still seeing some random wakeups (but far fewer now) once in a while. Looking at the IPs it's typically port scanners. I don't suppose there's much to do about that aside from IP whitelisting in the firewall? Could the autopause function be made so it takes 2 knocks on the server, within a small time frame, before it reacts? Maybe it's just overcomplicating it.
Could the autopause function be made so it takes 2 knocks on the server, within a small time frame, before it reacts? Maybe it's just overcomplicating it.
Yes could be done, but the usability of that seems annoying.
Hi, I'm having the exact same thing, how do I see the IP addresses?
Oh, I restarted the container, and it works now. Turns out it's someone from Paris (https://whatismyipaddress.com/ip/163.172.139.143) and has a history of trying to join/ping Minecraft server. I'm guessing this can't be fixed, but is there some sort of IP blacklist that the container can use that lies before the knock detector thing?
I dont have ip information in docker-compose container [02:17:49] [Server thread/WARN]: Can't keep up! Is the server overloaded? Running 3240ms or 64 ticks behind mc-1 | [02:17:49] [RCON Client /0:0:0:0:0:0:0:1 #43/INFO]: Thread RCON Client /0:0:0:0:0:0:0:1 shutting down mc-1 | [2024-07-15T02:17:49+00:00] [Autopause] Pausing Java process mc-1 | [02:20:13] [Server thread/WARN]: Can't keep up! Is the server overloaded? Running 129193ms or 2583 ticks behind mc-1 | [Autopause loop] Server was knocked - waiting for clients or timeout mc-1 | [Autopause loop] No client connected since startup / knocked - pausing mc-1 | [02:22:16] [RCON Listener #1/INFO]: Thread RCON Client /0:0:0:0:0:0:0:1 started
@itzg Hello. I know this issue has been closed for a while, but I'm getting the same problem and I don't see any info about the incoming IP in the logs. Was this feature removed?
Yes, knockd was never correctly providing the remote IP address, so I removed it from logging since it was misleading.
Has anyone else experienced this? It started happening somewhat recently, probably in the last few months. Something is waking the server up about once an hour. I know that it could be something just knocking, but the Rcon line and the occasional bit about a client connecting (and no other info besides that, so likely not an actual client/player) has me thinking something else is going on. Any help is appreciated!
I think it's safe to ignore the HikariPool lines, that looks like it's just a thread watcher that one of my plugins uses.
EDIT: Looking at it again, it seems like the Rcon lines are just the final items before the server pauses again. So I guess my question is, how can I figure out what's knocking the server, and more importantly, why does it occasionally show a client as connecting, without any further information?