i deleted the "install task" for a site because it was using the openpublish platform..and i couldnt get it tto install correctly.....is there a way i can get it to re-install the site or creat the install task again....or is there a way to manually delete the site so that it can be reinstalled???

Comments

Anonymous’s picture

Presuming this was meant to be a new site and not one that you had imported that already has data, the easiest way will probably be to

a) Disable the site, then

b) Delete the site (the Delete tab appears on the site node when the site has been Disabled).

c) After it's Deleted, just go and Create Content > Site and effectively install it again as though you had never created it.

lloydpearsoniv’s picture

the problem is....aegir wont allow me to delete it

here's the log

Task starts processing
Running: php /var/aegir/drush/drush.php --root='/var/aegir/platforms/openpublish' 'provision' 'delete' 'openpublish.prollaboration.net' --backend
Drush bootstrap phase : _drush_bootstrap_drush()
Drush bootstrap phase : _drush_bootstrap_drupal_root()
Loading drushrc "/var/aegir/platforms/openpublish/drushrc.php" into "drupal" scope.
Initialized Drupal 6.13 root directory at /var/aegir/platforms/openpublish
Found command: provision delete
Initializing drush commandfile: provision_apache
Undefined index: base_url
Initializing drush commandfile: provision_drupal
Initializing drush commandfile: provision_mysql
Undefined index: db_url
Including /var/aegir/.drush/provision/web_server/delete.provision.inc
Including /var/aegir/.drush/provision/platform/delete.provision.inc
Including /var/aegir/.drush/provision/db_server/delete.provision.inc
Site was not found.
An error occurred at function : drush_provision_drupal_provision_delete_validate
Command dispatch complete
Removing task from hosting queue
An error occurred at function : drush_hosting_hosting_task
Changes for drush_hosting_hosting_task module have been rolled back.
Command dispatch complete

it says that "Site was not found"

Anonymous’s picture

We've a ticket for this: #529422: site not found failures on delete should still delete the site

In the meantime, perhaps try this:

1) delete the site node manually (find it through admin/content/node if the Delete button is not shown when editing the site node directly)

2) remove all the files manually from the server (rm -rf /path/to/the/site )

3) remove the vhost config for the site

4) You may need to remove the row manually in the hosting_site table (find the site's nid, then DELETE from hosting_site where nid = $whatever)

I am not sure about 4) and whether that's risky.. welcome opinions from anarcat or Vertice here. Fact of the matter is it'll probably leave some orphaned entries in hosting_package and hosting_package_instance maybe? but we've a separate bug report about orphans in hosting_package anyway so maybe this is less of an issue right at the current moment.

If the site never actually successfully installed, maybe it's not even in hosting_site after all.

So perhaps backup the aegir database first before you try and delete any rows manually from it.

omega8cc’s picture

From my experience it is enough and safe to just delete the node here: /admin/content/node/overview and it will delete all related tasks as well and next just remove manually the site dir in sites/sitedomain.com.

BTW, to install and use Open Publish you need to rename install profile and something more, see details: http://drupal.org/node/560998#comment-1976300

HTH
~Grace

Anonymous’s picture

Status: Active » Closed (fixed)

I feel we've outlined the steps here and it's also in the FAQ. Closing

Jon Pugh’s picture

Version: 6.x-0.4-alpha1 » 7.x-3.x-dev
Category: Support request » Bug report
Issue summary: View changes
Status: Closed (fixed) » Active
Issue tags: +important

This happens a lot... I believe I even have another issue open on this, I'll try to find it later.

Marking this as important because it affects user experience negatively.