gogs仓库管理软件 exec: "git-upload-pack": executable file not found in $PATH

当配置完个人中心的ssh公钥的时候,在客户端拉取代码的时候,提示如下错误:

Cloning into ‘comix-b2m‘...
Gogs: Internal error
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and 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-cvsserver
ln -s /usr/local/git/bin/gitk /bin/gitk
ln -s /usr/local/git/bin/git-receive-pack /bin/git-receive-pack
ln -s /usr/local/git/bin/git-shell /bin/git-shell
ln -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.

原文地址:https://www.cnblogs.com/netsa/p/9204479.html

时间: 2024-10-09 01:47:46

gogs仓库管理软件 exec: "git-upload-pack": executable file not found in $PATH的相关文章

报错:exec:"gcc" executable file not found in %PATH%

问题 在编译以太坊源码时出现以下错误信息: exec: "gcc": executable file not found in %PATH% Windows下解决方法 1. 下载mingw64,并安装 下载地址:https://sourceforge.net/projects/mingw-w64/ 2. 设置环境变量 将安装目录下的bin文件夹添加到Path环境变量中: C:\Program Files (x86)\mingw-w64\i686-8.1.0-posix-dwarf-rt

exec: "docker-proxy": executable file not found in $PATH

在执行 docker run 操作的时候,一直报如下错误: [[email protected] vagrant]# docker run --name redis-6379 -p 6379:6379 -d --rm daocloud.io/library/redis 9e3e4650004bfd68030ea23c4a1e300556721c516160464afe45554b2184c111 /usr/bin/docker-current: Error response from daemo

【docker报错】starting container process caused "exec: \"-P8080:8080\": executable file not found in $PATH".

docker创建tomcat容器报错: [[email protected] ~]# docker run -di --name=tomcat tomcat:latest -P8080:80806ff68159042bf87347bc9570d4ab8151fe8ff3b5bc60333718f6a0f8fd95af5b/usr/bin/docker-current: Error response from daemon: oci runtime error: container_linux.g

exec: "go": executable file not found in $PATH异常的原因

尝试在机器上部署athens,运行时发生如下异常 error adding proxy routes ,exec: "go": executable file not found in $PATH. 一般来说go程序的运行环境是不需要安装go的.在交叉编译的加持下,分发部署更加方便.但是如果go程序中通过exec的方式执行了其他go命令,那么部署环境自然也需要安装go,且export到path中.athens有了这样的逻辑才导致上述异常. 原文地址:https://www.cnblog

(转)VSCode调试go语言出现:exec: "gcc": executable file not found in %PATH%

原文:https://www.cnblogs.com/zsy/p/5958170.html 1.问题描述 由于安装VS15 Preview 5,搞的系统由重新安装一次:在用vscdoe编译go语言时,出现以下问题: # odbcexec: "gcc": executable file not found in %PATH%exit status 2 2.解决方案 2.1 mingw 64 MinGW分为较早开发的MinGW32和之后为编译64位程序开发的MinGW-w64,MinGW3

【解决】OCI runtime exec failed......executable file not found in $PATH": unknown

[问题]使用docker exec + sh进入容器时报错 [[email protected] home]# docker exec -it container-test bash OCI runtime exec failed: exec failed: container_linux.go:346: starting container process caused "exec: \"bash\": executable file not found in $PATH&

golang executable file not found in $PATH

最近使用docker,遇见executable file not found in $PATH,深究一下源码,追溯到golang内置包,看代码 //寻找可执行的文件,取文件的mode(二进制形式) func findExecutable(file string) error { d, err := os.Stat(file) if err != nil { return err } //看属性 if m := d.Mode(); !m.IsDir() && m&0111 != 0 

“exec: "ssh-keygen": executable file not found in %PATH%” 问题解决

set PATH=%PATH%;C:\Program Files (x86)\Git\bin bash start.sh 将以上内容保存为start.bat,放在boot2docker根目录下,管理员身份运行即可

exec: "gcc": executable file not found in %PATH%

MinGW分为较早开发的MinGW32和之后为编译64位程序开发的MinGW-w64,MinGW32只能编译32位的程序,而mingw64不仅能编译64位程序,也能编译32位程序,还能进行交叉编译,即在32位主机上编译64位程序,在64位主机上编译32位程序. 由于用的window10 企业版64位操作系统, 下载地址:https://pan.baidu.com/s/1RNvMBXUiHXruXzrGySnQRg 点击“Download”按钮, 在使用mingw64之前,由于其支持较多的编译类型