I was doing a completely blank install. New empty database and new d8beta2 files. All files and the root dir owned by apache (who runs the httpd also). Initial setup runs great, I choose "Deutschland" as region and german language.
So far everything went fine.

Then I activated all modules from core except
- Activity tracker
- Ban
- Statistics
- Syslog

and all modules from the fields section. Also REST and serialization.

Fine.

Then I went to update.php. Drupal told me, there are about 8 updates needed. I run the update and got the following (german) error message:

Ein AJAX-HTTP-Fehler ist aufgetreten.
HTTP-Rückgabe-Code: 500
Im Folgenden finden Sie Debugging-Informationen.
Pfad: /update.php/batch?id=6&op=do_nojs&op=do
Statustext: Internal Server Error
Antworttext: {}

What means that there was a http 500 returned and an empty JSON result.
More information on the error page was:

The update process was aborted prematurely while running update #0 - Update entity definitions in system.module. All errors have been logged. You may need to check the watchdog database table manually.

And in the watchdog i find this:

Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'revision_log' in 'where clause': SELECT COUNT(*) AS expression FROM (SELECT DISTINCT t.nid AS nid, 1 AS expression FROM {node_field_data} t WHERE (revision_log IS NOT NULL ) LIMIT 1 OFFSET 0) subquery; Array ( ) in Drupal\Core\Entity\Sql\SqlContentEntityStorage->countFieldData() (Zeile 1757 von /var/www/vhosts/d8/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).

Maybe this error arises because off my empty node table. I'll try to setup some content.

Best regards,
Rainer from proxiss

Files: 
CommentFileSizeAuthor
#13 Auswahl_009.png390.73 KBzuernBernhard

Comments

proxiss’s picture

Boha, now I tried to add a "page" content and got this:

Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[HY000]: General error: 1364 Field 'nid' doesn't have a default value: INSERT INTO {node} (vid, type, uuid) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2); Array ( [:db_insert_placeholder_0] => [:db_insert_placeholder_1] => page [:db_insert_placeholder_2] => 66314d39-13dd-46bb-ac17-23b56a470549 ) in Drupal\Core\Entity\Sql\SqlContentEntityStorage->doSave() (Zeile 959 von /var/www/vhosts/d8/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).

So I'll restore my blank install and start over again.

proxiss’s picture

Ok, I restored back to the blank install with the modules activated as described above.
Then I added a "page" -> worked.
Then I visited the reports and found that I should update.php.

There was

7 ausstehende Aktualisierungen
block_content entity type

Update the Versions-ID field.

comment entity type

Update the Kommentar-ID field.

file entity type

Update the MIME-Typ der Datei field.
Update the Dateigröße field.

menu_link_content entity type

Update the Linktitel des Menüpunkts field.
Update the Beschreibung field.
Update the Als ausgeklappt anzeigen field.

node entity type

Update the Beitrags-ID field.
Update the Protokollnachricht der Version field.

shortcut entity type

Update the Name field.

taxonomy_term entity type

Update the Name field.
Update the Beschreibung field.
Update the Gewichtung field.

And finally it failed like above. But this time I can insert new "page" nodes.

Regards
Rainer fro proxiss

NagareHoshi’s picture

Try to change the default language in Configuration>Regional settings and relogin to english interface.
I had the same problem, but when I changed the language to english, everything worked fine.

sachbearbeiter’s picture

Priority: Normal » Major

same problem - changed back to english - updating was successful - thanks for the tip ...
but i would say: this is a major problem ...

FrenchBarbu’s picture

Priority: Major » Normal

Hi,
Same problem here. All works fine until i do the updates.

fgm’s picture

Issue tags: +multilingual

Actually, the update appears to be successful, but the need for an update is still present with the same changes being requested when the default language is reset to non-english (french in my case).

On (site)/en/update.php/selection :

Drupal database update

Status message No pending updates."

But on (site)/fr/update.php/selection :

Drupal database update

The version of Drupal you are updating from has been automatically detected.

7 MISES À JOUR EN ATTENTE
block_content entity type

Update the Custom block ID field.
Update the Identifiant universel unique (UUID) field.
Update the Identifiant (ID) de révision field.
Update the Type de bloc field.
comment entity type

Update the Identifiant (ID) du commentaire field.
Update the Identifiant universel unique (UUID) field.
Update the Code de la langue field.
Update the Identifiant (ID) utilisateur field.
file entity type

Update the Identifiant (ID) de fichier field.
Update the Identifiant universel unique (UUID) field.
Update the Code de la langue field.
Update the Identifiant (ID) utilisateur field.
Update the Type MIME du fichier field.
Update the Taille du fichier field.
menu_link_content entity type

Update the Titre du lien dans le menu field.
Update the Description field.
Update the Afficher déplié field.
node entity type

Update the Identifiant (ID) du nœud field.
shortcut entity type

Update the Nom field.
taxonomy_term entity type

Update the Identifiant (ID) du terme field.
Update the Nom field.
Update the Description field.
Update the Poids field.
大鹏’s picture

i have the same problem , I changed the language to english,it's works.

beatnbite’s picture

I had the same problem with Drupal 8 beta 3 (Russian selected during installation).
Added English and made it the default language - the problem has gone away.

Regnoy’s picture

Same problem with russian language, english no update available.
But if I update site in english and no update available, and change back to russian, Site will work stable ?!?! Who know?

Regnoy’s picture

I tested some interesting.
Install drupal 8 minimum module.
If enable module(taxonomy) in other language, not in english, for example russian, default language is russian . And run update.php i have updates in both languages(english and russian) and error is the same.

amateescu’s picture

Version: 8.0.0-beta2 » 8.0.x-dev
Component: update.module » locale.module
Status: Active » Closed (duplicate)
Issue tags: -update.php, -ajax 500 error, -multilingual
Daniel Wentsch’s picture

Same problem with German as a default language. Switching to English, running updates and then switching back to German seemed to work.

Update: I was wrong. Soon after switching back to German as a default language again there were updates available that failed with above said AJAX error.

zuernBernhard’s picture

FileSize
390.73 KB

In SqlContentEntityStorage::countFieldData the wrong table is used ... (see Screenshot).