2016-05-10 7 views
0

Mavenを使用してアプリケーションをビルドします。バックエンドはJavaですが、frontend-maven-pluginを使用してWebアプリケーションを構築しています。mavenビルドログのNPM障害のデバッグ

ローカルでかなり信頼性高く実行されます。しかし、夜間のBambooジョブは頻繁に失敗します。


build 07-May-2016 23:03:03 [INFO] > [email protected] install /home/bamboo/bamboo-agent-home/xml-data/build-dir/DDF-NGHT-JOB1/ddf/catalog/ui/search-ui/standard/node_modules/phantomjs 
build 07-May-2016 23:03:03 [INFO] > node install.js 
build 07-May-2016 23:03:03 [INFO] 
build 07-May-2016 23:03:04 [INFO] Downloading http://cnpmjs.org/downloads/phantomjs-1.9.8-linux-x86_64.tar.bz2 
build 07-May-2016 23:03:04 [INFO] Saving to /tmp/phantomjs/phantomjs-1.9.8-linux-x86_64.tar.bz2 
build 07-May-2016 23:03:04 [INFO] Receiving... 
build 07-May-2016 23:04:06 [ERROR] 
build 07-May-2016 23:04:08 [ERROR] 
build 07-May-2016 23:04:11 [ERROR] 
build 07-May-2016 23:04:18 [ERROR] 
build 07-May-2016 23:06:37 [ERROR] 
build 07-May-2016 23:07:54 [ERROR] 
build 07-May-2016 23:07:59 [ERROR] 
build 07-May-2016 23:09:30 [INFO] 
build 07-May-2016 23:09:30 [INFO] Received 12854K total. 
build 07-May-2016 23:09:30 [INFO] Extracting tar contents (via spawned process) 
build 07-May-2016 23:09:32 [INFO] Removing /home/bamboo/bamboo-agent-home/xml-data/build-dir/DDF-NGHT-JOB1/ddf/catalog/ui/search-ui/standard/node_modules/phantomjs/lib/phantom 
build 07-May-2016 23:09:32 [INFO] Copying extracted folder /tmp/phantomjs/phantomjs-1.9.8-linux-x86_64.tar.bz2-extract-1462687770261/phantomjs-1.9.8-linux-x86_64 -> /home/bamboo/bamboo-agent-home/xml-data/build-dir/DDF-NGHT-JOB1/ddf/catalog/ui/search-ui/standard/node_modules/phantomjs/lib/phantom 
build 07-May-2016 23:09:32 [INFO] Writing location.js file 
build 07-May-2016 23:09:32 [INFO] Done. Phantomjs binary available at /home/bamboo/bamboo-agent-home/xml-data/build-dir/DDF-NGHT-JOB1/ddf/catalog/ui/search-ui/standard/node_modules/phantomjs/lib/phantom/bin/phantomjs 
build 07-May-2016 23:09:32 [ERROR] npm WARN deprecated [email protected]: this package has been reintegrated into npm and is now out of date with respect to npm 
build 07-May-2016 23:09:32 [ERROR] npm ERR! Linux 4.4.5-15.26.amzn1.x86_64 
build 07-May-2016 23:09:32 [ERROR] npm ERR! argv "/home/bamboo/bamboo-agent-home/xml-data/build-dir/DDF-NGHT-JOB1/ddf/catalog/ui/search-ui/standard/node/node" "/home/bamboo/bamboo-agent-home/xml-data/build-dir/DDF-NGHT-JOB1/ddf/catalog/ui/search-ui/standard/node/node_modules/npm/bin/npm-cli.js" "install" 
build 07-May-2016 23:09:32 [ERROR] npm ERR! node v4.3.1 
build 07-May-2016 23:09:32 [ERROR] npm ERR! npm v2.14.12 
build 07-May-2016 23:09:32 [ERROR] npm ERR! code ECONNRESET 
build 07-May-2016 23:09:32 [ERROR] npm ERR! errno ECONNRESET 
build 07-May-2016 23:09:32 [ERROR] npm ERR! syscall read 
build 07-May-2016 23:09:32 [ERROR] npm ERR! network read ECONNRESET 
build 07-May-2016 23:09:32 [ERROR] npm ERR! network This is most likely not a problem with npm itself 
build 07-May-2016 23:09:32 [ERROR] npm ERR! network and is related to network connectivity. 
build 07-May-2016 23:09:32 [ERROR] npm ERR! network In most cases you are behind a proxy or have bad network settings. 
build 07-May-2016 23:09:32 [ERROR] npm ERR! network 
build 07-May-2016 23:09:32 [ERROR] npm ERR! network If you are behind a proxy, please make sure that the 
build 07-May-2016 23:09:32 [ERROR] npm ERR! network 'proxy' config is set properly. See: 'npm help config' 

我々は、プロキシ、大火ウォール、またはそのようなものの後ろではありません。もしそうだったら、失敗はずっと繰り返されるでしょう。

私は同僚にそれについて尋ねました。彼は、npmがモジュール用のインストールスクリプトを実行すると、スクリプトはウェブ上のものすべてをダウンロードしようとしていると言いました。スクリプト内のサイトが利用できない場合は、失敗します。

私はそれを確認したいと思います。 Bambooはそれを保持しないので、npm-debug.logにアクセスすることはできません。本当に何が起こっているのか、私はどのように把握していますか?

build 07-May-2016 23:09:34 [INFO] [email protected] node_modules/phantomjs 
build 07-May-2016 23:09:34 [INFO] ├── [email protected] 
build 07-May-2016 23:09:34 [INFO] ├── [email protected] 
build 07-May-2016 23:09:34 [ERROR] npm ERR! argv "/home/bamboo/bamboo-agent-home/xml-data/build-dir/DDF-NGHT-JOB1/ddf/catalog/ui/search-ui/standard/node/node" "/home/bamboo/bamboo-agent-home/xml-data/build-dir/DDF-NGHT-JOB1/ddf/catalog/ui/search-ui/standard/node/node_modules/npm/bin/npm-cli.js" "install" 
build 07-May-2016 23:09:34 [INFO] ├── [email protected] ([email protected]) 
build 07-May-2016 23:09:34 [INFO] ├── [email protected] 
build 07-May-2016 23:09:34 [INFO] ├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) 
build 07-May-2016 23:09:34 [INFO] ├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) 
build 07-May-2016 23:09:34 [INFO] └── [email protected] ([email protected], [email protected], [email protected], [email protected]) 
build 07-May-2016 23:09:34 [ERROR] npm ERR! node v4.3.1 
build 07-May-2016 23:09:34 [ERROR] npm ERR! npm v2.14.12 
build 07-May-2016 23:09:34 [ERROR] 
build 07-May-2016 23:09:34 [ERROR] npm ERR! Callback called more than once. 
build 07-May-2016 23:09:34 [ERROR] npm ERR! 
build 07-May-2016 23:09:34 [ERROR] npm ERR! If you need help, you may report this error at: 
build 07-May-2016 23:09:34 [ERROR] npm ERR!  <https://github.com/npm/npm/issues> 
build 07-May-2016 23:09:34 [ERROR] 
build 07-May-2016 23:09:34 [ERROR] npm ERR! Please include the following file with any support request: 
build 07-May-2016 23:09:34 [ERROR] npm ERR!  /home/bamboo/bamboo-agent-home/xml-data/build-dir/DDF-NGHT-JOB1/ddf/catalog/ui/search-ui/standard/npm-debug.log 

答えて

0

修正がノード> = 4.4> = 5.4および> = 6にコミットし、それされています:それは、which NPMモジュールをインストールするにはphantomjsの依存関係をしようと窒息のよう


昨夜、それが見えます ECONNRESET問題を解決しました。ノードを上記のバージョンにアップグレードしてください。

詳細については、hereを参照してください。