update.php still failed with:
Update #8006
Failed: Drupal\Core\EntityQuery\QueryException: 'entity_id' not found in Drupal\Core\Entity\Sql\Tables->ensureEntityTable() (line 369 of /var/www/web/core/lib/Drupal/Core/Entity/Query/Sql/Tables.php)

It seems that this update is trying to clean up old references without checking whether the value exists, causing a sql exception. This stalls all the updates.

Disabling 8006 permits continuing but isn't really an ideal solution.

Comments

kyber created an issue.