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' failed to build #148

Open
automatix opened this issue May 5, 2021 · 1 comment
Open

Service 'php' failed to build #148

automatix opened this issue May 5, 2021 · 1 comment

Comments

@automatix
Copy link
Contributor

Hi guys!

The build is failing. The PHP extensions cannot be found and installed. Any idea, how to solve the issue?

Thx

$ docker-compose build
...
#6 [ 2/12] RUN apk add --no-cache     coreutils     gettext     php8-fpm     php8-ctype     php8-curl     php8-dom     php8-gd     php8-iconv     php8-json     php8-intl     php8-fileinfo    php8-mbstring     php8-opcache     php8-openssl     php8-pdo     php8-pdo_mysql     php8-mysqli     php8-xml     php8-xsl     php8-zlib     php8-phar     php8-tokenizer     php8-session     php8-simplexml     php8-zip     php8-xmlwriter     php8-sodium     php8-pecl-apcu     make     curl
#6 sha256:27260702b0545659902f3bf382bbd80bfa4d18568970c9b71d58e68e10adf84d
#6 0.326 fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/main/x86_64/APKINDEX.tar.gz
#6 5.333 fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/community/x86_64/APKINDEX.tar.gz
#6 5.334 WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.13/main: temporary error (try again later)
#6 10.34 WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.13/community: temporary error (try again later)
#6 10.34 ERROR: unable to select packages:
#6 10.34   coreutils (no such package):
#6 10.34     required by: world[coreutils]
#6 10.34   curl (no such package):
#6 10.34     required by: world[curl]
#6 10.34   gettext (no such package):
#6 10.34     required by: world[gettext]
#6 10.34   make (no such package):
#6 10.34     required by: world[make]
#6 10.34   php8-ctype (no such package):
#6 10.34     required by: world[php8-ctype]
#6 10.34   php8-curl (no such package):
#6 10.34     required by: world[php8-curl]
#6 10.34   php8-dom (no such package):
#6 10.34     required by: world[php8-dom]
#6 10.34   php8-fileinfo (no such package):
#6 10.34     required by: world[php8-fileinfo]
#6 10.34   php8-fpm (no such package):
#6 10.34     required by: world[php8-fpm]
#6 10.34   php8-gd (no such package):
#6 10.34     required by: world[php8-gd]
#6 10.34   php8-iconv (no such package):
#6 10.34     required by: world[php8-iconv]
#6 10.34   php8-intl (no such package):
#6 10.34     required by: world[php8-intl]
#6 10.34   php8-json (no such package):
#6 10.34     required by: world[php8-json]
#6 10.34   php8-mbstring (no such package):
#6 10.34     required by: world[php8-mbstring]
#6 10.34   php8-mysqli (no such package):
#6 10.34     required by: world[php8-mysqli]
#6 10.34   php8-opcache (no such package):
#6 10.34     required by: world[php8-opcache]
#6 10.35   php8-openssl (no such package):
#6 10.35     required by: world[php8-openssl]
#6 10.35   php8-pdo (no such package):
#6 10.35     required by: world[php8-pdo]
#6 10.35   php8-pdo_mysql (no such package):
#6 10.35     required by: world[php8-pdo_mysql]
#6 10.35   php8-pecl-apcu (no such package):
#6 10.35     required by: world[php8-pecl-apcu]
#6 10.35   php8-phar (no such package):
#6 10.35     required by: world[php8-phar]
#6 10.35   php8-session (no such package):
#6 10.35     required by: world[php8-session]
#6 10.35   php8-simplexml (no such package):
#6 10.35     required by: world[php8-simplexml]
#6 10.35   php8-sodium (no such package):
#6 10.35     required by: world[php8-sodium]
#6 10.35   php8-tokenizer (no such package):
#6 10.35     required by: world[php8-tokenizer]
#6 10.35   php8-xml (no such package):
#6 10.35     required by: world[php8-xml]
#6 10.35   php8-xmlwriter (no such package):
#6 10.35     required by: world[php8-xmlwriter]
#6 10.35   php8-xsl (no such package):
#6 10.35     required by: world[php8-xsl]
#6 10.35   php8-zip (no such package):
#6 10.35     required by: world[php8-zip]
#6 10.35   php8-zlib (no such package):
#6 10.35     required by: world[php8-zlib]
#6 ERROR: executor failed running [/bin/sh -c apk add --no-cache     coreutils     gettext     php8-fpm     php8-ctype     php8-curl     php8-dom     php8-gd     php8-iconv     php8-json     php8-intl     php8-fileinfo    php8-mbstring     php8-opcache     php8-openssl     php8-pdo     php8-pdo_mysql     php8-mysqli     php8-xml     php8-xsl     php8-zlib     php8-phar     php8-tokenizer     php8-session     php8-simplexml     php8-zip     php8-xmlwriter     php8-sodium     php8-pecl-apcu     make     curl]: exit code: 30
------
 > [ 2/12] RUN apk add --no-cache     coreutils     gettext     php8-fpm     php8-ctype     php8-curl     php8-dom     php8-gd     php8-iconv     php8-json     php8-intl     php8-fileinfo    php8-mbstring     php8-opcache     php8-openssl     php8-pdo     php8-pdo_mysql     php8-mysqli     php8-xml     php8-xsl     php8-zlib     php8-phar     php8-tokenizer     php8-session     php8-simplexml     php8-zip     php8-xmlwriter     php8-sodium     php8-pecl-apcu     make     curl:
------
executor failed running [/bin/sh -c apk add --no-cache     coreutils     gettext     php8-fpm     php8-ctype     php8-curl     php8-dom     php8-gd     php8-iconv     php8-json     php8-intl     php8-fileinfo    php8-mbstring     php8-opcache     php8-openssl     php8-pdo     php8-pdo_mysql     php8-mysqli     php8-xml     php8-xsl     php8-zlib     php8-phar     php8-tokenizer     php8-session     php8-simplexml     php8-zip     php8-xmlwriter     php8-sodium     php8-pecl-apcu     make     curl]: exit code: 30
Service 'php' failed to build
@ricfio
Copy link
Contributor

ricfio commented May 9, 2021

Hi @automatix,
I believe it was a temporary error:

#6 5.334 WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.13/main: temporary error (try again later)
#6 10.34 WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.13/community: temporary error (try again later)

I have build php container just now without errors:
docker-compose build --no-cache

Building php
[+] Building 31.9s (18/18) FINISHED
 => [internal] load build definition from Dockerfile                                                                                                                                  0.1s
 => => transferring dockerfile: 2.14kB                                                                                                                                                0.0s
 => [internal] load .dockerignore                                                                                                                                                     0.1s
 => => transferring context: 2B                                                                                                                                                       0.0s
 => [internal] load metadata for docker.io/library/alpine:3.13                                                                                                                       12.9s
 => [auth] library/alpine:pull token for registry-1.docker.io                                                                                                                         0.0s
 => CACHED [ 1/12] FROM docker.io/library/alpine:3.13@sha256:69e70a79f2d41ab5d637de98c1e0b055206ba40a8145e7bddb55ccc04e13cf8f                                                         0.0s
 => [internal] load build context                                                                                                                                                     0.1s
 => => transferring context: 270B                                                                                                                                                     0.0s
 => [ 2/12] RUN apk add --no-cache     coreutils     gettext     php8-fpm     php8-ctype     php8-curl     php8-dom     php8-gd     php8-iconv     php8-json     php8-intl     php8-  6.1s
 => [ 3/12] COPY xdebug.ini  /etc/php8/conf.d/xdebug.ini.template                                                                                                                     0.1s
 => [ 4/12] RUN if [[ "off" != "" ]]; then         apk add --no-cache php8-pecl-xdebug;         export PHP_XDEBUG_MODE=off;         export PHP_XDEBUG_CLIENT_PORT=5902;         expo  1.0s
 => [ 5/12] RUN rm -f /etc/php8/conf.d/xdebug.ini.template                                                                                                                            0.5s
 => [ 6/12] RUN curl -sS https://getcomposer.org/installer | tee composer-setup.php     && php8 composer-setup.php && rm composer-setup.php*     && chmod +x composer.phar && mv com  1.2s
 => [ 7/12] RUN wget https://github.com/symfony/cli/releases/download/v4.23.2/symfony_linux_amd64.gz     && gzip -d symfony_linux_amd64.gz     && mv symfony_linux_amd64 symfony      2.3s
 => [ 8/12] RUN apk add --update nodejs npm     && npm install --global yarn                                                                                                          6.4s
 => [ 9/12] COPY symfony.ini /etc/php8/conf.d/                                                                                                                                        0.1s
 => [10/12] COPY symfony.ini /etc/php8/cli/conf.d/                                                                                                                                    0.1s
 => [11/12] COPY symfony.pool.conf /etc/php8/php-fpm.d/                                                                                                                               0.1s
 => [12/12] WORKDIR /var/www/symfony                                                                                                                                                  0.1s
 => exporting to image                                                                                                                                                                0.9s
 => => exporting layers                                                                                                                                                               0.8s
 => => writing image sha256:5d66afb550dcdf2b0f1d84b4f7c334e00c17faee65e7ba1db9a48613052cc7c0                                                                                          0.0s
 => => naming to docker.io/library/docker-symfony_php                                                                                                                                 0.0s
Successfully built 5d66afb550dcdf2b0f1d84b4f7c334e00c17faee65e7ba1db9a48613052cc7c0

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

No branches or pull requests

2 participants