- Issue created by @Eric MORAND
Drupal 8.7.9 → was released on November 6 and is the final full bugfix release for the Drupal 8.7.x series. Drupal 8.7.x will not receive any further development aside from security fixes. Sites should prepare to update to 8.8.0 on December 4, 2019. ( Drupal 8.8.0-beta1 → is available for testing.)
Bug reports should be targeted against the 8.8.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.9.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule → and the Allowed changes during the Drupal 8 and 9 release cycles → .
- 🇫🇮Finland rpsu
works as intended, and IMHO helps in development process, too.
- 🇬🇧United Kingdom alexpott 🇪🇺🌍
So I think there might be some mileage in allowing this but we need test coverage and also we need to ensure that the site UUID is not updated to be empty. Which is what I think the patch would result in.
Also this is not a bug fix. The system is working as designed.
Also now that you can install a site from configuration via the installer I'm not entirely convinced that this is actually that useful.
- 🇺🇸United States loopy1492
People are doing this because of the issue regarding default entities existing on a BLT build, causing BLT to fail out because it can't over-write them. There needs to be some logic that allows configuration to totally over-ride any existing default entities without throwing a failure to Pipelines. Until then, this patch is necessary.
- 🇺🇸United States loopy1492
This is what we get when we try to import an existing configuration into a blank BLT setup.
[error] Drupal\Core\Config\ConfigImporterException: There were errors validating the config synchronization. Site UUID in source storage does not match the target storage. Entities exist of type <em class="placeholder">Shortcut link</em> and <em class="placeholder">Shortcut set</em> <em class="placeholder">Default</em>. These entities need to be deleted before importing. in Drupal\Core\Config\ConfigImporter->validate() (line 755 of /var/www/docroot/core/lib/Drupal/Core/Config/ConfigImporter.php). In ConfigImportCommands.php line 261: The import failed due to the following reasons: Site UUID in source storage does not match the target storage. Entities exist of type <em class="placeholder">Shortcut link</em> and <em class="placeholder">Shortcut set</em> <em class="placeholder">Default</em>. These entities need to be deleted before importing. config:import [--preview [PREVIEW]] [--source SOURCE] [--partial] [--diff] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-d|--debug] [-y|--yes] [--no] [--remote-host REMOTE-HOST] [--remote-user REMOTE-USER] [-r|--root ROOT] [-l|--uri URI] [--simulate] [--pipe] [-D|--define DEFINE] [--notify [NOTIFY]] [--druplicon] [--xh-link XH-LINK] [--] <command> [<label>] [Acquia\Blt\Robo\Tasks\DrushTask] Exit code 1 Time 03:09 [error] Failed to import configuration! [error] Command `drupal:config:import ` exited with code 1. [error] Command `drupal:install ` exited with code 1.
The only solution I'm aware of is to remove the UUID from both the system.site.yml and the shortcut.set.default.yml prior to import. If you know of any other way to do this, I'm all ears.
I'll try to have a go with this for 8.8.4
/** * {@inheritdoc} */ public function validateSiteUuid() { $source = $this->sourceStorage->read('system.site'); $target = $this->targetStorage->read('system.site'); // It is possible that the storage does not contain system.site // configuration. In such cases the site UUID cannot be valid. return empty($source['uuid']) || ($source && $target && $source['uuid'] === $target['uuid']); }
Drupal 8.8.7 → was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 → or Drupal 9.0.0 → for ongoing support.
Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule → and the Allowed changes during the Drupal 8 and 9 release cycles → .
- 🇭🇷Croatia Marko B
Works great, I can import config on new site without a problem.
The patch works great for the BLT config-import scenario described above: installing from configuration without all the limitations, caveats and inconsistencies of a profile's config install scenario (read: no core.extension support). In our case, we wrote a BLT Task Hook to run on new sites install only, thus, when deploying updates we avoid existing sites configuration from being overwritten by the drush cex/cim cycle.
Drupal 8 is end-of-life as of November 17, 2021 → . There will not be further changes made to Drupal 8. Bugfixes are now made to the 9.3.x and higher branches only. For more information see the Drupal core minor version schedule → and the Allowed changes during the Drupal core release cycle → .
- 🇫🇷France chipway
Patch still applies on Drupal 9.1.9. and removes the error message.
Drupal 9.4.9 → was released on December 7, 2022 and is the final full bugfix release for the Drupal 9.4.x series. Drupal 9.4.x will not receive any further development aside from security fixes. Drupal 9 bug reports should be targeted for the 9.5.x-dev branch from now on, and new development or disruptive changes should be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule → and the Allowed changes during the Drupal core release cycle → .
Drupal 9.3.15 → was released on June 1st, 2022 and is the final full bugfix release for the Drupal 9.3.x series. Drupal 9.3.x will not receive any further development aside from security fixes. Drupal 9 bug reports should be targeted for the 9.4.x-dev branch from now on, and new development or disruptive changes should be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule → and the Allowed changes during the Drupal core release cycle → .
- 🇮🇳India bhanu951
Patch still applies on Drupal 9.3.7. and removes the error message.
- 🇺🇸United States smustgrave
This issue is being reviewed by the kind folks in Slack, #needs-review-queue-initiative. We are working to keep the size of Needs Review queue [2700+ issues] to around 400 (1 month or less), following Review a patch or merge request → as a guide.
This was previously tagged for tests in #11 that will still need to happen.
Did not test
- 🇬🇧United Kingdom aaron.ferris
Patch applies cleanly to 9.5.9 and resolved this particular issue for me.
- Merge request !4133Issue #3047392: "Site UUID in source storage does not match the target storage." when importing a config with empty system.site UUID → (Open) created by vasike
- last update
over 1 year ago 29,436 pass - Status changed to Needs review
over 1 year ago 12:35pm 8 June 2023 - 🇷🇴Romania vasike Ramnicu Valcea
new MR created against latest Drupal 11.x
+ Added a test for empty Site UUID.
- Status changed to Needs work
over 1 year ago 5:50pm 8 June 2023 - 🇺🇸United States smustgrave
Verified the tests fail as expected with error
Undefined array key "uuid"
Can the issue summary be updated a little, seems bare. Least have a proposed resolution section.
- Status changed to Needs review
over 1 year ago 3:09pm 14 June 2023 - 🇷🇴Romania vasike Ramnicu Valcea
Summary updated ... so Back to "Needs review".
- Status changed to RTBC
over 1 year ago 5:57pm 14 June 2023 - last update
over 1 year ago 29,448 pass - last update
over 1 year ago 29,486 pass - last update
over 1 year ago 29,499 pass - last update
over 1 year ago 29,505 pass - last update
over 1 year ago 29,531 pass - last update
over 1 year ago 29,553 pass - last update
over 1 year ago 29,559 pass - last update
over 1 year ago 29,563 pass - last update
over 1 year ago 29,571 pass 0:53 58:52 Running- last update
over 1 year ago 29,801 pass - last update
over 1 year ago 29,802 pass - last update
over 1 year ago 29,802 pass - last update
over 1 year ago 29,806 pass - last update
over 1 year ago 29,811 pass - last update
over 1 year ago 29,815 pass - last update
over 1 year ago 29,815 pass - last update
over 1 year ago 29,822 pass - last update
over 1 year ago 29,830 pass, 1 fail - last update
over 1 year ago 29,878 pass - last update
over 1 year ago 29,880 pass - last update
over 1 year ago 29,884 pass - last update
over 1 year ago 29,908 pass - last update
over 1 year ago 29,911 pass - last update
over 1 year ago 29,946 pass - last update
over 1 year ago 29,940 pass, 2 fail - last update
over 1 year ago 29,953 pass - Status changed to Needs work
over 1 year ago 7:33am 8 August 2023 - 🇳🇿New Zealand quietone
I am doing triage on the core RTBC queue → .
Issue summary is complete and easy to follow. I skimmed through the comments and the overview on the MR and I don't see any comments referring to a code review. :-(
This is changing the behavior of \Drupal\Core\Config\StorageComparerInterface::validateSiteUuid() as described in the doc block. The BC implications of that should be considered before proceeding.
I have commented in the MR. Setting back to NW.
- Status changed to Needs review
over 1 year ago 10:10am 11 August 2023 - 🇷🇴Romania vasike Ramnicu Valcea
some updates for MR threads. Back to review
- last update
over 1 year ago 29,959 pass - Status changed to RTBC
about 1 year ago 3:08pm 17 August 2023 - last update
about 1 year ago 29,966 pass, 2 fail - last update
about 1 year ago 30,050 pass - last update
about 1 year ago 30,057 pass - last update
about 1 year ago 30,057 pass - last update
about 1 year ago 30,061 pass - last update
about 1 year ago 30,061 pass - last update
about 1 year ago 30,064 pass - 🇳🇿New Zealand quietone
I'm triaging RTBC issues → . I read from my last comment and read the MR again. The only thing I can find is that I think the title can be improved. Doing that now.
Leaving at RTBC.
- last update
about 1 year ago 30,135 pass - last update
about 1 year ago 30,136 pass - last update
about 1 year ago Composer error. Unable to continue. - last update
about 1 year ago 30,137 pass - last update
about 1 year ago 30,135 pass, 2 fail - last update
about 1 year ago 30,147 pass - last update
about 1 year ago 30,151 pass - last update
about 1 year ago 30,155 pass - last update
about 1 year ago 30,162 pass - last update
about 1 year ago 30,169 pass - last update
about 1 year ago 30,169 pass - last update
about 1 year ago 30,206 pass - last update
about 1 year ago 30,209 pass - last update
about 1 year ago 30,361 pass - last update
about 1 year ago 30,362 pass - last update
about 1 year ago 30,361 pass - last update
about 1 year ago 30,372 pass - last update
about 1 year ago 30,378 pass - last update
about 1 year ago 30,383 pass - last update
about 1 year ago 30,385 pass - last update
about 1 year ago 30,394 pass - last update
about 1 year ago 30,398 pass - last update
about 1 year ago 30,391 pass, 1 fail - last update
about 1 year ago 30,416 pass - last update
about 1 year ago 30,421 pass - last update
about 1 year ago 30,427 pass - last update
about 1 year ago 30,435 pass - Open on Drupal.org →Environment: PHP 8.2 & MySQL 8last update
about 1 year ago Not currently mergeable. - Open on Drupal.org →Environment: PHP 8.2 & MySQL 8last update
about 1 year ago Not currently mergeable. - Open on Drupal.org →Environment: PHP 8.2 & MySQL 8last update
about 1 year ago Not currently mergeable. - Open on Drupal.org →Environment: PHP 8.2 & MySQL 8last update
about 1 year ago Not currently mergeable. - Open on Drupal.org →Environment: PHP 8.2 & MySQL 8last update
about 1 year ago Not currently mergeable. - Open on Drupal.org →Environment: PHP 8.2 & MySQL 8last update
about 1 year ago Not currently mergeable. - Open on Drupal.org →Environment: PHP 8.2 & MySQL 8last update
about 1 year ago Not currently mergeable. - Open on Drupal.org →Environment: PHP 8.2 & MySQL 8last update
about 1 year ago Not currently mergeable. - Open on Drupal.org →Environment: PHP 8.2 & MySQL 8last update
about 1 year ago Not currently mergeable. - Open on Drupal.org →Environment: PHP 8.2 & MySQL 8last update
about 1 year ago Not currently mergeable. - Open on Drupal.org →Environment: PHP 8.2 & MySQL 8last update
about 1 year ago Not currently mergeable. - Open on Drupal.org →Environment: PHP 8.2 & MySQL 8last update
12 months ago Not currently mergeable. - Open on Drupal.org →Environment: PHP 8.2 & MySQL 8last update
12 months ago Not currently mergeable. - Open on Drupal.org →Environment: PHP 8.2 & MySQL 8last update
12 months ago Not currently mergeable. - Open on Drupal.org →Environment: PHP 8.2 & MySQL 8last update
12 months ago Not currently mergeable. - Open on Drupal.org →Environment: PHP 8.2 & MySQL 8last update
12 months ago Not currently mergeable. - Open on Drupal.org →Environment: PHP 8.2 & MySQL 8last update
12 months ago Not currently mergeable. - Open on Drupal.org →Environment: PHP 8.2 & MySQL 8last update
12 months ago Not currently mergeable. - Status changed to Needs work
12 months ago 5:10pm 29 November 2023 The Needs Review Queue Bot → tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide → to find step-by-step guides for working with issues.
- First commit to issue fork.
- Merge request !5688Issue #3087950 by Utkarsh_33, swatichouhan012, komalk, Sivaji_Ganesh_Jojodae,... → (Closed) created by alexismmd
- 🇪🇸Spain alexismmd
alexismmd → changed the visibility of the branch 3047392-site-uuid-in-from-10 to hidden.
- 🇪🇸Spain alexismmd
alexismmd → changed the visibility of the branch 3047392-site-uuid-in-from-10 to active.
- 🇪🇸Spain alexismmd
alexismmd → changed the visibility of the branch 3047392-site-uuid-in-from-10 to active.
- 🇪🇸Spain alexismmd
alexismmd → changed the visibility of the branch 3047392-site-uuid-in-from-10 to hidden.
- 🇬🇧United Kingdom alexpott 🇪🇺🌍
@akexismmd what is wrong with older MR against 11.x? I'm guessing you've made the MR for a patch against 10.1.x? But that's a guess as you've not documented what you are doing on the issue.
- Status changed to Needs review
12 months ago 2:08pm 5 December 2023 - 🇬🇧United Kingdom alexpott 🇪🇺🌍
I;ve updated the old MR https://git.drupalcode.org/project/drupal/-/merge_requests/4133
I think the new MR 5690 should be hidden because it is against the wrong branch and does not contain tests.
FWIW the plain diff of MR 4133 can be applied to 10.1.x and up.
- 🇪🇸Spain alexismmd
@alexpott, the update of MR 4133 was need it. I see you already have done, then yes I going to hidden MR 5690, sorry about that. Thanks!
- 🇪🇸Spain alexismmd
alexismmd → changed the visibility of the branch 3047392-site-uuid-in-from-10 to hidden.
- Status changed to Needs work
12 months ago 4:47pm 5 December 2023 The Needs Review Queue Bot → tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide → to find step-by-step guides for working with issues.
- Status changed to Needs review
11 months ago 1:18pm 13 December 2023 - 🇪🇸Spain alexismmd
Hi @vasike
I don't know why but now MR doesn't apply in 10.1.7
- 🇷🇴Romania vasike Ramnicu Valcea
@alexismmd you could try the hidden MR for 10.1.x
https://git.drupalcode.org/project/drupal/-/merge_requests/5690As i said in my previous comment the "current" MR https://git.drupalcode.org/project/drupal/-/merge_requests/4133 was rebased ... as it had conflicts with the latest changes on 11.x.
- 🇪🇸Spain alexismmd
alexismmd → changed the visibility of the branch 3047392-site-uuid-in-from-10 to active.
- Status changed to RTBC
11 months ago 5:36pm 21 December 2023 - 🇺🇸United States smustgrave
Actually appears this was previously RTBC before sent back to turn to MR.
- last update
11 months ago 25,897 pass, 1,820 fail - last update
11 months ago 25,928 pass, 1,809 fail - Status changed to Needs review
11 months ago 8:52am 25 December 2023 - 🇬🇧United Kingdom alexpott 🇪🇺🌍
I still have the same reservations as I raised in #11. Given you can install a site from configuration what is the use-case? So far the old case is to install configuration on a BLT site - but shouldn't BLT by updated to use the ability to install from configuration. Additionally, if you are scripting things as in #20 then you can write the site's uuid to the config you're going to import before you run the import.
So I think the change looks complete but I'm not sure about why we need to make this change.
- 🇧🇪Belgium borisson_ Mechelen, 🇧🇪
I agree with @alexpott, I think that this is a bug in BLT, if that does not allow to just use the
--existing-config
?Is anyone using this patch in a scenario that is not related to BLT?
- 🇺🇸United States smustgrave
I've seen it before in regular drush commands before, but haven't checked that code we use in a while.
- Status changed to Postponed: needs info
11 months ago 3:43pm 4 January 2024 - 🇬🇧United Kingdom alexpott 🇪🇺🌍