craigburke / karma-gradle

Gradle Plugin for Running tests with Karma
Other
21 stars 11 forks source link

karmaDependencies fails to install phantomjs while behind auth-proxy #2

Closed scheiblr closed 8 years ago

scheiblr commented 8 years ago

Unforntunately, according to https://github.com/Medium/phantomjs/issues/399 there are problems with phantomjs when behind a proxy.

Starting process 'command '/home/schmittr/.gradle/nodejs/node-v4.2.3-linux-x64/bin/node''. Working directory: /home/schmittr/projects/eers-new/app Command: /home/schmittr/.gradle/nodejs/node-v4.2.3-linux-x64/bin/node /home/schmittr/.gradle/nodejs/node-v4.2.3-linux-x64/lib/node_modules/npm/bin/npm-cli.js install karma karma-phantomjs-launcher phantomjs karma-jasmine --silent
Successfully started process 'command '/home/schmittr/.gradle/nodejs/node-v4.2.3-linux-x64/bin/node''
:app:karmaDependencies FAILED
:app:karmaDependencies (Thread[Daemon worker Thread 3,5,main]) completed. Took 22.419 secs.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:karmaDependencies'.
> Process 'command '/home/schmittr/.gradle/nodejs/node-v4.2.3-linux-x64/bin/node'' finished with non-zero exit value 1

The installation of karma karma-jasmine without phantomjs works though. The installation of phantomjs/karma-phantomjs-launcher throws following error:

> phantomjs@1.9.19 install /home/schmittr/projects/eers-new/app/node_modules/phantomjs
> node install.js

Install exited unexpectedly
npm ERR! Linux 4.1.15-1-MANJARO
npm ERR! argv "/home/schmittr/.gradle/nodejs/node-v4.2.3-linux-x64/bin/node" "/home/schmittr/.gradle/nodejs/node-v4.2.3-linux-x64/lib/node_modules/npm/bin/npm-cli.js" "install" "phantomjs"
npm ERR! node v4.2.3
npm ERR! npm  v2.14.7
npm ERR! code ELIFECYCLE

npm ERR! phantomjs@1.9.19 install: `node install.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the phantomjs@1.9.19 install script 'node install.js'.
npm ERR! This is most likely a problem with the phantomjs package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node install.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls phantomjs
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/schmittr/projects/eers-new/app/npm-debug.log
craigburke commented 8 years ago

@schmittr thanks again for reporting this. Would you be able to include your npm-debug.log as well?

craigburke commented 8 years ago

So you're setting HTTP_PROXY and/or HTTPS_PROXY? Could you also give me an idea of what those look like?

scheiblr commented 8 years ago

Yes, both env-vars are set as follows: http://user:pw@proxy:port. I also tried it without the http://

Here the log file:

npm-debug.log.txt

craigburke commented 8 years ago

I vaguely remember us coming to some sort of resolution on this. Feel free to reopen this if I'm remembering that wrong.