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

Using turnkey-composer fails to install Symfony #1960

Open
JedMeister opened this issue Jun 19, 2024 · 0 comments
Open

Using turnkey-composer fails to install Symfony #1960

JedMeister opened this issue Jun 19, 2024 · 0 comments
Labels
bug common Bugs/feature requests that require changes to shared common build code symfony
Milestone

Comments

@JedMeister
Copy link
Member

JedMeister commented Jun 19, 2024

Installing Symfony using turnkey-composer is failing - specifically symfony/apache-pack. I'm sure that using turnkey-composer in other php composer installs has worked ok!?

Initially I thought it might have been a squid (proxy) problem, but I tried clearing the squid cache and same result. It's reproducible on another TKLDev.

The issue is that it's timing out downloading the flex json file. The install works fine up until that point. Clearly that is a 404 download error, but it occurs consistently when using turnkey-composer. For some very strange and unknown reason, running composer as root (as per turnkeylinux-apps/symfony#20) works fine?!

The relevant part (end) of the build log:

root@tkldev .../products/symfony# make
[...]
+ chown -R www-data:www-data /var/www/symfony
+ cd /var/www/symfony
+ export COMPOSER_NO_INTERACTION=1
+ COMPOSER_NO_INTERACTION=1
+ turnkey-composer require symfony/apache-pack

In CurlDownloader.php line 623:
                                                                                                                           
  The "https://raw.githubusercontent.com/symfony/recipes/flex/main/index.json" file could not be downloaded (HTTP/2 404 )  
                                                                                                                           

require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [<packages>...]

make: *** [/usr/share/fab/product.mk:577: build/stamps/root.patched] Error 255

turnkey-composer at commit e8332bd

symphony at commit 477e11d

@JedMeister JedMeister added bug symfony common Bugs/feature requests that require changes to shared common build code labels Jun 19, 2024
@JedMeister JedMeister added this to the 18.1 milestone Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug common Bugs/feature requests that require changes to shared common build code symfony
Projects
None yet
Development

No branches or pull requests

1 participant