Packagist: Packages.json is currently empty

Created on 16 Jan 2018  路  5Comments  路  Source: composer/packagist

This prevents us from installing packages.

$ composer require $SOMEPACKAGE

    "https://packagist.org/packages.json" does not contain valid JSON                                
Parse error on line 1:

^
Expected one of: 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '['
https://packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date


  [Composer\Downloader\TransportException]                                                                                                                                               

  The 

  "https://packagist.org/p/squizlabs/php_codesniffer%240fe2abab8df48fad6554ce54d59d460d38023dccf6
8b628227a1daeeaa10eba2.json" file could not be downloaded (HTTP/1.1 404 Not Found)  


$ curl https://packagist.org/packages.json? | wc -l
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                             Dload  Upload   Total   Spent    Left  Speed
 0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
 0

Tried from two different source IPs to rule out routing errors.

Most helpful comment

All 5 comments

The packages.json seems to be back, but composer require still fails

  [Composer\Repository\RepositorySecurityException]                                                                                                                                          
  The contents of https://packagist.org/p/provider-latest%240cbfb40ab72a881d21b70f78286d39cd72e3b0eb8704c13e79dc49624e549973.json do not match its signature. This could indicate a man-in-  
  the-middle attack. Try running composer again and report this if you think it is a mistake.

Worksforme after service nscd restart on Ubuntu (packagist.org IP needs to start with 144)

All systems have been restored and our DNS is updated with a 2min TTL so hopefully any future event we can react quicker. Sorry for the inconvenience and have a good day everyone.

Please don't forget to remove any /etc/hosts entries you made as they are not needed anymore.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

neelbhanushali picture neelbhanushali  路  5Comments

Riimu picture Riimu  路  3Comments

emil-nasso picture emil-nasso  路  8Comments

njh picture njh  路  4Comments

cannibal picture cannibal  路  5Comments