panel icon indicating copy to clipboard operation
panel copied to clipboard

[Bug]: Servers can be made with no server ID

Open OddDevelopment opened this issue 2 years ago • 9 comments
trafficstars

What is your request about?

When the panel is running kind of slow sometimes controlpanel will make a server in the database with no server ID instead of just giving an error, This gives users an error 500 on there servers page.

Error on servers page (after create): image

Showing it in DB: Screenshot 2023-11-01 071539

Branch

main

Solution idea

Make controlpanel make sure theres a server ID before adding the server to the database

Controlpanel Logs

No response

Additional Info

No response

OddDevelopment avatar Nov 01 '23 14:11 OddDevelopment

Can you explain more about "when the dashboard is running a bit slow"? Are you talking about the Ptero API or CPGG? Is the slowness a test done on your browser, or is the server slow? We need these details.

Ferks-FK avatar Nov 01 '23 15:11 Ferks-FK

I have a really bad network for my VPS hosting pterodactyl so it should have timed out but for some reason still made it on the DB.

Its the server that is slow not the browser

OddDevelopment avatar Nov 01 '23 17:11 OddDevelopment

I have not been able to reproduce this problem, every time the code fails, either due to a lack of allocation or a connection error with pterodactyl, the server is always excluded from the DB.

Ferks-FK avatar Dec 25 '23 13:12 Ferks-FK

It could be due to the fact we have over 3,500 servers on the database, even syncing most of the time fails.

LavishSphere avatar Dec 26 '23 03:12 LavishSphere

i was able to replicate this today^^, you need really very specific requirements.

limit your VPS's speed, and when it's creating a server (so its loading) you need to navigate to somewhere else like the homepage of your dashboard.

usually though once you then navigate back you'll see "null" popup and the server is deleted by cpgg, but sometimes i also get an 500. hit or miss

sybetjeh avatar Feb 17 '24 19:02 sybetjeh

lol damn. thanks

1day2die avatar Feb 19 '24 08:02 1day2die

@OddDevelopment contact us in the Discord if you still have this issue, this is something that isn't going to be occurring by an average user

sybetjeh avatar Jul 27 '24 16:07 sybetjeh

I hope this is not problematic

S0ly avatar Jul 27 '24 17:07 S0ly

this is a rare bug that hide a bigger problem, it that there may be no error handling in the code, would be nice that someone fix it <3

S0ly avatar Jul 27 '24 18:07 S0ly