Deleting Aegir Sites

Events happening in the community are now at Drupal community events on www.drupal.org.
jacobson's picture

I recently tried to create a new site with Aegir, but the create failed. (The aegir MySQL user did not have correct privileges.) The site creation got far enough along that a Site node was created in Aegir, but the site was not functional. I decided to try to delete the site, but the delete failed because no DB existed. Then, I just deleted the site subdirectory under the platform's directory. Still, Aegir has a Site node for the site.

Is it possible to tell Aegir to delete a site (or platform) and ignore errors so that the deletion proceeds as to the parts that can succeed? How can I get this orphaned site out of my Aegir installation?

Thanks.

Comments

Such situations can occur

mig5's picture

Such situations can occur yes. At this stage there is no silver-bullet solution to achieve what you're needing to do, which is effectively a 'force' option in the task to plow on ahead despite the inability to bootstrap properly. Such work is something we'll be looking to include later in the roadmap. It also relates to the ability to 'Cancel' or 'Abort' a task that you know can not ever possibly be 'retried' and succeed, which will be introduced down the track.

For the moment, here is what I suggest doing in these situations (some of these won't apply to you):

1) Manually remove the site files on the server (sounds like you've done this already)
2) Drop the database (not in your case, it didn't get that far)
3) If your site node is nid '83', go to /node/83/delete and delete the node in your browser in the Aegir frontend. This will remove the site node and associated task nodes from the system, as well as remove the entry from the hosting_sites table in the database.

Until we develop a way to sanely handle these sorts of scenarios, it's unfortunately a manual process. Let us know if you have any other issues

Also works for platforms

StuddMan's picture

Also works for platforms. Thanks for posting, this is very useful even if just a workaround for now. I had a bunch of failed platforms and tasks that were driving me a little nuts (type A). Our Aegir install is back to being squeaky clean.

Thanks this worked for me

Mark Vincent Verallo's picture

Thanks this worked for me even before I get a reply for my support ticket.

Aegir hosting system

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: