简体   繁体   中英

Can't git clone larger repository

A few of you might know Spigot (it's Minecraft server software). I'm trying to run their BuildTools.jar to update the current build, but I'm getting some weird git errors.

Info on BuildTools.jar

System: Windows 10. Worth noting I also have a few Google wifi things connected. My laptop is on the base wifi though and switching networks also gives the same errors.

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
  • 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:

  • Running both clone and java jar commands in a mix of PowerShell, git bash, and Linux subsystem for Windows
  • git config --global http.postBuffer 524288000"
  • Opening TCP 9418 on my router
  • Reinstalling Java and Git
  • Tried cloning on a different Windows computer where I use git often, same errors

Google says:

  • Clone with SSH instead (as far as I know I can't do this without the Spigot admins adding support for it on the repo)

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. From their instructions at least Java 8 is required. I am currently running Java 10 (OpenJDK).

Their docs also state:

Please be aware that it is required that you have BuildTools #35 or later, older versions will not work

So you should make sure you also have the appropriate version of the tools (which I expect since 35 seems to be really old).

Usually 5XX errors indicate server side errors. 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.).

Maybe it's also worth to check your firewall (or proxy) settings.

PS: I was using git bash also on a Win 10 machine.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM