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 open /requirements.yml #697

Closed
4 of 5 tasks
gabrielgiordan opened this issue Dec 2, 2016 · 2 comments
Closed
4 of 5 tasks

Unable to open /requirements.yml #697

gabrielgiordan opened this issue Dec 2, 2016 · 2 comments

Comments

@gabrielgiordan
Copy link


What is the current behavior?

I cannot vagrant provision the latest Trellis (master) on Windows 10.

What is the expected or desired behavior?

Be able to provision


Bug report

Please provide steps to reproduce, including full log output:

I can ssh into it, but when vagrant up or vagrant provision it outputs this log:

vagrant provision

==> default: Running Ansible Galaxy install
==> default:  [ERROR]: Unable to open /requirements.yml: [Errno 2] No such file or
==> default: directory: '/requirements.yml'
==> default: Running Ansible Playbooks
==> default: ERROR! the playbook: dev.yml could not be found
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what went wrong.

vagrant provision --debug

 INFO interface: info: ==> default: You are using pip version 8.1.1, however version 9.0.1 is available.
==> default: You should consider upgrading via the 'pip install --upgrade pip' command.
==> default: You are using pip version 8.1.1, however version 9.0.1 is available.
==> default: You should consider upgrading via the 'pip install --upgrade pip' command.
DEBUG ssh: Sending SSH keep-alive...
 INFO interface: info: Requirement already satisfied (use --upgrade to upgrade): markupsafe in /usr/local/lib/python2.7/dist-packages
 INFO interface: info: ==> default: Requirement already satisfied (use --upgrade to upgrade): markupsafe in /usr/local/lib/python2.7/dist-packages
==> default: Requirement already satisfied (use --upgrade to upgrade): markupsafe in /usr/local/lib/python2.7/dist-packages
DEBUG ssh: stderr: You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

 INFO interface: info: You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
 INFO interface: info: ==> default: You are using pip version 8.1.1, however version 9.0.1 is available.
==> default: You should consider upgrading via the 'pip install --upgrade pip' command.
==> default: You are using pip version 8.1.1, however version 9.0.1 is available.
==> default: You should consider upgrading via the 'pip install --upgrade pip' command.
 INFO interface: info: Running Ansible Galaxy install
 INFO interface: info: ==> default: Running Ansible Galaxy install
==> default: Running Ansible Galaxy install
DEBUG ssh: stderr:  [ERROR]: Unable to open /requirements.yml: [Errno 2] No such file or
directory: '/requirements.yml'

 INFO interface: info:  [ERROR]: Unable to open /requirements.yml: [Errno 2] No such file or
directory: '/requirements.yml'
 INFO interface: info: ==> default:  [ERROR]: Unable to open /requirements.yml: [Errno 2] No such file or
==> default: directory: '/requirements.yml'
==> default:  [ERROR]: Unable to open /requirements.yml: [Errno 2] No such file or
==> default: directory: '/requirements.yml'
 INFO interface: info: Running Ansible Playbooks
 INFO interface: info: ==> default: Running Ansible Playbooks
==> default: Running Ansible Playbooks
DEBUG ssh: stderr: ERROR! the playbook: dev.yml could not be found

 INFO interface: info: ERROR! the playbook: dev.yml could not be found
 INFO interface: info: ==> default: ERROR! the playbook: dev.yml could not be found
==> default: ERROR! the playbook: dev.yml could not be found
DEBUG ssh: Exit status: 1
ERROR warden: Error occurred: The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what went wrong.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
ERROR warden: Error occurred: The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what went wrong.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
ERROR warden: Error occurred: The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what went wrong.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
ERROR warden: Error occurred: The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what went wrong.
 INFO warden: Beginning recovery process...
 INFO warden: Calling recover: #<Vagrant::Action::Builtin::Call:0x6039eb8>
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Recovery complete.
ERROR warden: Error occurred: The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what went wrong.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
ERROR warden: Error occurred: The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command

If I ssh into the box the the requirements.yml file is at the /vagrant folder

vagrant@amilempresarialonline:/vagrant$ ls
ansible.cfg   dev.yml     README.md         Vagrantfile
bin           group_vars  requirements.yml  variable-check.yml
CHANGELOG.md  hosts       roles             xdebug-tunnel.yml
deploy-hooks  lib         rollback.yml
deploy.yml    LICENSE.md  server.yml

Please describe your local environment:

Ansible version: 2.0.2 and 2.2.0

OS: Windows 10

Vagrant version: 1.9.0

Where did the bug happen? Development or remote servers?

Development


@fullyint
Copy link
Contributor

fullyint commented Dec 2, 2016

fixed in #696
but let us know if that didn't resolve it for you

@fullyint fullyint closed this as completed Dec 2, 2016
@gabrielgiordan
Copy link
Author

gabrielgiordan commented Dec 2, 2016

Hey many thanks @fullyint I think this issue is fixed now! 👍

But I'm having a problem with another issue on my encrypted vaults, it's related to this post. In the past, the only thing that worked is the @aoe answer

==> default: You should consider upgrading via the 'pip install --upgrade pip' command.
==> default: Running Ansible Playbooks
==> default: ERROR! Problem running vault password script / v a g r a n t / v a u l t _ p a s s ([Errno 8] Exec format error). If this is not a script, remove the executable bit from the file.
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

I've tried almost anything, using ask_vault_pass, changing chmod from cygwin, changing permission on file properties, creating the .vault_pass inside the vagrant box... but unfortunately I didn't find any solution to remove the executable bit from the .vault_pass and I think this is affecting only Windows users... may I open another issue for this?

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

2 participants