Closed kai101 closed 9 years ago
Could you provide more details on how to reproduce the error?
It is master branch, i added
--allow-root
for bower to stop complaining. Still struggle to have it initialize for the first time.
What command were your running? bower install
?
Following is error without adding allow-root. Seems like adding allow-root causing more error.
TASK: [app_server | command bower install chdir={{ project_dir }}] ************
failed: [default] => {"changed": true, "cmd": ["bower", "install"], "delta": "0:00:01.065857", "end": "2015-04-05 05:06:35.729799", "rc": 1, "start": "2015-04-05 05:06:34.663942", "warnings": []}
stderr: bower ESUDO Cannot be run with sudo
Additional error details:
Since bower is a user command, there is no need to execute it with superuser permissions.
If you're having permission errors when using bower without sudo, please spend a few minutes learning more about how your system should work and make any necessary repairs.
http://www.joyent.com/blog/installing-node-and-npm
https://gist.github.com/isaacs/579814
You can however run a command with sudo using --allow-root option
FATAL: all hosts have already failed -- aborting
Could you please answer the question and precisely give the steps and environment to reproduce the problem? I'm having a lot of trouble understanding you and what the problem is in the first place.
I run a normal 'vagrant up'. is there additional configuration? control server: ubuntu 14.04
vagrantFile unchanged.
Ok thanks. I'm not too sure about setting up with vagrant but the instructions to set up without vagrant would work fine. Please try that instead for now. @ahbeng could you help him with the vagrant issues?
Thanks @kai101! Seems like due to ansible/ansible#10550, sudo: no
is not working. That bug has been fixed and will be in Ansible 1.9.1 soon, in the meantime it's probably easiest to downgrade to Ansible 1.8.4:
$ pip uninstall ansible
$ pip install ansible==1.8.4
$ vagrant provision
I've tested and it installs fine after that, but as you may have noticed there's a thing or two that's currently broken with the Vagrant workflow, I'm fixing them now.
vagrant provision fail.