Just upgraded to Drupal 8.4.5 but one of the database updates is failing:
views module
Fix table names for revision metadata fields.
revision_metadata_fields
Error: Drupal\Component\Plugin\Exception\PluginNotFoundException: The "media" entity type does not exist. en Drupal\Core\Entity\EntityTypeManager->getDefinition() (linea 133 de www/core/lib/Drupal/Core/Entity/EntityTypeManager.php).
My first thought was 'well, is there a missing module that defined this Media entity' but no modules have been removed from the site, nor can I find a module which would have this entity to begin with.
Going to investigate a bit further, adding a ticket incase others stumble upon it.