games647 / FastLogin

Checks if a minecraft player has a valid paid account. If so, they can skip offline authentication automatically. (premium auto login)
https://www.spigotmc.org/resources/fastlogin.14153
MIT License
499 stars 121 forks source link

Players need to login after auto-register #91

Closed Eufranio closed 7 years ago

Eufranio commented 7 years ago

I have a server with auto-register enabled. If a premium player join the first time, he is auto-registered, but AuthMe still asking for /login. If the player reconnect, he is auto logged in by being a premium user.

FastLogin build 624 from jenkins AuthMe Legacy build 1422 from jenkins Thermos 1.7.10 build 58

games647 commented 7 years ago

Could you enable debug logging and try it again?

Eufranio commented 7 years ago
[23:30:01 WARN]: Something's taking too long! 'root.connection' took aprox 498.949509 ms
[23:30:01 WARN]: Something's taking too long! 'root' took aprox 500.743958 ms
[23:30:05 INFO]: UUID of player PotterCraft_ is c42bf69f-d48a-3d29-b0c6-d21e6364039c
[23:30:05 WARN]: Something's taking too long! 'root.connection' took aprox 173.209174 ms
[23:30:05 WARN]: Something's taking too long! 'root' took aprox 173.618352 ms
[23:30:06 INFO]: Client protocol version 2
[23:30:06 INFO]: Client attempting to join with 4 mods : FML@7.10.99.99,Forge@10.13.4.1614,mcp@9.05,universalcoins@1.7.10-1.6.38-gamemods
[23:30:06 INFO]: Attempting connection with missing mods [kimagine, MyEssentials-Core, MyPermissions, MyTown2] at CLIENT
[23:30:06 INFO]: [Server thread] Server side modded connection established
[23:30:06 INFO]: PotterCraft_[/189.71.208.169:52912] logged in with entity id 77 at ([world] -664.0587039961996, 66.0, 581.7396369200912)
[23:30:06 INFO]: [DiscordSRV] Player PotterCraft_ joined with silent joining permission, not sending a join message
[23:30:07 WARN]: Something's taking too long! 'root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.connection' took aprox 179.116407 ms
[23:30:07 WARN]: Something's taking too long! 'root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.levels' took aprox 313.041664 ms
[23:30:07 INFO]:  +  PotterCraft_
[23:30:09 WARN]: Something's taking too long! 'root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.levels.world.tick' took aprox 101.483609 ms
[23:30:09 WARN]: Something's taking too long! 'root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.levels.world' took aprox 101.777241 ms
[23:30:09 WARN]: Something's taking too long! 'root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.levels' took aprox 102.076375 ms
[23:30:12 WARN]: Something's taking too long! 'root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.levels.world.tick.entities.blockEntities' took aprox 187.768952 ms
[23:30:12 WARN]: Something's taking too long! 'root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.levels.world.tick.entities' took aprox 191.009262 ms
[23:30:12 WARN]: Something's taking too long! 'root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.levels.world.tick' took aprox 193.43519 ms
[23:30:12 WARN]: Something's taking too long! 'root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.levels.world' took aprox 193.482914 ms
[23:30:12 WARN]: Something's taking too long! 'root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.root.levels' took aprox 193.664574 ms

That's what appears in console after /debug start and connect by the first time (in both AuthMe and FastLogin databases). When I log by the first time, in chat: http://prnt.sc/cyhjlz

It's related to MySQL database. Whe using SQLite as database, I don't have problems, but using MySQL as AuthMe database, seems that it doesn't search in the tables in the moment the player logs in.

games647 commented 7 years ago

That's what appears in console after /debug start

Please try it with enable debug logging in the spigot.yml. The actual debug log from FastLogin is missing here.

Eufranio commented 7 years ago

My server software (Thermos) doesn't have the debug from spigot, because it uses Spigot 1.7.10 yet, if there is another way to test it... The steps to reproduce are clear

games647 commented 7 years ago

Could you send me your config?

Eufranio commented 7 years ago

FastLogin config: http://hastebin.com/huhohuwito.bash AuthMe config: http://hastebin.com/oqaxenujuy.bash

Happens only if AuthMe is in MySQL mode.

Eufranio commented 7 years ago

News?

games647 commented 7 years ago

Happens only if AuthMe is in MySQL mode.

I tried it with SQLite both and it worked. I think the AuthMe API is returning invalid data if MySQL is configured. I try it out.

games647 commented 7 years ago

I tried it and it worked for me. AuthMe MySQL and FastLogin SQLite. Both tested with Thermos and Spigot.

Eufranio commented 7 years ago

Okay, did you try with a external MySQL server (non-localhost)? The issue seems to be with it then, because I tested like 5 times...

games647 commented 7 years ago

So I tested it with a external MySQL too and it worked the same way.

games647 commented 7 years ago

You tested it with a fresh AuthMe and FastLogin database?

Eufranio commented 7 years ago

Yes. Tested with both fresh install and with each database type, the issue started happening when i wiped the AuthMe database and switched it to MySQL...

ghost commented 7 years ago

I am also having this issue.

Eufranio commented 7 years ago

@Boomclaw are you running a modded server?

ghost commented 7 years ago

I am running TacoSpigot.

games647 commented 7 years ago

What your plugin list? @Eufranio @Boomclaw

ghost commented 7 years ago

I'm out at the moment, I'll get it to you later. It only has this issue when AuthMe uses MySQL. With SQLite it works perfectly fine.

games647 commented 7 years ago

Does it happen every time?

Eufranio commented 7 years ago

Yes, every time that a new user joins the server.

Plugins (47): aUCVault, Itemizer, WorldEdit, OpenInv, Offline_Teleporter, BetterChunkLoader, ClearLag, AutoMessage, PlugMan, VipZeroFIX, Votifier, ConsoleSpamFix, ProtocolLib, WorldGuard, AutoSaveWorld, MagiUtils, MultiWorld, ChatReaction, eZProtector, AsyncWorldEdit, UUIDFetcher, SimpleORM, VIPSlots, PermissionsEx, Magi-GUI, Vault, MyCommand, BungeeTabListPlus, BetterAlias, ItemRestrict, FastLogin, xKit, Essentials, ScoreboardStats, Trading, RandomTP, HolographicDisplays, VipZero, Citizens, Legendchat, TagsGUI-2.0, ChestCommands, DiscordSRV, FramePicture, EssentialsSpawn, AuthMe, AuthMeBridge

games647 commented 7 years ago

@Boomclaw Your plugin list please?

Especially if you use AuthMeBridge.

Eufranio commented 7 years ago

news?

games647 commented 7 years ago

@Eufranio Do you tried it also without AuthMeBridge?

Eufranio commented 7 years ago

Yes, I have, in a clean installation of FastLogin + AuthMe in MySQL mode. If MySQL is enabled in AuthMe, the issue happens.

games647 commented 7 years ago

Does it only happen after the first join?

Eufranio commented 7 years ago

Yes, only after the first login, they need to reconnect to be logged.

Eufranio commented 7 years ago

Fixed it by setting AuthMe to login the player after register...

Abdalion commented 6 years ago

fixed setting useAsynk to false.