Shopware build stops at: Dumped plugin configuration
Here is the reason why the Shopware build script may not progress beyond: Dumped plugin configuration.
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: