hello, we are trying to automate some test and we would like to do a daily build in aegir for testing purpose. we check the output of a site creation in aegir and also check in the documentation
- http://community.aegirproject.org/content/manage-your-aegir-system-command-line/index.html
- http://docs.aegirproject.org/en/3.x/
what we found was theses steps
- drush --uri="test.aegir-dev-01.xxx.com" --context_type='site' --platform="@platform_test" --server='@server_master' db_server='@server_localhost' --client_name='admin' provision-save "@test.aegir-dev-01.xxx.com"
- drush @test.aegir-dev-01.xxx.com provision-install
then when the platform is verify, it tries to import the new site and fail with this error
WD node: PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'platform_test' for key 'name': INSERT INTO {hosting_context} (nid, name) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1); Array ( [:db_insert_placeholder_0] => 974 [:db_insert_placeholder_1] => platform_test) in hosting_context_register() (line 1173 of /var/aegir/hostmaster-7.x-3.121/profiles/hostmaster/modules/aegir/hosting/hosting.module).
what would be the next step to add the new site in aegir without error?
one documentation statesĀ
"Importing the site is a bit different: Aegir will think it needs to 'install' the site even though we've already installed it. To work around this, simply execute a 'Verify' of the platform this site sits on, via the frontend. This will invoke a proper import of the site. (This probably needs to be improved in a future version of Aegir itself so we don't have to jump through such a hoop)"
but even that generate the same error