php / web-pecl

The PECL website
http://pecl.php.net
Other
32 stars 30 forks source link

Cannot connect to pecl.php.net from Docker #94

Open afilina opened 10 months ago

afilina commented 10 months ago

Hi,

After pecl.php.net/amqp was not found in my docker, I ran pecl update-channels, which resulted in this:

Updating channel "pecl.php.net"
Channel "pecl.php.net" is not responding over http://, failed with message: Connection to `pecl.php.net:80' failed: php_network_getaddresses: getaddrinfo for pecl.php.net failed: Try again
Trying channel "pecl.php.net" over https:// instead
Cannot retrieve channel.xml for channel "pecl.php.net" (Connection to `ssl://pecl.php.net:443' failed: php_network_getaddresses: getaddrinfo for pecl.php.net failed: Try again)

I am able to ping every single domain except for pecl.php.net. Earlier, when I tried to access this domain via my browser, it took over 20 seconds to resolve. I have seen many other people having the same problem online, but no solutions. Some people suggest that it might be a certificate issue on the server, but I have no control over it.

derickr commented 4 months ago

Is this still an issue? I think that if you have an unsupported PHP version, the OpenSSL it is built against doesn't understand the certificate type that we've been using for ages.

afilina commented 4 months ago

I was using PHP 8.1 for this one. This is the only not-ridiculously-outdated-PHP project I have :)

pecl update-channels is now working correctly, yet I don't see any changes in my docker setup to account for it. Not sure why it started working. It could be that there was indeed a temporary issue with the server's certs, which were since resolved. Feel free to close the issue.

derickr commented 4 months ago

Actually, I ran into this myself a day or so ago. So I'm leaving this open until I can dive into this.

I think that was with PHP 8.0 though, and an old openssl.

derickr commented 2 months ago

My error turned out to be different, as I just don't have OpenSSL in PHP 8.0:

$ pecl update-channels
Updating channel "doc.php.net"
Update of Channel "doc.php.net" succeeded
Updating channel "pear.php.net"
Channel "pear.php.net" is not responding over http://, failed with message: Connection to `ssl://pear.php.net:443' failed: 
Trying channel "pear.php.net" over https:// instead
Cannot retrieve channel.xml for channel "pear.php.net" (Connection to `ssl://pear.php.net:443' failed: )
Updating channel "pecl.php.net"
Channel "pecl.php.net" is up to date