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

Php-fpm failed to build laradock #1474

Closed
AndreFigueredo-Multilaser opened this issue Apr 9, 2018 · 6 comments
Closed

Php-fpm failed to build laradock #1474

AndreFigueredo-Multilaser opened this issue Apr 9, 2018 · 6 comments
Labels

Comments

@AndreFigueredo-Multilaser

Info:

  • Docker version: 18.03.0-ce-win59 (16762):
  • Laradock commit: 0c41fce:
  • System info (Mac, PC, Linux): Windows
  • System info disto/version: 10

Issue:

When I try to run the command docker-compose up -d nginx mysql, I get this error...

ERROR: Service 'php-fpm' failed to build: The command '/bin/sh -c if [ ${INSTALL_IMAGE_OPTIMIZERS} = true ]; then     apt-get install -y --for
ce-yes jpegoptim optipng pngquant gifsicle ;fi' returned a non-zero code: 100

Relevant Code:

My .env file,

`

Point to the path of your applications code on your host

APP_CODE_PATH_HOST=../public/
`

@ernestohs
Copy link

I have the same problem, but when I use --verbose I see this message in the screen:

compose.service.build: Building php-fpm
compose.cli.verbose_proxy.proxy_callable: docker build <- (path='/home/ernesto/code/myproject/laradock/php-fpm', tag='laradock_php-fpm', rm=True, forcerm=False, pull=False, nocache=False, dockerfile=None, cache_from=None, labels=None, buildargs={'PHP_VERSION': '7.0', 'INSTALL_XDEBUG': 'false', 'INSTALL_BLACKFIRE': 'false', 'INSTALL_SOAP': 'false', 'INSTALL_IMAP': 'false', 'INSTALL_MONGO': 'false', 'INSTALL_AMQP': 'false', 'INSTALL_MSSQL': 'false', 'INSTALL_ZIP_ARCHIVE': 'true', 'INSTALL_BCMATH': 'true', 'INSTALL_GMP': 'false', 'INSTALL_PHPREDIS': 'true', 'INSTALL_MEMCACHED': 'false', 'INSTALL_OPCACHE': 'true', 'INSTALL_EXIF': 'false', 'INSTALL_AEROSPIKE': 'false', 'INSTALL_MYSQLI': 'true', 'INSTALL_PGSQL': 'false', 'INSTALL_PG_CLIENT': 'false', 'INSTALL_TOKENIZER': 'true', 'INSTALL_INTL': 'true', 'INSTALL_GHOSTSCRIPT': 'false', 'INSTALL_LDAP': 'false', 'INSTALL_SWOOLE': 'false', 'INSTALL_IMAGE_OPTIMIZERS': 'true', 'INSTALL_IMAGEMAGICK': 'true'}, network_mode=None, target=None, shmsize=None, extra_hosts=None, container_limits={'memory': None}, gzip=False, isolation=None, platform=None)
docker.api.build._set_auth_headers: Looking for auth config
docker.api.build._set_auth_headers: No auth config in memory - loading from filesystem
docker.utils.config.find_config_file: Trying paths: ['/home/ernesto/.docker/config.json', '/home/ernesto/.dockercfg']
docker.utils.config.find_config_file: No config file found
docker.api.build._set_auth_headers: No auth config found
urllib3.connectionpool._make_request: http://localhost:None "POST /v1.25/build?t=laradock_php-fpm&q=False&nocache=False&rm=True&forcerm=False&pull=False&buildargs=%7B%22PHP_VERSION%22%3A+%227.0%22%2C+%22INSTALL_XDEBUG%22%3A+%22false%22%2C+%22INSTALL_BLACKFIRE%22%3A+%22false%22%2C+%22INSTALL_SOAP%22%3A+%22false%22%2C+%22INSTALL_IMAP%22%3A+%22false%22%2C+%22INSTALL_MONGO%22%3A+%22false%22%2C+%22INSTALL_AMQP%22%3A+%22false%22%2C+%22INSTALL_MSSQL%22%3A+%22false%22%2C+%22INSTALL_ZIP_ARCHIVE%22%3A+%22true%22%2C+%22INSTALL_BCMATH%22%3A+%22true%22%2C+%22INSTALL_GMP%22%3A+%22false%22%2C+%22INSTALL_PHPREDIS%22%3A+%22true%22%2C+%22INSTALL_MEMCACHED%22%3A+%22false%22%2C+%22INSTALL_OPCACHE%22%3A+%22true%22%2C+%22INSTALL_EXIF%22%3A+%22false%22%2C+%22INSTALL_AEROSPIKE%22%3A+%22false%22%2C+%22INSTALL_MYSQLI%22%3A+%22true%22%2C+%22INSTALL_PGSQL%22%3A+%22false%22%2C+%22INSTALL_PG_CLIENT%22%3A+%22false%22%2C+%22INSTALL_TOKENIZER%22%3A+%22true%22%2C+%22INSTALL_INTL%22%3A+%22true%22%2C+%22INSTALL_GHOSTSCRIPT%22%3A+%22false%22%2C+%22INSTALL_LDAP%22%3A+%22false%22%2C+%22INSTALL_SWOOLE%22%3A+%22false%22%2C+%22INSTALL_IMAGE_OPTIMIZERS%22%3A+%22true%22%2C+%22INSTALL_IMAGEMAGICK%22%3A+%22true%22%7D HTTP/1.1" 200 None
compose.cli.verbose_proxy.proxy_callable: docker build -> <generator object APIClient._stream_helper at 0x7f5d7d912bf8>
Step 1/68 : ARG PHP_VERSION=${PHP_VERSION}
ERROR: compose.cli.main.main: Service 'php-fpm' failed to build: Please provide a source image with `from` prior to commit

I'm using Ubuntu Linux

@ernestohs
Copy link

After more attempts to make it work I noticed this error message:

urllib3.connectionpool._make_request: http://localhost:None "GET /v1.25/images/laradock_php-fpm/json HTTP/1.1" 404 46

So I noticed that 404 response, now I see that error each time that I run the command.

@David-Melo
Copy link

Getting This Also

@ernestohs
Copy link

@David-Melo I give up with this and use cyberduck/php-fpm-laravel I hope this helps

@stale
Copy link

stale bot commented Feb 2, 2020

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 2, 2020
@stale
Copy link

stale bot commented Feb 23, 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 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants