MineMeld Install on CentOS 7 with Ansible: NPM Issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MineMeld Install on CentOS 7 with Ansible: NPM Issue

L1 Bithead

Hi All, 

 

Install of MM on CentOS 7 (via Ansible playbook) is failing during the step "minemeld : npm install" with a an error around the node-sass package. the verbose outbout from npm-debug.log is below. I've tried a few different things including installing this with Node versions 6, 7, and 8 and can never seen to get this step to work. 

 

Thoughts?

 

q18252 verbose linkStuff   false,
18252 verbose linkStuff   '/opt/minemeld/www/webui/node_modules/gulp-sass/node_modules' ]
18253 info linkStuff node-sass@3.13.1
18254 verbose linkBins node-sass@3.13.1
18255 verbose link bins [ { 'node-sass': 'bin/node-sass' },
18255 verbose link bins   '/opt/minemeld/www/webui/node_modules/gulp-sass/node_modules/.bin',
18255 verbose link bins   false ]
18256 verbose linkMans node-sass@3.13.1
18257 verbose rebuildBundles node-sass@3.13.1
18258 verbose rebuildBundles [ '.bin',
18258 verbose rebuildBundles   'async-foreach',
18258 verbose rebuildBundles   'cross-spawn',
18258 verbose rebuildBundles   'gaze',
18258 verbose rebuildBundles   'get-stdin',
18258 verbose rebuildBundles   'glob',
18258 verbose rebuildBundles   'in-publish',
18258 verbose rebuildBundles   'lodash.assign',
18258 verbose rebuildBundles   'lodash.clonedeep',
18258 verbose rebuildBundles   'meow',
18258 verbose rebuildBundles   'mkdirp',
18258 verbose rebuildBundles   'nan',
18258 verbose rebuildBundles   'node-gyp',
18258 verbose rebuildBundles   'npmlog',
18258 verbose rebuildBundles   'request',
18258 verbose rebuildBundles   'sass-graph' ]
18259 silly gentlyRm /opt/minemeld/www/webui/node_modules/gulp-sass/node_modules/.bin/node-sass is being purged
18260 verbose gentlyRm don't care about contents; nuking /opt/minemeld/www/webui/node_modules/gulp-sass/node_modules/.bin/node-sass
18261 info install node-sass@3.13.1
18262 verbose unsafe-perm in lifecycle false
18263 info node-sass@3.13.1 Failed to exec install script
18264 verbose unlock done using /root/.npm/_locks/node-sass-2ebd5b72c6bc32b8.lock for /opt/minemeld/www/webui/node_modules/gulp-sass/node_modules/nod$
18265 verbose about to build /opt/minemeld/www/webui/node_modules/gulp-sass
18266 verbose unlock done using /root/.npm/_locks/gulp-sass-6e2249fc9ca5138f.lock for /opt/minemeld/www/webui/node_modules/gulp-sass
18267 verbose stack Error: node-sass@3.13.1 install: `node scripts/install.js`
18267 verbose stack Exit status 1
18267 verbose stack     at EventEmitter.<anonymous> (/opt/minemeld/www/venv/lib/node_modules/npm/lib/utils/lifecycle.js:213:16)
18267 verbose stack     at EventEmitter.emit (events.js:110:17)
18267 verbose stack     at ChildProcess.<anonymous> (/opt/minemeld/www/venv/lib/node_modules/npm/lib/utils/spawn.js:14:12)
18267 verbose stack     at ChildProcess.emit (events.js:110:17)
18267 verbose stack     at maybeClose (child_process.js:1015:16)
18267 verbose stack     at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
18268 verbose pkgid node-sass@3.13.1
18269 verbose cwd /opt/minemeld/www/webui
18270 error Linux 3.10.0-693.2.2.el7.x86_64
18271 error argv "/opt/minemeld/www/venv/bin/node" "/opt/minemeld/www/venv/bin/npm" "install"
18272 error node v0.12.2
18273 error npm  v2.7.4
18274 error code ELIFECYCLE
18275 error node-sass@3.13.1 install: `node scripts/install.js`
18275 error Exit status 1
18276 error Failed at the node-sass@3.13.1 install script 'node scripts/install.js'.
18276 error This is most likely a problem with the node-sass package,
18276 error not with npm itself.
18276 error Tell the author that this fails on your system:
18276 error     node scripts/install.js
18276 error You can get their info via:
18276 error     npm owner ls node-sass
18276 error There is likely additional logging output above.
18277 verbose exit [ 1, true ]
18278 verbose unbuild node_modules/gulp-sass/node_modules/node-sass
18279 info preuninstall node-sass@3.13.1
18280 info uninstall node-sass@3.13.1
18281 verbose unbuild rmStuff node-sass@3.13.1 from /opt/minemeld/www/webui/node_modules
18282 verbose unbuild rmStuff in /opt/minemeld/www/webui/node_modules/gulp-sass/node_modules
18283 silly gentlyRm /opt/minemeld/www/webui/node_modules/gulp-sass/node_modules/.bin/node-sass is being gently removed
18284 silly gentlyRm verifying /opt/minemeld/www/webui is an npm working directory
18285 silly gentlyRm containing path /opt/minemeld/www/webui is under npm's control, in /opt/minemeld/www/webui
18286 silly gentlyRm deletion target /opt/minemeld/www/webui/node_modules/gulp-sass/node_modules/.bin/node-sass is under /opt/minemeld/www/webui
18287 verbose gentlyRm vacuuming from /opt/minemeld/www/webui/node_modules/gulp-sass/node_modules/.bin/node-sass up to /opt/minemeld/www/webui
18288 silly vacuum-fs removing /opt/minemeld/www/webui/node_modules/gulp-sass/node_modules/.bin/node-sass
18289 silly vacuum-fs removing /opt/minemeld/www/webui/node_modules/gulp-sass/node_modules/.bin
18290 silly vacuum-fs quitting because other entries in /opt/minemeld/www/webui/node_modules/gulp-sass/node_modules
18291 info postuninstall node-sass@3.13.1
18292 silly gentlyRm /opt/minemeld/www/webui/node_modules/gulp-sass/node_modules/node-sass is being purged from base /opt/minemeld/www/webui
18293 verbose gentlyRm don't care about contents; nuking /opt/minemeld/www/webui/node_modules/gulp-sass/node_modules/node-sass
18294 silly vacuum-fs purging /opt/minemeld/www/webui/node_modules/gulp-sass/node_modules/node-sass
18295 silly vacuum-fs quitting because other entries in /opt/minemeld/www/webui/node_modules/gulp-sass/node_modules
18296 verbose unbuild node_modules/gulp-sass
18297 info preuninstall gulp-sass@2.0.4
18298 info uninstall gulp-sass@2.0.4
18299 verbose unbuild rmStuff gulp-sass@2.0.4 from /opt/minemeld/www/webui/node_modules
18300 info postuninstall gulp-sass@2.0.4
18301 silly gentlyRm /opt/minemeld/www/webui/node_modules/gulp-sass is being purged from base /opt/minemeld/www/webui
18302 verbose gentlyRm don't care about contents; nuking /opt/minemeld/www/webui/node_modules/gulp-sass
18303 silly vacuum-fs purging /opt/minemeld/www/webui/node_modules/gulp-sass
18304 silly vacuum-fs quitting because other entries in /opt/minemeld/www/webui/node_modules
7 REPLIES 7

Sure:

- the ansible playbook was installing an old version of node (0.12.2), different from the release we use for building MM (4.2.6)

- a recent update in one of the packages used for building the frontend UI broke the compatibility with that old version

- the fix has been updating the playbook to make it consistent with our building infrastructure

 

 

Hi @phorbalrrd,

just two additional notes:

- I have just pushed an additional commit to the playbook to improve the shutdown behavior of systemd. See here:

https://github.com/PaloAltoNetworks/minemeld-ansible/blob/master/roles/minemeld/templates/minemeld.c...

- make sure RabbitMQ is running ok, I have seen some weird issues of RabbitMQ on Centos 7 and RHEL 7 and I still have to isolate the problem.

 

Thanks again,

luigi

This is still an applicable fix for issues with NPM install using Ansible on CentOS 7. I ran the rm command for the first install and re-ran the playbook for a successful install.

 

Thanks

--- Mike Shelton
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!