Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
OddDevelopment opened this issue Nov 1, 2023 · 9 comments
Open

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

OddDevelopment opened this issue Nov 1, 2023 · 9 comments
Labels
Bug / Fix Something isn't working and may need a fix Medium Priority Needs attention, not urgent

Comments

@OddDevelopment
Copy link

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 OddDevelopment added the Bug / Fix Something isn't working and may need a fix label Nov 1, 2023
@Ferks-FK
Copy link
Collaborator

Ferks-FK commented Nov 1, 2023

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.

@OddDevelopment
Copy link
Author

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

@Ferks-FK
Copy link
Collaborator

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.

@LavishSphere
Copy link

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

@sybetjeh
Copy link

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

@1day2die
Copy link
Collaborator

lol damn. thanks

@sybetjeh sybetjeh added the Low Priority Can wait, not urgent. Handle when possible label Apr 3, 2024
@sybetjeh
Copy link

@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 sybetjeh closed this as not planned Won't fix, can't repro, duplicate, stale Jul 27, 2024
@S0ly
Copy link
Member

S0ly commented Jul 27, 2024

I hope this is not problematic

@S0ly S0ly closed this as completed Jul 27, 2024
@1day2die 1day2die reopened this Jul 27, 2024
@S0ly
Copy link
Member

S0ly commented Jul 27, 2024

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 S0ly added Medium Priority Needs attention, not urgent and removed Low Priority Can wait, not urgent. Handle when possible labels Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug / Fix Something isn't working and may need a fix Medium Priority Needs attention, not urgent
Projects
None yet
Development

No branches or pull requests

6 participants