Hi,
I am running into following error during ‘Build AWX distribution using container’ step, kind of lost here since we do have npm and nodeJS installed on the server where I am running this playbook. Note that we don’t have access to root, so running the playbook and installs using a non-root id which has enough access to create and build docker images.
Any clue on what the issue is and workaround or solution would be?
Also I don’t see /.npm/_logs/2021-01-04T21_10_19_492Z-debug.log file mentioned in the error anywhere on the server.
Error:
npm WARN tar EACCES: permission denied, fchown\nnpm WARN tar EACCES: permission denied, fchown\nnpm WARN tar EACCES: permission denied, fchown\nnpm WARN tar EACCES: permission denied, fchown\nnpm WARN tar EACCES: permission denied, fchown\nnpm WARN tar EACCES: permission denied, fchown\nnpm WARN tar EACCES: permission denied, fchown\nnpm WARN tar EACCES: permission denied, fchown\nnpm WARN tar EACCES: permission denied, fchown\nnpm WARN tar EACCES: permission denied, fchown\nnpm WARN tar EACCES: permission denied, fchown\nnpm WARN tar EACCES: permission denied, fchown\nnpm WARN tar EACCES: permission denied, fchown\nnpm WARN tar EACCES: permission denied, fchown\nnpm WARN tar EACCES: permission denied, fchown\nnpm WARN tar EACCES: permission denied, fchown\nnpm WARN tar EACCES: permission denied, fchown\nnpm WARN tar EACCES: permission denied, fchown\nnpm WARN tar EACCES: permission denied, fchown\nnpm WARN rollback Rolling back fsevents@2.1.2 failed (this is probably harmless): EBUSY: resource busy or locked, unlink ‘/awx/awx/ui_next/node_modules/fsevents/.nfs000000000038f055000084c9’\nnpm WARN rollback Rolling back fsevents@1.2.13 failed (this is probably harmless): EBUSY: resource busy or locked, unlink ‘/awx/awx/ui_next/node_modules/jest-haste-map/node_modules/fsevents/.nfs000000000038df97000084e0’\nnpm WARN rollback Rolling back fsevents@1.2.13 failed (this is probably harmless): EBUSY: resource busy or locked, unlink ‘/awx/awx/ui_next/node_modules/webpack-dev-server/node_modules/fsevents/.nfs000000000036ba95000084d4’\nnpm WARN rollback Rolling back fsevents@1.2.13 failed (this is probably harmless): EBUSY: resource busy or locked, unlink ‘/awx/awx/ui_next/node_modules/watchpack-chokidar2/node_modules/fsevents/.nfs000000000036c231000084e7’\nnpm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/webpack-dev-server/node_modules/fsevents):\nnpm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})\nnpm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/watchpack-chokidar2/node_modules/fsevents):\nnpm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})\nnpm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/jest-haste-map/node_modules/fsevents):\nnpm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})\nnpm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.2 (node_modules/fsevents):\nnpm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})\n\nadded 2024 packages from 1773 contributors and audited 2030 packages in 1133.177s\n\n100 packages are looking for funding\n run npm fund
for details\n\nfound 0 vulnerabilities\n\n\n┌──────────────────────────────────────────────┐\n│ npm update check failed │\n│ Try running with sudo or get access │\n│ to the local update config store via │\n│ sudo chown -R $USER:$(id -gn $USER) /.config │\n└──────────────────────────────────────────────┘\nnpm --prefix awx/ui_next --loglevel warn run extract-strings\n\n> ui_next@0.1.0 extract-strings /awx/awx/ui_next\n> lingui extract\n\ninternal/modules/cjs/loader.js:883\n throw err;\n ^\n\nError: Cannot find module ‘./filter’\nRequire stack:\n- /awx/awx/ui_next/node_modules/fuzzaldrin/lib/fuzzaldrin.js\n- /awx/awx/ui_next/node_modules/@lingui/cli/api/utils.js\n- /awx/awx/ui_next/node_modules/@lingui/cli/lingui.js\n at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)\n at Function.Module._load (internal/modules/cjs/loader.js:725:27)\n at Module.require (internal/modules/cjs/loader.js:952:19)\n at require (internal/modules/cjs/helpers.js:88:18)\n at Object. (/awx/awx/ui_next/node_modules/fuzzaldrin/lib/fuzzaldrin.js:6:12)\n at Object. (/awx/awx/ui_next/node_modules/fuzzaldrin/lib/fuzzaldrin.js:80:4)\n at Module._compile (internal/modules/cjs/loader.js:1063:30)\n at Object.Module._extensions…js (internal/modules/cjs/loader.js:1092:10)\n at Module.load (internal/modules/cjs/loader.js:928:32)\n at Function.Module._load (internal/modules/cjs/loader.js:769:14) {\n code: ‘MODULE_NOT_FOUND’,\n requireStack: [\n ‘/awx/awx/ui_next/node_modules/fuzzaldrin/lib/fuzzaldrin.js’,\n ‘/awx/awx/ui_next/node_modules/@lingui/cli/api/utils.js’,\n ‘/awx/awx/ui_next/node_modules/@lingui/cli/lingui.js’\n ]\n}\nnpm ERR! code ELIFECYCLE\nnpm ERR! errno 1\nnpm ERR! ui_next@0.1.0 extract-strings: lingui extract
\nnpm ERR! Exit status 1\nnpm ERR! \nnpm ERR! Failed at the ui_next@0.1.0 extract-strings script.\nnpm ERR! This is probably not a problem with npm. There is likely additional logging output above.\n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR! /.npm/_logs/2021-01-04T21_10_19_492Z-debug.log\nmake: *** [Makefile:480: awx/ui_next/.ui-built] Error 1\n", “status”: 2}
PLAY RECAP ********************************************************************************************************************
localhost : ok=10 changed=2 unreachable=0 failed=1 skipped=3 rescued=0 ignored=0
Thanks,
Sreeni