Gogs Warehouse management software exec: "git-upload-pack": Executable file not found in $PATH

Source: Internet
Author: User

When configuring the SSH public key of the personal center, when the client pulls the replacement code, the following error is indicated:

Cloning into ' comix-b2m ' ... Gogs:internal errorfatal:could not read from remote repository. Please make sure the correct access rightsand the repository exists.

Once considered SSH public key configuration problem

Back-end Serv log error as follows;

EXEC: "Git-upload-pack": Executable file not found in $PATH

  

The original is gogs default value under/bin find Binary command, decisively made a soft link,

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

Similar to this you may also encounter the following related, you can refer to the resolution: (Below the first half of the path refer to your actual git command path)

Ln-s/usr/local/git/bin/git-cvsserver/bin/git--s/usr/local/git/bin/gitk/bin/-s/usr/local/git/ bin/git-receive-pack/bin/git-receive--s/usr/local/git/bin/git-shell/bin/git--s/usr/local/git /bin/git-upload-archive/bin/git-upload-archive

After the addition, the client can gracefully down the project, everything is OK.

Cloning into'comix-b2m'... remote:counting objects:4178, done.remote:Compressing objects: -% (2939/2939), Done.remote:Total4178(Delta2328), reused2332(Delta1045) Receiving objects: -% (4178/4178),347.71MiB |1.08mib/s, done. Resolving deltas: -% (2328/2328), done. Checking outFiles -% (1487/1487), done.

Gogs Warehouse management software exec: "git-upload-pack": Executable file not found in $PATH

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.