panel icon indicating copy to clipboard operation
panel copied to clipboard

Can't delete database host

Open abakisensoy opened this issue 7 years ago • 8 comments

Background (please complete the following information):

  • Panel or Daemon: Panel
  • Version of Panel/Daemon: Your panel is not up-to-date! The latest version is 0.7.15 and you are currently running version 0.7.14.
  • Server's OS: ubuntu 16.04
  • Your Computer's OS & Browser: chrome

Describe the bug

We lost our database host. We had many databases for many game servers. We cannot delete database host.

To Reproduce Steps to reproduce the behavior:

  1. Go to databases
  2. Click on database host and click delete icon
  3. See error : Cannot delete a database host server that has active databases linked to it.

Expected behavior We want to be able to delete a database whether or not you can connect to it.

abakisensoy avatar Aug 18 '19 18:08 abakisensoy

Your error is due to the db host having associated servers with it. Go to the db and see what servers are using it. Delete the db from these servers and than delete the db host. Also update your panel and this is a matter for the #support chanel here https://discord.gg/pGFg9Ma

DomiiBunn avatar Aug 18 '19 18:08 DomiiBunn

We lost our database host so we dont have access to it. Our server's ssd is burnt.

When we try to delete a database from a game server it also gives error: An error occurred while processing this request.

abakisensoy avatar Aug 18 '19 18:08 abakisensoy

It is not an issue of the panel not accessing the db host but the host being associated with game servers. Jump into discord mentioned above and we'll help you out in detail.

DomiiBunn avatar Aug 18 '19 18:08 DomiiBunn

Recover your database server and all will be fine. Or delete one by one each database for each server accross the panel then you can delete the main database.

Biorn1950 avatar Aug 21 '19 05:08 Biorn1950

He probably can't delete the databases, as the db host can't be reached. We should probably make this possible, at least via CLI. To solve the issue now you can, carefully, delete the database entries for the DB and the related databases manually. The tables should be called database_servers and databases. Find the id of the database you want to delete, then delete all databases that have said id as db_server.

schrej avatar Aug 21 '19 09:08 schrej

He probably can't delete the databases, as the db host can't be reached. We should probably make this possible, at least via CLI. To solve the issue now you can, carefully, delete the database entries for the DB and the related databases manually. The tables should be called database_servers and databases. Find the id of the database you want to delete, then delete all databases that have said id as db_server.

I solved it with your method. Thanks.

abakisensoy avatar Aug 21 '19 10:08 abakisensoy

Sorry @parkervcp I missed this one in the list :)

Uneo7 avatar Aug 27 '19 13:08 Uneo7

Closing as this was opened pre-1.0

DaneEveritt avatar Mar 28 '22 18:03 DaneEveritt