Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello!
I have a brand new server on which I dropped the Drupal 8.8.0 tarball (site download). I enabled automatic updates and got the following:
Your site does not pass some readiness checks for automatic updates. Depending on the nature of the failures, it might effect the eligibility for automatic updates.
The hash for .csslintrc does not match its original. Updates that include that file will fail and require manual intervention.
The hash for .editorconfig does not match its original. Updates that include that file will fail and require manual intervention.
The hash for .eslintignore does not match its original. Updates that include that file will fail and require manual intervention.
The hash for .eslintrc.json does not match its original. Updates that include that file will fail and require manual intervention.
The hash for .gitattributes does not match its original. Updates that include that file will fail and require manual intervention.
The hash for .ht.router.php does not match its original. Updates that include that file will fail and require manual intervention.
....and so on.
I went ahead and updated anyway by clicking the button to do so.
Logs state:
Can not update because 1 files are modified: composer.lock
Then I got the message:
The project "drupal" was updated from "8.8.0" to "8.8.1" with failures.
It doesn't appear the project was updated, however.
Comment | File | Size | Author |
---|---|---|---|
#11 | interdiff_9-10.txt | 853 bytes | heddn |
#11 | 3104073-10.patch | 4.6 KB | heddn |
| |||
#9 | 3104073-9.patch | 4.71 KB | heddn |
| |||
#9 | interdiff_5-9.txt | 667 bytes | heddn |
Comments
Comment #2
heddnComment #3
heddnThis is very likely an d.o infrastructure issue that surfaces w/ 8.8.
We get things like vendor/doctrine/inflector/.gitignore not existing when rolling back an update from 8.8.0 => 8.7.0.
But this is a failing test.
Comment #4
heddnFix phpcs
Comment #5
heddnFix up a few more failing tests since we use a new method to get an actual tarball instead of a git clone.
Comment #6
drummWhat exactly is the potential infrastructure issue? I verified that the shasum of
composer.lock
looks consistent everywhere for the fresh downloads of the 8.8.0 release:Since 8.8.0, the packaged downloads of tarballs/zip files for the releases are now built using Composer as part of the packaging process. I think this may mean that the not-compatible-with-composer restriction kicks in for Drupal 8.8.0+, regardless of installation method.
Comment #7
hestenetOh hell, this is probably the reason. Even tarball installed sites will appear to be 'sites using composer' after the composer initiative, so when we decided to just roll-back as un-updateable sites built with Composer.... we kind of chased our own tail there.
I wonder if we can detect 'built with the default composer but not changed yet'... oi...
Comment #8
heddnNo, the issue seems not to be d.o infrastructure related per se, but the logic we are using to decide if something is packaged or not is/was triggering off if
datestamp
was set in info.yml. This does not seem to be the case for 8.8.0. We'll need to figure out another way to determine if the site is installed using packaged vs non-packaged source.Comment #9
heddnThis will hopefully fix the issue.
Comment #10
heddnThis should handle things like drupal 9 and 10 version a lot more cleanly. And it means we do not need one-off logic for 8.8.0-alpha1, 8.8.0-beta1 that used the old packaging method.
Comment #11
heddnOops. Patch attached.
Comment #12
ressa CreditAttribution: ressa at Ardea commentedThanks for reporting the error @herrzhull, and to @heddn for fixing it.
I can confirm that the reported error happens if you try to update Drupal 8.8.0 tarball with the latest stable release of Automatic Updates. I have repeated the process with the patch against latest dev-release of Automatic Updates and the Readiness checks as well as update goes through smoothly.
Comment #13
heddnComment #15
miguelsanmiguel CreditAttribution: miguelsanmiguel commentedWhen will be the patch usable? I just applied the current 8.x-1.1 publicly available on a clean 8.8.0 but keep getting:
and so on. Am I doing something wrong?
Comment #16
heddn@miguelsanmiguel it should be resolved right now.
Comment #18
BEGRAFX CreditAttribution: BEGRAFX commentedFWIW, I installed Drupal 8.8.2 via composer, then installed the automatic updates module via composer. I am still getting the following:
I'm uncertain how to best proceed. I did a Google search on the message, and was brought to this thread.
Comment #19
heddnCurrent limitation is we don't support composer based installs: https://git.drupalcode.org/project/automatic_updates#installing-the-auto...
We're working on a solution for that in #3104116: Supporting composer-based site installs, but until then you won't be able to use this module in the way you wanted to.
Comment #20
BEGRAFX CreditAttribution: BEGRAFX commentedSo if I'm understanding you correctly, the basic answer is, "Wait it out."?
Comment #21
heddnFor your use case of composer, yes. Or use it on sites that don't use composer.
Comment #22
hestenetFWIW - we've put out a call for further sponsors to help us complete the composer support and other outstanding features that we'd like to include in this system: https://www.drupal.org/drupalorg/blog/request-for-sponsors-automatic-upd...
Comment #23
ressa CreditAttribution: ressa at Ardea commentedThanks @hestenet, I hope some organizations decide to sponsor further development. And thanks @heddn for all the great work you have already done.
@BEGRAFX: Drush 8, with classics like
drush dl
anddrush up
(update core or module code -> rundrush updb
) still works with Drupal 8. So as long as you don't use modules which require Composer, it's technically possible to maintain Drupal 8 without Composer.It would be so awesome to get the
drush dl
anddrush up
commands included in Drush 10, so that Drupal users are not forced to use Composer. This way it would be possible to build and update a Drupal 8 web site the good old way, withdrush dl
anddrush up
, while having the freedom to use the Automatic Updates module to keep the web site updated and secure.