Shopware build stops at: Dumped plugin configuration

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

146 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 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