-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Issue with libcurl in php:8.3-apache-bookworm causing connection errors #1542
Comments
What happens if you pull down the latest |
I apologize for the error in my initial request. I mentioned that the expected behavior was based on Summary of tests:
It seems the issue is specific to the bookworm distribution and the version of libcurl ( |
Ive read that some version of cUrl have issues with multiplexing with http2 so you try setting the http version to 1.1 using https://www.php.net/manual/en/curl.constants.php#constant.curlopt-http-version |
Thanks for the suggestion. |
🤔 If |
Hi @yosifkit, I tested with the docker run --rm -it \
--security-opt seccomp=unconfined \
-w /app \
php:8.3-apache-bookworm \
bash -c "apt-get update && apt-get install -y git unzip && curl -sS https://getcomposer.org/installer | php && php composer.phar create-project symfony/skeleton my_project" Unfortunately, I’m still seeing the same error: Failed to download psr/container from dist: curl error 2 while downloading https://api.github.com/repos/php-fig/container/zipball/c71ecc56dfe541dbd90c5360474fbc405f8d5963: [CONN-1-0] send: no filter connected It seems that disabling Thanks! |
Searching for related issues led me to rust-lang/cargo#12202 and rust-lang/cargo#12234, which are interesting (same symptoms, traced back to libcurl + proxy). So, it might be worth filing an issue in Debian to see if the version of libcurl in Bookworm could be updated to backport curl/curl@821f6e2 (as a bugfix), but I would not suggest holding your breath. 🙈 The "simpler" answer is probably to see if there's some ~easy way to disable multiplexing in composer's use of curl. 🤔 |
I'm also going to close this as it isn't strictly an issue with the |
Description:
When using the
php:8.3-apache-bookworm
Docker image behind a corporate proxy, I encountered an issue withcurl
duringcomposer install
. The error indicates a problem with the connection, and it didn't occur when using thephp:8.2-apache-bookworm
image. The error appears to be related tolibcurl
in the new PHP 8.3 image.Here is the error log:
Steps to reproduce the issue:
php:8.3-apache-bookworm
image behind a corporate proxy.composer install
with any project that requires dependencies from GitHub.Expected behavior:
The dependencies should be downloaded without connection issues, as they were with
php:8.2-apache-bookworm
php:8.2-apache-bullseye
.Additional information:
8.3.12
(cli)7.88.1-10+deb12u7
http_proxy
andhttps_proxy
environment variables)php:8.2-apache-bookworm
image, suggesting it may be related to the upgrade to PHP 8.3 and/or the version oflibcurl
.Please advise if any additional information is required to assist in debugging this issue.
The text was updated successfully, but these errors were encountered: