Closed limikael closed 9 years ago
Yeah, unfortunately this appears to be a url generated by composer, not something the provisioning scripts have control over. I don't know enough about composer to know whether the offending url is part of learninglocker's config, or require.js's in a composer repo somewhere or what, but I think the only way to change this would be to file an issue upstream.
...well, I guess I could have the provisioning system do s/git:/git+http:/ on all the composer files provided by LL? Kind of a horrible kludge, though.
On Fri, May 8, 2015 at 4:24 AM, Mikael Lindqvist notifications@github.com wrote:
I'm behind a corporate firewall that doesn't allow me to check out things using the git:// protocol from github. If I specify git+https:// it works, however. Admittedly, this is a very stupid firewall, and there is a workaround which is to connect the network cable and use WiFi instead, which I will do.
But if this is something we have control over it would be nice if we could make it resilient. Or maybe it is LearningLockers "fault"?
==> default: TASK: [learninglocker | Install dependencies (composer)] ** ==> default: failed: [127.0.0.1] => {"failed": true} ==> default: msg: Loading composer repositories with package information Installing dependencies from lock file - Installing symfony/translation (v2.5.11) Downloading - Installing symfony/security-core (v2.5.11) Downloading - Installing symfony/routing (v2.5.11) Downloading - Installing symfony/process (v2.5.11) Downloading - Installing symfony/http-foundation (v2.5.11) Downloading - Installing symfony/event-dispatcher (v2.6.6) Downloading - Installing symfony/debug (v2.5.11) Downloading - Installing psr/log (1.0.0) Downloading - Installing symfony/http-kernel (v2.5.11) Downloading - Installing symfony/finder (v2.5.11) Downloading - Installing symfony/dom-crawler (v2.5.11) Downloading - Installing symfony/css-selector (v2.5.11) Downloading - Installing symfony/console (v2.5.11) Downloading - Installing symfony/browser-kit ==> default: (v2.5.11) Downloading - Installing swiftmailer/swiftmailer (v5.4.0) Downloading - Installing stack/builder (v1.0.3) Downloading - Installing predis/predis (v0.8.7) Downloading - Installing phpseclib/phpseclib (0.3.10) Downloading - Installing patchwork/utf8 (v1.1.29) Downloading - Installing nesbot/carbon (1.17.0) Downloading - Installing monolog/monolog (1.13.1) Downloading - Installing nikic/php-parser (v0.9.5) Downloading - Installing jeremeamia/superclosure (1.0.2) Downloading - Installing ircmaxell/password-compat (v1.0.4) Downloading - Installing filp/whoops (1.1.5) Downloading - Installing d11wtq/boris (v1.0.8) Downloading Failed to download d11wtq/boris from dist: The "https://api.github.com/repos/d11wtq/boris/zipball/125dd4e5752639af7678a22ea597115646d89c6e" file could not be downloaded (HTTP/1.1 404 Not Found) Now trying to download from source - Installing d11wtq/boris (v1.0.8) Cloning 125dd4e5752639af7678a22ea597115646d89c6e - Installing symfony/filesystem (v2.6.6) Downloading - Installing classpreloader/classpreloader (1.0.2) Downloading Failed to download classpreloader/classpreloader from dist: The "https://api.github.com/repos/mtdowling/ClassPreloader/zipball/2c9f3bcbab329570c57339895bd11b5dd3b00877" file could not be downloaded (HTTP/1.1 404 Not Found) Now trying to download from source - Installing classpreloader/classpreloader (1.0.2) Cloning 2c9f3bcbab329570c57339895bd11b5dd3b00877 - Installing laravel/framework (v4.2.8) Downloading - Installing andywer/js-localization (dev-laravel-4.2 8f6ba01) Cloning 8f6ba018a15e9dd26591eb3abd7b2dcd03282df3 - Installing asm89/stack-cors (0.2.1) Downloading - Installing barryvdh/laravel-cors (v0.2.3) Downloading - Installing bshaffer/oauth2-server-php (v1.7.0) Downloading - Installing bshaffer/oauth2-server-httpfoundation-bridge (v1.1) Downloading - Installing davejamesmiller/laravel-breadcrumbs (2.2.3) Downloading - Installing jenssegers/mongodb (v1.4.3) Downloading - Installing learningloc ker/statementfactory (v0.0.1) Downloading - Installing philo/laravel-translate (v1.0.6) Downloading - Installing ramsey/array_column (1.1.3) Downloading - Installing way/generators (2.6.1) Downloading Generating optimized autoload files Script cd public/assets/js && bower --allow-root update && cd ../../.. handling the post-install-cmd event returned with an error [RuntimeException] Error Output: bower text#~2.0.12 ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/requirejs/text.git", exit code of #128 fatal: unable to connect to github.com: github.com[0: 192.30.252.130]: errno=Connection timed out Additional error details: fatal: unable to connect to github.com: github.com[0: 192.30.252.130]: errno=Connection timed out install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [--ignore-platfor m-reqs] [packages1] ... [packagesN] ==> default: ==> default: FATAL: all hosts have already failed -- aborting ==> default: ==> default: PLAY RECAP **** ==> default: to retry, use: --limit @/root/swag_dev.retry ==> default: ==> default: 127.0.0.1 : ok=42 changed=31 unreachable=0 failed=1 ==> default: !!! PROVISIONING FAILED !!!
— Reply to this email directly or view it on GitHub https://github.com/tunapanda/provision/issues/58.
Yeah that would be horrible!
Don't know either if it is due to LearningLocker, a dependency, or composer itself...
I know that for npm it depends on how you define the dependencies, and composer is similar to npm, but doesn't have to be in this case...
Will not be behind this firewall any longer (thank god) so can't test too much either unfortunately...
Should we close it?
It's good that we know about it, but hopefully you'll remain an extreme edge case. I'll close.
I'm behind a corporate firewall that doesn't allow me to check out things using the git:// protocol from github. If I specify git+https:// it works, however. Admittedly, this is a very stupid firewall, and there is a workaround which is to connect the network cable and use WiFi instead, which I will do.
But if this is something we have control over it would be nice if we could make it resilient. Or maybe it is LearningLockers "fault"?