Stopped server won't exit

When I shutdown the server by running stop, it wraps up and saves everything, and then just hangs until I press ^C (or kill the java process myself). I don’t know if it’s the server.jar that is hanging or quilt-server-launch.jar, but either way java does not exit without manual intervention.

Normally it hangs after ThreadedAnvilChunkStorage: All dimensions are saved - I have a mod that makes world backups using git so now this runs afterwards, but it hangs either way, backup or no backup mod.

Do you use C2ME? That’s a known bug for older versions and should be very rare on modern versions. Other than that, it is most definitely caused by a mod, though, without a list I can’t say which one.

I do not use C2Me. As for my mod list, hoo boy…

Here is an (abridged because the output is too long, and I’m pretty sure several entries aren’t helpful) list of mods, from the server output:

[09:42:07] [main/INFO]: Loading 164 mods:
| Index | Mod                                            | ID                                                   | Version                  | Type    | File Hash (SHA-1)                        | File(s)                                                                               | Sub-File                                                                           |
|------:|------------------------------------------------|------------------------------------------------------|--------------------------|---------|------------------------------------------|---------------------------------------------------------------------------------------|------------------------------------------------------------------------------------|
|    54 | AdaptiveView                                   | adaptiveview                                         | 1.0.0+1.20               | Fabric  | cdd167bfeb80184aa3aa8d7dd2b5d5a7c112d7c2 | <mods>/adadptiveview-1.0.0+1.20.jar                                                   |                                                                                    |
|   137 | Babies Forever                                 | babiesforever                                        | 1.1.0                    | Fabric  | f477a4f0f4406b365564cc4eee2acbf474b108f9 | <mods>/babiesforever-1.1.0%2B1.20.jar                                                 |                                                                                    |
|    84 | Better Respawn                                 | better_respawn                                       | 1.20-2.0.2               | Fabric  | afc7986de06d90eade0d76662368912eb2678935 | <mods>/better-respawn-fabric-1.20-2.0.2.jar                                           |                                                                                    |
|   109 | Bottle Your Xp                                 | bottleyourxp                                         | 3.1                      | Fabric  | 8c0773acedf258655c185705f3b5f75b1999f1bb | <mods>/bottleyourxp-1.20.0-3.1.jar                                                    |                                                                                    |
|    75 | Bottled Air                                    | bottledair                                           | 2.1                      | Fabric  | 88ea94445f831f5b476b5ee9afe89f7947c40bb4 | <mods>/bottledair-1.20.0-2.1.jar                                                      |                                                                                    |
|    43 | Carpet Extra                                   | carpet-extra                                         | 1.4.112                  | Fabric  | b643b29f9dffb54181f4d3ecd393f76d0b519074 | <mods>/carpet-extra-1.20-1.4.112.jar                                                  |                                                                                    |
|    94 | Carpet Mod                                     | carpet                                               | 1.4.112+v230608          | Fabric  | 29faa4d1c22509b67a6d66b2a8c9d3b5aa483b65 | <mods>/fabric-carpet-1.20-1.4.112+v230608.jar                                         |                                                                                    |
|   161 | ChoiceTheorem's Overhauled Villages            | ctov                                                 | 3.3.0                    | Fabric  | 998c9ea016dd6c05a7a74ac14588fc4224a55e50 | <mods>/ctov-3.3.0.jar                                                                 |                                                                                    |
|   116 | Cloth Config v11                               | cloth-config                                         | 11.0.99                  | Fabric  | 338b0968fb4746f2a1fc2d003d3f2a32d1b0c31  | <mods>/cloth-config-11.0.99-fabric.jar                                                |                                                                                    |
|    67 | Collective                                     | collective                                           | 6.57                     | Fabric  | addd5b379eeed49ed0c2b6cce47525785dd4fb82 | <mods>/collective-1.20.0-6.57.jar                                                     |                                                                                    |
|    64 | Cycle Paintings                                | cyclepaintings                                       | 3.2                      | Fabric  | 8d2de459a6c64c26830c9c371bd46165628b45f6 | <mods>/cyclepaintings-1.20.0-3.2.jar                                                  |                                                                                    |
|    39 | DeathLog                                       | deathlog                                             | 0.3.2+1.20               | Fabric  | a637205931bac5fd455341d82cc32bb181d617f7 | <mods>/deathlog-0.3.2%2B1.20.jar                                                      |                                                                                    |
|   108 | Despawning Eggs Hatch                          | despawningeggshatch                                  | 4.1                      | Fabric  | cfc5b84064249fcb18ff3d2e9f831bd23823cb25 | <mods>/despawningeggshatch-1.20.0-4.1.jar                                             |                                                                                    |
|    74 | Ducky Updater                                  | ducky-updater                                        | 2023.6.1-1.20            | Fabric  | 0aa35e8c70f3a6146f214afde524351427703475 | <mods>/ducky-updater-2023.6.1-1.20.jar                                                |                                                                                    |
|    22 | Elytra Trims                                   | elytratrims                                          | 1.1.4-build.2            | Fabric  | 39b094b10398bc17c7d200f8cd427b424c1b28fd | <mods>/elytratrims-1.1.4-build.2%2B1.20.jar                                           |                                                                                    |
|   110 | Extract Poison                                 | extractpoison                                        | 3.1                      | Fabric  | cac69f19a02c21485803d8d5ce06c15177a8ee2e | <mods>/extractpoison-1.20.0-3.1.jar                                                   |                                                                                    |
|   150 | Fabric Language Kotlin                         | fabric-language-kotlin                               | 1.9.5+kotlin.1.8.22      | Fabric  | 6dab5c754ec04e671e505df685befcedef27f42e | <mods>/fabric-language-kotlin-1.9.5%2Bkotlin.1.8.22.jar                               |                                                                                    |
|    86 | FallingTree                                    | fallingtree                                          | 4.0.0                    | Fabric  | 63304c4a5812b710be54f73a3e32875afba13883 | <mods>/FallingTree-1.20-4.0.0.jar                                                     |                                                                                    |
|     4 | FastBack                                       | fastback                                             | 0.11.0+1.20.0            | Fabric  | 46b8b57276d2ab865091845a6871a1c5e44ce3c3 | <mods>/fastback-0.11.0+1.20.0.jar                                                     |                                                                                    |
|   151 | FerriteCore                                    | ferritecore                                          | 6.0.0                    | Fabric  | 5a57ea73c3c7c0cc300d69611a9cad93baf8e9ab | <mods>/ferritecore-6.0.0-fabric.jar                                                   |                                                                                    |
|   101 | First Join Message                             | firstjoinmessage                                     | 3.1                      | Fabric  | d51c998cafc26830f2dab18eb5cdd2cac07c3807 | <mods>/firstjoinmessage-1.20.0-3.1.jar                                                |                                                                                    |
|   140 | Geyser-Fabric                                  | geyser-fabric                                        | 2.1.1-SNAPSHOT           | Fabric  | aacb6f40550dc347b1de9824d4bf04d20b381450 | <mods>/geyser-fabric-2.1.1-SNAPSHOT%2Bbuild.182.jar                                   |                                                                                    |
|    87 | Glowing Torchflower                            | glowing-torchflower                                  | 1.0.0                    | Fabric  | 4cca96f4bd3c0b0b2e6d61cd3d506d6e95cc254c | <mods>/glowing-torchflower-mc1.20-rc1-1.0.0.jar                                       |                                                                                    |
|    88 | Healing Campfire                               | healingcampfire                                      | 5.1                      | Fabric  | 2da4c3606e9e7c971ba4b7c8a15ddb047a81538e | <mods>/healingcampfire-1.20.1-5.1.jar                                                 |                                                                                    |
|   123 | Ice Prevents Crop Growth                       | icepreventscropgrowth                                | 3.0                      | Fabric  | 28e07e49dd8ad07a51309b020eba4728ddbd10b5 | <mods>/icepreventscropgrowth-1.20.0-3.0.jar                                           |                                                                                    |
|    82 | Immersive structures                           | imst                                                 | 2.1.0                    | Fabric  | 1a239310e4020679338322ba9c7108305aa2a684 | <mods>/imst-2.1.0.jar                                                                 |                                                                                    |
|   131 | Immersive Structures:Nether edition            | imst_n                                               | 1.0.0                    | Fabric  | 7b7f6c4859c04f4f7280686ee549d01fbedb82eb | <mods>/imst_n-1.1.0.jar                                                               |                                                                                    |
|   136 | Inventory Totem                                | inventorytotem                                       | 3.0                      | Fabric  | 258dcbbe7c1aad2c4c5ae39c9489446aa1184e0c | <mods>/inventorytotem-1.20.0-3.0.jar                                                  |                                                                                    |
|    31 | Krypton                                        | krypton                                              | 0.2.3                    | Fabric  | 4d499819effd8afe811e5d93952fcc46765a00df | <mods>/krypton-0.2.3.jar                                                              |                                                                                    |
|    58 | Lithium                                        | lithium                                              | 0.11.2                   | Fabric  | c19b1fb8ffda09f5bd22cbef8691aa6fed181d90 | <mods>/lithium-fabric-mc1.20-0.11.2.jar                                               |                                                                                    |
|   124 | MC Server Description                          | mcserverdescription                                  | 4.0.0+1.20               | Fabric  | 7ec097918388d1a98db806e1254f51499e27caee | <mods>/mc-server-description-4.0.0%2B1.20.jar                                         |                                                                                    |
|   130 | Memory Leak Fix                                | memoryleakfix                                        | 1.1.1                    | Fabric  | 2bc5237993e08fd491d410bb646838cda4999bed | <mods>/memoryleakfix-fabric-1.17+-1.1.1.jar                                           |                                                                                    |
|    92 | MixinExtras                                    | com_github_llamalad7_mixinextras                     | 0.2.0-beta.8             | Fabric  |                                          | <mods>/memoryleakfix-fabric-1.17+-1.1.1.jar                                           | /META-INF/jars/mixinextras-fabric-0.2.0-beta.8.jar                                 |
|    73 | MixinTrace                                     | mixintrace                                           | 1.1.1+1.17               | Fabric  | 7fbb0130db0e427ee7180d304dfa65c46f0e3b69 | <mods>/mixintrace-1.1.1+1.17.jar                                                      |                                                                                    |
|    29 | Mobs Attempt Parkour                           | mobs_attempt_parkour                                 | 0.5-1.20                 | Fabric  | 61f79eb1aadcdace49295263d7d36457e56aef0d | <mods>/mobs-attempt-parkour-0.5-1.20.jar                                              |                                                                                    |
|   120 | No Chat Reports                                | nochatreports                                        | 1.20-v2.2.0              | Fabric  | 30ff140d0a1b369752086724659953eed0984b6f | <mods>/NoChatReports-FABRIC-1.20-v2.2.0.jar                                           |                                                                                    |
|   134 | No Hostiles Around Campfire                    | nohostilesaroundcampfire                             | 5.6                      | Fabric  | 9dd3e4b796f8a934f05c2231574c21f3a0b118e6 | <mods>/nohostilesaroundcampfire-1.20.0-5.6.jar                                        |                                                                                    |
|   144 | Nutritious Milk                                | nutritiousmilk                                       | 3.1                      | Fabric  | 66b1c743e6a2130e07ac575868e9ca83ab01ede4 | <mods>/nutritiousmilk-1.20.0-3.1.jar                                                  |                                                                                    |
|     3 | oωo                                            | owo                                                  | 0.11.0+1.20              | Fabric  | f7405909180eef5d903ebf0cb7ed19007a166247 | <mods>/owo-lib-0.11.0+1.20.jar                                                        |                                                                                    |
|   135 | Packet Tweaker                                 | packet_tweaker                                       | 0.3.1+23w06a             | Fabric  |                                          | <mods>/fastback-0.11.0+1.20.0.jar                                                     | /META-INF/jars/packet-tweaker-0.3.1+23w06a.jar                                     |
|     6 | Plasmo Voice                                   | plasmovoice                                          | 2.0.5                    | Fabric  | f28dcd9e7ba3f07aede2a5557faf9d9e538ee89  | <mods>/plasmovoice-fabric-1.20-2.0.5.jar                                              |                                                                                    |
|   125 | Rain Be Gone Ritual                            | rainbegoneritual                                     | 3.0                      | Fabric  | ef09736f5652304c12504c05bdffb1dfcf33fa03 | <mods>/rainbegoneritual-1.20.0-3.0.jar                                                |                                                                                    |
|   160 | Random Shulker Colours                         | randomshulkercolours                                 | 3.0                      | Fabric  | e7ccbdcd75d34726c3de7b2411637e1da12cc67b | <mods>/randomshulkercolours-1.20.0-3.0.jar                                            |                                                                                    |
|    65 | Scaffolding Drops Nearby                       | scaffoldingdropsnearby                               | 3.0                      | Fabric  | 6b88bdfcdcbbc2717847600bbc4f13befc5383ad | <mods>/scaffoldingdropsnearby-1.20.0-3.0.jar                                          |                                                                                    |
|   104 | Spiders Produce Webs                           | spidersproducewebs                                   | 3.1                      | Fabric  | acb126d8899296d90943accce6e660da794cf74e | <mods>/spidersproducewebs-1.20.0-3.1.jar                                              |                                                                                    |
|   127 | Stackables                                     | stackables                                           | 1.2.1                    | Fabric  | 1e004362b334afbba56b5f855b10fe8eb5c7006c | <mods>/stackables-1.2.1%2B1.20.jar                                                    |                                                                                    |
|    63 | Stonecutter Damage                             | stonecutter_damage_mr                                | 1-mcmeta-13              | Quilt   | fd62548ac4ecf3ddc8f9955ebe1b2a7795baf7c3 | <mods>/stonecutter-damage-1.19.4-mcmeta-13.jar                                        |                                                                                    |
|    15 | Subterrestrial                                 | subterrestrial                                       | 2.2.0                    | Fabric  | bdf1f8fa67ebf9c37503e2acba98dbd5b1e5b924 | <mods>/subterrestrial-fabric-1.20-2.2.0.jar                                           |                                                                                    |
|    85 | Tick Stasis                                    | tick-stasis                                          | 1.0.0                    | Fabric  | 183b424085ef73ad8191656a126ff797622a471f | <mods>/tick-stasis-1.0.0.jar                                                          |                                                                                    |
|     0 | Transferable Pets                              | transferable_pets                                    | 1.0.1                    | Fabric  | 2606c9612df7dbbaebeb631614df13e6dac9000c | <mods>/transferable_pets-1.0.1.jar                                                    |                                                                                    |
|    30 | Trimmable Tools                                | trimmable_tools                                      | 1.0.4                    | Fabric  | 8fc6081645508d3fadc3b0726239df6b4a521ae2 | <mods>/trimmable-tools-mc1.20-v1.0.4.jar                                              |                                                                                    |
|    46 | Vanilla Refresh                                | vanilla_refresh_mr                                   | 1.4.16a                  | Quilt   | b0c77879bb0353aac40c9c2e00f3e3ffc080ec8c | <mods>/vanilla-refresh-1.4.16a.jar                                                    |                                                                                    |
|    90 | View Distance Fix                              | viewdistancefix                                      | 1.20-1.0.0               | Fabric  | e0875032b12c89385f7923ac3a5341c3d12da6f0 | <mods>/viewdistancefix-1.20-1.0.0.jar                                                 |                                                                                    |
|    44 | Villager Names                                 | villagernames                                        | 4.5.1                    | Fabric  | 4725768230af23fb60a53fcabbb0354180e75deb | <mods>/villagernames-1.20-4.5.1.jar                                                   |                                                                                    |
|   111 | Xaero's Minimap                                | xaerominimap                                         | 23.4.4                   | Fabric  | b2460713b13e3ef19c10a01f21b9202886515f75 | <mods>/Xaeros_Minimap_23.4.4_Fabric_1.20.jar                                          |                                                                                    |
|    72 | Xaero's World Map                              | xaeroworldmap                                        | 1.30.4                   | Fabric  | 5bc9f68dce831c73912ed00ae5352e70b3748997 | <mods>/XaerosWorldMap_1.30.4_Fabric_1.20.jar                                          |                                                                                    |
|   142 | YetAnotherConfigLib                            | yet_another_config_lib_v3                            | 3.0.1+1.20               | Fabric  | 16fecb6e49775715a8e15f9ee55dedace2f41f32 | <mods>/yet-another-config-lib-fabric-3.0.1%2B1.20.jar                                 |                                                                                    |
|------:|------------------------------------------------|------------------------------------------------------|--------------------------|---------|------------------------------------------|---------------------------------------------------------------------------------------|------------------------------------------------------------------------------------|

Hmmm… sorry, I’m not seeing any obvious outliers here. And due to the nature of the issue, it could be caused by practically any mod, but my first suspicions would be any mod, that touches networking or world generation. If it gets stuck after saving consistently every single time, you could create a separate world (just change the world name in server.properties) and then start removing mods in batches until you can no longer reproduce this. It’s not going to be fun, but that’s what I would’ve done.

1 Like

Took a while, but Plasmo Voice seems to be the culprit. However MCDiscordChat seems to also cause this behavior often (though it actually says it’s waiting for something so eh…).

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.