packagist: Problems with packagist.org hosting? "zlib_decode(): data error"

Over the weekend and also today, I keep getting zlib_decode(): data error errors when running composer update.

Updating dependencies (including require-dev)
Reading /home/picqer/.composer/cache/repo/https---packagist.org/p-provider-2013.json from cache
Reading /home/picqer/.composer/cache/repo/https---packagist.org/p-provider-2014.json from cache
Reading /home/picqer/.composer/cache/repo/https---packagist.org/p-provider-2015.json from cache
Reading /home/picqer/.composer/cache/repo/https---packagist.org/p-provider-2016-01.json from cache
Reading /home/picqer/.composer/cache/repo/https---packagist.org/p-provider-2016-04.json from cache
Downloading http://packagist.org/p/provider-2016-07%246b517546e49b0fd18faae23db87a75a1de24f8262098f9018ef06586e4485100.json
Writing /home/picqer/.composer/cache/repo/https---packagist.org/p-provider-2016-07.json into cache
Reading /home/picqer/.composer/cache/repo/https---packagist.org/p-provider-2016-10.json from cache
Reading /home/picqer/.composer/cache/repo/https---packagist.org/p-provider-archived.json from cache
Downloading http://packagist.org/p/provider-latest%24984b3c6e517457760c54952b2bb925ad599f2f7bdc544b5e6d7441a279d2eb46.json
Writing /home/picqer/.composer/cache/repo/https---packagist.org/p-provider-latest.json into cache
Reading /home/picqer/.composer/cache/repo/https---packagist.org/provider-h4cc$wkhtmltopdf-amd64.json from cache
Reading /home/picqer/.composer/cache/repo/https---packagist.org/provider-shuber$curl.json from cache
Reading /home/picqer/.composer/cache/repo/https---packagist.org/provider-knplabs$knp-snappy.json from cache
Reading /home/picqer/.composer/cache/repo/https---packagist.org/provider-picqer$bol-plaza-php-client.json from cache
Reading /home/picqer/.composer/cache/repo/https---packagist.org/provider-pronamic$twinfield.json from cache
Reading /home/picqer/.composer/cache/repo/https---packagist.org/provider-sneek$gocardless-pro.json from cache
Reading /home/picqer/.composer/cache/repo/https---packagist.org/provider-bluetools$moneybird-php-api.json from cache
Reading /home/picqer/.composer/cache/repo/https---packagist.org/provider-bugsnag$bugsnag.json from cache
Downloading http://packagist.org/p/nikic/php-parser%24811d3fa160a94187d8924b24f6f272424abd123fe72868f4590f981d9917b685.json
Failed to decode response: zlib_decode(): data error
Retrying with degraded mode, check https://getcomposer.org/doc/articles/troubleshooting.md#degraded-mode for more info
Downloading http://packagist.org/p/nikic/php-parser%24811d3fa160a94187d8924b24f6f272424abd123fe72868f4590f981d9917b685.json
Downloading http://packagist.org/p/nikic/php-parser%24811d3fa160a94187d8924b24f6f272424abd123fe72868f4590f981d9917b685.json
Downloading http://packagist.org/p/nikic/php-parser%24811d3fa160a94187d8924b24f6f272424abd123fe72868f4590f981d9917b685.json


  [ErrorException]
  zlib_decode(): data error


Exception trace:
 () at phar:///usr/local/bin/composer/src/Composer/Util/RemoteFilesystem.php:388
 Composer\Util\ErrorHandler::handle() at n/a:n/a
 zlib_decode() at phar:///usr/local/bin/composer/src/Composer/Util/RemoteFilesystem.php:388
 Composer\Util\RemoteFilesystem->get() at phar:///usr/local/bin/composer/src/Composer/Util/RemoteFilesystem.php:101
 Composer\Util\RemoteFilesystem->getContents() at phar:///usr/local/bin/composer/src/Composer/Repository/ComposerRepository.php:646
 Composer\Repository\ComposerRepository->fetchFile() at phar:///usr/local/bin/composer/src/Composer/Repository/ComposerRepository.php:332
 Composer\Repository\ComposerRepository->whatProvides() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Pool.php:204
 Composer\DependencyResolver\Pool->computeWhatProvides() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Pool.php:193
 Composer\DependencyResolver\Pool->whatProvides() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleSetGenerator.php:168
 Composer\DependencyResolver\RuleSetGenerator->whitelistFromPackage() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleSetGenerator.php:322
 Composer\DependencyResolver\RuleSetGenerator->getRulesFor() at phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Solver.php:214
 Composer\DependencyResolver\Solver->solve() at phar:///usr/local/bin/composer/src/Composer/Installer.php:461
 Composer\Installer->doInstall() at phar:///usr/local/bin/composer/src/Composer/Installer.php:216
 Composer\Installer->run() at phar:///usr/local/bin/composer/src/Composer/Command/UpdateCommand.php:174
 Composer\Command\UpdateCommand->execute() at phar:///usr/local/bin/composer/vendor/symfony/console/Command/Command.php:259
 Symfony\Component\Console\Command\Command->run() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:847
 Symfony\Component\Console\Application->doRunCommand() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:192
 Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:231
 Composer\Console\Application->doRun() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:123
 Symfony\Component\Console\Application->run() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:104
 Composer\Console\Application->run() at phar:///usr/local/bin/composer/bin/composer:43
 require() at /usr/local/bin/composer:24

I tried a lot of things, like disabling IPv6 and with different internet connections. And it fails on different packages, but always on the packagist.org host. All Github and other downloads succeed every time.

My internet connection is working fine, low pings and fast speeds (100Mb/s+) and tried different DNS servers and different providers, so this should not matter.

So it looks like trouble with the hosting of packagist.org

Anyone else has this same problem? And hopefully someone has a solution?

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 2
  • Comments: 17 (2 by maintainers)

Most upvoted comments

VirtualBox is known to cause issue. See composer/composer#5814

I am having the same issue. They appear to be working on the issue.

https://twitter.com/packagist?ref_src=twsrc^google|twcamp^serp|twgr^author

“Our North American mirror for http://packagist.org is having some issues leading to Content-Length errors. We are aware and working on it”