Closed (fixed)
Project:
Drupal core
Version:
8.1.x-dev
Component:
other
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Jul 2016 at 02:27 UTC
Updated:
29 Jul 2016 at 09:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
shadowmihai commentedOkay, after re-uploading/changing from 8.13 to 8.14 several times with the same error, I deleted the folders core, profile, sites and vendors, then copied over the 8.14 files again.
This produced the same error, but when I went to the site root, it loaded the install page, as if a new install. I entered the database info and it directed me to run update.php for just an update
Although the update.php was generating the same error, when I used the link from the install page, it updated fine and the site seems to be running now.
I have three other drupal 8 sites and am reticent to update to 8.14 until I know what happened here... I followed the EXACT same procedure for updating all my sites for the last several years with never an issue so there must be something different in this release package...
Comment #3
catchThere's no syntax error in that file, so this looks like an issue with your environment or an unlucky unzip.
Can you test on a copy of your other sites?
Comment #4
alexpottAlso @shadowmihai can you export your core.extension.yml using /admin/config/development/configuration/single/export and paste the contents here?
Comment #5
alexpottI've downloaded the zip and extracted it over 8.1.4 and the differences are as expected - the .yml files have info added by the packager. Just checking @shadowmihai did you follow the procedures documented in https://www.drupal.org/node/2700999 and remove /core and /vendor first before copying in the contents from the zip file.
Comment #6
Anonymous (not verified) commentedalexpott, thank you for #5.
I'm also get error when override these folders, but another:
remove /core and /vendor first before copying is really helped!
Comment #7
cilefen commentedComment #8
bmateus commentedDrupal 7 core updates were ok, not much stress. But these ones are freaking me out already.
Just updated from 8.1 to 8.5 and of course, I've f*ckd it up. Had to search this page again for some time, because "The website encountered an unexpected error. Please try again later." is not the friendliest of error notifications.
After following these guidelines, it went online again. Still getting a 500 server error when running update.php, though.
While waiting for some 13.000 files to upload, I reflected on the matter.
I truly understand Drupal 8 is a massive beast of a software, but I agree that security and core updating process should be reviewed. Not saying it should mimick Wordpress (the code layering and complexity is not even comparable), but it should also have not-so-technical small-site admins in mind. At least, better error notification, so a non tech can know where to look more about its problem at hand.
I do think that failing to improve core updates may feed back as a reputation problem, with smaller projects choosing other platforms due to (their) lack of technical response. Not always the best tech is the most popular (WP, for example).
Just my two cents. Still loving Drupal.
Comment #9
cilefen commented@bmateus #2367319: Implement automatic background updates for highly critical security issues and #606592: Allow updating core with the update manager
Comment #10
paintingguy commentedSame, after installing 8.1.4 my site is now broken and I do not now what to do.
The website encountered an unexpected error. Please try again later.
Comment #11
cilefen commentedHi @paintingguy
Please post the error that is logged. We have no way of knowing what that means if not.
Did you follow the upgrade instructions linked in #5?
Comment #12
paintingguy commentedNo, I did not follow #5. I also just tried 8.1.5 and this also broke the site. Rolling back to 8.1.3 works fine.
Comment #13
paintingguy commentedSorry, I can't provide the error log, I have only minute right now to spare. But I rolled back to 8.1.3 and my site is back. Thanks for the hard work. I look forward to being able to update it when this is resolved. Sorry I cannot help more right now.
Comment #14
paintingguy commentedAs per update instructions:
Remove the 'core' and 'vendor' directories. Also remove all of the files in the top-level directory, except any that you added manually.
I've never done this but it appears I should be. Do I remove "my" core and vendor directories, or the "update" core and vendor directories?
Comment #15
catchYou remove the existing core and vendor directories, then copy the new core and vendor directories over them.
Comment #16
catchHere's a patch to add back those files empty.
Note this will not fix a site that's already been updated incorrectly (it won't even apply) - you should either redo the process following the upgrade instructions, or delete those two files manually.
However if we apply this to core and put out a new patch release, it should prevent the error on sites that do the upgrade.
Comment #17
catchComment #18
catchMore informative comment.
Comment #20
alexpottI like this solution... I've checked all deletes since 8.1.0...
So these are definitely the only two we need to worry about.
Comment #21
alexpottCommitted 01e7deb and pushed to 8.1.x and 8.2.x. Thanks!
We need to create a policy about this somewhere.
The files failed coding standards checks - since they are not code per se lets ignore them.
Comment #24
catchOnce the development tarball is updated, it would be great if people who've run into this issue could upgrade to the tarball and see if that fixes it for you.
Comment #25
bmateus commented@cilefen: Thanks for the links! I'm glad to see that it really is being looked after.
After the update, I still get a funky error: when running update.php or flushing the cache, I get a 500 error.
The drupal log reports:
Location https://xxxxxx.co.net/backoffice/admin/flush?token=KLubHrDERPDdnW2CDtIJn...
Referrer https://xxxxxx.co.net/backoffice/admin/content
Message Notice: Undefined property: Drupal\services\Plugin\Deriver\EntityGet::$entityTypeManager in Drupal\services\Plugin\Deriver\EntityGet->getDerivativeDefinitions() (line 16 of /var/www/vhosts/xxxxxx.co.net/httpdocs/backoffice/modules/services/src/Plugin/Deriver/EntityGet.php).
In my Status report I got this: Token types are not defined but have tokens: $info['types']['entity'], which should be involved with the drupal log. To me, it feels like a module may be buggy.
Assuming this may be a module problem, I proceded to disable third-party modules, only to realize that another glitch has started: I can still enable new modules, but can't disable enabled modules.
I'm still looking into what it may be causing this, but it shows why sometimes some get shivers when updating core.
Comment #26
catch@bmateus you need to uninstall modules - note that this will remove any configuration or data they provide, so better to do it on a copy of your site/database, not the live one.
The issue you're having is in services module, so I'd suggest checking the issue queue at https://www.drupal.org/project/services
modules/services/src/Plugin/Deriver/EntityGet.phpComment #27
catchThe development tarball is now updated at https://www.drupal.org/project/drupal/releases/8.1.x-dev
Moving this back to active to encourage some manual testing. We'll probably put out 8.1.6 with this fix, which should both fix any sites that got into the situation, as well as preventing any more updates from going wrong in this particular way.
Comment #28
bmateus commented@catch: Thanks for the heads up! Been a user of D7 for too long. This is my first D8 project, and haven't realized you can't disable modules until your reply. Thanks.
Yes, the Services error thing is now on it's own issue queue.
Thanks for your help. Drupal community is still be best part of Drupal :)
Comment #29
paintingguy commentedI feel like a dummy. I never read the update process. Doing as it says, this updated perfectly. Sorry to waste anyone's time.
Keep up the great work.
Comment #30
cilefen commentedComment #31
cilefen commentedSorry, the patch still needs manual testing.
Comment #32
catchI'd like to release 8.1.6 today if possible, since clearly lots of people don't clear out /core and /vendor when updating, and we have a viable workaround.
However I'd also really like someone other than me to manually test the patch to verify it really does fix the issue - this is impossible to actually test with the test bot (untarring a packaged release etc.)
Comment #33
ianthomas_ukIs it worth mentioning this under known issues at https://www.drupal.org/project/drupal/releases/8.1.5 to help anyone who is already attempting the update, and in case 8.1.6 can't be released as promptly as hoped.
Comment #34
catchAdded an extra note to the release notes.
Comment #35
dawehnercp -RComment #37
catchI manually tested as well as dawehner, so I've released 8.1.6: https://www.drupal.org/project/drupal/releases/8.1.6
Comment #38
cilefen commented#2764699: class "Drupal\user\UserServiceProvider" not found
Comment #39
dupal.user commentedUsing "drush up" to update my site, it broke with
Fatal error: Class 'Drupal\locale\SourceString' not found
Would this also be fixed with 8.1.6?
Comment #40
alexpott@dupal.user - Drupal\locale\SourceString has not changed since the release of 8.1.0 so upgrading should not have caused this error.
Comment #41
dupal.user commentedThank you alexpott, I now found out the network was unstable, so the 8.1.4 update file was probably corrupted. Now, the 8.1.6 update went fine.
Concerning the use of "drush up", I just hope it deletes the directories prior to extracting the files, as the update instructions say.