GC-spigot / battle-pass

The best battle pass plugin on Spigot
56 stars 15 forks source link

bp leaderboard crash servers #558

Closed Z3r0xh closed 4 months ago

Z3r0xh commented 4 months ago

Describe the bug

when I run the command my server crashes

How to reproduce

use /bp leadeboard

Screenshots / Videos

No response

Server Log

https://mclo.gs/UihnQwe

KPGTB commented 4 months ago

Hey! I can't reproduce this problem - everything works fine on my test server, but I made a small refactor in leaderboard controller (in the method which caused this crash) and maybe it'll fix that problem. Probably the next update will add this change, so after that I'll let you know. Please check after update if problem is fixed.

Z3r0xh commented 4 months ago

Hey! I can't reproduce this problem - everything works fine on my test server, but I made a small refactor in leaderboard controller (in the method which caused this crash) and maybe it'll fix that problem. Probably the next update will add this change, so after that I'll let you know. Please check after update if problem is fixed.

I have the latest version uploaded today, the problem persists.

https://mclo.gs/TyUm3w0

I am using Purpur Version: 1.20.6-2233-0d6766e (MC: 1.20.6)

I have also tried only with these plugins and I get the same crash error

https://mclo.gs/AXIpZnM

image

KPGTB commented 4 months ago

Hey! I need more info to reproduce this error.

1) Do you use file storage or mysql? 2) Can you send me users storage? If you use files method, just send me folder users (or users-storage) from BattlePass folder. If you use mysql, please export bp users table. If you don't want to send it here, just send me it on discord kpgtb 3) Where do you host your server and which hosting plan do you use? 4) Can you try to test plugin locally (making server on own computer) 5) Can you try plugin with only placeholderapi? (wothout any other plugin)

We need to find what causes that problem, because on clean local server everything works fine

Z3r0xh commented 4 months ago

Hey! I need more info to reproduce this error.

  1. Do you use file storage or mysql?
  2. Can you send me users storage? If you use files method, just send me folder users (or users-storage) from BattlePass folder. If you use mysql, please export bp users table. If you don't want to send it here, just send me it on discord kpgtb
  3. Where do you host your server and which hosting plan do you use?
  4. Can you try to test plugin locally (making server on own computer)
  5. Can you try plugin with only placeholderapi? (wothout any other plugin)

We need to find what causes that problem, because on clean local server everything works fine

  1. I use mysql
  2. I'll leave it in the discord ticket for you.
    1. bloom performance+
  3. Right now it is impossible for me because I am not working with my personal PC.
  4. same problem

I'm going to try tomorrow to use my server to do a clean installation of it, but I won't be able to until tomorrow.

Z3r0xh commented 4 months ago

Hey! I need more info to reproduce this error.

  1. Do you use file storage or mysql?
  2. Can you send me users storage? If you use files method, just send me folder users (or users-storage) from BattlePass folder. If you use mysql, please export bp users table. If you don't want to send it here, just send me it on discord kpgtb
  3. Where do you host your server and which hosting plan do you use?
  4. Can you try to test plugin locally (making server on own computer)
  5. Can you try plugin with only placeholderapi? (wothout any other plugin)

We need to find what causes that problem, because on clean local server everything works fine

It is a problem with the database, after trying a clean installation and everything is fine. It has been connecting the plugin to the database that it already had for 2 months and this error remains.

Z3r0xh commented 4 months ago

https://mclo.gs/zvmCtTm

KPGTB commented 4 months ago

Hey! I fixed a bug which caused server crashing. It will be merged & uploaded to download platforms asap.

According to your last comment about Duplicate entry error. When it happened? Also, did you have any other errors? It's still showing after server restart? If yes, please provide more details in a new issue - it's not related to crash bug and this issue will be automatically closed when GC merge my PR.

Sorry for these problems with our plugin, KPG-TB