Bumbolt
Bumbolt

Reputation: 157

No route to host. Github (composer) on ubuntu

I'm trying to load a couple of dependencies with composer. Composer fails on a github repo. I also cannot browse to http://github.com and I can't reach github by ip. DNS seems fine since i can resolve github.com with nslookup.

Any suggestions?

`$ composer install Loading composer repositories with package information Installing dependencies (including require-dev) - Installing symfony/routing (v2.5.2) Downloading: 100%
Downloading: 100%
Downloading: 100%
Failed to download symfony/routing from dist: The "https://api.github.com/repos/symfony/Routing/zipball/24d5f003a794894513d67c888181ba8c3b8e0693" file could not be downloaded: failed to open stream: No route to host Now trying to download from source - Installing symfony/routing (v2.5.2) Cloning 24d5f003a794894513d67c888181ba8c3b8e0693

  [RuntimeException]                                                          
  Failed to clone [email protected]:symfony/Routing.git via git, https, ssh pro  
  tocols, aborting.                                                           
  - git://github.com/symfony/Routing.git                                      
    fatal: unable to connect to github.com:                                   
    github.com[0: 192.30.252.129]: errno=No route to host                     

  - https://github.com/symfony/Routing.git                                    
    error: Failed connect to github.com:443; No route to host while accessin  
  g https://github.com/symfony/Routing.git/info/refs                          
    fatal: HTTP request failed                                                
  - [email protected]:symfony/Routing.git                                        
    ssh: connect to host github.com port 22: No route to host                 
    fatal: The remote end hung up unexpectedly                                



install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [packages1] ... [packagesN]

`

Upvotes: 1

Views: 15043

Answers (1)

Lazy Badger
Lazy Badger

Reputation: 97285

Your problem does not correlate in any form with github, composer or PHP. You got in plain English "No route to host" (github.com 192.30.252.129), i.e it's a trouble on network-layer and can't be resolved from client-side.

Test connectivity with usual traceroute 192.30.252.129 and inform about broken path your ISP support (they escalate it higher, if needed) or corporate network administrator.

Upvotes: 1

Related Questions