Hi All,
I was pretty excited to try AWX, so i tried to install it as fast as possible on my restricted environment.
So i have a docker host with docker-py, but no rights to install all dependencies there. I created a container there based on centOS 7, installed Ansible, node, npm etc etc and executed the install.yml from the latest clone on master after modifying the inventory file to set the docker host as the target machine. I admit i tried the brute force method by googling any error and installing the required dependency, but i am now stuck at this error which i get after running with -vvvvv
EXEC /bin/sh -c ‘/usr/bin/python /root/.ansible/tmp/ansible-tmp-1504880135.8-161477171036282/command.py && sleep 0’
fatal: [test1 → localhost]: FAILED! => {
“changed”: true,
“cmd”: “make sdist”,
“delta”: “0:02:52.852658”,
“end”: “2017-09-08 14:18:28.812090”,
“failed”: true,
“invocation”: {
“module_args”: {
“_raw_params”: “make sdist”,
“_uses_shell”: true,
“chdir”: “…”,
“creates”: “./dist/awx-1.0.0.288.tar.gz”,
“executable”: null,
“removes”: null,
“warn”: true
}
},
“rc”: 2,
“start”: “2017-09-08 14:15:35.959432”,
“stderr”: “npm WARN engine gzip-size@3.0.0: wanted: {"node":">=0.12.0"} (current: {"node":"0.10.30","npm":"1.4.21"})\nnpm WARN engine p-limit@1.1.0: wanted: {"node":">=4"} (current: {"node":"0.10.30","npm":"1.4.21"})\nnpm WARN engine locate-path@2.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.30","npm":"1.4.21"})\nnpm WARN engine maxmin@2.1.0: wanted: {"node":">=0.12"} (current: {"node":"0.10.30","npm":"1.4.21"})\nnpm WARN engine p-locate@2.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.30","npm":"1.4.21"})\nnpm WARN engine grunt-contrib-cssmin@2.2.0: wanted: {"node":">=4.0"} (current: {"node":"0.10.30","npm":"1.4.21"})\nnpm WARN engine co@4.6.0: wanted: {"iojs":">= 1.0.0","node":">= 0.12.0"} (current: {"node":"0.10.30","npm":"1.4.21"})\nnpm WARN engine cryptiles@2.0.5: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.30","npm":"1.4.21"})\nnpm WARN engine form-data@2.1.4: wanted: {"node":">= 0.12"} (current: {"node":"0.10.30","npm":"1.4.21"})\nnpm WARN engine eslint-module-utils@2.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.30","npm":"1.4.21"})\nnpm WARN engine browser-sync-client@2.5.1: wanted: {"node":">=4.0.0"} (current: {"node":"0.10.30","npm":"1.4.21"})\nnpm WARN engine boom@2.10.1: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.30","npm":"1.4.21"})\nnpm WARN engine eslint-config-airbnb-base@11.2.0: wanted: {"node":">= 4"} (current: {"node":"0.10.30","npm":"1.4.21"})\nnpm WARN engine escodegen@1.8.1: wanted: {"node":">=0.12.0"} (current: {"node":"0.10.30","npm":"1.4.21"})\nnpm WARN engine xmlbuilder@8.2.2: wanted: {"node":">=4.0"} (current: {"node":"0.10.30","npm":"1.4.21"})\nnpm WARN engine hoek@2.16.3: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.30","npm":"1.4.21"})\nnpm WARN engine request@2.78.0: wanted: {"node":">= 4"} (current: {"node":"0.10.30","npm":"1.4.21"})\nnpm WARN engine esprima@3.1.3: wanted: {"node":">=4"} (current: {"node":"0.10.30","npm":"1.4.21"})\nnpm WARN engine shelljs@0.7.8: wanted: {"node":">=0.11.0","iojs":""} (current: {"node":"0.10.30","npm":"1.4.21"})\nnpm WARN engine hawk@3.1.3: wanted: {"node":">=0.10.32"} (current: {"node":"0.10.30","npm":"1.4.21"})\nnpm WARN engine eslint-plugin-import@2.3.0: wanted: {"node":">=4"} (current: {"node":"0.10.30","npm":"1.4.21"})\nnpm WARN engine postcss@5.2.17: wanted: {"node":">=0.12"} (current: {"node":"0.10.30","npm":"1.4.21"})\nnpm WARN engine clean-css@4.1.7: wanted: {"node":">= 4.0"} (current: {"node":"0.10.30","npm":"1.4.21"})\nnpm WARN engine eslint@3.19.0: wanted: {"node":">=4"} (current: {"node":"0.10.30","npm":"1.4.21"})\nnpm WARN engine angular-ui-router@1.0.0-beta.3: wanted: {"node":">4"} (current: {"node":"0.10.30","npm":"1.4.21"})\nnpm WARN engine less@2.7.2: wanted: {"node":">=0.12"} (current: {"node":"0.10.30","npm":"1.4.21"})\nnpm WARN engine path-exists@3.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.30","npm":"1.4.21"})\n…/src/contextify.cc:3:17: fatal error: nan.h: No such file or directory\n #include "nan.h"\n ^\ncompilation terminated.\nmake[1]: *** [Release/obj.target/contextify/src/contextify.o] Error 1\ngyp ERR! build error \ngyp ERR! stack Error: make
failed with exit code: 2\ngyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)\ngyp ERR! stack at ChildProcess.emit (events.js:98:17)\ngyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:810:12)\ngyp ERR! System Linux 3.10.0-514.6.1.el7.x86_64\ngyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"\ngyp ERR! cwd /opt/awx/awx/ui/node_modules/contextify\ngyp ERR! node -v v0.10.30\ngyp ERR! node-gyp -v v0.13.1\ngyp ERR! not ok \nnpm WARN optional dep failed, continuing fsevents@1.1.2\nnpm ERR! contextify@0.1.15 install: node-gyp rebuild
\nnpm ERR! Exit status 1\nnpm ERR! \nnpm ERR! Failed at the contextify@0.1.15 install script.\nnpm ERR! This is most likely a problem with the contextify package,\nnpm ERR! not with npm itself.\nnpm ERR! Tell the author that this fails on your system:\nnpm ERR! node-gyp rebuild\nnpm ERR! You can get their info via:\nnpm ERR! npm owner ls contextify\nnpm ERR! There is likely additional logging output above.\n\nnpm ERR! System Linux 3.10.0-514.6.1.el7.x86_64\nnpm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "–unsafe-perm" "–prefix" "awx/ui" "install" "awx/ui"\nnpm ERR! cwd /opt/awx\nnpm ERR! node -v v0.10.30\nnpm ERR! npm -v 1.4.21\nnpm ERR! code ELIFECYCLE\nnpm WARN engine loader-utils@1.1.0: wanted: {"node":">=4.0.0"} (current: {"node":"0.10.30","npm":"1.4.21"})\nnpm WARN engine request@2.79.0: wanted: {"node":">= 4"} (current: {"node":"0.10.30","npm":"1.4.21"})\nnpm WARN engine strip-bom@3.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.30","npm":"1.4.21"})\nnpm WARN engine load-json-file@2.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.30","npm":"1.4.21"})\nnpm WARN engine path-type@2.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.30","npm":"1.4.21"})\nnpm WARN engine find-up@2.1.0: wanted: {"node":">=4"} (current: {"node":"0.10.30","npm":"1.4.21"})\nnpm WARN engine read-pkg-up@2.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.30","npm":"1.4.21"})\nnpm WARN engine read-pkg@2.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.30","npm":"1.4.21"})\nnpm WARN engine is-fullwidth-code-point@2.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.30","npm":"1.4.21"})\nnpm WARN engine string-width@2.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.30","npm":"1.4.21"})\nnpm WARN engine strip-bom@3.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.30","npm":"1.4.21"})\nnpm WARN engine request@2.79.0: wanted: {"node":">= 4"} (current: {"node":"0.10.30","npm":"1.4.21"})\nnpm ERR! \nnpm ERR! Additional logging details can be found in:\nnpm ERR! /opt/awx/npm-debug.log\nnpm ERR! not ok code 0\nmake: *** [awx/ui/.deps_built] Error 1",
“stderr_lines”: [
“npm WARN engine gzip-size@3.0.0: wanted: {"node":">=0.12.0"} (current: {"node":"0.10.30","npm":"1.4.21"})”,
“npm WARN engine p-limit@1.1.0: wanted: {"node":">=4"} (current: {"node":"0.10.30","npm":"1.4.21"})”,
“npm WARN engine locate-path@2.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.30","npm":"1.4.21"})”,
“npm WARN engine maxmin@2.1.0: wanted: {"node":">=0.12"} (current: {"node":"0.10.30","npm":"1.4.21"})”,
“npm WARN engine p-locate@2.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.30","npm":"1.4.21"})”,
“npm WARN engine grunt-contrib-cssmin@2.2.0: wanted: {"node":">=4.0"} (current: {"node":"0.10.30","npm":"1.4.21"})”,
“npm WARN engine co@4.6.0: wanted: {"iojs":">= 1.0.0","node":">= 0.12.0"} (current: {"node":"0.10.30","npm":"1.4.21"})”,
“npm WARN engine cryptiles@2.0.5: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.30","npm":"1.4.21"})”,
“npm WARN engine form-data@2.1.4: wanted: {"node":">= 0.12"} (current: {"node":"0.10.30","npm":"1.4.21"})”,
“npm WARN engine eslint-module-utils@2.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.30","npm":"1.4.21"})”,
“npm WARN engine browser-sync-client@2.5.1: wanted: {"node":">=4.0.0"} (current: {"node":"0.10.30","npm":"1.4.21"})”,
“npm WARN engine boom@2.10.1: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.30","npm":"1.4.21"})”,
“npm WARN engine eslint-config-airbnb-base@11.2.0: wanted: {"node":">= 4"} (current: {"node":"0.10.30","npm":"1.4.21"})”,
“npm WARN engine escodegen@1.8.1: wanted: {"node":">=0.12.0"} (current: {"node":"0.10.30","npm":"1.4.21"})”,
“npm WARN engine xmlbuilder@8.2.2: wanted: {"node":">=4.0"} (current: {"node":"0.10.30","npm":"1.4.21"})”,
“npm WARN engine hoek@2.16.3: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.30","npm":"1.4.21"})”,
“npm WARN engine request@2.78.0: wanted: {"node":">= 4"} (current: {"node":"0.10.30","npm":"1.4.21"})”,
“npm WARN engine esprima@3.1.3: wanted: {"node":">=4"} (current: {"node":"0.10.30","npm":"1.4.21"})”,
"npm WARN engine shelljs@0.7.8: wanted: {"node":">=0.11.0","iojs":""} (current: {"node":"0.10.30","npm":"1.4.21"})”,
“npm WARN engine hawk@3.1.3: wanted: {"node":">=0.10.32"} (current: {"node":"0.10.30","npm":"1.4.21"})”,
“npm WARN engine eslint-plugin-import@2.3.0: wanted: {"node":">=4"} (current: {"node":"0.10.30","npm":"1.4.21"})”,
“npm WARN engine postcss@5.2.17: wanted: {"node":">=0.12"} (current: {"node":"0.10.30","npm":"1.4.21"})”,
“npm WARN engine clean-css@4.1.7: wanted: {"node":">= 4.0"} (current: {"node":"0.10.30","npm":"1.4.21"})”,
“npm WARN engine eslint@3.19.0: wanted: {"node":">=4"} (current: {"node":"0.10.30","npm":"1.4.21"})”,
“npm WARN engine angular-ui-router@1.0.0-beta.3: wanted: {"node":">4"} (current: {"node":"0.10.30","npm":"1.4.21"})”,
“npm WARN engine less@2.7.2: wanted: {"node":">=0.12"} (current: {"node":"0.10.30","npm":"1.4.21"})”,
“npm WARN engine path-exists@3.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.30","npm":"1.4.21"})”,
“…/src/contextify.cc:3:17: fatal error: nan.h: No such file or directory”,
" #include "nan.h"“,
" ^”,
“compilation terminated.”,
“make[1]: *** [Release/obj.target/contextify/src/contextify.o] Error 1”,
"gyp ERR! build error ",
“gyp ERR! stack Error: make
failed with exit code: 2”,
“gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)”,
“gyp ERR! stack at ChildProcess.emit (events.js:98:17)”,
“gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:810:12)”,
“gyp ERR! System Linux 3.10.0-514.6.1.el7.x86_64”,
“gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"”,
“gyp ERR! cwd /opt/awx/awx/ui/node_modules/contextify”,
“gyp ERR! node -v v0.10.30”,
“gyp ERR! node-gyp -v v0.13.1”,
"gyp ERR! not ok ",
“npm WARN optional dep failed, continuing fsevents@1.1.2”,
“npm ERR! contextify@0.1.15 install: node-gyp rebuild
”,
“npm ERR! Exit status 1”,
"npm ERR! ",
“npm ERR! Failed at the contextify@0.1.15 install script.”,
“npm ERR! This is most likely a problem with the contextify package,”,
“npm ERR! not with npm itself.”,
“npm ERR! Tell the author that this fails on your system:”,
“npm ERR! node-gyp rebuild”,
“npm ERR! You can get their info via:”,
“npm ERR! npm owner ls contextify”,
“npm ERR! There is likely additional logging output above.”,
“”,
“npm ERR! System Linux 3.10.0-514.6.1.el7.x86_64”,
“npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "–unsafe-perm" "–prefix" "awx/ui" "install" "awx/ui"”,
“npm ERR! cwd /opt/awx”,
“npm ERR! node -v v0.10.30”,
“npm ERR! npm -v 1.4.21”,
“npm ERR! code ELIFECYCLE”,
“npm WARN engine loader-utils@1.1.0: wanted: {"node":">=4.0.0"} (current: {"node":"0.10.30","npm":"1.4.21"})”,
“npm WARN engine request@2.79.0: wanted: {"node":">= 4"} (current: {"node":"0.10.30","npm":"1.4.21"})”,
“npm WARN engine strip-bom@3.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.30","npm":"1.4.21"})”,
“npm WARN engine load-json-file@2.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.30","npm":"1.4.21"})”,
“npm WARN engine path-type@2.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.30","npm":"1.4.21"})”,
“npm WARN engine find-up@2.1.0: wanted: {"node":">=4"} (current: {"node":"0.10.30","npm":"1.4.21"})”,
“npm WARN engine read-pkg-up@2.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.30","npm":"1.4.21"})”,
“npm WARN engine read-pkg@2.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.30","npm":"1.4.21"})”,
“npm WARN engine is-fullwidth-code-point@2.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.30","npm":"1.4.21"})”,
“npm WARN engine string-width@2.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.30","npm":"1.4.21"})”,
“npm WARN engine strip-bom@3.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.30","npm":"1.4.21"})”,
“npm WARN engine request@2.79.0: wanted: {"node":">= 4"} (current: {"node":"0.10.30","npm":"1.4.21"})”,
"npm ERR! ",
“npm ERR! Additional logging details can be found in:”,
“npm ERR! /opt/awx/npm-debug.log”,
“npm ERR! not ok code 0”,
“make: *** [awx/ui/.deps_built] Error 1”
],
“stdout”: “npm --unsafe-perm --prefix awx/ui install awx/ui\n\n> contextify@0.1.15 install /opt/awx/awx/ui/node_modules/contextify\n> node-gyp rebuild\n\nmake[1]: Entering directory /opt/awx/awx/ui/node_modules/contextify/build'\n CXX(target) Release/obj.target/contextify/src/contextify.o\nmake[1]: Leaving directory
/opt/awx/awx/ui/node_modules/contextify/build’\n\n> phantomjs-prebuilt@2.1.14 install /opt/awx/awx/ui/node_modules/phantomjs-prebuilt\n> node install.js\n\nPhantomJS not found on PATH\nDownload already available at /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2\nVerified checksum of previously downloaded file\nExtracting tar contents (via spawned process)\nRemoving /opt/awx/awx/ui/node_modules/phantomjs-prebuilt/lib/phantom\nCopying extracted folder /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2-extract-1504880218714/phantomjs-2.1.1-linux-x86_64 → /opt/awx/awx/ui/node_modules/phantomjs-prebuilt/lib/phantom\nWriting location.js file\nDone. Phantomjs binary available at /opt/awx/awx/ui/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs\n\n> sauce-connect-launcher@0.17.0 postinstall /opt/awx/awx/ui/node_modules/sauce-connect-launcher\n> node scripts/install.js || nodejs scripts/install.js\n\n\n> wd@1.2.0 install /opt/awx/awx/ui/node_modules/wd\n> node scripts/build-browser-scripts”,
“stdout_lines”: [
“npm --unsafe-perm --prefix awx/ui install awx/ui”,
“”,
“> contextify@0.1.15 install /opt/awx/awx/ui/node_modules/contextify”,
“> node-gyp rebuild”,
“”,
“make[1]: Entering directory /opt/awx/awx/ui/node_modules/contextify/build'", " CXX(target) Release/obj.target/contextify/src/contextify.o", "make[1]: Leaving directory
/opt/awx/awx/ui/node_modules/contextify/build’”,
“”,
“> phantomjs-prebuilt@2.1.14 install /opt/awx/awx/ui/node_modules/phantomjs-prebuilt”,
“> node install.js”,
“”,
“PhantomJS not found on PATH”,
“Download already available at /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2”,
“Verified checksum of previously downloaded file”,
“Extracting tar contents (via spawned process)”,
“Removing /opt/awx/awx/ui/node_modules/phantomjs-prebuilt/lib/phantom”,
“Copying extracted folder /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2-extract-1504880218714/phantomjs-2.1.1-linux-x86_64 → /opt/awx/awx/ui/node_modules/phantomjs-prebuilt/lib/phantom”,
“Writing location.js file”,
“Done. Phantomjs binary available at /opt/awx/awx/ui/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs”,
“”,
“> sauce-connect-launcher@0.17.0 postinstall /opt/awx/awx/ui/node_modules/sauce-connect-launcher”,
“> node scripts/install.js || nodejs scripts/install.js”,
“”,
“”,
“> wd@1.2.0 install /opt/awx/awx/ui/node_modules/wd”,
“> node scripts/build-browser-scripts”
]
}