Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
180 views
in Technique[技术] by (71.8m points)

java - 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)

I'm at my wit's end. Any ideas?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Works for me without any issues on the first try (and very fast!):

enter image description here

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...