###前提・実現したいこと
windows10環境でrsyncを使い、ローカル開発フォルダとvagrantの公開フォルダの同期を行いたいです。
しかし、ローカルとvargrentをrsyncしようとvagrantfileを編集したところ、vagrant up中に以下のエラーメッセージが発生しました。何が原因かアドバイスを頂けないでしょうか?
Error: Could not create directory '/home/hoge/.ssh'
という部分がどこを指しているのか、どのように編集すべきなのか不明であり特に悩んでいます。よろしくお願いいたします。
###発生している問題・エラーメッセージ
■windowsコマンドプロンプト
default: Guest Additions Version: 4.3.28
default: VirtualBox Version: 5.0
==> default: Configuring and enabling network interfaces...
==> default: Rsyncing folder: /c/Users/username/hoge/src/ => /home/test/public
==> default: - Exclude: [".vagrant/", ".git/", "vendor/"]
There was an error when attempting to rsync a synced folder.
Please inspect the error message below for more info.
Host path: /c/Users/username/hoge/src/
Guest path: /home/test/public
Command: rsync --verbose --archive --delete -z --copy-links --chmod=ugo=rwX --no-perms --no-owner --no-group --rsync-path sudo rsync -e ssh -p 2222 -o ControlMaster=auto -o ControlPath=C:/Users/ENDODA~1/AppData/Local/Temp/ssh.566 -o ControlPersist=10m -o StrictHostKeyChecking=no -o IdentitiesOnly=true -o UserKnownHostsFile=/dev/null -i 'C:/Users/endodaijiro/wonder/.vagrant/machines/default/virtualbox/private_key' --exclude .vagrant/ --exclude .git/ --exclude vendor/ /c/Users/username/hoge/src/ vagrant@127.0.0.1:/home/test/public
Error: Could not create directory '/home/hoge/.ssh'.
Warning: Permanently added '[127.0.0.1]:2222' (RSA) to the list of known hosts.
mm_receive_fd: no message header
process_mux_new_session: failed to receive fd 0 from slave
mux_client_request_session: read from master failed: Connection reset by peer
Failed to connect to new control master
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(226) [sender=3.1.2]
###該当のソースコード
■vagrantfile config.vm.network :public_network,ip:"192.168.xx.xxx",bridge:"en1: Ethernet" config.vm.synced_folder "C:\\Users\\username\\hoge\\src", "/home/test/public", type: "rsync", owner: "vagrant", group: "vagrant", rsync__exclude: [".git/", "vendor/"]
###試したこと
参考にして試したものになります。
■Windows+cygwin+sshで”Could not create directory”が出るとき
■Windows + vagrant 1.8.1 + cwRsync 5.5.0 だと、synced_folderでエラーになる
###補足情報(言語/FW/ツール等のバージョンなど)
①Virtual Box(version 5.0.20-106931-Win)
②Vagrat(version 1.8.1)
③rsync(version 5.4.1.20150827)
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/05/30 04:13