Shopware build stops at: Dumped plugin configuration

Here is the reason why the Shopware build script may not progress beyond: Dumped plugin configuration.

12 views
d

By. Jacob

Edited: 2023-11-04 10:25

Solution:

sudo chown -R www-data:www-data /var/www
sudo chmod -R 775 /var/www
sudo chmod 600 /var/www/config/jwt/*

Problem:

When you are running Shopware's build scripts, bin/build-administration.sh or bin/build-storefront.sh, using the www-data user nothing seemingly happens, and you quickly get a message in your console saying:

[OK] Dumped plugin configuration.

The reason this happens is because the /var/www directory has incorrect permissions. To solve the problem, change the ownership of the directory so that it belongs to www-data:www-data, and change the permissions to 775. E.g. To change the permissions recursively use the -R parameter:

sudo chown -R www-data:www-data /var/www

If this happens inside a Docker container, be sure to change the permissions when you are creating your container, this can be done from your Dockerfile:

# Add correct permissions
RUN chown www-data:www-data -R /var/www && \
chmod 775 -R /var/www \
chmod 600 /var/www/config/jwt/*

Remember, the jwt/* key files will need 600.

Tell us what you think:

  1. How to access standard php $_GET parameters from the Shopware storefront .twig files. E.g. The URL query string parameters.
  2. Sometimes we may to manually clear cached Shopware files to fix namespace issues.
  3. You need quite a few files just to create a scheduled task in Shopware, and getting it right can be a challenging undertaking to new developers. In this tutorial, I tried to simplify the process.
  4. This error can apparently happen as a result of numerous situations causing perpetual calls to functions or methods. In this article, I try to list some of them.

More in: Shopware