Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Service 'php-fpm' failed to build #2300

Closed
shinichi-ito opened this issue Sep 28, 2019 · 5 comments
Closed

Service 'php-fpm' failed to build #2300

shinichi-ito opened this issue Sep 28, 2019 · 5 comments

Comments

@shinichi-ito
Copy link

Info:

  • Docker version ($ docker --version): Docker version 18.06.1-ce, build e68fc7a
  • Laradock commit ($ git rev-parse HEAD): git clone https://github.com/Laradock/laradock.git
  • System info (Mac, PC, Linux): windows10 pro
  • System info disto/version: windows10pro

Issue:

$ docker-compose up -d nginx mysql


E: Failed to fetch http://cdn-fastly.deb.debian.org/debian/pool/main/libx/libxdmcp/libxdmcp6_1.1.2-3_amd64.deb 400 Bad Request [IP: 151.101.228.204 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Service 'php-fpm' failed to build: The command '/bin/sh -c if [ ${INSTALL_IMAGE_OPTIMIZERS} = true ]; then apt-get install -y jpegoptim optipng pngquant gifsicle ;fi' returned a non-zero code: 100

#1890 (comment)

/laradock/php-fpm/Dockerfile

###########################################################################

Image optimizers:

###########################################################################

USER root

ARG INSTALL_IMAGE_OPTIMIZERS=false

RUN if [ ${INSTALL_IMAGE_OPTIMIZERS} = true ]; then
apt-get update &&
apt-get install -y jpegoptim optipng pngquant gifsicle
;fi

docker-compose build --no-cache php-fpm

E: Failed to fetch http://cdn-fastly.deb.debian.org/debian/pool/main/libx/libxdmcp/libxdmcp6_1.1.2-3_amd64.deb 400 Bad Request [IP: 151.101.196.204 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Service 'php-fpm' failed to build: The command '/bin/sh -c if [ ${INSTALL_IMAGE_OPTIMIZERS} = true ]; then apt-get update && apt-get install -y jpegoptim optipng pngquant gifsicle ;fi' returned a non-zero code: 100

Who's coming to help me?

Installation failed many times!!

.env
https://docs.google.com/document/d/13zccsQDJ49LlcqhqMkS2AE9JFmaFgz1XiQsbO2hiNiI/edit?usp=sharing

@khiconit
Copy link

khiconit commented Oct 7, 2019

Same issue

@stale
Copy link

stale bot commented Feb 7, 2020

Hi 👋 this issue has been automatically marked as stale 📌 because it has not had recent activity 😴. It will be closed if no further activity occurs. Thank you for your contributions ❤️.

@stale stale bot added the Stale label Feb 7, 2020
@stale
Copy link

stale bot commented Feb 28, 2020

Hi again 👋 we would like to inform you that this issue has been automatically closed 🔒 because it had not recent activity during the stale period. We really really appreciate your contributions, and looking forward for more in the future 🎈.

@stale stale bot closed this as completed Feb 28, 2020
@BenjaminRouge923
Copy link

Same issue for me on macos

@mauriciomta
Copy link

I solved the issue by adding an apt-get update before the installation on php-fpm/Dockerfile

RUN if [ ${INSTALL_IMAGE_OPTIMIZERS} = true ]; then \
    apt-get update && apt-get install -y jpegoptim optipng pngquant gifsicle \
;fi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants