Hello, is this a bug? I'm trying to delete an offl...
# fleet
e
Hello, is this a bug? I'm trying to delete an offline host and this happens. This is the response from the server.
Copy code
{
  "message": "Validation Failed",
  "errors": [
    {
      "name": "base",
      "reason": "Error 1451: Cannot delete or update a parent row: a foreign key constraint fails (`fleet`.`host_software`, CONSTRAINT `host_software_ibfk_1` FOREIGN KEY (`host_id`) REFERENCES `hosts` (`id`))"
    }
  ]
}
t
hi Esteban, how are you trying to delete the host?
e
On host details, clicking on Delete
I think there's a constraint since that host has software related to him
t
will look into it
ah yes, it doesn't have the delete cascade
you were running mariadb, correct? could you remind me the version?
e
10.5.4
t
all right, just pushed a pull request to address this issue. Should be available in the next release. In the meantime, as a work around would be to clear the host_software for that host by hand
e
Understood, thank you!