mlocati / docker-php-extension-installer

Easily install PHP extensions in Docker containers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No releases available for package "pecl.php.net/redis"

okami-chen opened this issue · comments

Version of install-php-extensions

install-php-extensions redis

Error description

123.5 ### INSTALLING REMOTE MODULE redis ###
128.6 No releases available for package "pecl.php.net/redis"
128.6 install failed

Docker image

php:8.2-fpm-alpine

Minimal Dockerfile

FROM php:8.2-fpm-alpine

COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/

ARG DOCKER_ENV=production
ENV TIMEZONE=${timezone:-"Asia/Shanghai"} \
    LANG=C.UTF-8 \
    COMPOSER_ALLOW_SUPERUSER=1

RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories && apk update \
&& apk add -U tzdata \
&& cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo "Asia/Shanghai" > /etc/timezone \
&& apk del tzdata \
&& install-php-extensions intl ldap dba shmop calendar exif gettext pcntl sysvsem sysvshm sysvmsg soap \
pdo_mysql mysqli bcmath sockets zip bz2 redis opcache @composer amqp mongodb xlswriter \
&& composer config -g repo.packagist composer https://mirrors.cloud.tencent.com/composer/ \
&& apk update && apk upgrade && apk add --no-cache bash bash-completion supervisor nginx \
&& chmod +x /opt/start.sh && mkdir -p /run/nginx

EXPOSE 80

CMD ["/opt/start.sh"]

No releases available for package "pecl.php.net/redis"

This error message tipically indicates that pecl (the command used by install-php-extensions to fetch PHP extensions) can't connect to the pecl.php.net website.

Maybe the pecl.php.net website has been temporarily down, or you have network problems (maybe the Great Firewall?)

Accessible through Chrome browser,There is no such problem when use php:8.2-fpm-buster Docker Image.

I also don't have any issue with php:8.2-fpm-alpine:

$ cat Dockerfile

FROM php:8.2-fpm-alpine

COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/

ARG DOCKER_ENV=production
ENV TIMEZONE=${timezone:-"Asia/Shanghai"} \
    LANG=C.UTF-8 \
    COMPOSER_ALLOW_SUPERUSER=1

RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories && apk update \
&& apk add -U tzdata \
&& cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo "Asia/Shanghai" > /etc/timezone \
&& apk del tzdata \
&& install-php-extensions intl ldap dba shmop calendar exif gettext pcntl sysvsem sysvshm sysvmsg soap \
pdo_mysql mysqli bcmath sockets zip bz2 redis opcache @composer amqp mongodb xlswriter \
&& composer config -g repo.packagist composer https://mirrors.cloud.tencent.com/composer/ \
&& apk update && apk upgrade && apk add --no-cache bash bash-completion supervisor nginx \
&& chmod +x /opt/start.sh && mkdir -p /run/nginx

And here's the output of docker build --progress plain .: build.log (it fails at the final command chmod: /opt/start.sh: No such file or directory, but everything works just fine before it)

I have the same issue with:

  • redis
  • amqp
  • mcrypt

Since today with no change. with image php:8.1.2-fpm-alpine

I'v read the topic but i don't know how to bypass this problem of cert in php 7.x images

FROM php:7.3.33-fpm-alpine3.15

# Apk install
RUN apk --no-cache update && apk upgrade && apk --no-cache add bash ca-certificates nano nodejs npm yarn git
RUN update-ca-certificates

# Install composer
RUN wget --no-check-certificate -O composer-setup.php https://getcomposer.org/installer
RUN php composer-setup.php --disable-tls --install-dir=/usr/local/bin --filename=composer

# Symfony CLI
RUN curl -1sLf 'https://dl.cloudsmith.io/public/symfony/stable/setup.alpine.sh' | bash
RUN apk add symfony-cli

# Install php extension
ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
RUN install-php-extensions redis opcache ctype iconv pcre session intl pdo_mysql pdo_oci

I dont found any solution on web, i'v make a fix for the composer ssl error by disabling tls verify but, how to fix globally on docker image ? any guy have link or topic about it ?

I'v read this topic, but the pecl website is totally up for me, i'v other problem in this same instance with all ssl connections, with composer, etc... I'v tried to replace cacert in all place in the container, not working more... This example work perfectly with FROM php:8.2-fpm-alpine3.18...

I'm stuck from hours, i'm mad :D

Maybe you are behind the Great Firewall?

I'm behind nothing, no specific network, and i reapeat, the php:8.2-fpm-alpine3.18 work perfectly with same commands...

I've just tested your example (using php:7.3.33-fpm-alpine3.15) and everything's fine for me.

I just switched to mobile connection and i'v the same problem... Maybe the problem is outside the container ? I'm on docker windows inside WSL debian

image

No advance here

This dont work

FROM php:7.3-fpm-bullseye

# Install php extension
ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
RUN install-php-extensions redis
Deploying '<unknown> Dockerfile: php-7.3-fpm/Dockerfile'…
[+] Building 9.3s (8/8) FINISHED                                                                                                                docker:default
 => [internal] load build definition from Dockerfile                                                                                                      0.0s
 => => transferring dockerfile: 261B                                                                                                                      0.0s
 => [internal] load metadata for docker.io/library/php:7.3-fpm-bullseye                                                                                   0.8s
 => [auth] library/php:pull token for registry-1.docker.io                                                                                                0.0s
 => [internal] load .dockerignore                                                                                                                         0.0s
 => => transferring context: 2B                                                                                                                           0.0s
 => [2/3] ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/      0.5s
 => [1/3] FROM docker.io/library/php:7.3-fpm-bullseye@sha256:2d68e401d2d3b9f8a6572791cd7a25062450c43ff52e58391146809741ad0885                             0.0s
 => CACHED [2/3] ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/b  0.0s
 => ERROR [3/3] RUN install-php-extensions redis                                                                                                          7.9s
------                                                                                                                                                         
 > [3/3] RUN install-php-extensions redis:                                                                                                                     
0.271 install-php-extensions v.2.2.12                                                                                                                          
0.271 #StandWithUkraine
1.706 Updating channel "pecl.php.net"
1.922 Update of Channel "pecl.php.net" succeeded
2.008 Get:1 http://security.debian.org/debian-security bullseye-security InRelease [48.4 kB]
2.019 Get:2 http://deb.debian.org/debian bullseye InRelease [116 kB]
2.040 Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
2.141 Get:4 http://security.debian.org/debian-security bullseye-security/main amd64 Packages [271 kB]
2.183 Get:5 http://deb.debian.org/debian bullseye/main amd64 Packages [8068 kB]
2.450 Get:6 http://deb.debian.org/debian bullseye-updates/main amd64 Packages [18.8 kB]
3.275 Fetched 8565 kB in 1s (6425 kB/s)
3.275 Reading package lists...
5.514 ### MARKING PRE-INSTALLED PACKAGES AS IN-USE ###
6.048 libzstd1 set to manually installed.
6.048 liblz4-1 set to manually installed.
6.049 ### INSTALLING REQUIRED PACKAGES ###
6.049 # Packages to be kept after installation: 
6.049 # Packages to be used only for installation: liblz4-dev libzstd-dev
6.978 debconf: delaying package configuration, since apt-utils is not installed
7.026 Selecting previously unselected package liblz4-dev:amd64.
7.026 (Reading database ... (Reading database ... 5%(Reading database ... 10%(Reading database ... 15%(Reading database ... 20%(Reading database ... 25%(Reading database ... 30%(Reading database ... 35%(Reading database ... 40%(Reading database ... 45%(Reading database ... 50%(Reading database ... 55%(Reading database ... 60%(Reading database ... 65%(Reading database ... 70%(Reading database ... 75%(Reading database ... 80%(Reading database ... 85%(Reading database ... 90%(Reading database ... 95%(Reading database ... 100%(Reading database ... 13148 files and directories currently installed.)
7.037 Preparing to unpack .../liblz4-dev_1.9.3-2_amd64.deb ...
7.043 Unpacking liblz4-dev:amd64 (1.9.3-2) ...
7.082 Selecting previously unselected package libzstd-dev:amd64.
7.084 Preparing to unpack .../libzstd-dev_1.4.8+dfsg-2.1_amd64.deb ...
7.091 Unpacking libzstd-dev:amd64 (1.4.8+dfsg-2.1) ...
7.166 Setting up libzstd-dev:amd64 (1.4.8+dfsg-2.1) ...
7.184 Setting up liblz4-dev:amd64 (1.9.3-2) ...
7.215 ### INSTALLING REMOTE MODULE redis ###
7.576 No releases available for package "pecl.php.net/redis"
7.576 install failed
------
Dockerfile:5
--------------------
   3 |     # Install php extension
   4 |     ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
   5 | >>> RUN install-php-extensions redis
--------------------
ERROR: failed to solve: process "/bin/sh -c install-php-extensions redis" did not complete successfully: exit code: 1

And this, work...

FROM php:8.2-fpm-bullseye

# Install php extension
ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
RUN install-php-extensions redis
Deploying '<unknown> Dockerfile: php-7.3-fpm/Dockerfile'…
[+] Building 1.1s (8/8) FINISHED                                                                                                                docker:default
 => [internal] load build definition from Dockerfile                                                                                                      0.0s
 => => transferring dockerfile: 261B                                                                                                                      0.0s
 => [internal] load metadata for docker.io/library/php:8.2-fpm-bullseye                                                                                   0.5s
 => [internal] load .dockerignore                                                                                                                         0.0s
 => => transferring context: 2B                                                                                                                           0.0s
 => [2/3] ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/      0.4s
 => [1/3] FROM docker.io/library/php:8.2-fpm-bullseye@sha256:5d171ccd5635cc7e2b3f60b616dfb213a488950e2c77d82058427cc59252df8d                             0.0s
 => CACHED [2/3] ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/b  0.0s
 => CACHED [3/3] RUN install-php-extensions redis                                                                                                         0.0s
 => exporting to image                                                                                                                                    0.0s
 => => exporting layers                                                                                                                                   0.0s
 => => writing image sha256:ba2f5a3fc6628d9f333754fd51cfe35850a7c96012d441d125f31ac7afb6c75e                                                              0.0s
Creating container…
Container Id: cd3859d9b6b28127141a2f4a647470c132c1a744fd8b736be9881c0eb301dd6f
Container name: '/lucid_stonebraker'
Starting container '/lucid_stonebraker'

Same context, same machine, same all

In order to check the HTTPS connection to the pecl website you can simply rin the following command inside your container:

curl -vf -o- https://pecl.php.net/rest/r/redis/allreleases.xml

And this is working for me wth php:7.3-fpm-bullseye.

By running

docker run --rm -it php:7.3-fpm-bullseye curl -vf -o- https://pecl.php.net/rest/r/redis/allreleases.xml

I have this (successful) output:

*   Trying 104.236.228.160:443...
* Connected to pecl.php.net (104.236.228.160) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*  CAfile: /etc/ssl/certs/ca-certificates.crt
*  CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use http/1.1
* Server certificate:
*  subject: CN=pecl.php.net
*  start date: Mar 10 18:56:42 2024 GMT
*  expire date: Jun  8 18:56:41 2024 GMT
*  subjectAltName: host "pecl.php.net" matched cert's "pecl.php.net"
*  issuer: C=US; O=Let's Encrypt; CN=R3
*  SSL certificate verify ok.
> GET /rest/r/redis/allreleases.xml HTTP/1.1
> Host: pecl.php.net
> User-Agent: curl/7.74.0
> Accept: */*
>
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* old SSL session ID is stale, removing
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Date: Fri, 19 Apr 2024 12:58:18 GMT
< Server: Apache/2.4.57 (Debian)
< Last-Modified: Sun, 22 Oct 2023 17:59:13 GMT
< ETag: "b19-60851dcffe9ff"
< Accept-Ranges: bytes
< Content-Length: 2841
< Vary: Accept-Encoding
< Strict-Transport-Security: max-age=31536000
< Content-Type: application/xml
<
<?xml version="1.0" encoding="UTF-8" ?>
<a xmlns="http://pear.php.net/dtd/rest.allreleases"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink"     xsi:schemaLocation="http://pear.php.net/dtd/rest.allreleases
    http://pear.php.net/dtd/rest.allreleases.xsd">
 <p>redis</p>
 <c>pecl.php.net</c>
 <r><v>6.0.2</v><s>stable</s></r>
 <r><v>6.0.1</v><s>stable</s></r>
 <r><v>6.0.0</v><s>stable</s></r>
 <r><v>6.0.0RC2</v><s>beta</s></r>
 <r><v>6.0.0RC1</v><s>alpha</s></r>
 <r><v>5.3.7</v><s>stable</s></r>
 <r><v>5.3.7RC2</v><s>beta</s></r>
 <r><v>5.3.7RC1</v><s>alpha</s></r>
 <r><v>5.3.6</v><s>stable</s></r>
 <r><v>5.3.5</v><s>stable</s></r>
 <r><v>5.3.5RC1</v><s>beta</s></r>
 <r><v>5.3.4</v><s>stable</s></r>
 <r><v>5.3.3</v><s>stable</s></r>
 <r><v>5.3.2</v><s>stable</s></r>
 <r><v>5.3.2RC2</v><s>beta</s></r>
 <r><v>5.3.2RC1</v><s>alpha</s></r>
 <r><v>5.3.1</v><s>stable</s></r>
 <r><v>5.3.0</v><s>stable</s></r>
 <r><v>5.3.0RC2</v><s>beta</s></r>
 <r><v>5.3.0RC1</v><s>alpha</s></r>
 <r><v>5.2.2</v><s>stable</s></r>
 <r><v>5.2.1</v><s>stable</s></r>
 <r><v>5.2.0</v><s>stable</s></r>
 <r><v>5.2.0RC2</v><s>alpha</s></r>
 <r><v>5.2.0RC1</v><s>alpha</s></r>
 <r><v>5.1.1</v><s>stable</s></r>
 <r><v>5.1.0</v><s>stable</s></r>
 <r><v>5.1.0RC2</v><s>beta</s></r>
 <r><v>5.1.0RC1</v><s>alpha</s></r>
 <r><v>5.0.2</v><s>stable</s></r>
 <r><v>5.0.1</v><s>stable</s></r>
 <r><v>5.0.0</v><s>stable</s></r>
 <r><v>5.0.0RC2</v><s>beta</s></r>
 <r><v>5.0.0RC1</v><s>alpha</s></r>
 <r><v>4.3.0</v><s>stable</s></r>
 <r><v>4.3.0RC2</v><s>beta</s></r>
 <r><v>4.3.0RC1</v><s>alpha</s></r>
 <r><v>4.2.0</v><s>stable</s></r>
 <r><v>4.2.0RC3</v><s>beta</s></r>
 <r><v>4.2.0RC2</v><s>beta</s></r>
 <r><v>4.2.0RC1</v><s>alpha</s></r>
 <r><v>4.1.1</v><s>stable</s></r>
 <r><v>4.1.0</v><s>stable</s></r>
 <r><v>4.1.0RC3</v><s>beta</s></r>
 <r><v>4.1.0RC2</v><s>beta</s></r>
 <r><v>4.1.0RC1</v><s>alpha</s></r>
 <r><v>4.0.2</v><s>stable</s></r>
 <r><v>4.0.1</v><s>stable</s></r>
 <r><v>4.0.0</v><s>stable</s></r>
 <r><v>4.0.0RC2</v><s>beta</s></r>
 <r><v>4.0.0RC1</v><s>alpha</s></r>
 <r><v>3.1.6</v><s>stable</s></r>
 <r><v>3.1.5</v><s>stable</s></r>
 <r><v>3.1.5RC2</v><s>beta</s></r>
 <r><v>3.1.5RC1</v><s>beta</s></r>
 <r><v>3.1.4</v><s>stable</s></r>
 <r><v>3.1.4RC3</v><s>beta</s></r>
 <r><v>3.1.4RC2</v><s>beta</s></r>
 <r><v>3.1.4RC1</v><s>beta</s></r>
 <r><v>3.1.3</v><s>stable</s></r>
 <r><v>3.1.3RC2</v><s>beta</s></r>
 <r><v>3.1.3RC1</v><s>beta</s></r>
 <r><v>3.1.2</v><s>stable</s></r>
 <r><v>3.1.1</v><s>stable</s></r>
 <r><v>3.1.1RC2</v><s>beta</s></r>
 <r><v>3.1.0</v><s>stable</s></r>
 <r><v>3.0.0</v><s>stable</s></r>
 <r><v>2.2.8</v><s>stable</s></r>
 <r><v>2.2.7</v><s>stable</s></r>
 <r><v>2.2.5</v><s>stable</s></r>
 <r><v>2.2.4</v><s>stable</s></r>
 <r><v>2.2.3</v><s>stable</s></r>

In order to check the HTTPS connection to the pecl website you can simply rin the following command inside your container:

curl -vf -o- https://pecl.php.net/rest/r/redis/allreleases.xml

This looks good..

image

For information i'v the same strange comportment with all SSL access.
For exemple, with image php 7.3.3

FROM php:7.3-fpm-bullseye

RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && php composer-setup.php && php -r "unlink('composer-setup.php');" && mv composer.phar /usr/local/bin/composer

Produce this

Deploying '<unknown> Dockerfile: php-7.3-fpm/Dockerfile'…
[+] Building 3.4s (5/5) FINISHED                                                                                                                docker:default
 => [internal] load build definition from Dockerfile                                                                                                      0.0s
 => => transferring dockerfile: 255B                                                                                                                      0.0s
 => [internal] load metadata for docker.io/library/php:7.3-fpm-bullseye                                                                                   0.8s
 => [internal] load .dockerignore                                                                                                                         0.0s
 => => transferring context: 2B                                                                                                                           0.0s
 => CACHED [1/2] FROM docker.io/library/php:7.3-fpm-bullseye@sha256:2d68e401d2d3b9f8a6572791cd7a25062450c43ff52e58391146809741ad0885                      0.0s
 => ERROR [2/2] RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && php composer-setup.php && php -r "unlink('composer-setu  2.6s
------                                                                                                                                                         
 > [2/2] RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && php composer-setup.php && php -r "unlink('composer-setup.php');" && mv composer.phar /usr/local/bin/composer:                                                                                                                       
2.527                                                                                                                                                          
2.527 Warning: copy(): SSL operation failed with code 1. OpenSSL Error messages:
2.527 error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac in Command line code on line 1
2.527 
2.527 Warning: copy(): Failed to enable crypto in Command line code on line 1
2.527 
2.527 Warning: copy(https://getcomposer.org/installer): failed to open stream: operation failed in Command line code on line 1
2.539 Could not open input file: composer-setup.php
------
Dockerfile:3
--------------------
   1 |     FROM php:7.3-fpm-bullseye
   2 |     
   3 | >>> RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && php composer-setup.php && php -r "unlink('composer-setup.php');" && mv composer.phar /usr/local/bin/composer
--------------------
ERROR: failed to solve: process "/bin/sh -c php -r \"copy('https://getcomposer.org/installer', 'composer-setup.php');\" && php composer-setup.php && php -r \"unlink('composer-setup.php');\" && mv composer.phar /usr/local/bin/composer" did not complete successfully: exit code: 1

But with 8.2....

FROM php:8.2-fpm-bullseye

RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && php composer-setup.php && php -r "unlink('composer-setup.php');" && mv composer.phar /usr/local/bin/composer
Deploying '<unknown> Dockerfile: php-7.3-fpm/Dockerfile'…
[+] Building 0.6s (6/6) FINISHED                                                                                                                docker:default
 => [internal] load build definition from Dockerfile                                                                                                      0.0s
 => => transferring dockerfile: 255B                                                                                                                      0.0s
 => [internal] load metadata for docker.io/library/php:8.2-fpm-bullseye                                                                                   0.5s
 => [internal] load .dockerignore                                                                                                                         0.0s
 => => transferring context: 2B                                                                                                                           0.0s
 => [1/2] FROM docker.io/library/php:8.2-fpm-bullseye@sha256:5d171ccd5635cc7e2b3f60b616dfb213a488950e2c77d82058427cc59252df8d                             0.0s
 => CACHED [2/2] RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && php composer-setup.php && php -r "unlink('composer-set  0.0s
 => exporting to image                                                                                                                                    0.0s
 => => exporting layers                                                                                                                                   0.0s
 => => writing image sha256:5cf68c268967e6106992837d1d274240f916f0f511aae0cd0b3fa456891350f5                                                              0.0s
Existing container found: c9e9ce63cabe201e30d973a07926afda85685a9e2c0154e76bef5cd3aa10629a, removing…
Creating container…
Container Id: 459fb3b40a88269fdccf9e107b2d74b7ba3a2b4c1dda8417e1d3711cd889e8cb
Container name: '/busy_mestorf'
Starting container '/busy_mestorf'

What's the output of

docker run --rm -it php:7.3-fpm-bullseye curl -vf -o- https://pecl.php.net/rest/r/redis/allreleases.xml

for you?

Same here

~/docker$ docker run --rm -it php:7.3-fpm-bullseye curl -vf -o- https://pecl.php.net/rest/r/redis/allreleases.xml
Unable to find image 'php:7.3-fpm-bullseye' locally
7.3-fpm-bullseye: Pulling from library/php
ae13dd578326: Already exists
f15d475049bf: Already exists
886e5161983f: Already exists
aa7666573a25: Already exists
6db1ed4113b8: Already exists
652562f77d1e: Already exists
bcfce89d8d7c: Already exists
dc59a6f9596d: Already exists
c563806393c3: Already exists
fdbaab56fec9: Already exists
83f659d1b6c5: Already exists
Digest: sha256:2d68e401d2d3b9f8a6572791cd7a25062450c43ff52e58391146809741ad0885
Status: Downloaded newer image for php:7.3-fpm-bullseye
*   Trying 104.236.228.160:443...
* Connected to pecl.php.net (104.236.228.160) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*  CAfile: /etc/ssl/certs/ca-certificates.crt
*  CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use http/1.1
* Server certificate:
*  subject: CN=pecl.php.net
*  start date: Mar 10 18:56:42 2024 GMT
*  expire date: Jun  8 18:56:41 2024 GMT
*  subjectAltName: host "pecl.php.net" matched cert's "pecl.php.net"
*  issuer: C=US; O=Let's Encrypt; CN=R3
*  SSL certificate verify ok.
> GET /rest/r/redis/allreleases.xml HTTP/1.1
> Host: pecl.php.net
> User-Agent: curl/7.74.0
> Accept: */*
>
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* old SSL session ID is stale, removing
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Date: Fri, 19 Apr 2024 13:02:58 GMT
< Server: Apache/2.4.57 (Debian)
< Last-Modified: Sun, 22 Oct 2023 17:59:13 GMT
< ETag: "b19-60851dcffe9ff"
< Accept-Ranges: bytes
< Content-Length: 2841
< Vary: Accept-Encoding
< Strict-Transport-Security: max-age=31536000
< Content-Type: application/xml
<
<?xml version="1.0" encoding="UTF-8" ?>
<a xmlns="http://pear.php.net/dtd/rest.allreleases"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink"     xsi:schemaLocation="http://pear.php.net/dtd/rest.allreleases
    http://pear.php.net/dtd/rest.allreleases.xsd">
 <p>redis</p>
 <c>pecl.php.net</c>
 <r><v>6.0.2</v><s>stable</s></r>
 <r><v>6.0.1</v><s>stable</s></r>
 <r><v>6.0.0</v><s>stable</s></r>
 <r><v>6.0.0RC2</v><s>beta</s></r>
 <r><v>6.0.0RC1</v><s>alpha</s></r>
 <r><v>5.3.7</v><s>stable</s></r>
 <r><v>5.3.7RC2</v><s>beta</s></r>
 <r><v>5.3.7RC1</v><s>alpha</s></r>
 <r><v>5.3.6</v><s>stable</s></r>
 <r><v>5.3.5</v><s>stable</s></r>
 <r><v>5.3.5RC1</v><s>beta</s></r>
 <r><v>5.3.4</v><s>stable</s></r>
 <r><v>5.3.3</v><s>stable</s></r>
 <r><v>5.3.2</v><s>stable</s></r>
 <r><v>5.3.2RC2</v><s>beta</s></r>
 <r><v>5.3.2RC1</v><s>alpha</s></r>
 <r><v>5.3.1</v><s>stable</s></r>
 <r><v>5.3.0</v><s>stable</s></r>
 <r><v>5.3.0RC2</v><s>beta</s></r>
 <r><v>5.3.0RC1</v><s>alpha</s></r>
 <r><v>5.2.2</v><s>stable</s></r>
 <r><v>5.2.1</v><s>stable</s></r>
 <r><v>5.2.0</v><s>stable</s></r>
 <r><v>5.2.0RC2</v><s>alpha</s></r>
 <r><v>5.2.0RC1</v><s>alpha</s></r>
 <r><v>5.1.1</v><s>stable</s></r>
 <r><v>5.1.0</v><s>stable</s></r>
 <r><v>5.1.0RC2</v><s>beta</s></r>
 <r><v>5.1.0RC1</v><s>alpha</s></r>
 <r><v>5.0.2</v><s>stable</s></r>
 <r><v>5.0.1</v><s>stable</s></r>
 <r><v>5.0.0</v><s>stable</s></r>
 <r><v>5.0.0RC2</v><s>beta</s></r>
 <r><v>5.0.0RC1</v><s>alpha</s></r>
 <r><v>4.3.0</v><s>stable</s></r>
 <r><v>4.3.0RC2</v><s>beta</s></r>
 <r><v>4.3.0RC1</v><s>alpha</s></r>
 <r><v>4.2.0</v><s>stable</s></r>
 <r><v>4.2.0RC3</v><s>beta</s></r>
 <r><v>4.2.0RC2</v><s>beta</s></r>
 <r><v>4.2.0RC1</v><s>alpha</s></r>
 <r><v>4.1.1</v><s>stable</s></r>
 <r><v>4.1.0</v><s>stable</s></r>
 <r><v>4.1.0RC3</v><s>beta</s></r>
 <r><v>4.1.0RC2</v><s>beta</s></r>
 <r><v>4.1.0RC1</v><s>alpha</s></r>
 <r><v>4.0.2</v><s>stable</s></r>
 <r><v>4.0.1</v><s>stable</s></r>
 <r><v>4.0.0</v><s>stable</s></r>
 <r><v>4.0.0RC2</v><s>beta</s></r>
 <r><v>4.0.0RC1</v><s>alpha</s></r>
 <r><v>3.1.6</v><s>stable</s></r>
 <r><v>3.1.5</v><s>stable</s></r>
 <r><v>3.1.5RC2</v><s>beta</s></r>
 <r><v>3.1.5RC1</v><s>beta</s></r>
 <r><v>3.1.4</v><s>stable</s></r>
 <r><v>3.1.4RC3</v><s>beta</s></r>
 <r><v>3.1.4RC2</v><s>beta</s></r>
 <r><v>3.1.4RC1</v><s>beta</s></r>
 <r><v>3.1.3</v><s>stable</s></r>
 <r><v>3.1.3RC2</v><s>beta</s></r>
 <r><v>3.1.3RC1</v><s>beta</s></r>
 <r><v>3.1.2</v><s>stable</s></r>
 <r><v>3.1.1</v><s>stable</s></r>
 <r><v>3.1.1RC2</v><s>beta</s></r>
 <r><v>3.1.0</v><s>stable</s></r>
 <r><v>3.0.0</v><s>stable</s></r>
 <r><v>2.2.8</v><s>stable</s></r>
 <r><v>2.2.7</v><s>stable</s></r>
 <r><v>2.2.5</v><s>stable</s></r>
 <r><v>2.2.4</v><s>stable</s></r>
 <r><v>2.2.3</v><s>stable</s></r>
* Connection #0 to host pecl.php.net left intact

From env 7.3.33

image

From env 8.2

image

For the update,

I do not reproduce the problem from home (Another PC but strictly same configuration, same version of Linux subsystem, same WSL debian, same Dockerfile)

There is something that must come from the host machine in terms of SSL certificate...

Oh fuck.

My company uses Kaspersky, that's all I see. I've seen people mention it on forums, but I've never tried to deactivate it. That would be him filtering and screwing up his certificate. It is obviously only present on the PC where the build poses a problem.

I'll let you know tomorrow but I want to break everything sldifughsldkufjghlsdkjfg

I'm glad you identified the cause of your problem