How to fix
Step 1
UPDATE setup_module
SET schema_version = '2.1.99', data_version = '2.1.99'
WHERE 'Magento_Catalog' = `module` and '2.2.0' = schema_version and '2.2.0' = data_version;
Step 2
bin/magento setup:upgrade && bin/magento indexer:reindex