Drupal Update Failed or Site Maintenance Mode Stuck: Recovery
Disable maintenance.
If a Drupal update fails and the site shows a maintenance message, you can usually take it out of maintenance mode and finish the update safely.
Step 1: Back up first

Back up the database and files before you change anything.
Step 2: Read the error

Check the Drupal log (Reports, Recent log messages) and the server error log.
Step 3: Turn off maintenance mode

Go to Configuration, Development, Maintenance mode and untick it. If you cannot log in, run drush state:set system.maintenance_mode 0 and then drush cr.
Step 4: Run database updates

Visit /update.php as an admin, or run drush updatedb.
Step 5: Clear caches

Run drush cr or use Configuration, Development, Performance, Clear all caches.
Step 6: Fix Composer problems

For Drupal 8 and later, run composer install in the project and check versions.
Step 7: Restore if needed

If the site is broken, restore the backup and retry on a copy.
Still stuck?
If these steps do not solve it, we fix it for you for a flat $99. Full refund if we do not solve it within 7 days.
Related guides
- Writing Clear Error Reports: Screenshots, URLs and Steps
- WordPress Tag and Date Archives Duplicate Content: Settings
- WordPress Permalinks Change: Redirect Old URLs and Avoid 404s
- Error Establishing a Database Connection in WordPress: Full Checklist