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

Getting errors on vagrant up #284

Open
vatnoise opened this issue Jul 26, 2016 · 10 comments
Open

Getting errors on vagrant up #284

vatnoise opened this issue Jul 26, 2016 · 10 comments
Assignees
Labels

Comments

@vatnoise
Copy link

vatnoise commented Jul 26, 2016

Hi,
Trying to run a box and after vagrant up I'm getting the following errors:

....
==> default: stdin: is not a tty
....
==> default: gpg:
==> default: keyring `/tmp/tmprfhgdqk1/secring.gpg' created
==> default: gpg:
==> default: keyring `/tmp/tmprfhgdqk1/pubring.gpg' created
==> default: gpg:
==> default: requesting key 7BB9C367 from hkp server keyserver.ubuntu.com
==> default: gpg:
==> default: /tmp/tmprfhgdqk1/trustdb.gpg: trustdb created
==> default: gpg:
==> default: key 7BB9C367: public key "Launchpad PPA for Ansible, Inc." imported
==> default: gpg:
==> default: Total number processed: 1
==> default: gpg:
==> default:               imported: 1
==> default:   (RSA: 1)
....
==> default: dpkg-preconfigure: unable to re-open stdin: No such file or directory
....
==> default: cp:
==> default: cannot stat ‘/vagrant/ansible/inventories/dev’
==> default: : No such file or directory
==> default: cat:
==> default: /vagrant/ansible/files/authorized_keys
==> default: : No such file or directory
==> default: ERROR! the playbook: /vagrant/ansible/playbook.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.

I usually used already pre-made vagrant boxes before and creating my own for the first time.

@debo
Copy link
Member

debo commented Jul 26, 2016

@vatnoise that's interesting, could you please share the package you downloaded? By the look of it the errors indicate you are missing most of the essential files. I'd like to make a comparison between I what I have and what you got.

@debo debo added the bug label Jul 26, 2016
@debo debo self-assigned this Jul 26, 2016
@vatnoise
Copy link
Author

Sure!
I've unfortunately closed the window with the settings that I chose but here are the 2 packages that I got from it:

phansible_default.zip
phansible_default (1).zip

@vatnoise
Copy link
Author

Just made another one in Firefox, here's the file and screenshots:

phansible__box_php5.4_xdebug.zip

screen shot 2016-07-27 at 12 10 42
screen shot 2016-07-27 at 12 11 05
screen shot 2016-07-27 at 12 11 19
screen shot 2016-07-27 at 12 11 26

@debo
Copy link
Member

debo commented Jul 27, 2016

@vatnoise I just tried the first one of the zips you linked and it worked for me. I'm running vagrant 1.8.5 and the VirtualBox 5.0.20 at the moment, I'm going to have a go with the latest version of VirtualBox too and report back.

@debo
Copy link
Member

debo commented Jul 27, 2016

@vatnoise it works also with VirtualBox 5.1.2 over here and the same package. Just out of curiosity what OS are your running? I'm on OSX here.

@vatnoise
Copy link
Author

@debo OS X 10.11.5, VirtualBox 5.0.22

I'll try updating VirtualBox later today and will see if that changes anything. :(

@debo
Copy link
Member

debo commented Jul 28, 2016

@vatnoise please keep me posted as of now it looks more like a glitch of sort mostly related with ansible itself not detecting path properly for some weird reasons. The zips you share with me contains all the required files including the one your error log sais are not found.

@vatnoise
Copy link
Author

vatnoise commented Aug 1, 2016

Hm, updated VirtualBox to 5.0.26, still the same. I guess there's probably something wrong with my system?

@debo
Copy link
Member

debo commented Aug 1, 2016

@vatnoise the latest virtualbox version is 5.1.2. Yes the problem appears to be related to something else in your setup. Basically what is happening in your case is that the shared folder between your host and guest doesn't get shared or, if it does, it suddenlly disappear so that ansible can't find the files it needs.

In fairness there is one thing that seems strange about your setup, although it doesn't seem to affect my test. So basically if I look at the vagrant file you generated you are sharing the following:

config.vm.synced_folder "/Users/vitalibokov/GitHub/", "/vagrant", type: "nfs"

And the error message is reporting the following:

cannot stat ‘/vagrant/ansible/inventories/dev’

now the thing is that the ansible folder is not in your home right? The ansible folder is in the path from where you launch or should launch vagrant up and you can see that in these lines:

config.vm.provision "ansible" do |ansible|
    ansible.playbook = "ansible/playbook.yml"
    ansible.inventory_path = "ansible/inventories/dev"
    ansible.limit = 'all'
end

So my question is, how are you executing all this? Are the file in the right and expected location or did you accidentally moved things around?

Could you also post a gist of the entire log? I'd like to see at what step you error is actually getting thrown also because I can't see that output in my terminal (I'm referring about the gpg import)

@debo
Copy link
Member

debo commented Aug 16, 2016

@vatnoise did you have any luck with this? Any progress?

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

No branches or pull requests

2 participants