LuckPerms

LuckPerms

1M Downloads

LuckPerms failing to start server?

SleepyCatAce opened this issue · 11 comments

commented

Description

Server spits out an error when trying to update the server and files. It starts off like this

Could not execute entrypoint stage 'server' due to errors, provided by 'luckperms' at 'me.lucko.luckperms.fabric.LPFabricBootstrap'!

Reproduction Steps

  • Upload new mods to server files
  • Update server to 1.21.5
  • Try to start
  • Cry

Expected Behaviour

Expected behaviour is that the server starts.

Server Details

Fabric Loader 0.16.14 (1.21.5)

LuckPerms Version

v5.4.164

Logs and Configs

https://mclo.gs/njHZnZE

Extra Details

log file: https://gist.github.com/SleepyCatAce/30ce50e90701531e57ee305f4bd95a39

commented

Also getting this same issue, cannot start server.

commented

This older version seems to work ok from Modrinth
v5.4.158-fabric
v5.4.158 (Fabric 1.21.5)

commented

Im getting the same issue on LuckPerms-Fabric-5.4.164

va.lang.RuntimeException: Could not execute entrypoint stage 'server' due to errors, provided by 'luckperms' at 'me.lucko.luckperms.fabric.LPFabricBootstrap'!
        at net.fabricmc.loader.impl.FabricLoaderImpl.lambda$invokeEntrypoints$2(FabricLoaderImpl.java:403) ~[fabric-loader-0.16.14.jar:?]
        at net.fabricmc.loader.impl.util.ExceptionUtil.gatherExceptions(ExceptionUtil.java:33) ~[fabric-loader-0.16.14.jar:?]
        at net.fabricmc.loader.impl.FabricLoaderImpl.invokeEntrypoints(FabricLoaderImpl.java:401) ~[fabric-loader-0.16.14.jar:?]
        at net.fabricmc.loader.impl.game.minecraft.Hooks.startServer(Hooks.java:64) ~[fabric-loader-0.16.14.jar:?]
        at knot/net.minecraft.server.Main.main(Main.java:113) [server-intermediary.jar:?]
        at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:480) [fabric-loader-0.16.14.jar:?]
        at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74) [fabric-loader-0.16.14.jar:?]
        at net.fabricmc.loader.impl.launch.knot.KnotServer.main(KnotServer.java:23) [fabric-loader-0.16.14.jar:?]
        at net.fabricmc.loader.impl.launch.server.FabricServerLauncher.main(FabricServerLauncher.java:69) [fabric-loader-0.16.14.jar:?]
        at net.fabricmc.installer.ServerLauncher.main(ServerLauncher.java:69) [fabric-server-mc.1.21.5-loader.0.16.14-launcher.1.0.3.jar:1.0.3]
Caused by: java.lang.RuntimeException: Unable to create libs directory
        at knot/me.lucko.luckperms.common.dependencies.DependencyManagerImpl.setupCacheDirectory(DependencyManagerImpl.java:223) ~[LuckPerms-Fabric-5.4.164.jar:?]
        at knot/me.lucko.luckperms.common.dependencies.DependencyManagerImpl.<init>(DependencyManagerImpl.java:77) ~[LuckPerms-Fabric-5.4.164.jar:?]
        at knot/me.lucko.luckperms.common.plugin.AbstractLuckPermsPlugin.createDependencyManager(AbstractLuckPermsPlugin.java:336) ~[LuckPerms-Fabric-5.4.164.jar:?]
        at knot/me.lucko.luckperms.common.plugin.AbstractLuckPermsPlugin.load(AbstractLuckPermsPlugin.java:125) ~[LuckPerms-Fabric-5.4.164.jar:?]
        at knot/me.lucko.luckperms.fabric.LPFabricBootstrap.onInitializeServer(LPFabricBootstrap.java:134) ~[LuckPerms-Fabric-5.4.164.jar:?]
        at net.fabricmc.loader.impl.FabricLoaderImpl.invokeEntrypoints(FabricLoaderImpl.java:399) ~[fabric-loader-0.16.14.jar:?]
        ... 7 more
Caused by: java.nio.file.AccessDeniedException: /data/./mods/luckperms
        at java.base/sun.nio.fs.UnixException.translateToIOException(Unknown Source) ~[?:?]
        at java.base/sun.nio.fs.UnixException.rethrowAsIOException(Unknown Source) ~[?:?]
        at java.base/sun.nio.fs.UnixException.rethrowAsIOException(Unknown Source) ~[?:?]
        at java.base/sun.nio.fs.UnixFileSystemProvider.createDirectory(Unknown Source) ~[?:?]
        at java.base/java.nio.file.Files.createDirectory(Unknown Source) ~[?:?]
        at java.base/java.nio.file.Files.createAndCheckIsDirectory(Unknown Source) ~[?:?]
        at java.base/java.nio.file.Files.createDirectories(Unknown Source) ~[?:?]
        at knot/me.lucko.luckperms.common.util.MoreFiles.createDirectoriesIfNotExists(MoreFiles.java:64) ~[LuckPerms-Fabric-5.4.164.jar:?]
        at knot/me.lucko.luckperms.common.dependencies.DependencyManagerImpl.setupCacheDirectory(DependencyManagerImpl.java:221) ~[LuckPerms-Fabric-5.4.164.jar:?]
        at knot/me.lucko.luckperms.common.dependencies.DependencyManagerImpl.<init>(DependencyManagerImpl.java:77) ~[LuckPerms-Fabric-5.4.164.jar:?]
        at knot/me.lucko.luckperms.common.plugin.AbstractLuckPermsPlugin.createDependencyManager(AbstractLuckPermsPlugin.java:336) ~[LuckPerms-Fabric-5.4.164.jar:?]
        at knot/me.lucko.luckperms.common.plugin.AbstractLuckPermsPlugin.load(AbstractLuckPermsPlugin.java:125) ~[LuckPerms-Fabric-5.4.164.jar:?]
        at knot/me.lucko.luckperms.fabric.LPFabricBootstrap.onInitializeServer(LPFabricBootstrap.java:134) ~[LuckPerms-Fabric-5.4.164.jar:?]
        at net.fabricmc.loader.impl.FabricLoaderImpl.invokeEntrypoints(FabricLoaderImpl.java:399) ~[fabric-loader-0.16.14.jar:?]
        ... 7 more
commented

I'm using luckperms v5.5.0 on Minecraft 1.21.5,also getting this same issue

commented

I ended up redownloading the newest version on modrinth instead of the luck perms website and it seemed to work?

https://modrinth.com/plugin/luckperms

commented

I can also confirm LP V5.5.0 causes our Fabric server (Fabric Loader 0.16.14 (1.21.5)) to not start.
Roll back to LP V5.4.158 and the server starts as normal.

Slightly Different Error message but same result of the server not starting.

Console Error Message drop down

[03:01:00] [main/ERROR]: Failed to start the minecraft server
java.lang.RuntimeException: Could not execute entrypoint stage 'server' due to errors, provided by 'luckperms' at 'me.lucko.luckperms.fabric.LPFabricBootstrap'!
at net.fabricmc.loader.impl.FabricLoaderImpl.lambda$invokeEntrypoints$2(FabricLoaderImpl.java:403) ~[fabric-loader-0.16.14.jar:?]
at net.fabricmc.loader.impl.util.ExceptionUtil.gatherExceptions(ExceptionUtil.java:33) ~[fabric-loader-0.16.14.jar:?]
at net.fabricmc.loader.impl.FabricLoaderImpl.invokeEntrypoints(FabricLoaderImpl.java:401) ~[fabric-loader-0.16.14.jar:?]
at net.fabricmc.loader.impl.game.minecraft.Hooks.startServer(Hooks.java:64) ~[fabric-loader-0.16.14.jar:?]
at knot/net.minecraft.server.Main.main(Main.java:113) [server-intermediary.jar:?]
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:480) [fabric-loader-0.16.14.jar:?]
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74) [fabric-loader-0.16.14.jar:?]
at net.fabricmc.loader.impl.launch.knot.KnotServer.main(KnotServer.java:23) [fabric-loader-0.16.14.jar:?]
at net.fabricmc.loader.impl.launch.server.FabricServerLauncher.main(FabricServerLauncher.java:69) [fabric-loader-0.16.14.jar:?]
at net.fabricmc.installer.ServerLauncher.main(ServerLauncher.java:69) [server.jar:1.0.3]
Caused by: java.lang.NullPointerException: Cannot invoke "me.lucko.luckperms.common.config.LuckPermsConfiguration.get(me.lucko.luckperms.common.config.generic.key.ConfigKey)" because the return value of "me.lucko.luckperms.common.plugin.AbstractLuckPermsPlugin.getConfiguration()" is null
at knot/me.lucko.luckperms.common.plugin.AbstractLuckPermsPlugin.skipCommandRegistration(AbstractLuckPermsPlugin.java:396) ~[LuckPerms-Fabric-5.5.0.jar:?]
at knot/me.lucko.luckperms.fabric.LPFabricPlugin.registerFabricListeners(LPFabricPlugin.java:93) ~[LuckPerms-Fabric-5.5.0.jar:?]
at knot/me.lucko.luckperms.fabric.LPFabricBootstrap.onInitializeServer(LPFabricBootstrap.java:142) ~[LuckPerms-Fabric-5.5.0.jar:?]
at net.fabricmc.loader.impl.FabricLoaderImpl.invokeEntrypoints(FabricLoaderImpl.java:399) ~[fabric-loader-0.16.14.jar:?]
... 7 more

commented

can confirm this issue. log with only fabric api and LP: https://pastes.dev/n31RdQqwIW

@kijenasa your issue seems to be caused by file permissions. although you should fix that, until this is fixed, LP wont work unless you downgrade to 5.4.158

commented

Same error on NeoForge 21.5.73-beta and 21.5.75

	NeoForge: 21.5.73-beta
2025-06-07T01:28:40.153139370Z [01:28:40] [main/ERROR] [minecraft/Main]: Failed to start the minecraft server
2025-06-07T01:28:40.153149886Z net.neoforged.fml.ModLoadingException: Loading errors encountered:
2025-06-07T01:28:40.153153593Z 	- LuckPerms (luckperms) encountered an error while dispatching the net.neoforged.fml.event.lifecycle.FMLCommonSetupEvent event
2025-06-07T01:28:40.153157504Z 	  java.lang.NullPointerException: Cannot invoke "me.lucko.luckperms.common.config.LuckPermsConfiguration.get(me.lucko.luckperms.common.config.generic.key.ConfigKey)" because the return value of "me.lucko.luckperms.common.plugin.AbstractLuckPermsPlugin.getConfiguration()" is null
2025-06-07T01:28:40.153162186Z 
commented

The issue is introduced by this commit: 94e7e11

registerEarlyListeners is called before enable() so the configuration is not loaded yet

commented

downgrading to LuckPerms-Fabric-5.4.150 worked.

commented

Same error on NeoForge 21.5.73-beta and 21.5.75

	NeoForge: 21.5.73-beta
2025-06-07T01:28:40.153139370Z [01:28:40] [main/ERROR] [minecraft/Main]: Failed to start the minecraft server
2025-06-07T01:28:40.153149886Z net.neoforged.fml.ModLoadingException: Loading errors encountered:
2025-06-07T01:28:40.153153593Z 	- LuckPerms (luckperms) encountered an error while dispatching the net.neoforged.fml.event.lifecycle.FMLCommonSetupEvent event
2025-06-07T01:28:40.153157504Z 	  java.lang.NullPointerException: Cannot invoke "me.lucko.luckperms.common.config.LuckPermsConfiguration.get(me.lucko.luckperms.common.config.generic.key.ConfigKey)" because the return value of "me.lucko.luckperms.common.plugin.AbstractLuckPermsPlugin.getConfiguration()" is null
2025-06-07T01:28:40.153162186Z 

Also occurred on NeoForge 21.5.88 with LuckPerms 5.5.0