Aliyun centos7 has problems with composer install

problem description

there is a problem with composer install on Ali CVM.

the platform version of the problem and what methods you have tried

The

framework is the laravel framework, and there is no problem with local testing, but there is a problem on the server

Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 51 installs, 0 updates, 0 removals

  • Installing ramsey/uuid (3.7.3): Downloading (failed) Failed to download ramsey/uuid from dist: The "https://files.phpcomposer.com/files/ramsey/uuid/44abcdad877d9a46685a3a4d221e3b2c4b87cb76.zip" file could not be downloaded (HTTP/1.1 405 Not Allowed)
    Now trying to download from source
  • Installing ramsey/uuid (3.7.3): Cloning 44abcdad87
  • Installing psr/simple-cache (1.0.1): Downloading (failed) Failed to download psr/simple-cache from dist: The "https://files.phpcomposer.com/files/php-fig/simple-cache/408d5eafb83c57f6365a3ca330ff23aa4a5fa39b.zip" file could not be downloaded (HTTP/1.1 405 Not Allowed)
    Now trying to download from source
  • Installing psr/simple-cache (1.0.1): Cloning 408d5eafb8
  • Installing psr/container (1.0.0): Downloading (failed) Failed to download psr/container from dist: The "https://files.phpcomposer.com/files/php-fig/container/b7ce3b176482dbbc1245ebf52b181af44c2cf55f.zip" file could not be downloaded (HTTP/1.1 405 Not Allowed)
    Now trying to download from source
  • Installing psr/container (1.0.0): Cloning b7ce3b1764
  • Installing symfony/translation (v4.1.1): Downloading (failed) Failed to download symfony/translation from dist: The "https://files.phpcomposer.com/files/symfony/translation/b6d8164085ee0b6debcd1b7a131fd6f63bb04854.zip" file could not be downloaded (HTTP/1.1 405 Not Allowed)
    Now trying to download from source
  • Installing symfony/translation (v4.1.1): Cloning b6d8164085
  • Installing nesbot/carbon (1.31.1): Downloading (failed) Failed to download nesbot/carbon from dist: The "https://files.phpcomposer.com/files/briannesbitt/Carbon/385780c8ca2dbfd25452666e3f55e8dc1df58c41.zip" file could not be downloaded (HTTP/1.1 405 Not Allowed) )
Jun.29,2021

should be a mirror problem. https://pkg.phpcomposer.com/.


the same problem has been encountered locally, sometimes good and sometimes bad. I don't know how the guy upstairs solved it!


give me my own plan.

I can install it locally, although it takes a lot of time. Timeout will be reported in the middle of Ali CVM, and it is useless to set up a domestic image. It has been tried no less than five or six times.

finally, I copied the local composer image cache to the server and extracted it to the server's corresponding composer cache directory, then deleted / vendor and composer.lock again composer install finally succeeded. It was also very time-consuming and was not sure whether it was a matter of luck or really worked. There was no way to try it.


Delete the vendor folder and composer.lock, re-composer install


directly use composer update

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e45bdd-43894.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e45bdd-43894.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?