Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vagrant up fails with Laravel: 'The SSH command responded with a non-zero exit status'

New to Laravel and Vagrant, never put up a virtual machine any way other than via MAMP. New to using Terminal in general.

Running on Mac OSX 10.9. Vagrantfile (and hopefully soon Laravel) is placed in a folder in Documents.

Receiving 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.

Log since 'vagrant up'

Used vagrant files

UPDATE: When accessing the designated VM address through my browser, I am greeted by a 403 Forbidden

EDIT: Link to terminal log updated after fixing laravel installation issues regarding mcrypt.

UPDATE: Tried solution described here by adding the following to /etc/sudoers. Problem not fixed.

vagrant ALL=(ALL) NOPASSWD:ALL
Defaults:vagrant !requiretty
like image 867
i_love_nachos Avatar asked Sep 10 '14 17:09

i_love_nachos


2 Answers

The artisan file isn't there.

php artisan migrate #fails

I can't tell exactly what should be in /var/www, but it seems to me like Laravel isn't getting set up properly. Try vagrant ssh to snoop around in /var/www (ls /var/www) and see what's there/what's missing.

like image 117
mz3 Avatar answered Nov 09 '22 03:11

mz3


run:

vagrant ssh

when you success login, run the command like below:

sudo rm -f /etc/udev/rules.d/70-persistent-net.rules 

maybe 70 or 60 is the begining of rules filename.

than reload your virtualbox,try it maybe the right way to solve the matter.

like image 29
wedojava Avatar answered Nov 09 '22 02:11

wedojava