Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vagrant install-origin-assets-base fails to install phantom.js #9202

Closed
stevekuznetsov opened this issue Jun 7, 2016 · 1 comment
Closed
Assignees
Labels
area/infrastructure kind/test-flake Categorizes issue or PR as related to test flakes. priority/P3

Comments

@stevekuznetsov
Copy link
Contributor

The failures cause these error messages:

Jun 07 11:13:40 npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
Jun 07 11:13:40 npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.12
Jun 07 11:13:40 npm WARN origin-web-console@1.3.0-alpha No license field.
Jun 07 11:13:40 npm ERR! Linux 3.10.0-229.7.2.el7.x86_64
Jun 07 11:13:40 npm ERR! argv "node" "/usr/bin/npm" "install" "--unsafe-perm"
Jun 07 11:13:40 npm ERR! node v0.10.42
Jun 07 11:13:40 npm ERR! npm  v3.7.3
Jun 07 11:13:40 npm ERR! code ELIFECYCLE
Jun 07 11:13:40 
Jun 07 11:13:40 npm ERR! phantomjs@1.9.15 install: `node install.js`
Jun 07 11:13:40 npm ERR! Exit status 1
Jun 07 11:13:40 npm ERR! 
Jun 07 11:13:40 npm ERR! Failed at the phantomjs@1.9.15 install script 'node install.js'.
Jun 07 11:13:40 npm ERR! Make sure you have the latest version of node.js and npm installed.
Jun 07 11:13:40 npm ERR! If you do, this is most likely a problem with the phantomjs package,
Jun 07 11:13:40 npm ERR! not with npm itself.
Jun 07 11:13:40 npm ERR! Tell the author that this fails on your system:
Jun 07 11:13:40 npm ERR!     node install.js
Jun 07 11:13:40 npm ERR! You can get information on how to open an issue for this project with:
Jun 07 11:13:40 npm ERR!     npm bugs phantomjs
Jun 07 11:13:40 npm ERR! Or if that isn't available, you can get their info via:
Jun 07 11:13:40 npm ERR!     npm owner ls phantomjs
Jun 07 11:13:40 npm ERR! There is likely additional logging output above.
Jun 07 11:13:40 
Jun 07 11:13:40 npm ERR! Please include the following file with any support request:
Jun 07 11:13:40 npm ERR!     /data/src/github.com/openshift/origin-web-console/npm-debug.log
Jun 07 11:13:40 
Jun 07 11:13:40 
Jun 07 11:13:40 Stderr from the command:
Jun 07 11:13:40 
Jun 07 11:13:40 + ORIGIN_CONSOLE_PATH=/data/src/github.com/openshift/origin-web-console
Jun 07 11:13:40 + ASSET_BACKUP_DIR=/data/asset_dependencies
Jun 07 11:13:40 + which npm
Jun 07 11:13:40 + sudo yum -y install npm
Jun 07 11:13:40 + sudo npm install npm@3.7.3 -g
Jun 07 11:13:40 npm http GET https://registry.npmjs.org/npm/3.7.3
Jun 07 11:13:40 npm http 200 https://registry.npmjs.org/npm/3.7.3
Jun 07 11:13:40 npm http GET https://registry.npmjs.org/npm/-/npm-3.7.3.tgz
Jun 07 11:13:40 npm http 200 https://registry.npmjs.org/npm/-/npm-3.7.3.tgz
Jun 07 11:13:40 + pushd /data/src/github.com/openshift/origin-web-console
Jun 07 11:13:40 + hack/install-deps.sh

@jwforres thinks it's a throttling/rate-limiting issue on the phantom.js distribution network, so may only happen when many instances on AWS are attempting the command at once.

/cc @danmcp

@stevekuznetsov stevekuznetsov added priority/P3 kind/test-flake Categorizes issue or PR as related to test flakes. component/test-infrastructure labels Jun 7, 2016
@stevekuznetsov stevekuznetsov self-assigned this Jun 7, 2016
@stevekuznetsov stevekuznetsov added area/infrastructure kind/test-flake Categorizes issue or PR as related to test flakes. and removed component/test-infrastructure kind/test-flake Categorizes issue or PR as related to test flakes. labels Jun 7, 2016
@stevekuznetsov
Copy link
Contributor Author

@jwforres still seeing this, and only when spinning up one, or two or five images -- no way I'm getting rate-limited. Here are the NPM debug log and console output of a recent failure in case you can divine something from them.

If we can't, how can we configure the install-assets to be more resilient to these sorts of failures?

(I know we spoke about not doing asset install, but vagrant install-origin does it as a substep and I need to install the rest of the Origin stuff unfortunately)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/infrastructure kind/test-flake Categorizes issue or PR as related to test flakes. priority/P3
Projects
None yet
Development

No branches or pull requests

2 participants