###前提・実現したいこと
- Macを使っている
- Laravelの環境設定を行っている
- homestead upをすると以下のエラーが発生する
###発生している問題・エラーメッセージ
/Users/ユーザー名/.composer/vendor/laravel/homestead/scripts/homestead.rb:92:in `read': No such file or directory @ rb_sysopen - /Users/ユーザー名/Users/ユーザー名/.ssh/id_rsa.pub (Errno::ENOENT) from /Users/ユーザー名/.composer/vendor/laravel/homestead/scripts/homestead.rb:92:in `block in configure' from /opt/vagrant/embedded/gems/gems/vagrant-1.9.5/plugins/kernel_v2/config/vm_provisioner.rb:72:in `call' from /opt/vagrant/embedded/gems/gems/vagrant-1.9.5/plugins/kernel_v2/config/vm_provisioner.rb:72:in `add_config' from /opt/vagrant/embedded/gems/gems/vagrant-1.9.5/plugins/kernel_v2/config/vm.rb:338:in `provision' from /Users/ユーザー名/.composer/vendor/laravel/homestead/scripts/homestead.rb:90:in `configure' from /Users/ユーザー名/.composer/vendor/laravel/homestead/Vagrantfile:20:in `block in <top (required)>' from /opt/vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/config/v2/loader.rb:37:in `call' from /opt/vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/config/v2/loader.rb:37:in `load' from /opt/vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/config/loader.rb:113:in `block (2 levels) in load' from /opt/vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/config/loader.rb:107:in `each' from /opt/vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/config/loader.rb:107:in `block in load' from /opt/vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/config/loader.rb:104:in `each' from /opt/vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/config/loader.rb:104:in `load' from /opt/vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/vagrantfile.rb:28:in `initialize' from /opt/vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/environment.rb:746:in `new' from /opt/vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/environment.rb:746:in `vagrantfile' from /opt/vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/environment.rb:492:in `host' from /opt/vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/environment.rb:214:in `block in action_runner' from /opt/vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/action/runner.rb:33:in `call' from /opt/vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/action/runner.rb:33:in `run' from /opt/vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/environment.rb:479:in `hook' from /opt/vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/environment.rb:728:in `unload' from /opt/vagrant/embedded/gems/gems/vagrant-1.9.5/bin/vagrant:141:in `ensure in <main>' from /opt/vagrant/embedded/gems/gems/vagrant-1.9.5/bin/vagrant:141:in `<main>'
###試したこと
公開鍵がないというエラーのように見受けられたので、下記のコマンドを実行
ssh-keygen -t rsa -C "your@email.com"
「Enter file in which to save the key」と聞かれたましたが、id_rsaは既に存在しているため、上書きしないように下記の様に入力
Enter file in which to save the key (~/.ssh/id_rsa): id_rsa_homestead
再度homestead upするも同じエラーが発生。
###補足情報
一点きになるのが、エラー内容の下記の部分。@ rb_sysopenの後のディレクトリ指定が「/Users/ユーザー名/Users/ユーザー名/」と重複しているのがおかしいのでは?と思いましたが、修正方法が分かりません。
No such file or directory @ rb_sysopen - /Users/ユーザー名/Users/ユーザー名/.ssh/id_rsa.pub (Errno::ENOENT)
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。