【Azure App Service】Local Git App Service的仓库代码遇见卡住不Clone代码的问题

azure,app,service,local,git,仓库,代码,遇见,卡住,clone,问题 · 浏览次数 : 4

小编点评

## 问题描述 启用App Service Local Git 部署,在Clone 代码库到本地时候,卡在Clone ‘xxxxxx’ ... ... 一动不动的问题。 **问题现象:** * 在本地 git 操作中,执行 `git clone [URL]` 命令时,卡在 `Clone ‘xxxxxx’ ... ... 一动不动。 **问题原因:** 由于缺少 Git 连接的日志输出,无法确定问题根源。根据错误提示,怀疑问题可能与自签证书有关。 **解决方法:** 1. **尝试跳过验证**:使用 `$ git -c http.sslVerify=false&` 命令进行 clone 操作。注意,使用跳过验证可能会不安全,建议在运行之前仔细考虑其安全性和可靠性。 2. **重新配置 git**:使用 `$ git config --global http.sslBackend schannel` 命令重新配置 git,并尝试使用 `git clone [URL]` 命令进行操作。 3. **重新配置 git**:可以使用 `git config --global http.sslBackend schannel` 命令重新配置 git,并尝试使用 `git clone [URL]` 命令进行操作。 **参考资料:** * `Cant clone from GitHub : SSL certificate problem: unable to get local issuer certificate` : https://github.com/desktop/desktop/issues/9293 **其他建议:** * 在尝试上述解决方案之前,确保在本地 git 操作中具有正常权限,可以读取远程代码库的证书。 * 可参考其他解决方法的讨论,例如在其他 IDE 上也尝试 Git App Service 的代码库,以获得更多相关信息。

正文

问题描述

启用App Service Local Git 部署,在Clone 代码库到本地时候,卡在Clone ‘xxxxxx’ ... ... 一动不动的问题?

 

问题解答

因为Git Clone没有任何日志输出,所以在其他IDE上也尝试Git App Service的代码库。在intellj的git操作,报错“unable to access, SSL certificate problem: unable to get local issuer certificate”。 

根据这个错误,怀疑问题的根源是:git无法验证自签证书导致。

解决方法

1)尝试在本地的git操作中跳过验证,如使用:

$ git -c http.sslVerify=false clone [URL]

2)完成操作后重新开启验证:

$ git config --global http.sslVerify true。

3)也可以尝试重新配置git:

$ git config --global http.sslBackend schannel

 

参考资料

Cant clone from GitHub : SSL certificate problem: unable to get local issuer certificate  : https://github.com/desktop/desktop/issues/9293

 

与【Azure App Service】Local Git App Service的仓库代码遇见卡住不Clone代码的问题相似的内容:

【Azure App Service】Local Git App Service的仓库代码遇见卡住不Clone代码的问题

问题描述 启用App Service Local Git 部署,在Clone 代码库到本地时候,卡在Clone ‘xxxxxx’ ... ... 一动不动的问题? 问题解答 因为Git Clone没有任何日志输出,所以在其他IDE上也尝试Git App Service的代码库。在intellj的gi

【Azure App Service for Linux】NodeJS镜像应用启动失败,遇见 RangeError: Incorrect locale information provided

问题描述 在App Service For Linux 中,部署NodeJS应用,应用启动失败。 报错信息为: 2023-08-29T11:21:36.329731566Z RangeError: Incorrect locale information provided2023-08-29T11:

【Azure App Service】通过Visual Studio部署Azure App Service 遇见 401 'Unauthorized'错误

Error : Web deployment task failed. (Connected to the remote computer ("javatest02.scm.chinacloudsites.cn") using the Web Management Service, but could not authorize. Make sure that you are using the

【Azure App Service for Windows】 PHP应用出现500 : The page cannot be displayed because an internal server error has occurred. 错误

[500 The page cannot be displayed because an internal server error has occurred.] [scriptProcessor could not be found in "fastCGI" application configuration] [EXECUTE|500|0|0x585|CONFIG_SUCCESS|PHP7

【Azure App Service】Web Job 报错 UNC paths are not supported. Defaulting to Windows directory.

问题描述 PHP的Web Job,通过artisan来配置路径启动PHP任务,相关启动脚本如下: artisan_path = "d:\\home\\site\\wwwroot"; cd ${artisan_path} echo "\n" pwd php artisan schedule:run 但

【Azure App Service】为部署在App Service上的PHP应用开启JIT编译器

问题描述 在App Service for linux上创建一个PHP应用,通过 phpinfo() 查看PHP的扩展设置,发现JIT没有被开启, jit_buffer_size 大小为0. 那么,在App Service的环境中,如何开启JIT呢? 问题解答 PHP 8在PHP的内核中添加了JIT

【Azure App Service for Container】记一次拉取镜像失败的特殊情况

问题描述 使用Azure App Service For Container 拉取 应用镜像,发现拉取失败。 错误消息: “Image pull failed since Inspect image returned null: xxxxxxx.azurecr.cn/dataapi:20230830

【Azure App Service】.NET代码实验App Service应用中获取TLS/SSL 证书 (App Service Windows)

在使用App Service服务部署业务应用,因为有些第三方的接口需要调用者携带TLS/SSL证书(X509 Certificate),在官方文档中介绍了两种方式在代码中使用证书: 1) 直接使用证书文件路径加载证书 new X509Certificate2 2) 从系统的证书库中通过指纹加载...

【Azure App Services】多次操作App Service伸缩实例遇见限制操作记录

"message": "You have exceeded the maximum amount of scale changes within the past hour(23 changes and limit is 20). Please retry later."

【Azure 应用服务】App Service 默认页面暴露Tomcat版本信息,存在安全风险

问题描述 在创建Azure App Service时,服务端的配置使用Java 8 + Tomcat 8.5。默认的根目录页面显示出App Service Tomcat版本信息,存在一定的安全隐患。 如何来避免这个问题呢? 问题解答 因为在初始创建App Service时,Azure会根据所选Sta