-
Notifications
You must be signed in to change notification settings - Fork 436
difficult to repro install failure - maybe npm bug #297
Comments
when you say "It is difficult to get more log info on this since its an install fail, not an npm failure", can you elaborate on what you mean by this? I don't see any logs from the phantomjs installer, which usually implies that NPM or the environment failed before it even opened the phantomjs installer. If you're talking about the "This is most likely a problem with the phantomjs package", that's just NPM's default finger-pointing. it sometimes helps to run |
wait, are you the guy who posted in #290? did you really just post the same issue, but remove the logging output that pointed to directly to the problem? i mean, really? |
I got this error: `npm ERR! phantomjs@1.9.15 install: 'node install.js' npm ERR! System Windows_NT 6.2.9200 |
Yes, really. And this is an issue I'm trying to solve, not blame anyone for anything. I will gladly ask someone else who wants to help if you can point me to anything other than PhantomJS as the cause of this issue. This fails on PhantomJS install and I can't find any log that tells me something else is causing the failure. I tried --verbose and I get the same log as above. I see lines like: and before the error log I pasted above. I tried running the identical NPM install without the phantomJS dependency 30-40 times without failure and when I put it back in, I saw the failure again around the 12th build. It's not failing on NPM, its failing on the post install steps that PhantomJS runs, so there is no npm-debug.log. |
Can you post the full log? It's really hard to help you without the full
|
It's a large log and I had to mask company data. Here it is: Started by user Lenzo, Brian N:\workspace\html5_lndng_ci>call [machine]\tools\Script\npm_setup.bat N:\workspace\html5_lndng_ci>echo ---- Configure npm to work with Company proxy and Jenkins build agents ---- N:\workspace\html5_lndng_ci>echo N:\Hudson\tools\hudson.model.JDK\1.6.0_22\jdk1.6.0_22/bin;[USER PATH]AppData\Roaming\npm;N:\Program Files\HP_Fortify\HP_Fortify_SCA_and_Apps_3.90\bin;C:\IBM\RationalSDLC\common;N:\Perl\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\idmu\common;C:\Program Files\System Center Operations Manager 2007;C:\IBM\RationalSDLC\ClearCase\bin;N:\Program Files\Java\jdk1.7.0_07\bin;N:\apache-maven-2.2.1\bin;N:\Hudson\tools\groovy-1.7.6\bin;C:\Program Files (x86)\Subversion\bin;C:\git\cmd;N:\Program Files\nodejs\ N:\workspace\html5_lndng_ci>echo ---- get the npm version ---- N:\workspace\html5_lndng_ci>call npm -version N:\workspace\html5_lndng_ci>echo ---- clear npm cache ---- N:\workspace\html5_lndng_ci>call npm cache clear N:\workspace\html5_lndng_ci>call npm cache clean N:\workspace\html5_lndng_ci>echo ---- set npm proxy ---- N:\workspace\html5_lndng_ci>call npm config delete proxy N:\workspace\html5_lndng_ci>call npm config delete https-proxy N:\workspace\html5_lndng_ci>call npm config set registry http://repository:8081/artifactory/api/npm/npm N:\workspace\html5_lndng_ci>call npm set strict-ssl false N:\workspace\html5_lndng_ci>call npm config get ; userconfig [USER PATH].npmrc ; builtin config undefined ; node bin location = N:\Program Files\nodejs\node.exe N:\workspace\html5_lndng_ci>call npm config set loglevel error N:\workspace\html5_lndng_ci>echo -- set git proxy - N:\workspace\html5_lndng_ci>call git config --global http.proxy [masked] N:\workspace\html5_lndng_ci>call git config --global https.proxy [masked] N:\workspace\html5_lndng_ci>call git config --global http.sslVerify false N:\workspace\html5_lndng_ci>echo -- copy phatomjs manually to overcome package issue -- N:\workspace\html5_lndng_ci>xcopy /E /Y [machine]\tools\nodejs\phantomjs*.zip [USER PATH]AppData\Local\Temp\phantomjs\ N:\workspace\html5_lndng_ci>call npm uninstall -g grunt N:\workspace\html5_lndng_ci>call npm install -g grunt-cli N:\workspace\html5_lndng_ci>call node -v N:\workspace\html5_lndng_ci>call grunt -version N:\workspace\html5_lndng_ci>call PATH N:\workspace\html5_lndng_ci>call where grunt N:\workspace\html5_lndng_ci>exit 0 -startup:initialize: startup:clean-old-tempdirs: ivy:fetch-ivy: -ivy:taskdef: -ivy:configure: -ivy:check-ivy-dep-file: -startup:retrieve-plugins: remove-node-modules: BUILD SUCCESSFUL -startup:initialize: startup:clean-old-tempdirs: ivy:fetch-ivy: -ivy:taskdef: -ivy:configure: -ivy:check-ivy-dep-file: -startup:retrieve-plugins: pre-clean: clean-web-app: -project:before-initialize: ivy:fetch-ivy: -ivy:taskdef: -ivy:configure: -ivy:check-ivy-dep-file: -ivy:info: -project:set-project-name: -project:set-project-dirs: -project:set-base-version-properties: -ivy:check-compute-build-number: -ivy:compute-build-number: -project:set-build-number: -project:set-project-version: -project:start-initialize: project:banner: -project:before-set-compiled-files-dir: -project:set-compiled-files-dir: -project:echo-properties-when-done: -project:after-initialize: -project:initialize: project:clean: clean: validate: check-npm-install: png-npm-install: ivy:fetch-ivy: -ivy:taskdef: -ivy:configure: -ivy:check-ivy-dep-file: -ivy:resolve: ivy:retrieve: retrieve: -project:before-initialize: -ivy:info: -project:set-project-name: -project:set-project-dirs: -project:set-base-version-properties: -ivy:check-compute-build-number: -ivy:compute-build-number: -project:set-build-number: -project:set-project-version: -project:start-initialize: project:banner: -project:before-set-compiled-files-dir: -project:set-compiled-files-dir: -project:echo-properties-when-done: -project:after-initialize: -project:initialize: -ide:initialize: -project:check-version-resource: -project:built-with-version-using-url: -project:built-with-version-using-file: -project:built-with-version: initialize: define-dtobuilder: generate-js-dto: -startup:initialize: startup:clean-old-tempdirs: ivy:fetch-ivy: -ivy:taskdef: -ivy:configure: -ivy:check-ivy-dep-file: -startup:retrieve-plugins: do-generate-js-dto: generate-sources: verify-web-env: grunt-handoff: copy-common-js: -startup:initialize: startup:clean-old-tempdirs: ivy:fetch-ivy: -ivy:taskdef: -ivy:configure: -ivy:check-ivy-dep-file: -startup:retrieve-plugins: do-copy-common-js: define-antcontrib: extract-javascript-dependencies: -startup:initialize: startup:clean-old-tempdirs: ivy:fetch-ivy: -ivy:taskdef: -ivy:configure: -ivy:check-ivy-dep-file: -startup:retrieve-plugins: define-antcontrib: extract-javascript-dependency: -startup:initialize: startup:clean-old-tempdirs: ivy:fetch-ivy: -ivy:taskdef: -ivy:configure: -ivy:check-ivy-dep-file: -startup:retrieve-plugins: define-antcontrib: extract-javascript-dependency: -startup:initialize: startup:clean-old-tempdirs: ivy:fetch-ivy: -ivy:taskdef: -ivy:configure: -ivy:check-ivy-dep-file: -startup:retrieve-plugins: define-antcontrib: extract-javascript-dependency: -startup:initialize: startup:clean-old-tempdirs: ivy:fetch-ivy: -ivy:taskdef: -ivy:configure: -ivy:check-ivy-dep-file: -startup:retrieve-plugins: define-antcontrib: extract-javascript-dependency: -startup:initialize: startup:clean-old-tempdirs: ivy:fetch-ivy: -ivy:taskdef: -ivy:configure: -ivy:check-ivy-dep-file: -startup:retrieve-plugins: define-antcontrib: extract-javascript-dependency: -startup:initialize: startup:clean-old-tempdirs: ivy:fetch-ivy: -ivy:taskdef: -ivy:configure: -ivy:check-ivy-dep-file: -startup:retrieve-plugins: define-antcontrib: extract-javascript-dependency: -startup:initialize: startup:clean-old-tempdirs: ivy:fetch-ivy: -ivy:taskdef: -ivy:configure: -ivy:check-ivy-dep-file: -startup:retrieve-plugins: define-antcontrib: extract-javascript-dependency: -startup:initialize: startup:clean-old-tempdirs: ivy:fetch-ivy: -ivy:taskdef: -ivy:configure: -ivy:check-ivy-dep-file: -startup:retrieve-plugins: define-antcontrib: extract-javascript-dependency: process-sources: generate-resources: process-resources: compile: process-classes: generate-test-sources: process-test-sources: generate-test-resources: process-test-resources: test-compile: process-test-classes: test: prepare-package: package: dev-deploy-common: dist: BUILD SUCCESSFUL -startup:initialize: startup:clean-old-tempdirs: ivy:fetch-ivy: -ivy:taskdef: -ivy:configure: -ivy:check-ivy-dep-file: -startup:retrieve-plugins: remove-node-modules: BUILD SUCCESSFUL -startup:initialize: startup:clean-old-tempdirs: ivy:fetch-ivy: -ivy:taskdef: -ivy:configure: -ivy:check-ivy-dep-file: -startup:retrieve-plugins: pre-clean: clean-web-app: -project:before-initialize: ivy:fetch-ivy: -ivy:taskdef: -ivy:configure: -ivy:check-ivy-dep-file: -ivy:info: -project:set-project-name: -project:set-project-dirs: -project:set-base-version-properties: -ivy:check-compute-build-number: -ivy:compute-build-number: -project:set-build-number: -project:set-project-version: -project:start-initialize: project:banner: -project:before-set-compiled-files-dir: -project:set-compiled-files-dir: -project:echo-properties-when-done: -project:after-initialize: -project:initialize: project:clean: clean: validate: check-npm-install: png-npm-install: BUILD FAILED Total time: 1 minute 18 seconds [BFA] Done. 0s |
hmmm...why are the logs duplicated? e.g.,
is there any chance it's trying to run npm twice at the same time? i don't think npm can actually be run in parallel? it does a bunch of bookkeeping in shared directories, and we've seen a wide range of weird corruption issues when this happens. |
Gonna look into that. I hadn't noticed it. Thanks. |
The duplication is in the logging, not called. We are using a in ANT to capture any errors and bubble them up to fail ant task. I confirmed "npm install" is only being called once. |
do you know what the socket.io line means, or why that process would start a node-gyp rebuild mid-way through the phantomjs installation?
|
I looked into that and found:
I don't know why that happens, but it could be an artifact of logging too. The package installing phantomJS is the "karma-phantomjs-launcher" To isolate that from the node-gyp thing...just in case...I am now running a single "npm install karma-phantomjs-launcher" pre-build and then running the job as normal. I am going ot let my CI run for a day and see if I see the error in the pre-build step or if I stop seeing it altogether. |
did the problem repro again after that change? |
It has reduced the frequency quite a bit, but it still is showing up when installed individually. I can't get any more log information about a likely cause. It's so infrequent now that I just hope it will go away altogether when you upgrade to Phantom 2.0. |
I seem to have the same issue, also on my Jenkins Windows slave. Not sure if I can add anything to the discussion though. I have an |
Yeah...similar issue has been happening to us for a couple months now and we're also on Jenkins. I've been trying anything I could. Getting the same weird node-gyp issues when installing karma and everything. |
Having a similar issue here - no build servers involved yet - as you can see it worked fine the second time I ran npm-install:
|
Ever since 1.9.15, we are experiencing failures in 1 out of every 10 builds. It is difficult to get more log info on this since its an install fail, not an npm failure. We can reproduce the issue by just building a few more times.
We are on:
node -v v0.10.33
npm -v 1.4.28
System Windows_NT 6.1.7601
Below is the best log we can get for this error out of Jenkins:
npm ERR! phantomjs@1.9.15 install:
node install.js
20:07:09 [exec] npm ERR! Exit status 1
20:07:09 [exec] npm ERR!
20:07:09 [exec] npm ERR! phantomjs@1.9.15 install:
node install.js
20:07:09 [exec] npm ERR! Exit status 1
20:07:09 [exec] npm ERR!
20:07:09 [exec] npm ERR! Failed at the phantomjs@1.9.15 install script.
20:07:09 [exec] npm ERR! This is most likely a problem with the phantomjs package,
20:07:09 [exec] npm ERR! not with npm itself.
20:07:09 [exec] npm ERR! Failed at the phantomjs@1.9.15 install script.
20:07:09 [exec] npm ERR! This is most likely a problem with the phantomjs package,
20:07:09 [exec] npm ERR! not with npm itself.
20:07:09 [exec] npm ERR! Tell the author that this fails on your system:
20:07:09 [exec] npm ERR! Tell the author that this fails on your system:
20:07:09 [exec] npm ERR! node install.js
20:07:09 [exec] npm ERR! You can get their info via:
20:07:09 [exec] npm ERR! npm owner ls phantomjs
20:07:09 [exec] npm ERR! node install.js
20:07:09 [exec] npm ERR! You can get their info via:
20:07:09 [exec] npm ERR! npm owner ls phantomjs
20:07:09 [exec] npm ERR! There is likely additional logging output above.
20:07:09 [exec]
20:07:09 [exec] npm ERR! System Windows_NT 6.1.7601
20:07:09 [exec] npm ERR! There is likely additional logging output above.
20:07:09 [exec]
20:07:09 [exec] npm ERR! System Windows_NT 6.1.7601
20:07:09 [exec] npm ERR! command "N:\Program Files\nodejs\node.exe" "N:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install"
20:07:09 [exec] npm ERR! command "N:\Program Files\nodejs\node.exe" "N:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install"
20:07:09 [exec] npm ERR! cwd N:\Hudson\workspace\html5_c0mm0n_ci\png\ssoapps\common\html
20:07:09 [exec] npm ERR! node -v v0.10.33
20:07:09 [exec] npm ERR! npm -v 1.4.28
20:07:09 [exec] npm ERR! code ELIFECYCLE
20:07:09 [exec] npm ERR! cwd N:\Hudson\workspace\html5_c0mm0n_ci\png\ssoapps\common\html
20:07:09 [exec] npm ERR! node -v v0.10.33
20:07:09 [exec] npm ERR! npm -v 1.4.28
20:07:09 [exec] npm ERR! code ELIFECYCLE
20:07:09 [exec] npm info preuninstall phantomjs@1.9.15
20:07:09 [exec] npm info preuninstall phantomjs@1.9.15
20:07:09 [exec] npm info uninstall phantomjs@1.9.15
20:07:09 [exec] npm info postuninstall phantomjs@1.9.15
20:07:09 [exec] npm info uninstall phantomjs@1.9.15
20:07:09 [exec] npm info postuninstall phantomjs@1.9.15
20:07:09 [exec] npm info preuninstall karma-phantomjs-launcher@0.1.4
20:07:09 [exec] npm info uninstall karma-phantomjs-launcher@0.1.4
20:07:09 [exec] npm info postuninstall karma-phantomjs-launcher@0.1.4
20:07:09 [exec] npm info preuninstall karma-phantomjs-launcher@0.1.4
20:07:09 [exec] npm info uninstall karma-phantomjs-launcher@0.1.4
20:07:09 [exec] npm info postuninstall karma-phantomjs-launcher@0.1.4
The text was updated successfully, but these errors were encountered: