gogs倉庫管理軟體 exec: "git-upload-pack": executable file not found in $PATH

來源:互聯網
上載者:User

標籤:fat   not found   bin   inter   後端   highlight   usr   倉庫   could not   

當配置完個人中心的ssh公開金鑰的時候,在用戶端拉取代碼的時候,提示如下錯誤:

Cloning into ‘comix-b2m‘...Gogs: Internal errorfatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists.

 一度認為是ssh公開金鑰配置問題

後端serv日誌報錯如下;

 exec: "git-upload-pack": executable file not found in $PATH

  

原來是gogs預設值在/bin下面找二進位命令,果斷做了軟連結,

sudo ln -s  /usr/local/bin/git-upload-pack /bin/git-upload-pack

類似這個你可能還會遇到下面相關的,可以參考解決:(下面前半部分路徑參考你實際的git命令路徑)

ln -s /usr/local/git/bin/git-cvsserver /bin/git-cvsserverln -s /usr/local/git/bin/gitk /bin/gitkln -s /usr/local/git/bin/git-receive-pack /bin/git-receive-packln -s /usr/local/git/bin/git-shell /bin/git-shellln -s /usr/local/git/bin/git-upload-archive /bin/git-upload-archive

添加完畢後,在用戶端可以正常down項目了,一切正常。

Cloning into ‘comix-b2m‘...remote: Counting objects: 4178, done.remote: Compressing objects: 100% (2939/2939), done.remote: Total 4178 (delta 2328), reused 2332 (delta 1045)Receiving objects: 100% (4178/4178), 347.71 MiB | 1.08 MiB/s, done.Resolving deltas: 100% (2328/2328), done.Checking out files: 100% (1487/1487), done.

 

gogs倉庫管理軟體 exec: "git-upload-pack": executable file not found in $PATH

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.