Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install on Ubuntu 16.10 #57

Open
jochenparm opened this issue May 21, 2018 · 2 comments
Open

Unable to install on Ubuntu 16.10 #57

jochenparm opened this issue May 21, 2018 · 2 comments

Comments

@jochenparm
Copy link

Hi, when running the installation commands you provide, I get the following error message:

docker run --interactive --tty --rm --volume "/usr/local/bin:/silo_install_path" grpn/ansible-silo:2.1.0 --install
Installing from ansible-silo 2.1.0:

  • ansible will be created
    cp: can't create symlink '/silo_install_path/ansible': Read-only file system
  • ansible-config will be created
    cp: can't create symlink '/silo_install_path/ansible-config': Read-only file system
  • ansible-console will be created
    cp: can't create symlink '/silo_install_path/ansible-console': Read-only file system
  • ansible-doc will be created
    cp: can't create symlink '/silo_install_path/ansible-doc': Read-only file system
  • ansible-galaxy will be created
    cp: can't create symlink '/silo_install_path/ansible-galaxy': Read-only file system
  • ansible-lint will be created
    cp: can't create symlink '/silo_install_path/ansible-lint': Read-only file system
  • ansible-playbook will be created
    cp: can't create symlink '/silo_install_path/ansible-playbook': Read-only file system
  • ansible-pull will be created
    cp: can't create symlink '/silo_install_path/ansible-pull': Read-only file system
  • ansible-silo will be created
    /silo/silo_functions.sh: line 447: /silo_install_path/ansible-silo: Read-only file system
    chmod: /silo_install_path/ansible-silo: No such file or directory
  • ansible-vault will be created
    cp: can't create symlink '/silo_install_path/ansible-vault': Read-only file system
    Done

Do you have an idea what I'm missing? Is the problem my read/write access to "/usr/local/bin:/silo_install_path" ?

@udondan
Copy link
Collaborator

udondan commented Jun 6, 2018

Sorry @jochenparm for the delay. Yes it probably is due to write permissions to /usr/local/bin.

You should be able to do it like that:

docker run --interactive --tty --rm --volume "/tmp/bin:/silo_install_path" grpn/ansible-silo:2.1.0 --install
sudo mv /tmp/bin/* /usr/local/bin

Let me know if that works for you or not.

This should probably be mentioned in the docs.

udondan pushed a commit to udondan/ansible-silo that referenced this issue Jul 13, 2018
@espoelstra
Copy link

+1 for not abusing --privileged and leaving it to the user to have sudo rights to perform the move. That would allow prompting from mv in the future if the file existed already and the user was going to overwrite it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants