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

Can't vagrant up on ubuntu #36

Closed
setkyar opened this issue May 23, 2014 · 7 comments
Closed

Can't vagrant up on ubuntu #36

setkyar opened this issue May 23, 2014 · 7 comments

Comments

@setkyar
Copy link

setkyar commented May 23, 2014

The first I add

vagrant box add laravel/homestead

And I had Clone https://github.com/laravel/homestead/ into my /home/code folder. And I setup Laravel framework into my code folder and I named it to example.

And I Configure Homestead.yaml like the following


---
authorize: /Users/uvu/.ssh/id_rsa.pub

keys:
    - /Users/uvu/.ssh/id_rsa

folders:
    - map: /Users/uvu/code/example
      to: /home/vagrant/code/example

sites:
    - map: example.app
      to: /home/vagrant/code/Laravel/public

I generated my ssh with the following command

ssh-keygen -t rsa -C "your@email.com"

I add my example.app host to my /etc/hosts like the following

127.0.0.1  example.app

And When I vagrant up into my homestand I got the following erros. What I was wrong on this setup?

/home/uvu/code/homestead/scripts/homestead.rb:25:in `read': No such file or directory - /Users/uvu/.ssh/id_rsa.pub (Errno::ENOENT)
    from /home/uvu/code/homestead/scripts/homestead.rb:25:in `block in configure'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/plugins/kernel_v2/config/vm_provisioner.rb:72:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/plugins/kernel_v2/config/vm_provisioner.rb:72:in `add_config'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/plugins/kernel_v2/config/vm.rb:281:in `provision'
    from /home/uvu/code/homestead/scripts/homestead.rb:23:in `configure'
    from /home/uvu/code/homestead/Vagrantfile:9:in `block in <top (required)>'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/config/v2/loader.rb:37:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/config/v2/loader.rb:37:in `load'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/config/loader.rb:103:in `block (2 levels) in load'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/config/loader.rb:97:in `each'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/config/loader.rb:97:in `block in load'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/config/loader.rb:94:in `each'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/config/loader.rb:94:in `load'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/vagrantfile.rb:28:in `initialize'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/environment.rb:574:in `new'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/environment.rb:574:in `vagrantfile'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/environment.rb:359:in `host'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/environment.rb:168:in `block in action_runner'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/runner.rb:33:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/runner.rb:33:in `run'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/environment.rb:346:in `hook'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/environment.rb:556:in `unload'
    from /opt/vagrant/bin/../embedded/gems/gems/vagrant-1.6.2/bin/vagrant:169:in `ensure in <main>'
    from /opt/vagrant/bin/../embedded/gems/gems/vagrant-1.6.2/bin/vagrant:169:in `<main>'
@laurencei
Copy link

It says it cant find the "/Users/uvu/.ssh/id_rsa.pub" file. So the directory you have listed is incorrect.

@setkyar
Copy link
Author

setkyar commented May 23, 2014

But I already like ssh-keygen -t rsa -C "your@email.com" ?
When I run it again it's say do you want to replace.But I haven't see in my home directory.
How I can check that files was exists or not in ubuntu. It's hidden?

@LespiletteMaxime
Copy link

I you are in Ubuntu you should change :
/Users/uvu/

to
/home/uvu/

@setkyar
Copy link
Author

setkyar commented May 23, 2014

Thanks @LespiletteMaxime now I can vagrant up with the following setting but

---
authorize: /home/uvu/.ssh/id_rsa.public

keys:
    - /home/uvu/.ssh/id_rsa

folders:
    - map: /home/uvu/code/example
      to: /home/uvu/code/homestead

sites:
    - map: example.app
      to: /home/uvu/code/example/public

but when I call my host http://example.app/ I just got Apache2 Ubuntu Default Page . Not Laravel app what I still wrong?

@setkyar
Copy link
Author

setkyar commented May 23, 2014

I don't understand folders and sites in Homestead.yaml. I think I was wrong with those

folders:
    - map: /home/uvu/code/example
      to: /home/uvu/code/homestead

sites:
    - map: example.app
      to: /home/uvu/code/example/public

Can someone explain me? I had also try documentation but I haven't see any explanation about those folders and sites so.

@LespiletteMaxime
Copy link

You did it wrong you should have

folders:
- map: /home/uvu/code/example
to: /home/vagrant/code/exemple

sites:
- map: example.app
to: /home/vagrant/code/exemple/public

@setkyar
Copy link
Author

setkyar commented May 23, 2014

Thanks Everybody. I got it now. Bc I was wrong in
Homestead.yaml

folders:
- map: /home/uvu/code/example
to: /home/vagrant/code/exemple

sites:
- map: example.app
to: /home/vagrant/code/exemple/public

Above code was fix me :)

@setkyar setkyar closed this as completed May 23, 2014
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

3 participants