Essentials icon indicating copy to clipboard operation
Essentials copied to clipboard

Offline-Related player issues

Open ILikeOrangeJuice opened this issue 1 year ago • 26 comments

Type of bug

Other unexpected behaviour

/ess dump all output

https://essentialsx.net/dump.html?bytebin=BnKtOvm3V0

Error log (if applicable)

Bug description

Since the changes to offline players in this dev build patch Maintain strong reference for online users (https://github.com/EssentialsX/Essentials/pull/6247) it seems to have broken many commands related to offline players.

I do use the latest available dev build at this point right now on paper 1.21.4.

Before it used to just "work", but now things such as tpoffline, seen etc. just say the user never joined the server before.

Steps to reproduce

Run paper 1.21.4 Run at least said dev build (since it happens on last currently too, just use that one?) Join with a account, go off and use said commands on that account

Expected behaviour

To output the right information

Actual behaviour

Mentioned above.

Additional Information

ILikeOrangeJuice avatar Aug 22 '25 15:08 ILikeOrangeJuice

I noticed this issue the other day; I was trying to /tempban an offline user but it said it couldn't find them. Interestingly, when I ran the command from the server console instead of in-game, it worked just fine.

saucylegs avatar Aug 22 '25 18:08 saucylegs

also seeing this issue both in-game and on the console

CC-Odin avatar Aug 25 '25 18:08 CC-Odin

Likewise, this is happening on my server as well.

FellowNeighbour avatar Aug 27 '25 17:08 FellowNeighbour

@saucylegs @almecho @FellowNeighbour can you all run /ess dump all and send me the link?

JRoy avatar Sep 01 '25 00:09 JRoy

@saucylegs @almecho @FellowNeighbour can you all run /ess dump all and send me the link?

https://essentialsx.net/dump.html?bytebin=nAp1p1GoL3

FellowNeighbour avatar Sep 01 '25 04:09 FellowNeighbour

I have this same issue.

https://essentialsx.net/dump.html?bytebin=bhf7ynW8CR

ZepsiZola avatar Sep 01 '25 09:09 ZepsiZola

Same issue on my Server

forsakenliquid avatar Sep 01 '25 09:09 forsakenliquid

@saucylegs @almecho @FellowNeighbour can you all run /ess dump all and send me the link?

Yeah we're getting this on our 1.21.8 server, too. Here's our dump: https://essentialsx.net/dump.html?bytebin=RXl6NMs6UP

ghost avatar Sep 01 '25 18:09 ghost

Also having this issue and can't tpoffline to players offline 1.21.8 server https://essentialsx.net/dump.html?bytebin=XvUIAMX1xM

NotYoWaifu avatar Sep 03 '25 00:09 NotYoWaifu

@saucylegs @almecho @FellowNeighbour can you all run /ess dump all and send me the link?

@JRoy Here is a dump from shortly after restarting the server: https://essentialsx.net/dump.html?bytebin=A0gtfeeqXt

saucylegs avatar Sep 03 '25 08:09 saucylegs

Image

YYEA I have the exact same issue. It shows incorrect data in /seen.

CoreProtect shows the player was there 10 days ago, but Essentials says it was a month ago.

Something is incorrectly validating the data.

For example, when the system was in offline mode and then moved to online mode, there are two profiles in Essentials.

Image

GenOpenDiesel avatar Sep 03 '25 20:09 GenOpenDiesel

Image

There is something extremely odd going on here. Also, {UNQIUE} is no longer correct.

Player 1 joins: Image

Player 2 joins, but we've LOST 4 unique players???? Image

Both players joined one after each other, with player 2 joining second. I have to assume something to do with the online player count changing affected the number of unique players... Image

Carter4242 avatar Sep 04 '25 14:09 Carter4242

This should hopefully now be fixed in the latest dev build: https://next.essentialsx.net/downloads

Please let me know if this works for you guys!

PS: Thanks for your comment @Carter4242 who made me realize what the problem was.

JRoy avatar Sep 04 '25 15:09 JRoy

Applied this build on all our test and live instances, used /seen on a user that has been off for approx an hour from now, still says user has never joined the server unfortunately. Someone then, after applying the patches, joined our hub, where I used /seen username, which gave out the correct input, once the user went to another subserver and therefore offline, checking again, it says the user was never on the server. https://prnt.sc/E54wgx4hWMiY

Edit - Another dump if that helps: https://essentialsx.net/dump.html?bytebin=hu8Dk86zV6

ILikeOrangeJuice avatar Sep 04 '25 16:09 ILikeOrangeJuice

Applied this build on all our test and live instances, used /seen on a user that has been off for approx an hour from now, still says user has never joined the server unfortunately. Someone then, after applying the patches, joined our hub, where I used /seen username, which gave out the correct input, once the user went to another subserver and therefore offline, checking again, it says the user was never on the server. prnt.sc/E54wgx4hWMiY

Edit - Another dump if that helps: essentialsx.net/dump.html?bytebin=hu8Dk86zV6

can you do the same kind of debug seen in this reply https://github.com/EssentialsX/Essentials/issues/6277#issuecomment-3254069647

for a few join/leaves do /ess usermap cache and share how the numbers look

JRoy avatar Sep 04 '25 16:09 JRoy

can you do the same kind of debug seen in this reply #6277 (comment)

for a few join/leaves do /ess usermap cache and share how the numbers look

We're still getting the same problem. This is our usermap cache, what else do you need?

Image

ghost avatar Sep 04 '25 19:09 ghost

Sorry I just read it now. This is German, but I suppose the numbers are the important part, did it after our hub ran half a day with several joins/leaves. https://prnt.sc/qltoKXbwiFq0

ILikeOrangeJuice avatar Sep 06 '25 15:09 ILikeOrangeJuice

Running the latest dev build and the issue still occurs.

FellowNeighbour avatar Sep 07 '25 06:09 FellowNeighbour

We have identified an issue with the fix I had originally made, the next dev build should finally resolve this.

Note that your usermap may be missing the name -> uuid mappings for some users that have yet to rejoin your server.

To rebuild the missing usermap mappings;

  1. Stop your server
  2. Backup existing usermap.bin and uuids.bin (you can just rename them to usermap.bin.bak and uuids.bin.bak if you want)
  3. In your upgrades-done.yml change newUidCacheBuilt to false
  4. Start your server again.

you should notice all offline player functionality restored.

i apologize for the delay on these fixes and the issue to begin with.

JRoy avatar Sep 08 '25 01:09 JRoy

We have identified an issue with the fix I had originally made, the next dev build should finally resolve this.

Note that your usermap may be missing the name -> uuid mappings for some users that have yet to rejoin your server.

To rebuild the missing usermap mappings;

1. Stop your server

2. Backup existing usermap.bin and uuids.bin (you can just rename them to usermap.bin.bak and uuids.bin.bak if you want)

3. In your `upgrades-done.yml` change `newUidCacheBuilt` to false

4. Start your server again.

you should notice all offline player functionality restored.

i apologize for the delay on these fixes and the issue to begin with.

This fixed the issue, thank you.

FellowNeighbour avatar Sep 08 '25 10:09 FellowNeighbour