Mysterious sites/foo.restore directory

QClone or Migrate task fails with error “Failed to extract the contents of (path to backup archive here) to (path to platform here)/sites/foo.restore (The target directory could not be written to)”.

AThis may happen when there is a hidden copy of the site with the same name you are trying to use for Clone or Migrate, so the first step is to re-Verify the target platform, so Aegir could discover any hidden sites. The site can be hidden when you delete its node in Aegir instead of using Delete task or when some previous task failed to report results to the Aegir frontend – see this article for reference. It is also possible that you didn’t follow permissions related best practices or there was a code/drush error preventing clean rollback without leaving a leftover on the disk. Aegir creates a temporary copy of your site sites/foo directory with special name sites/foo.restore, so it can use it for automatic rollback when the task, typically Migrate or Clone, fails. If you can’t resolve this by running Verify task on the target platform and you have checked that there is a leftover sites/foo.restore in the filesystem, you have to delete it as root (when self-hosted) or submit Support Request. However, if there is no sites/foo.restore leftover in the filesystem, but in fact there is a hidden site with the same name as the site you have tried to Migrate, running Verify task on that platform will not help, because Aegir will not allow you to have two sites with the same name. You have to Rename the other existing site first, then re-Verify the platform with hidden site, so Aegir will add it to your control panel and then decide what to do – either keep the discovered site or delete it and Rename the original site back to its correct name, so you can try Migration again.

Create Account or request a free Test Drive
Already 900+ hosts powering thousands of Drupal sites are running on our high-performance Aegir BOA stack
© 2009-2023 Omega8.cc | ul. Zlota 59, 14th floor Skylight Building, 00-120 Warsaw, Poland | Twitter
Smokin’ Fast Drupal Hosting in Amsterdam · Chicago · Frankfurt · London
Madrid · New York · San Jose · Singapore · Sydney · Toronto · Warsaw