Vagrant up encountering SSH error "The SSH command responded with a non-zero exit status"

2,062 views
Skip to first unread message

Andy Hoho

unread,
Nov 24, 2015, 9:45:32 AM11/24/15
to Vagrant
Hi, I am encountering SSH error when doing Vagrant up. See the instructions here: https://github.com/dnafrance/vagrant-hadoop-spark-cluster

Error log:>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/batch_action.rb:82:in `block (2 levels) in run'
 INFO interface: error: 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.
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.

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

How do I fix this problem? Thanks a lot!!!

Alvaro Miranda Aguilera

unread,
Nov 25, 2015, 12:30:25 AM11/25/15
to vagra...@googlegroups.com
Hello,

The first thing is to check if your installation is healthy.

mkdir precise64
cd precise64
vagrant init -m hashicorp/precise64
vagrant up

If that works, then your Vagrant + Virtualbox installation is fine,
and we can think the project you are trying to use has some
requirements or issues.

can you test that?

Alvaro.
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in violation
> of those guidelines may result in your removal from this mailing list.
>
> GitHub Issues: https://github.com/mitchellh/vagrant/issues
> IRC: #vagrant on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Vagrant" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to vagrant-up+...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/vagrant-up/44b445ad-4369-49fc-b312-bf8a478633a6%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Andy Hoho

unread,
Nov 25, 2015, 4:02:16 PM11/25/15
to Vagrant
Thank you Alvaro. My Vagrant and Virtual Box are fine because I have been using other vagrant boxes without issues.
It is something to do with tty - SSH requires tty by default. But I don't know how to tell Vagrant not to use tty for SSH. Any idea?

Alvaro Miranda Aguilera

unread,
Nov 25, 2015, 4:08:55 PM11/25/15
to vagra...@googlegroups.com
Try this:

A.
config.ssh.shell = "bash -l"

B.
config.ssh.shell = "bash -c 'BASH_ENV=/etc/profile exec bash'"

And see if those helps.

Thanks
alvaro.
> https://groups.google.com/d/msgid/vagrant-up/fa43cb84-9463-4244-8cb4-e4a4f5626daa%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages