javascript - Karma unable to run on Visual Studio Online 'PhantomJS have not captured in 60000 ms, killing.' -


our build has stopped running javascript unit tests , i've tracked down this...

2017-04-04t18:24:11.4691955z [18:24:11] starting 'karma-server'... 2017-04-04t18:24:22.7975588z [32m04 04 2017 18:24:22.796:info [framework.browserify]: [39mbundle built 2017-04-04t18:24:22.8435587z [32m04 04 2017 18:24:22.843:info [karma]: [39mkarma v1.5.0 server started @ http://0.0.0.0:9876/ 2017-04-04t18:24:22.8435587z [32m04 04 2017 18:24:22.843:info [launcher]: [39mlaunching browser phantomjs unlimited concurrency 2017-04-04t18:24:22.8495591z [32m04 04 2017 18:24:22.849:info [launcher]: [39mstarting browser phantomjs 2017-04-04t18:25:22.8598561z [33m04 04 2017 18:25:22.859:warn [launcher]: [39mphantomjs have not captured in 60000 ms, killing. 2017-04-04t18:25:24.8616444z [33m04 04 2017 18:25:24.861:warn [launcher]: [39mphantomjs not killed in 2000 ms, sending sigkill. 2017-04-04t18:25:26.8628686z [33m04 04 2017 18:25:26.861:warn [launcher]: [39mphantomjs not killed sigkill in 2000 ms, continuing. 

i've looked @ similar article on here in relation teamcity (teamcity: phantomjs have not captured in 60000 ms, killing) none of suggestions there helped me - if there version conflict of kind i'm not sure can cloud server.

to complicate matters, trying using chrome , firefox results in similar errors, karma won't seem run @ all.

here's dependencies in package.json...

  "devdependencies": {     "babel-core": "^6.17.0",     "babel-eslint": "^7.0.0",     "babel-loader": "^6.2.5",     "babel-preset-airbnb": "^2.1.1",     "babel-preset-es2015": "^6.16.0",     "babel-preset-react": "^6.16.0",     "babel-preset-stage-0": "^6.16.0",     "babelify": "7.3.0",     "bootstrap-sass": "3.3.7",     "browserify": "^13.1.0",     "browserify-shim": "^3.8.12",     "chai": "^3.5.0",     "enzyme": "^2.7.1",     "eslint": "^3.7.1",     "eslint-config-defaults": "^9.0.0",     "eslint-plugin-react": "^6.4.1",     "gulp": "^3.9.1",     "gulp-babel": "^6.1.2",     "gulp-clean": "^0.3.1",     "gulp-clean-css": "^2.0.13",     "gulp-eslint": "^3.0.1",     "gulp-jshint": "^2.0.1",     "gulp-rename": "^1.2.2",     "gulp-sass": "^2.3.2",     "gulp-sourcemaps": "^2.0.1",     "gulp-uglify": "^1.2.0",     "gulp-util": "^3.0.7",     "jsdom": "^9.6.0",     "jshint": "^2.9.3",     "karma": "^1.3.0",     "karma-browserify": "^5.1.0",     "karma-chrome-launcher": "^2.0.0",     "karma-firefox-launcher": "^1.0.0",     "karma-htmlfile-reporter": "^0.3.4",     "karma-ie-launcher": "^1.0.0",     "karma-junit-reporter": "^1.1.0",     "karma-mocha": "^1.2.0",     "karma-phantomjs-launcher": "^1.0.2",     "mocha": "^3.1.2",     "mocha-jsdom": "^1.1.0",     "phantomjs-polyfill-find": "github:ptim/phantomjs-polyfill-find",     "react-addons-test-utils": "15.3.2",     "reactify": "^1.1.1",     "sinon": "^1.17.6",     "vinyl-buffer": "^1.0.0",     "vinyl-source-stream": "^1.1.0",     "watchify": "^3.7.0",     "webpack": "^1.13.2"   },   "dependencies": {     "bootbox": "^4.4.0",     "domready": "^1.0.8",     "font-awesome": "^4.3.0",     "google-maps": "^3.2.1",     "google-maps-react": "^1.0.19",     "jquery": "^2.2.0",     "jquery-validation": "^1.15.1",     "jquery-validation-unobtrusive": "^3.2.6",     "react": "15.3.2",     "react-dom": "15.3.2"   } 

here's relevant lines npm install log...

2017-04-04t18:22:19.7856046z npm verb gentlyrm don't care contents; nuking c:\a\1\s\node_modules\.staging\phantomjs-prebuilt-b964b710 2017-04-04t18:22:19.7916044z npm verb tar unpack c:\npm\cache\karma-phantomjs-launcher\1.0.4\package.tgz 2017-04-04t18:22:19.7916044z npm verb tar unpacking c:\a\1\s\node_modules\.staging\karma-phantomjs-launcher-fa85a47b 2017-04-04t18:22:19.7916044z npm verb gentlyrm don't care contents; nuking c:\a\1\s\node_modules\.staging\karma-phantomjs-launcher-fa85a47b 2017-04-04t18:22:19.7916044z npm verb tar unpack c:\npm\cache\phantomjs-polyfill-find\0.0.1\package.tgz 2017-04-04t18:22:19.7916044z npm verb tar unpacking c:\a\1\s\node_modules\.staging\phantomjs-polyfill-find-735c6798 2017-04-04t18:22:19.7916044z npm verb gentlyrm don't care contents; nuking c:\a\1\s\node_modules\.staging\phantomjs-polyfill-find-735c6798 2017-04-04t18:22:19.9856046z npm verb tar unpack c:\npm\cache\phantomjs-prebuilt\2.1.14\package.tgz 2017-04-04t18:22:19.9856046z npm verb tar unpacking c:\a\1\s\node_modules\.staging\phantomjs-prebuilt-b964b710 2017-04-04t18:22:19.9856046z npm verb gentlyrm don't care contents; nuking c:\a\1\s\node_modules\.staging\phantomjs-prebuilt-b964b710 2017-04-04t18:22:31.3378416z npm verb gentlyrm don't care contents; nuking c:\a\1\s\node_modules\.staging\phantomjs-polyfill-find-735c6798\node_modules 2017-04-04t18:22:38.0815841z npm verb gentlyrm don't care contents; nuking c:\a\1\s\node_modules\.staging\karma-phantomjs-launcher-fa85a47b\node_modules 2017-04-04t18:22:38.3575834z npm verb gentlyrm don't care contents; nuking c:\a\1\s\node_modules\.staging\phantomjs-prebuilt-b964b710\node_modules 2017-04-04t18:22:57.0642113z npm info lifecycle karma-phantomjs-launcher@1.0.4~preinstall: karma-phantomjs-launcher@1.0.4 2017-04-04t18:22:57.0642113z npm info lifecycle mocha@3.2.0~preinstall: mocha@3.2.0 2017-04-04t18:22:57.0642113z npm info lifecycle mocha-jsdom@1.1.0~preinstall: mocha-jsdom@1.1.0 2017-04-04t18:22:57.0642113z npm info lifecycle phantomjs-polyfill-find@0.0.1~preinstall: phantomjs-polyfill-find@0.0.1 2017-04-04t18:23:04.8643111z npm verb link bins   'c:\\a\\1\\s\\node_modules\\phantomjs-prebuilt\\node_modules\\.bin', 2017-04-04t18:23:05.9583107z npm verb link bins   'c:\\a\\1\\s\\node_modules\\phantomjs-prebuilt\\node_modules\\.bin', 2017-04-04t18:23:06.6253103z npm info linkstuff phantomjs-prebuilt@2.1.14 2017-04-04t18:23:06.6253103z npm verb linkbins phantomjs-prebuilt@2.1.14 2017-04-04t18:23:06.6253103z npm verb link bins [ { phantomjs: './bin/phantomjs' }, 2017-04-04t18:23:06.6253103z npm verb link bins   'c:\\a\\1\\s\\node_modules\\.bin', 2017-04-04t18:23:06.6253103z npm verb link bins   false ] 2017-04-04t18:23:06.6253103z npm verb linkmans phantomjs-prebuilt@2.1.14 2017-04-04t18:23:06.6273102z npm info linkstuff karma-phantomjs-launcher@1.0.4 2017-04-04t18:23:06.6273102z npm verb linkbins karma-phantomjs-launcher@1.0.4 2017-04-04t18:23:06.6273102z npm verb linkmans karma-phantomjs-launcher@1.0.4 2017-04-04t18:23:06.6273102z npm info linkstuff phantomjs-polyfill-find@0.0.1 2017-04-04t18:23:06.6273102z npm verb linkbins phantomjs-polyfill-find@0.0.1 2017-04-04t18:23:06.6273102z npm verb linkmans phantomjs-polyfill-find@0.0.1 2017-04-04t18:23:14.5304091z > phantomjs-prebuilt@2.1.14 install c:\a\1\s\node_modules\phantomjs-prebuilt 2017-04-04t18:23:14.5304091z > node install.js 2017-04-04t18:23:14.5304091z  2017-04-04t18:23:14.9584088z considering phantomjs found @ c:\npm\modules\phantomjs.cmd 2017-04-04t18:23:14.9584088z found phantomjs @ c:\npm\modules\phantomjs.cmd ...verifying 2017-04-04t18:23:15.9716075z writing location.js file 2017-04-04t18:23:15.9726077z phantomjs installed on path @ c:\npm\modules\phantomjs.cmd 2017-04-04t18:23:15.9776069z npm verb lifecycle phantomjs-prebuilt@2.1.14~install: unsafe-perm in lifecycle true 2017-04-04t18:23:15.9776069z npm verb lifecycle phantomjs-prebuilt@2.1.14~install: path: c:\program files\nodejs\node_modules\npm\bin\node-gyp-bin;c:\a\1\s\node_modules\phantomjs-prebuilt\node_modules\.bin;c:\a\1\s\node_modules\.bin;c:\lr\mms\services\mms\provisioner\taskagent\agents\2.115.0\externals\git\cmd;c:\programdata\oracle\java\javapath;c:\windows\system32;c:\windows;c:\windows\system32\wbem;c:\windows\system32\windowspowershell\v1.0\;c:\program files (x86)\microsoft sql server\100\tools\binn\;c:\program files\microsoft sql server\100\tools\binn\;c:\program files\microsoft sql server\100\dts\binn\;c:\program files (x86)\microsoft asp.net\asp.net web pages\v1.0\;c:\program files\microsoft sql server\110\tools\binn\;c:\program files (x86)\microsoft sdks\typescript\1.4\;c:\users\vssadministrator\.dnx\bin;c:\program files\microsoft dnx\dnvm\;c:\program files\microsoft sql server\120\tools\binn\;c:\program files\microsoft sql server\130\tools\binn\;c:\program files (x86)\microsoft emulator manager\1.0\;c:\program files (x86)\windows kits\10\windows performance toolkit\;c:\program files (x86)\microsoft sdks\azure\cli\wbin;c:\program files (x86)\microsoft sql server\130\tools\binn\;c:\program files\microsoft\web platform installer\;c:\program files\git lfs;c:\program files (x86)\gtksharp\2.12\bin;c:\program files\git\cmd;c:\program files\git\bin;c:\program files\git\usr\bin;c:\program files (x86)\microsoft sql server\110\tools\binn\managementstudio\;c:\program files (x86)\microsoft sql server\110\tools\binn\;c:\program files (x86)\microsoft visual studio 11.0\common7\ide\privateassemblies\;c:\program files (x86)\microsoft sql server\110\dts\binn\;c:\program files (x86)\microsoft sql server\120\tools\binn\managementstudio\;c:\program files (x86)\microsoft sql server\120\tools\binn\;c:\program files (x86)\microsoft visual studio 12.0\common7\ide\privateassemblies\;c:\program files (x86)\microsoft sql server\120\dts\binn\;c:\python27;c:\program files\dotnet\;c:\program files (x86)\cmake\bin;c:\npm\modules;c:\program files\nodejs\;c:\npm\modules;c:\cordova;c:\java\ant\apache-ant-1.9.7\bin;c:\npm\modules;c:\program files (x86)\microsoft sdks\typescript\1.0\;c:\program files (x86)\microsoft sql server\130\dts\binn\;c:\cf-cli_6.25.0_winx64\;c:\program files\microsoft service fabric\bin\fabric\fabric.code;c:\program files\microsoft sdks\service fabric\tools\servicefabriclocalclustermanager;c:\lr\mms\services\mms\provisioner\taskagent\agents\2.115.0\bin;c:\lr\mms\services\mms\provisioner\taskagent\agents\2.115.0\bin 2017-04-04t18:23:15.9776069z npm verb lifecycle phantomjs-prebuilt@2.1.14~install: cwd: c:\a\1\s\node_modules\phantomjs-prebuilt 2017-04-04t18:23:16.1606071z npm info lifecycle karma-phantomjs-launcher@1.0.4~install: karma-phantomjs-launcher@1.0.4 2017-04-04t18:23:16.1646061z npm info lifecycle mocha@3.2.0~install: mocha@3.2.0 2017-04-04t18:23:16.1696061z npm info lifecycle mocha-jsdom@1.1.0~install: mocha-jsdom@1.1.0 2017-04-04t18:23:16.1736057z npm info lifecycle phantomjs-polyfill-find@0.0.1~install: phantomjs-polyfill-find@0.0.1 2017-04-04t18:23:20.7936066z npm info lifecycle phantomjs-prebuilt@2.1.14~postinstall: phantomjs-prebuilt@2.1.14 2017-04-04t18:23:20.9786072z npm info lifecycle karma-phantomjs-launcher@1.0.4~postinstall: karma-phantomjs-launcher@1.0.4 2017-04-04t18:23:20.9826055z npm info lifecycle mocha@3.2.0~postinstall: mocha@3.2.0 2017-04-04t18:23:20.9886074z npm info lifecycle mocha-jsdom@1.1.0~postinstall: mocha-jsdom@1.1.0 2017-04-04t18:23:20.9926063z npm info lifecycle phantomjs-polyfill-find@0.0.1~postinstall: phantomjs-polyfill-find@0.0.1 2017-04-04t18:23:22.6156057z +-- karma-phantomjs-launcher@1.0.4  2017-04-04t18:23:22.6156057z | `-- phantomjs-prebuilt@2.1.14  

the answer here

phantomjs not captured when ran via build server


Comments