-
Notifications
You must be signed in to change notification settings - Fork 659
Server stuck into "Unloading level world" after a server stop #2046
Comments
I suggest using an auto restart plugin that can regularly stop and restart the server. This doesnt always help but can still fix a lot of issues. |
same problem when the server is swarmed with many players. |
This is happening every time now. It used to happen only a few times. Now every time I do /stop, it happens. |
A note: CTRL+C does not stop the proccess, it is frozen completely |
yes only kill -9 pid as i wrote it. I confirm i still have the issue. Only if the server runs hours with players. |
I use htop :) |
On build 576, the server cannot unload the world even after 10 minutes of being on. I tried to use a short stroke restart method (restarting the server every 10 minutes) and that worked only a few times. Still trying to test a few things out. Will report further incidents here. |
Will test this soon. @shoghicp the reason this is so vital is networks like ours like ti Auto restart the nodes. Thanks for the commit! |
@shoghicp Unfortunately, server is still caught on Unloading world. CTRL+C does not kill the proccess, which confirms that it is truly frozen. |
@tnpxxsheepdog Once it starts to unload things, Ctrl+C won't be handled anymore (it depends on ticks). It doesn't mean that it has stopped completely, only that it can't stop two times in a row ;) |
I waited for about a minute. So I need to wait a bit longer? |
Could you test again using the new build? |
Yes, give me a few hours. Will report results. Thanks! |
Just installed build 585, will test level unloading in a few hours after the server has been full for a while. |
@shoghicp In my first test, the world unloaded properly. That was with around 25 people online. Let me test is a few more times. Seems to be working at the moment! Thanks! |
Attempt number 2 at 21 players online was a success. World IS unloading and the server is stopping as it should! |
I'll mark this as fixed for now. If it shows up again, please open a new issue and place this as a related issue |
After 1 day, i do a stop. The server stops sucessfully :) 07:42:50 [INFO] Unloading level "world" |
Increase "output_buffering" in php.ini |
thx @tnpxxsheepdog i'll have a look to this parameter. After a crash crash caused by memory issue, the server stuck on "unloading world" 20:46:31 [INFO] LMNTRIX[/63.135.255.45:34137] logged in with entity id 8349 at (world, -714.7, 69, -896.7) Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 16385 bytes) in phar:///home/minecraft/pocketmine/PocketMine-MP.phar/src/pocketmine/nbt/NBT.php on line 78 |
@tnpxxsheepdog I have no "output_buffering" entry into /pocketmine/bin/php5/bin/php.ini ? @shoghicp Server stuck into "Unloading level world" after a server crash cause by memory issue yesterday my server was stuck after a manual stop... I think there is still a problem when the server run a long time with a lot of players playing on a large map. I feel it's a memory consumtion problem. |
The best thing to do is restart it manually every three hours or so. It will not get stuck if you do small intervals. |
This occurs only after a long run. With many players.
After a short run, the server stop quicly.
After 30 minutes, and many players it can take 30 seconds or 1 minute.
After one day, the server never stop (cpu is low)
The only way to stop the process is to kill it (kill - 9 pid)
Before the build ~500 the server was crashing. So this bug was hidden.
stop
08:13:01 [NOTICE] [bag_auth] Server Command [stop] sent by CONSOLE
08:13:01 [INFO] CONSOLE: Stopping the server...
08:13:03 [INFO] Disabling DevTools v1.8.0
08:13:03 [INFO] Disabling Bag_inventory v1.0.0
08:13:03 [INFO] [bag_inventory] Bag_inventory disabled, config Saved
08:13:03 [INFO] Disabling Bag_auth v1.0.3
08:13:03 [INFO] [bag_auth] Main disabled
08:13:03 [INFO] Disabling Bag_map v1.0.1
08:13:03 [INFO] [bag_map] Bag_map disabled
08:13:03 [INFO] Disabling Bag_vote v1.0.1
08:13:03 [INFO] [Bag_vote] Bag_vote disabled
08:13:03 [INFO] Disabling Bag_events v1.0.7
08:13:03 [INFO] [bag_events] Scores saved to file
08:13:03 [INFO] Disabling Bag_zone v1.0.4
08:13:03 [INFO] [bag_zone] Bag_zone disabled
08:13:03 [INFO] Disabling Bag_warp v1.0.3
08:13:03 [INFO] [bag_warp] Bag_warp disabled
08:13:03 [INFO] Econo8945 has left the game
08:13:03 [INFO] Econo8945[/106.160.58.11:58089] logged out due to Server closed
08:13:03 [INFO] Unloading level "world"
The text was updated successfully, but these errors were encountered: