Shopware stuck in maintenance mode

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

691 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. Sometimes we may to manually clear cached Shopware files to fix namespace issues.
  2. How to obtain the currently selected API language from Shopware vue components.
  3. How to access file system paths from storefront twig files in Shopware.
  4. How to get or change the currently selected sales channel in an Shopware sw-sales-channel-switch component.
  5. In this tutorial you will learn how to work with Shopware entities in a generic way from PHP, without having to specifically inject the repository in your services.xml file.

More in: Shopware