[英]Can't git clone larger repository
A few of you might know Spigot (it's Minecraft server software).你们中的一些人可能知道 Spigot(它是 Minecraft 服务器软件)。 I'm trying to run their BuildTools.jar to update the current build, but I'm getting some weird git errors.我正在尝试运行他们的 BuildTools.jar 来更新当前版本,但我遇到了一些奇怪的 git 错误。
Info on BuildTools.jar BuildTools.jar 上的信息
System: Windows 10. Worth noting I also have a few Google wifi things connected.系统:Windows 10. 值得注意的是,我还连接了一些 Google wifi 设备。 My laptop is on the base wifi though and switching networks also gives the same errors.我的笔记本电脑虽然在基础 wifi 上,但切换网络也会出现同样的错误。
Errors:错误:
Exception in thread "main" org.eclipse.jgit.api.errors.TransportException: https://hub.spigotmc.org/stash/scm/spigot/bukkit.git: 504 Gateway Time-out
when running command java -jar BuildTools.jar
Exception in thread "main" org.eclipse.jgit.api.errors.TransportException: https://hub.spigotmc.org/stash/scm/spigot/bukkit.git: 504 Gateway Time-out
when running command java -jar BuildTools.jar
fetch-pack: unexpected disconnect while reading sideband packet
when running clone manually in PowerShell: git clone https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
fetch-pack: unexpected disconnect while reading sideband packet
when running clone manually in PowerShell: git clone https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
I have tried:我努力了:
git config --global http.postBuffer 524288000"
Google says:谷歌说:
What can I try next?接下来我可以尝试什么?
Works for me without any issues on the first try (and very fast:):为我工作,第一次尝试没有任何问题(而且非常快:):
Did you make sure you downloaded the latest version of all tools you use?您是否确保下载了您使用的所有工具的最新版本? Specially for java it can quickly happen to use an outdated version.特别是对于 java,它很快就会碰巧使用过时的版本。 From their instructions at least Java 8 is required.根据他们的说明,至少需要 Java 8。 I am currently running Java 10 (OpenJDK).我目前正在运行 Java 10 (OpenJDK)。
Their docs also state:他们的文档还有 state:
Please be aware that it is required that you have BuildTools #35 or later, older versions will not work请注意,您必须拥有 BuildTools #35 或更高版本,旧版本将无法使用
So you should make sure you also have the appropriate version of the tools (which I expect since 35 seems to be really old).所以你应该确保你也有适当版本的工具(我预计因为 35 似乎真的很旧)。
Usually 5XX errors indicate server side errors.通常 5XX 错误表示服务器端错误。 Maybe they had some config or network issues on their end.也许他们有一些配置或网络问题。 Therefore it might work if you'll try it again after waiting a little while.因此,如果您稍等片刻后再试一次,它可能会起作用。
Maybe just some network node on the way to their servers broke.也许只是在通往他们服务器的路上的一些网络节点坏了。 Apart from waiting and to try again you could try to setup a VPN to route the traffic throgh to avoid this failure (or turn it off in case you're using some.).除了等待并重试之外,您还可以尝试设置一个 VPN 来路由流量以避免此故障(或者在您使用某些设备时将其关闭。)。
Maybe it's also worth to check your firewall (or proxy) settings.也许检查您的防火墙(或代理)设置也是值得的。
PS: I was using git bash also on a Win 10 machine. PS:我也在 Win 10 机器上使用 git bash。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.