#BuildTools stuck in downloading git portable for windows

1 messages · Page 1 of 1 (latest)

cunning sand
#

For keep the "thread"

#

by the moment a "hotfix" its create the directory and download the file

rustic basin
cunning sand
rustic basin
cunning sand
#

yeah this is just for make BuildTools not try download the gitportable again

rustic basin
cunning sand
#

why the directory tells 2.30.0?
the last BuildTools try to use 2.45.2

#

and your first image tells the same

rustic basin
#

2.30 is BuildTools make dir

#

dont have exe

#

2.45 is i download on GitHub

#

File is Null

cunning sand
#

that not make sense.. the directory is based in the URL then its impossible try to make that.
remove the directory and run again to check if is created again

rustic basin
#

I tried what you said

#

cant

#

Still

ocean cedar
#

Wild guess ... you are from China?
Is there maybe a problem with actually reaching the download location through your network?

cunning sand
#

the strange is the download url working

ocean cedar
#

I see a folder, but no content

rustic basin
#

I downloaded the BuildTools.jar in 1.19.2 and I can download the server core directly by using the command java (Linux) or double-clicking to open it (windows) Why is it a GUI now?

rustic basin
cunning sand
rustic basin
ocean cedar
#

Lets try it step by step

rustic basin
#

down this?

rustic basin
# ocean cedar Lets try it step by step

The main thing is that I've been looking for a long time, and I haven't found the jar file that used to download the core directly, but I still have that file on the server, but that's 1.19.2, and my friend wants to play 1.20.4

ocean cedar
rustic basin
ocean cedar
#

Delete the old BuildTools.jar, BuildTools (1).jar and BuildTools (2).jar

#

And rename BuildTools (3).jar to BuildTools.jar

#

Less confusion

rustic basin
#

2 step

ocean cedar
rustic basin
#

Looks like it's still going to get stuck

ocean cedar
#

Is it failing on that download?

cunning sand
#

not git directory created?

rustic basin
#

It's not that the download failed Yes, it's that there was no download

ocean cedar
#

Can you download that?

rustic basin
ocean cedar
#

Okay, now place it into the Build folder

rustic basin
ocean cedar
#

Place into the Folder with the same name

#

Then run BuildTools.jar again

rustic basin
ocean cedar
#

What was the result?

rustic basin
ocean cedar
#

Remove the (1)

rustic basin
ocean cedar
#

Dont place it there

#

Where is your BuildTools.jar?

#

Try placing it on the same layer

rustic basin
#

okay i konw

ocean cedar
#

(I don't actually know where exactly it is looking for it)

rustic basin
#

there?

ocean cedar
#

Try it this way once

#

So I can see

rustic basin
#

wow!

#

look!

#

Looks like I put the program in the wrong folder

cunning sand
#

just for curious can you try this?
i just add a few debugs to check where is really stuck...

rustic basin
ocean cedar
#

How is that BuildTools.jar out of date lol

cunning sand
rustic basin
#

open jar in intellij idea?

cunning sand
cunning sand
rustic basin
#

okay whitch

#

with

cunning sand
rustic basin
#

and

ocean cedar
#

Wrong hash lel

rustic basin
#

This is the result of the build tool I downloaded on the official website and waited for half an hour

#

Maybe longer, please wait for me to run the jar you sent me

ocean cedar
#

At this point its probably easier just to install Git lol

cunning sand
rustic basin
#

runing

ocean cedar
#

Dont use --rev server-version

#

Use --rev 1.20.4

#

For example

rustic basin
#

okay hahha

ocean cedar
#

Yes, still failing the GitPortable download

#

Because the hashes dont match

rustic basin
#

Do I need to move that exe file to this directory?

ocean cedar
#

Its probably easier if you just install Git manually

#

Windows?

rustic basin
#

how can i install

#

yes

#

win11

ocean cedar
#

Okay, one sec

rustic basin
#

I have installed this app

cunning sand
ocean cedar
rustic basin
#

yes not down

ocean cedar
#

Install that, which installs Git permanentely instead of coming as portable version

ocean cedar
#

No

rustic basin
#

I tried installing

ocean cedar
#

Download this one

#

And run it

#

You executed the Portable version

rustic basin
#

run is install step?

ocean cedar
#

Just hit next on all steps

rustic basin
#

e maybe i have git

ocean cedar
#

You didnt

#

Before

rustic basin
ocean cedar
#

Perfect

#

Now run BuildTools.jar again

#

java -jar BuildTools.jar --rev 1.20.4

#

Should detect you have Git installed now

rustic basin
#

I've always had git

ocean cedar
#

Then it's not in your path variables

cunning sand
rustic basin
ocean cedar
#

Okay try this:

#

Launch Git Bash instead

#

And navigate to your folder with BuildTools.jar through that

#

And then type
java -jar BuildTools.jar --rev 1.20.4

#

This should run it directly through the Git Bash

#

And (hopefully) run the BuildTools without needing to download PortableGit

rustic basin
#

e i cant cd dir

ocean cedar
#

cd /f

#

F: is /f in Unix terminal

#

And you need to use / instead of \

rustic basin
ocean cedar
#

No, / is root directory

#

Try: cd /f/server/......

rustic basin
#

get it

ocean cedar
#

There you go

#

ls -la

#

To show a list of content

rustic basin
#

I won't use Windows' instructions sorry

ocean cedar
#

Its okay

#

Use ls -la

#

For list of folder content

rustic basin
ocean cedar
#

Okay

#

Now run

#

java -jar "BuildTools (4).jar" --rev 1.20.4

rustic basin
ocean cedar
#

remove - before 1.20.4

#

Typo

rustic basin
#

i copy you cmd try again

ocean cedar
#

Yepp, now its actually starting the git cloning

rustic basin
#

Normally, how long does it take

ocean cedar
#

Hmmm, usually 5-10 mins

#

On the first time

#

Next runs are quicker, because it already downloaded most files and will only download / update differences

rustic basin
#

okay

#

Why can't I get the server side through the gui

ocean cedar
#

Because the BuildTools programm only checks if you can run Git directly from it's current environment.
As @cunning sand already said earlier, BuildTools does not know about your Git installation, neither the CLI version nor the GUI version - only if you run through Git Bash (which has Git included in it's environment) it sees that it can run it.

rustic basin
#

done?

ocean cedar
#

It failed on Maven download

#

Check if you can reach the Download locations it is trying to download from or if they are restricted to you

cunning sand
#

why maven throw and git not xd

rustic basin
ocean cedar
#

Country lock?

#

I assume some downloads may fail from China?

rustic basin
#

yeah

#

China

ocean cedar
#

:/

rustic basin
#

but

#

i have VPN

ocean cedar
#

Hmm

cunning sand
#

if you use the url in the logs for maven (the zip) download?

#

maybe its a proxy thing or something

ocean cedar
cunning sand
#

the strange is the git

ocean cedar
#

It reports a different hash back

#

Did you see that?

#

It fails on the hash check

cunning sand
rustic basin
#

what can i do

cunning sand
rustic basin
#

i can download this

cunning sand
#

well for maven its a little more easy...
you can manually install and put the directory in the ENV VAR M2_HOME

rustic basin
#

where is ENV VAR M2_HOME

cunning sand
#

but maybe the VPN is making the JAR not works correctly

rustic basin
#

hmmm

#

if i close VPN i can download?

cunning sand
rustic basin
#

It's late for me ,I want to take a shower and sleep,I got it from 8 o'clock to 11 o'clock,Didn't succeed in building the server hahaha

#

Can we continue tomorrow

cunning sand
rustic basin
#

Will this chat disappear after I log out of the program?

#

I used discord for the first time to chat

ocean cedar
#

No

#

It will stay

rustic basin
#

okay have good day bye bye~ :)

rustic basin
#

hello im back

#

now i run your jar

#

loor print

#

look print

#

@cunning sand

cunning sand
rustic basin
#

oh

#

if i not vpn , just cant login discord XD

cunning sand
rustic basin
#

I forgot to add maven

cunning sand
#

but now are not stuck in downloading maven or any...

rustic basin
#

need a?

#

who

cunning sand
#

how is going the console?
in teory building the jar not?

rustic basin
#

with me applay Path

cunning sand
#

can you show?

rustic basin
cunning sand
#

but in this point not going to throw any related to downloads

rustic basin
#

I've configured maven, what I have to do now is restart the jar

#

It's normal now, right?

cunning sand
#

nope fails to maven.. you need install maven first

rustic basin
#

I installed Maven and you can see that the command I typed prompted the version of Maven

#

I tried to run the GUI in the virtual machine but I still get the same problem, the virtual machine does not have Git, there is no maven, it is a new system

ocean cedar
#

The problem is, BuildTools need to detect Git AND Maven, which there is two options for:

  1. It downloads it by itself, Git as Portable version and Maven as direct download .zip
  2. It detects them in its environment when run (this is why Git works, when run through Git Bash)

Both of your download problems (Git Portable and Maven) are most likely the result of your VPN, since you are in China - and I know, you wouldn't even be able to connect to international internet without a VPN, so you don't have another option.
Since you "fixed" at least the Git issue by running directly through Git Bash, you just need to "fix" the Maven download now.
I don't see it working through the BuildTools.jar itself, as it keeps failing on that, so you have two options here again:

  1. Download the Maven .zip directly from where it wants to download it from and put it exactly where it would expect it do be, possible already unpacked (@cunning sand might know better how and where it expects it?)
  2. Include Maven in your Git Bash environment, which means you have to set the PATH variables inside Git Bash correctly

After this, run the version of BuildTools.jar that @cunning sand gave you and show us the result.

ocean cedar
cunning sand
#

@rustic basin and running the JAR i last provide in virtual machine change any?

rustic basin
#

server version is Ubuntu Server 24.04

#

And then I just tried on the server with the command that chat gpt provided to me and it seems to finish building?

rustic basin
#

My git bash seems to have a maven environment

cunning sand
rustic basin
#

A LAN server is not a virtual machine, it is a physical machine

#

@cunning sand

cunning sand
rustic basin
#

Not the virtual machine I mentioned earlier

cunning sand
#

You run that in WSL or where?

rustic basin
#

You can think of it as, I'm deploying a development environment in my Windows, and then I'm developing an MC plugin, and then I don't have a MC server, so I can't connect to RCON, so I want to deploy a Minecraft server in my windos to test the RCON connection, and the screenshot I'm showing you is how to describe it, it's like a live server, and my computer is a test server, and then I test it and then deploy it to a live server

#

what is WSL

#

nono no

#

is Linux server not is WSL

#

I don't know how to describe it to you, but if you look at the screenshots, you can see that the first screenshots that I gave you were running in VMware, and now the screenshots are running on a different computer, which is a server

#

@cunning sand

cunning sand
#

Ohhh okay but now you have the jar generated by buildtools not?

rustic basin
#

yes

ocean cedar
#

After building it yourself, you can also just copy it around your own servers yourself.
The problem is, that we can't build it and send it to you due to license / copyright reasons.
That's also why there is no direct download for a server jar anywhere.

rustic basin
#

I see, am I the first to encounter this problem in the latest jar build tool

#

Because I didn't find a solution in the country, in fact, it seems that we haven't solved it after trying for so long, hahaha