Shopware stuck in maintenance mode

If shopware is stuck in maintenance mode, make sure to delete the update fulder and disable maintenance mode manually.

728 views
d

By. Jacob

Edited: 2022-11-06 08:34

Unsere Website befindet sich gerade in der Wartung. Wir stehen Ihnen bald wieder zur Verfügung.
Entschuldigen Sie etwaige Unannehmlichkeiten.

Our website is currently undergoing maintenance.
We'll be back very soon. Sorry for any inconvenience.

If Shopware gets stuck in maintenance mode after attempting to apply an update, then it might be because there is still a folder at /var/www/shopware/files/update/.

Note. The folder can probably be safely deleted, and maintenance mode may be disabled afterwards.

Here is how to fix it, assuming you are in Shopware's root:

sudo rm -R files/update/
sudo -u www-data bin/console sales-channel:maintenance:disable --all

You can then attempt to update again afterwards.

sudo -u www-data composer update

Please note, for me, the web-based updater has failed numerous of times, and then I have had to finish the update via CLI instead, therefor I recommend you update via composer to avoid such issues.

Tell us what you think:

  1. How to debug issues caused by corrupted custom fields in Shopware 6.
  2. Sometimes we may to manually clear cached Shopware files to fix namespace issues.
  3. How to obtain the currently selected API language from Shopware vue components.
  4. How to access file system paths from storefront twig files in Shopware.
  5. How to get or change the currently selected sales channel in an Shopware sw-sales-channel-switch component.

More in: Shopware