laravel vagrant homestead doesnt create directory - laravel

i tryed everything but really canĀ“t find the solution... I want to install homestead but when i do vagrant up or homestead up it just dont create directory or files. here is terminal
Can someone give help?
Thanks in advance!
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'laravel/homestead'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'laravel/homestead' is up to date...
==> default: Setting the name of the VM: homestead
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: Forwarding ports...
default: 80 => 8000 (adapter 1)
default: 443 => 44300 (adapter 1)
default: 3306 => 33060 (adapter 1)
default: 5432 => 54320 (adapter 1)
default: 22 => 2222 (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Connection timeout. Retrying...
default:
default: Vagrant insecure key detected. Vagrant will automatically replace
default: this with a newly generated keypair for better security.
default:
default: Inserting generated public key within guest...
default: Removing insecure key from the guest if its present...
default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Setting hostname...
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
default: /vagrant => /Users/Perez/Homestead
default: /home/vagrant/projects => /Users/Perez/Homestead/projects
==> default: Running provisioner: file...
==> default: Running provisioner: shell...
default: Running: inline script
==> default: stdin: is not a tty
==> default: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDXQVws5AGfpExLnJz5KMEqxwC2+hGvdNZL63Pi3HhGo+iOI7rqJhNpYn9KnsfK/kohfl6ByxzetgzBGA793aQOMPR8x/O5Ho+QsaftZnywvIqIOSwcWASWn2jYxxe/FKJ8Pk6tJEt0W3JxoHYbObOYQxj2PtEeBj+UvFjZF4i8u+ZO2DikOE9WLaVygLeZ43bcg0g+vlPoKangmvcekPWhqLQqysm/V94e8VscT1nKMgTO2GeC1CBUPWRZUMK5Afq6J2T98mgsp9NMMW7RvIK4Nvs5iUluuyW5rCh1TMyeCKsIq3uPOuiUEDd7sGiOK9ea++lGEJdTss2YN11m3b3d jacperestrelo#gmail.com
==> default: Running provisioner: shell...
default: Running: inline script
==> default: Running provisioner: shell...
default: Running: inline script
==> default: stdin: is not a tty
==> default: * Restarting nginx nginx
==> default: ...done.
==> default: php5-fpm stop/waiting
==> default: php5-fpm start/running, process 2058
==> default: Running provisioner: shell...
default: Running: /var/folders/7q/nkxx6h8j759cplvbvs1x842w0000gp/T/vagrant-shell20141220-1085-1epuhti.sh
==> default: stdin: is not a tty
==> default: Warning: Using a password on the command line interface can be insecure.
==> default: Warning: Using a password on the command line interface can be insecure.
==> default: Running provisioner: shell...
default: Running: /var/folders/7q/nkxx6h8j759cplvbvs1x842w0000gp/T/vagrant-shell20141220-1085-o5766a.sh
==> default: stdin: is not a tty
==> default: Running provisioner: shell...
default: Running: inline script
==> default: stdin: is not a tty
==> default: Running provisioner: shell...
default: Running: inline script
==> default: stdin: is not a tty
==> default: php5-fpm stop/waiting
==> default: php5-fpm start/running, process 2166
==> default: Running provisioner: shell...
default: Running: inline script
==> default: stdin: is not a tty
==> default: You are already using composer version a422d67e2701860a44a4634f62f88b58b8636468.
==> default: Running provisioner: shell...
default: Running: /var/folders/7q/nkxx6h8j759cplvbvs1x842w0000gp/T/vagrant-shell20141220-1085-1bnb42k.sh
==> default: stdin: is not a tty

Related

Windows: Running vagrant as administrator not working - works normally

I've been using vagrant to run laravel/lumen as well as just other general stuff such as node js scripts. I've run into problems installing some things using npm, and it seems that a solution working for a lot of people is just running the command line (or git bash in my case) as an administrator. However when I try this and use vagrant up, I get a long list of errors. I've also tried vagrant init which gives the same errors.
Here are the errors
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'laravel/homestead' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: Forwarding ports...
default: 80 (guest) => 8000 (host) (adapter 1)
default: 443 (guest) => 44300 (host) (adapter 1)
default: 3306 (guest) => 33060 (host) (adapter 1)
default: 5432 (guest) => 54320 (host) (adapter 1)
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Setting hostname...
v==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
default: /vagrant => C:/Users/Andy McNally/Homestead
vag default: /home/vagrant/home => C:/Users/Andy McNally/home
r==> default: Machine already provisioned. Run `vagrant provision` or use
the `--provision`
==> default: flag to force provisioning. Provisioners marked to run always
will still run.

vagrant - The capability 'nfs_mount' could not be found

The capability 'nfs_mount' could not be found. This is an internal error
that users should never see. Please report a bug.
Cmd
C:\var\www\cc-dev-env>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'ubuntu/trusty64' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: Forwarding ports...
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Remote connection disconnect. Retrying...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
default: The guest additions on this VM do not match the installed version of
default: VirtualBox! In most cases this is fine, but in rare cases it can
default: prevent things such as shared folders from working properly. If you see
default: shared folder errors, please make sure the guest additions within the
default: virtual machine match the version of VirtualBox you have installed on
default: your host and reload your VM.
default:
default: Guest Additions Version: 4.3.36
default: VirtualBox Version: 5.0
==> default: [vagrant-hostsupdater] Checking for host entries
==> default: [vagrant-hostsupdater] found entry for: 192.168.100.100 cc.dev
==> default: Mounting NFS shared folders from guest...
The capability 'nfs_mount' could not be found. This is an internal error
that users should never see. Please report a bug.
I am using
Windows 10 64-bit
Vagrant 1.8.1
vagrant-hostsupdater (1.0.2)
vagrant-nfs_guest (0.1.8)
vagrant-share (1.1.5, system)
vagrant-winnfsd (1.1.0)
Of course I would like to not see this error and see the VM that I am trying to boot open.

Vagrant up error: I can ssh but nginx is giving me errors

I am using Vagrant/Homestead combo with Laravel 5.2 and I tried to make HTTP calls to the server and something broke but I don't know why, I kept getting a 405 bad gateway error and someone recommended I just create a new vagrant box.
So I went to my VirtualBox Manager and deleted my homestead box/deleted all files as well, then ran vagrant up to create a new one and I was able to ssh just fine but now when I try to make a HTTP call, namely in Postman, I get:
<html>
<head>
<title>502 Bad Gateway</title>
</head>
<body bgcolor="white">
<center>
<h1>502 Bad Gateway</h1>
</center>
<hr>
<center>nginx/1.9.7</center>
</body>
</html>
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
When running vagrant up, I get this error (look at the very last line):
Lansana#DESKTOP-UV14VGF MINGW64 ~/Homestead (master) $ vagrant up Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'laravel/homestead'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'laravel/homestead' is up to date...
==> default: Setting the name of the VM: homestead
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: Forwarding ports...
default: 80 => 8000 (adapter 1)
default: 443 => 44300 (adapter 1)
default: 3306 => 33060 (adapter 1)
default: 5432 => 54320 (adapter 1)
default: 22 => 2222 (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Connection timeout. Retrying...
default:
default: Vagrant insecure key detected. Vagrant will automatically replace
default: this with a newly generated keypair for better security.
default:
default: Inserting generated public key within guest...
default: Removing insecure key from the guest if it's present...
default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Setting hostname...
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
default: /vagrant => C:/Users/Lansana/Homestead
default: /home/vagrant/Sites => C:/Users/Lansana/Homestead/Projects
==> default: Running provisioner: file...
==> default: Running provisioner: shell...
default: Running: inline script
==> default: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC4q2BHIAHJ/yUc9zwJVCUbtbPe5xPJmbsbUJmtjldEnaIZ00tG/memsDHbOlGsbTxRU2QgKmrKSu7Iz8r+FglDbXLzbrg0O9rrQWi9FCpl8J630o1/fz3vejVIslcnuRBtiW/UUjYTZ5vsU2E/aMmxJFA31IzWslmQKHzOW+2XHyQ3e8QQBI7owA4QpVHtki0g0xlISA+H7kgG90NY0uEF+t4GK0KY/CN2GzxMFCAxtXLa2M8uGimySImsPBZByMNuLsdiok8W8vLWtDr9qvXhQkXOpxSTUflfCiJQmOke3hJpjWGPCcaVg9gPmr3wH9GUKnGQJ6SPQlslMI+Mekr/ lansana#homestead
==> default: Running provisioner: shell...
default: Running: inline script
==> default: Running provisioner: shell...
default: Running: C:/Users/Lansana/AppData/Local/Temp/vagrant-shell20160109-5024-pucyip.sh
==> default: Running provisioner: shell...
default: Running: C:/Users/Lansana/AppData/Local/Temp/vagrant-shell20160109-5024-1dw603v.sh
==> default: nginx stop/waiting
==> default: nginx start/running, process 1943
==> default: php5-fpm: unrecognized service 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.
Anyone know what is going wrong here?
Try doing the following:
$ composer remove laravel/homestead
$ composer clear-cache
$ composer require laravel/homestead
$ vagrant destroy && vagrant up
For some reason, doing a composer update laravel/homestead didn't grab the latest version of the homestead files (I think it has something to do with the composer.json using "^3.0", and didn't think 3.0.1 required an update or something), I noticed homestead.rb was not the current version.

Can't see the NFS shared directory in Vagrant

I try to create an NFS share directory in the vagrant box, but for some reasons I can not see the shared directory when I login to the box via ssh.
This is my Vagrantfile:
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "hashicorp/precise32"
config.vm.synced_folder "./shared", "/st/data", :nfs => true
config.vm.network "private_network", ip: "192.168.33.10"
end
Vagrant reload output:
vagrant reload
==> default: Attempting graceful shutdown of VM...
==> default: Checking if box 'hashicorp/precise32' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: Forwarding ports...
default: 22 => 2222 (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Connection timeout. Retrying...
==> default: Machine booted and ready!
GuestAdditions 5.0.6 running --- OK.
==> default: Checking for guest additions in VM...
==> default: Configuring and enabling network interfaces...
==> default: Exporting NFS shared folders...
==> default: Preparing to edit /etc/exports. Administrator privileges will be required...
==> default: Mounting NFS shared folders...
==> default: Mounting shared folders...
default: /vagrant => /Users/stk/Documents/vagrant
==> default: Check for insecure vagrant key: OK (not present)
==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> default: flag to force provisioning. Provisioners marked to run always will still run.
After vagrant ssh I can't see any nfs directory.
vagrant -v
Vagrant 1.7.4
OSX:
10.10.3
I tried most of the solutions mentioned here, but still no luck.

Homestead gives 404 Not Found

I'm trying to get Homestead 2.0 up and running to use for local development with Laravel. I followed the Laracast, but I'm getting a 404 Not Found. Does
This is what I get when running homestead up command
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'laravel/homestead'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'laravel/homestead' is up to date...
==> default: Setting the name of the VM: homestead
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: Forwarding ports...
default: 80 => 8000 (adapter 1)
default: 443 => 44300 (adapter 1)
default: 3306 => 33060 (adapter 1)
default: 5432 => 54320 (adapter 1)
default: 22 => 2222 (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Remote connection disconnect. Retrying...
default: Warning: Remote connection disconnect. Retrying...
default: Warning: Remote connection disconnect. Retrying...
default: Warning: Remote connection disconnect. Retrying...
default: Warning: Remote connection disconnect. Retrying...
default:
default: Vagrant insecure key detected. Vagrant will automatically replace
default: this with a newly generated keypair for better security.
default:
default: Inserting generated public key within guest...
default: Removing insecure key from the guest if its present...
default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Setting hostname...
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
default: /vagrant => /Users/me/.composer/vendor/laravel/homestead
default: /home/vagrant/Projects => /Users/me/Projects
==> default: Running provisioner: file...
==> default: Running provisioner: shell...
default: Running: inline script
==> default: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCtfIqsdadasdadaiHuOJAFEM6Fy1hwpnknHbezsl8VHl1CzRRGLWR0a1O0GFCB8bQGgaQlJF4rnncxOMj3e28soXUX/hrSgayY/Qo5ZddadsdadsadsdI2STFk7ZhSg6rjaDXYWwVDVMLqyqv8HBulYx0IEgkH5/Hwlw9UCia0OEkbKpsdasdadaxm5128OJFtykWdKpkhkopkopkopkopsgyDsZ6pRccDaITjNKT0aU2bpwSnRx+oLQ18Y32xFSOhq8VwkEdrOvYy9FPe2YAbbi82J7sValnRY+K2+NooU3/XmSCDb me#Me.local
==> default: Running provisioner: shell...
default: Running: inline script
==> default: Running provisioner: shell...
default: Running: inline script
==> default: * Restarting nginx nginx
==> default: ...done.
==> default: php5-fpm stop/waiting
==> default: php5-fpm start/running, process 2233
==> default: Running provisioner: shell...
default: Running: /var/folders/09/bfdxycfd2t1b2ycm3zgmtq100000gn/T/vagrant-shell20141212-2178-1bbctyq.sh
==> default: Warning: Using a password on the command line interface can be insecure.
==> default: Warning: Using a password on the command line interface can be insecure.
==> default: Running provisioner: shell...
default: Running: /var/folders/09/bfdxycfd2t1b2ycm3zgmtq100000gn/T/vagrant-shell20141212-2178-16noi2s.sh
==> default: Running provisioner: shell...
default: Running: inline script
==> default: Running provisioner: shell...
default: Running: inline script
==> default: php5-fpm stop/waiting
==> default: php5-fpm start/running, process 2374
==> default: Running provisioner: shell...
default: Running: inline script
==> default: Updating to version 55895ab494db249bc0fcd836237c3a23c9f36dfc.
==> default: Downloading: connection...
Downloading: 0%
==> default:
==> default: Downloading: 5%
==> default:
==> default: Downloading: 10%
==> default:
==> default: Downloading: 15%
==> default:
==> default: Downloading: 20%
Downloading: 25%
Downloading: 30%
==> default:
==> default: Downloading: 35%
==> default:
==> default: Downloading: 40%
Downloading: 45%
==> default:
==> default: Downloading: 50%
==> default:
==> default: Downloading: 60%
Downloading: 65%
==> default:
==> default: Downloading: 70%
==> default:
==> default: Downloading: 75%
==> default:
==> default: Downloading: 80%
==> default:
==> default: Downloading: 85%
==> default:
==> default: Downloading: 90%
==> default:
==> default: Downloading: 95%
==> default:
==> default: Downloading: 100%
==> default: Use composer self-update --rollback to return to version b23a3cd36870ff0eefc161a4638d9fcf49d998ba
==> default: Running provisioner: shell...
default: Running: /var/folders/09/bfdxycfd2t1b2ycm3zgmtq100000gn/T/vagrant-shell20141212-2178-1a1rgym.sh
This is the Homestead config file
ip: "192.168.10.10"
memory: 2048
cpus: 1
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: ~/Projects
to: /home/vagrant/Projects
sites:
- map: testproject.app
to: /home/vagrant/Projects/Laravel/public
databases:
- homestead
variables:
- key: APP_ENV
value: local
SSH into your homestead virtual machine and try running following command.
serve testproject.app /home/vagrant/Projects/Laravel/public

Resources