iJackUA / try-yii2

Try Yii2 with Vagrant VM + Ansible provisioning = Complete readymade virtual server playground
MIT License
49 stars 49 forks source link

Problem with github ratio #8

Open pzi42 opened 8 years ago

pzi42 commented 8 years ago

One of my problems is the following:

==> default: TASK: [yii-advanced-project | clone advanced project temaplate] *************** 
==> default: failed: [vagrant] => {"changed": true, "cmd": "composer create-project --prefer-dist --stability=dev yiisoft/yii2-app-advanced /var/www/yii2-app-advanced", "delta": "0:01:56.571960", "end": "2016-04-16 12:14:33.326671", "rc": 1, "start": "2016-04-16 12:12:36.754711"}
==> default: stderr: You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug
==> default: Running composer as root/super user is highly discouraged as packages, plugins and scripts cannot always be trusted
==> default: Installing yiisoft/yii2-app-advanced (dev-master 4504f1e4cbfb5df667eb9d1312cf11e8d7359c88)
==> default:   - Installing yiisoft/yii2-app-advanced (dev-master master)
==> default:     Downloading: 25%          
==>    Downloading: 100%
==> default: 
==> default: Created project in /var/www/yii2-app-advanced
==> default: Loading composer repositories with package information
==> default: Updating dependencies (including require-dev)
==> default: Failed to clone the git@github.com:twitter/typeahead.js.git repository, try running in interactive mode so that you can enter your GitHub credentials
==> default: 
==> default:                                                                                                                                                        
==> default:   [RuntimeException]                                                                                                                                   
==> default:   Failed to execute git clone --mirror 'git@github.com:twitter/typeahead.js.git' '/root/.cache/composer/vcs/git-github.com-twitter-typeahead.js.git/'  
==> default:                                                                                                                                                        
==> default: 
==> default: create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [--keep-vcs] [--no-install] [--ignore-platform-reqs] [--] [<package>] [<directory>] [<version>]
==> default: stdout: Reading bower.json of bower-asset/jquery (2.1.2)    
==> def                                                           
                                  jquery (1.8.0)          

==> default: 
==> default: FATAL: all hosts have already failed -- aborting
==> default: 
==> default: PLAY RECAP ******************************************************************** 
==> default:            to retry, use: --limit @/root/main.retry
==> default: 
==> default: vagrant                    : ok=50   changed=19   unreachable=0    failed=1   
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

Does anyone have a solution?

iJackUA commented 8 years ago
Failed to clone the git@github.com:twitter/typeahead.js.git repository, try running in interactive mode so that you can enter your GitHub credentials

Looks like GitHub is limiting unauthorised connections from your IP. I haven't implement ability to specify GitHub API credentials here. So to do it manually, make vagrant ssh to enter VM via ssh, then cd /vagrant and composer install there. It should ask you to enter Github credentials at some step (with instruction how to get it). After composer install is finished, exit the VM and run vagrant provision once again.

pzi42 commented 8 years ago

Thank you. I will give it a try