Using hostmaster 1.7
reproduce
* Created server sles0045 and verified it
* Created server sles0044 and verified it
* Created platform d7sles0045 as /var/aegir/platforms/sles0045/drupal-7.12/ and verified it
* Installed web1.domain.com to sles0045 server using the d7sless0045 platform and minimal installation profile
* Created platform d7sles0044 as /var/aegir/platforms/sles0044/drupal-7.12/ and verified it
* Try to migrate web1.domain.com to sles0044 platform
It fails to error /var/aegir/platforms/sles0045/drupal-7.12/sites/web1.domain.com could not be removed from remote server sles0045. Changes might not be available until this has been done. (error: )
Full log here: http://pastebin.com/t6vSb2Xj
The rollback itself is not fully working, because now I have nothing working. All files are moved now to sles0044 server (the new platform), but aegir still thinks the web1.domain.com is using d7sles0045 platform in the sles0045 server. See the screenshots. Sles0045 is listing only settings.php.
Comment | File | Size | Author |
---|---|---|---|
aegir-platform-migrate-fails.png | 59.97 KB | wroxbox | |
aegir-migra-error-deleting-settings.php_.png | 119.21 KB | wroxbox |
Comments
Comment #1
Steven Jones CreditAttribution: Steven Jones commentedI'm going to re-purpose this issue, during a migrate, we get past a point of no-return and at this point we should just blunder on I think, rather than aborting, because this causes the frontend to get out of sync.
Comment #2
wroxbox CreditAttribution: wroxbox commented@StevenJones: Correct. Like in the situation I am having the rollback actually brakes more than fixes.
Comment #3
Steven Jones CreditAttribution: Steven Jones commentedI'm not 100% sure how we should go about fixing the issue, but I think the steps would look something like this:
drush_set_error
should be cleared.Comment #4
pooja.sarvaiye CreditAttribution: pooja.sarvaiye commentedI was not able to reproduce this issue with the steps mentioned above. I could migrate a site from one server platform to another server platform successfully. Can you provide more information which might help in reproducing the bug?
Comment #5
Steven Jones CreditAttribution: Steven Jones commentedProbably the easiest way to reproduce is to change a file within Drupal files directory of the site you're migrating to be owned by 'root', and make it read only, then the deletion of the old site should fail I think.
Comment #6
pooja.sarvaiye CreditAttribution: pooja.sarvaiye commentedMaking settings.php owned by root before starting migration caused migrate rollback with descriptive error messages like this:
Could not change permissions of /var/aegir/platforms/aegir-master-D7/sites/site3-am2.example.com/settings.php to 640 (chmod to 640 failed on /var/aegir/platforms/aegir-master-D7/sites/site3-am2.example.com/settings.php)
May be the bug incurred due to file permission change while migrate was in process.
Comment #7
Steven Jones CreditAttribution: Steven Jones commentedYeah, that's not quite what I said, because this would cause the migrate to be rolled back correctly I think.
You will need to create the file in the Drupal site's files directory.
Comment #8
Steven Jones CreditAttribution: Steven Jones commentedWould be nice to get this done in 6.x-2.x
Comment #9
ergonlogicNew features need to be implemented in Aegir 3.x, then we can consider back-porting to Aegir 2.x.