LuckPerms

LuckPerms

41.4k Downloads

[Fabric] Permissions data for user was not loaded during the pre-login stage

Kikisito opened this issue ยท 9 comments

commented

Description

When you try to join a Fabric server through BungeeCord/Waterfall using FabricProxy, LuckPerms does not allow that login because player's data couldn't be loaded during the pre-login stage.

Reproduction steps

  1. Create a Fabric and a BungeeCord/Velocity server
  2. Put FabricProxy (only on Fabric server) and LuckPerms as mods
  3. Try to log in to the server and you'll see the error in the console.

Expected behaviour

A successful login was expected.

Environment details

  • Server type/version: Fabric running version 1.16.5 loader 0.11.1 and using Fabric API 0.30.0
  • FabricProxy version: v1.4.6
  • LuckPerms version: v5.2.99

Startup log and login try

Any other relevant details

I have also tested this using online-mode and Velocity and the same error occurs. I also saw similar closed issues but didn't help. I'm using everything up to date.

Also tested with FabricProxy-Lite (1.0.1)

commented

Please try again using LP v5.2.100 or newer (https://luckperms.net/download) & ensure debug-logins is set to true in the LP config.

If the issue still occurs, please could you provide console/log output again :)

commented

Hello!

I won't be able to test it until tonight, sorry for that. I'll answer you as soon as I can.

Thanks for your quick answer!

commented

Hi again.

I have tested LP v5.2.101 but the issue wasn't fixed. Here you have the console output.

[21:56:39] [Server thread/INFO]: Kikisito[/127.0.0.1:55490] logged in with entity id 217 at (253.5, 70.0, -156.5)
[21:56:39] [Server thread/INFO]: Processing login for 31c7be0d-89fc-401e-9d16-bafca8739984 - Kikisito
[21:56:39] [Server thread/WARN]: User 31c7be0d-89fc-401e-9d16-bafca8739984 - Kikisito doesn't currently have data pre-loaded - denying login.
[21:56:39] [Server thread/INFO]: Kikisito joined the game
[21:56:39] [Server thread/INFO]: Kikisito lost connection: [LP] Permissions data for your user was not loaded during the pre-login stage - unable to continue. Please try again later. If you are a server admin, please check the console for any errors.
[21:56:39] [Server thread/INFO]: Kikisito left the game
commented

If you're not seeing a log message saying "Processing pre-login..." then Fabric's ServerLoginConnectionEvents.QUERY_START event is not being fired.

This not an issue that can be caused by LuckPerms itself, and is either an issue with Fabric or another mod.

Sorry, not much more I can do to help.

commented

@lucko we're seeing exactly the same thing with velocity+fabric

commented

Hi again.

Thanks for your answer. I've been still trying to see what was happening for this and switched again to Velocity. I forgot to test the build using this proxy before (i'm really sorry for that!), and the console output is different.

[18:48:07] [Server thread/INFO]: Processing pre-login (sync phase) for 859a0db5-6499-3552-96ea-c8543a67ff75 - Kikisito
[18:48:07] [ForkJoinPool-4-worker-59/INFO]: Processing pre-login (async phase) for 859a0db5-6499-3552-96ea-c8543a67ff75 - Kikisito
[18:48:07] [Server thread/INFO]: Kikisito[/127.0.0.1:62988] logged in with entity id 188 at (253.5, 70.0, -156.5)
[18:48:07] [Server thread/INFO]: Processing login for 31c7be0d-89fc-401e-9d16-bafca8739984 - Kikisito
[18:48:07] [Server thread/WARN]: User 31c7be0d-89fc-401e-9d16-bafca8739984 - Kikisito doesn't currently have data pre-loaded - denying login.
[18:48:07] [Server thread/INFO]: Kikisito joined the game
[18:48:07] [Server thread/INFO]: Kikisito lost connection: [LP] Permissions data for your user was not loaded during the pre-login stage - unable to continue. Please try again later. If you are a server admin, please check the console for any errors.
[18:48:07] [Server thread/INFO]: Kikisito left the game

When using Velocity, the event seems to be fired as some log messages regarding pre-login are shown. Should I report this to Velocity's team? I'm not sure about this.

commented

Thanks again for answering and for your help. I'll report this to the author of FabricProxy as it seems the issue comes from there. Have a nice day.

commented

As you can see from the log, the pre-login event is being called with the UUID 859a0db5-6499-3552-96ea-c8543a67ff75 (looks like the offline mode UUID) and the login event with 31c7be0d-89fc-401e-9d16-bafca8739984 (looks like an online mode one!).

Both UUIDs should be the online one - this is most likely an issue with the mod which is providing Velocity support.

commented

This issue has been solved with the last version of FabricProxy-Lite (OKTW-Network/FabricProxy-Lite#1). I leave the link here if somebody needs info about this.