Easy install fail: TASK [nodejs : Install yarn] Yarn manually installed ok, still error occurs
- Dominant language
- Python
- Stars
- 8
- Forks
- 10
- PR merge metrics
- No merged PRs in 30d
Description
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> yarn@1.22.10 preinstall /usr/local/lib/node_modules/yarn\n> :; (node ./preinstall.js > /dev/null 2>&1 || true)",
"stdout_lines": [
"",
"> yarn@1.22.10 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](https://github.com/frappe/bench/files/5944548/easy-install__2021-02-08__14-51.log)
](url)
Contributor guide
No contributing guide indexed for this repository
Research direction
The failure is reported at playbooks/roles/nodejs/tasks/main.yml:8; start by reviewing that task and the linked full log, then reproduce the npm install -g yarn step on Ubuntu 20.04. Done means the easy-install flow completes without the nodejs:yarn task failing, with the cause and verification recorded.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ansible, nodejs, python
- Domain
- devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100