Allocation are deleted, when you delete a Server #144

Closed
opened 2026-02-04 16:52:53 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @gOOvER on GitHub (Aug 13, 2024).

Originally assigned to: @Boy132 on GitHub.

Current Behavior

If you delete an existing server, the allocated ports in the node are also deleted

Expected Behavior

The allocated ports in the node should not be deleted, but released

Steps to Reproduce

  • add allocated ports; p.e 27001-27005
  • create a server with these ports
  • delete the server
  • check node allocated ports

Panel Version

1.0.0-beta7

Wings Version

1.0.0-beta3

Games and/or Eggs Affected

No response

Docker Image

No response

Error Logs

No response

Is there an existing issue for this?

  • I have searched the existing issues before opening this issue.
  • I have provided all relevant details, including the specific game and Docker images I am using if this issue is related to running a server.
  • I have checked in the Discord server and believe this is a bug with the software, and not a configuration issue with my specific system.
Originally created by @gOOvER on GitHub (Aug 13, 2024). Originally assigned to: @Boy132 on GitHub. ### Current Behavior If you delete an existing server, the allocated ports in the node are also deleted ### Expected Behavior The allocated ports in the node should not be deleted, but released ### Steps to Reproduce - add allocated ports; p.e 27001-27005 - create a server with these ports - delete the server - check node allocated ports ### Panel Version 1.0.0-beta7 ### Wings Version 1.0.0-beta3 ### Games and/or Eggs Affected _No response_ ### Docker Image _No response_ ### Error Logs _No response_ ### Is there an existing issue for this? - [X] I have searched the existing issues before opening this issue. - [X] I have provided all relevant details, including the specific game and Docker images I am using if this issue is related to running a server. - [X] I have checked in the Discord server and believe this is a bug with the software, and not a configuration issue with my specific system.
OVERLORD added the 🟢 easy label 2026-02-04 16:52:53 +03:00
Author
Owner

@rmartinoscar commented on GitHub (Aug 13, 2024):

953ee940aa/app/Services/Servers/ServerDeletionService.php (L80)

It shouldn't delete it
What's your Database driver ?

@rmartinoscar commented on GitHub (Aug 13, 2024): https://github.com/pelican-dev/panel/blob/953ee940aa5955dfdad452dbdc46f48ca5e5bb55/app/Services/Servers/ServerDeletionService.php#L80 It shouldn't delete it What's your Database driver ?
Author
Owner

@gOOvER commented on GitHub (Aug 13, 2024):

https://github.com/pelican-dev/panel/blob/main/app/Services/Servers/ServerDeletionService.php#L80

It shouldn't delete it What's your Database driver ?

sqlite

@gOOvER commented on GitHub (Aug 13, 2024): > https://github.com/pelican-dev/panel/blob/main/app/Services/Servers/ServerDeletionService.php#L80 > > It shouldn't delete it What's your Database driver ? sqlite
Author
Owner

@rmartinoscar commented on GitHub (Aug 13, 2024):

Could it be this ?

10806d6d6b/database/migrations/2024_07_12_095213_fix_missing_sqlite_foreign_keys.php (L161)

Im trying my best but im not at home rn

@rmartinoscar commented on GitHub (Aug 13, 2024): Could it be this ? https://github.com/pelican-dev/panel/blob/10806d6d6bcad8a875bdfc7fec7ecce2c6bced6c/database/migrations/2024_07_12_095213_fix_missing_sqlite_foreign_keys.php#L161 Im trying my best but im not at home rn
Author
Owner

@gOOvER commented on GitHub (Aug 13, 2024):

Before delete:
Pelican:
MoQgYW

sqlite.db:
bthETk

After Server delete:
Pelican:
AbUe45

sqlite.db:
5vGkY0

@gOOvER commented on GitHub (Aug 13, 2024): Before delete: **Pelican:** ![MoQgYW](https://github.com/user-attachments/assets/49d67a13-13a3-477c-b4f5-d4e84ba7d416) **sqlite.db:** ![bthETk](https://github.com/user-attachments/assets/3f4fcbf6-be26-4fb2-8b58-172cda9d1f51) After Server delete: **Pelican:** ![AbUe45](https://github.com/user-attachments/assets/a4773f0a-38f8-4353-9d30-fef083e6f10c) **sqlite.db:** ![5vGkY0](https://github.com/user-attachments/assets/6811331c-e451-411d-a32b-d813743fa601)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/panel#144