headless-wp-starter icon indicating copy to clipboard operation
headless-wp-starter copied to clipboard

'wp-headless' failed to build:

Open krichdev opened this issue 5 years ago • 5 comments

Here is the error when trying to run the docker-compose up -d command. Couldn't find any other issues with this same error.

Building wp-headless
Step 1/9 : FROM wordpress
 ---> d5668b07b850
Step 2/9 : RUN sed -i 's/80/8080/' /etc/apache2/ports.conf /etc/apache2/sites-enabled/000-default.conf
 ---> Using cache
 ---> 3bec69ac14d8
Step 3/9 : RUN mv "$PHP_INI_DIR"/php.ini-development "$PHP_INI_DIR"/php.ini
 ---> Running in ecc784a32bdc
mv: cannot stat '/usr/local/etc/php/php.ini-development': No such file or directory
ERROR: Service 'wp-headless' failed to build: The command '/bin/sh -c mv "$PHP_INI_DIR"/php.ini-development "$PHP_INI_DIR"/php.ini' returned a non-zero code: 1```

krichdev avatar Jun 06 '19 04:06 krichdev

Anyone got a fix for this? Am seeing the same issue.

russellhill avatar Oct 08 '19 10:10 russellhill

i have the same issue too!

katielgc avatar Nov 04 '19 21:11 katielgc

This could be caused by temporary changes in the wordpress or PHP docker images, although travis still builds the container okay. Does https://github.com/postlight/headless-wp-starter/tree/fix-wordpress-docker-tag fix this problem for any of you?

Alternatively, try updating your wordpress image first, then rebuilding:

docker pull wordpress
docker compose up --build --force-recreate wp-headless

modelm avatar Dec 17 '19 19:12 modelm

This issue still persists, does not improve

ed-spiredigital avatar Jan 30 '20 19:01 ed-spiredigital

I am getting this as well.

catedm avatar Mar 17 '21 23:03 catedm