bench icon indicating copy to clipboard operation
bench copied to clipboard

Easy install fail: TASK [nodejs : Install yarn] Yarn manually installed ok, still error occurs

Open BT40 opened this issue 4 years ago • 1 comments

Issue: Easy Install failure at npm yarn

OS: Ubuntu 20.04

Please note, I have manually installed yarn from terminal and it works fine if i check in terminal using yarn --version. Still installation is failing.

Other Attempts: Restarting system doesnot solve issue

Short log: TASK [nodejs : Install yarn] ************************************************************************************************ task path: /tmp/.bench/bench/playbooks/roles/nodejs/tasks/main.yml:8 <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root <127.0.0.1> EXEC /bin/sh -c 'echo ~root && sleep 0' <127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "echo /root/.ansible/tmp"&& mkdir /root/.ansible/tmp/ansible-tmp-1612796012.1213615-31733-195882662368204 && echo ansible-tmp-1612796012.1213615-31733-195882662368204="echo /root/.ansible/tmp/ansible-tmp-1612796012.1213615-31733-195882662368204" ) && sleep 0' Using module file /usr/local/lib/python3.8/dist-packages/ansible/modules/commands/command.py <127.0.0.1> PUT /root/.ansible/tmp/ansible-local-28188l_7s5je1/tmphh6poi83 TO /root/.ansible/tmp/ansible-tmp-1612796012.1213615-31733-195882662368204/AnsiballZ_command.py <127.0.0.1> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1612796012.1213615-31733-195882662368204/ /root/.ansible/tmp/ansible-tmp-1612796012.1213615-31733-195882662368204/AnsiballZ_command.py && sleep 0' <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python3 /root/.ansible/tmp/ansible-tmp-1612796012.1213615-31733-195882662368204/AnsiballZ_command.py && sleep 0' <127.0.0.1> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1612796012.1213615-31733-195882662368204/ > /dev/null 2>&1 && sleep 0' fatal: [localhost]: FAILED! => { "changed": true, "cmd": [ "npm", "install", "-g", "yarn" ], "delta": "0:00:11.086297", "end": "2021-02-08 20:23:43.360019", "invocation": { "module_args": { "_raw_params": "npm install -g yarn", "_uses_shell": false, "argv": null, "chdir": null, "creates": null, "executable": null, "removes": null, "stdin": null, "stdin_add_newline": true, "strip_empty_ends": true, "warn": true } }, "msg": "non-zero return code", "rc": 1, "start": "2021-02-08 20:23:32.273722", "stderr": "", "stderr_lines": [], "stdout": "\n> [email protected] preinstall /usr/local/lib/node_modules/yarn\n> :; (node ./preinstall.js > /dev/null 2>&1 || true)", "stdout_lines": [ "", "> [email protected] preinstall /usr/local/lib/node_modules/yarn", "> :; (node ./preinstall.js > /dev/null 2>&1 || true)" ]

Full log can be found here: [ easy-install__2021-02-08__14-51.log ](url)

BT40 avatar Feb 08 '21 15:02 BT40

Command i used is:

sudo python3 install.py --production

Also tried: export LC_CTYPE="en_US.UTF-8" sudo dpkg-reconfigure locales

issue still persists

BT40 avatar Feb 08 '21 15:02 BT40