前提・実現したいこと
WindowsServer上にGitリモートリポジトリを作成し、クライアントからpush
等の操作を行いたい
発生している問題・エラーメッセージ
クライアントでgit push --set-upstream origin master
を実行すると固まってしまう。
初期化直後の空のリポジトリのgit clone
は成功した。
サーバのコンソールに出ているメッセージは以下
[1616] Ready to rumble [6472] Connection from [クライアントIPアドレス] [6472] unable to set SO_KEEPALIVE on socket: No such file or directory [6472] Extended attribute "host": [サーバIPアドレス] [6472] Request receive-pack for '/sample.git'
###環境
サーバ
- OS
WindowsServer2016 Standard(64bit)
- Gitクライアント(Git for Windwos)のバージョン
git version 2.22.0.windows.1
- リポジトリフォルダのパス
D:/git/sample.git
(git init --bare --shared
で初期化)
- デーモン起動コマンド
git daemon --export-all --enable=receive-pack --base-path=/d/git --verbose
クライアント
- OS
Windows 10 Pro(64bit)
- Gitクライアント(Git for Windwos)のバージョン
git version 2.22.0.windows.1
- リモート設定
$ git remote -v
origin git://[サーバIPアドレス]/sample.git (fetch)
origin git://[サーバIPアドレス]/sample.git (push)
試したこと
- デーモン起動時のオプションに
--reuseaddr
を追加
変化なし
git config --global sendpack.sideband false
を実行
変化なし
- TCP 9418番ポートの送受信を許可
変化なし
- SSH設定をしてSSHプロトコルでの接続を試みる
クライアント側で下記エラーが発生(サーバ側はログ出力無し)
※SSH設定はこちらのサイトを参考に行いました。
Connection closed by [サーバIPアドレス] port 22 fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。