LuckPerms

LuckPerms

41.4k Downloads

Exception stopping the server

Mrgaton opened this issue ยท 11 comments

commented

Description

[17:41:26] [Server thread/ERROR]: Exception stopping the server
java.util.concurrent.RejectedExecutionException: null
at java.util.concurrent.ForkJoinPool.externalPush(ForkJoinPool.java:2179) ~[?:?]
at java.util.concurrent.ForkJoinPool.externalSubmit(ForkJoinPool.java:2196) ~[?:?]
at java.util.concurrent.ForkJoinPool.execute(ForkJoinPool.java:2664) ~[?:?]
at me.lucko.luckperms.common.plugin.scheduler.SchedulerAdapter.executeAsync(SchedulerAdapter.java:56) ~[LuckPerms-Fabric-5.4.102.jar:?]
at me.lucko.luckperms.common.plugin.util.AbstractConnectionListener.handleDisconnect(AbstractConnectionListener.java:120) ~[LuckPerms-Fabric-5.4.102.jar:?]
at me.lucko.luckperms.fabric.listeners.FabricConnectionListener.onDisconnect(FabricConnectionListener.java:135) ~[LuckPerms-Fabric-5.4.102.jar:?]
at net.fabricmc.fabric.api.networking.v1.ServerPlayConnectionEvents.lambda$static$4(ServerPlayConnectionEvents.java:59) ~[fabric-networking-api-v1-1.3.11+1802ada577-4657550f9c265bf4.jar:?]
at net.fabricmc.fabric.impl.networking.server.ServerPlayNetworkAddon.invokeDisconnectEvent(ServerPlayNetworkAddon.java:136) ~[fabric-networking-api-v1-1.3.11+1802ada577-4657550f9c265bf4.jar:?]
at net.fabricmc.fabric.impl.networking.AbstractNetworkAddon.handleDisconnect(AbstractNetworkAddon.java:131) ~[fabric-networking-api-v1-1.3.11+1802ada577-4657550f9c265bf4.jar:?]
at net.minecraft.class_3244.handler$zmd001$fabric-networking-api-v1$handleDisconnection(class_3244.java:2007) ~[server-intermediary.jar:?]
at net.minecraft.class_3244.method_10839(class_3244.java) ~[server-intermediary.jar:?]
at net.minecraft.class_2535.method_10768(class_2535.java:450) ~[server-intermediary.jar:?]
at net.minecraft.class_1255.method_19537(class_1255.java:87) ~[server-intermediary.jar:?]
at net.minecraft.class_3244.method_14367(class_3244.java:356) ~[server-intermediary.jar:?]
at net.minecraft.class_3324.method_14597(class_3324.java:800) ~[server-intermediary.jar:?]
at net.minecraft.server.MinecraftServer.method_3782(MinecraftServer.java:584) ~[server-intermediary.jar:?]
at net.minecraft.class_3176.method_3782(class_3176.java:537) ~[server-intermediary.jar:?]
at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:703) ~[server-intermediary.jar:?]
at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:265) ~[server-intermediary.jar:?]
at java.lang.Thread.run(Thread.java:842) ~[?:?]

Reproduction Steps

use the command stop

Expected Behaviour

stop the server

Server Details

fabric 1.20.1

LuckPerms Version

LuckPerms-Fabric-5.4.102.jar

Logs and Configs

No response

Extra Details

No response

commented

I'm also seeing this error.
I've also had instances of entities disappearing off the server when this happens, though this seems to be due to an interaction with a plugin which I'm writing and could be my fault.

commented

I've also had instances of entities disappearing off the server when this happens

luckperms does not touch the world, so its incredibly unlikely that luckperms would cause entities to disappear. also you say you are writing a plugin, which implies you are running on a bukkit based platform, where this exact error could not possibly occur. If you are in fact running a bukkit based platform, please open a new issue with the exact error (or ideally a full log, uploaded to a pastebin)

commented

I'm also seeing this error. I've also had instances of entities disappearing off the server when this happens, though this seems to be due to an interaction with a plugin which I'm writing and could be my fault.

I'm not using plugin's I'm on the fabric version of the mod

commented

luckperms does not touch the world, so its incredibly unlikely that luckperms would cause entities to disappear. also you say you are writing a plugin, which implies you are running on a bukkit based platform, where this exact error could not possibly occur. If you are in fact running a bukkit based platform, please open a new issue with the exact error (or ideally a full log, uploaded to a pastebin)

I'm using fabric. The plugin (or mod if you prefer) I mentioned is trivial. It's only function is to create chunk tickets which follow minecarts around the world. Sometimes when this crash occurs, entities tracked by the plugin disappear from the world. It's definitely correlated with the crash, but as neither LP nor my mod modify the state of entities, I suspect that it has more to do with the timing of the crash than it does with anything either plugin is actually doing. See here for server logs.

Happy to attempt to reproduce on a clean server if you think that would be helpful.

commented

Ok if it crashes again I will upload full crash log and normal logs

commented

Something else I've noticed is that it only ever seems to happen when someone is online. If nobody is on the server when it's stopped, the crash doesn't occur. A workaround might be to kick all players before issuing the stop command.

Another thing that might work is running save-all and save-off before stop, to prevent the crash from interfering with save state (which it seems to do sometimes).

commented

Something else I've noticed is that it only ever seems to happen when someone is online. If nobody is on the server when it's stopped, the crash doesn't occur. A workaround might be to kick all players before issuing the stop command.

Another thing that might work is running save-all and save-off before stop, to prevent the crash from interfering with save state (which it seems to do sometimes).

My Forge servers are having this issue as well. Did the above work around have success?

commented

I found a temporary fix (not really a fix, deleted the libs folder in luckperms and then started the server and only fixed it for one or two restarts)

commented

Curious if anyone here managed to find a possible solution to these issues with restarting their server?

commented

Hello, is there a fix planned for this issue ?

commented

I met the same issue, please fix it