Home > Development Tools > composer > Solve the problem: composer failed to open stream: Operation now in progress

Solve the problem: composer failed to open stream: Operation now in progress

藏色散人
Release: 2021-03-23 17:55:00
forward
2881 people have browsed it

The tutorial column of composer below will introduce the solution to composer failed to open stream: Operation now in progress. I hope it will be helpful to friends in need!

I recently encountered a problem and I don’t know how to solve it. I found many methods online. None of them worked
Solve the problem: composer failed to open stream: Operation now in progress

At first I thought ssl was not supported, but I checked and found it was supported

php -i | grep -i ssl

SSL => Yes
SSL Version => OpenSSL/1.0.2r
core SSL => supported
extended SSL => supported
openssl
OpenSSL support => enabled
OpenSSL Library Version => OpenSSL 1.0.2r  26 Feb 2019
OpenSSL Header Version => OpenSSL 1.0.2q  20 Nov 2018
Openssl default config => /usr/local/etc/openssl/openssl.cnf
openssl.cafile => /usr/local/etc/openssl/cacert.pem => /usr/local/etc/openssl/cacert.pem
openssl.capath => /usr/local/etc/openssl => /usr/local/etc/openssl
SSL support => enabled
OpenSSL support => enabled
Copy after login

Later I saw someone said they wanted to update the ssl key

wget http://curl.haxx.se/ca/cacert.pem
Copy after login

Then configuring php.ini

curl.cainfo=/usr/local/etc/openssl/cacert.pem
openssl.cafile=/usr/local/etc/openssl/cacert.pem
openssl.capath=/usr/local/etc/openssl
Copy after login

has no effect. It seems that it is not because of these
The results after executing composer diagnose

composer diagnose
Copy after login

Solve the problem: composer failed to open stream: Operation now in progress

##Then one by one Let’s solve the error. First, github fails. I googled online and found that I need to set up a token. Why didn’t I need it before? It’s strange. Then try

composer config --global github-oauth.github.com <token>

or

//在composer.json 里加入
"github-oauth":{
 "github.com":"{token}" //替换成自己token
}</token>
Copy after login
token is generated at https://github. com/settings/t...

Execute composer diagnose

Checking composer.json: WARNING
require.illuminate/redis : unbound version constraints (*) should be avoided
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: OK
Checking github.com rate limit: OK
Checking disk free space: OK
Checking pubkeys:
Tags Public Key Fingerprint: 57815BA2 7E54DC31 7ECC7CC5 573090D0  87719BA6 8F3BB723 4E5D42D0 84A14642
Dev Public Key Fingerprint: 4AC45767 E5EC2265 2F0C1167 CBBB8A2B  0C708369 153E328C AD90147D AFE50952
OK
Checking composer version: OK
Composer version: 1.8.4
PHP version: 7.1.19
PHP binary path: /usr/bin/php
Copy after login
Done!

The above is the detailed content of Solve the problem: composer failed to open stream: Operation now in progress. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:segmentfault.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template