Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server will not update to version 1.21.31 #144

Closed
TylerJohnson177 opened this issue Oct 5, 2024 · 8 comments
Closed

Server will not update to version 1.21.31 #144

TylerJohnson177 opened this issue Oct 5, 2024 · 8 comments
Assignees

Comments

@TylerJohnson177
Copy link

To my understanding, hotfix update 1.21.31 was released for bedrock servers on September 26th, but my server never updated. I looked into the issue a little bit more by running the start.sh manually, and I get the following output when the script checks for the latest version.

Latest version online is
Current install is: bedrock-server-1.21.30.03.zip
Installing
curl: (3) URL using bad/illegal format or missing URL
Starting Minecraft server.

Not sure if this is an issue for everyone or if it is something on my end, because I few days before the update released I purged some of the older bedrock-server downloads in the downloads folder, but left the version.html and the four latest installs. I do not think that would affect anything.

"version_installed.txt" displays "bedrock-server-1.21.30.03.zip"
OS: Debian 11

The server has been working and updating correctly for years before this issue came up, I have been using these scripts since 2021. If you could look into this issue that would be greatly appreciated.

@da99Beast
Copy link

da99Beast commented Oct 6, 2024

I just checked and the latest on the server for download is 1.21.31.04

Here is what my start.sh shows...

Checking for the latest version of Minecraft Bedrock server ...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  589k    0  589k    0     0   963k      0 --:--:-- --:--:-- --:--:--  962k
Latest version online is
Current install is: bedrock-server-1.21.30.03.zip
Installing
curl: (3) URL using bad/illegal format or missing URL

Looking at the version.html that is in the download folder, the path changed...

<a href="https://www.minecraft.net/bedrockdedicatedserver/bin-linux/bedrock-server-1.21.31.04.zip"

The start script looks for...

LatestURL=$(grep -o 'https://minecraft.azureedge.net/bin-linux/[^"]*' downloads/version.html)

So updating the LatestURL to be...

LatestURL=$(grep -o 'https://www.minecraft.net/bedrockdedicatedserver/bin-linux/[^"]*' downloads/version.html)

should work....I will test locally.

@da99Beast
Copy link

That worked for me - I didn't capture the startup but it pulled the new version as expected.

@TylerJohnson177
Copy link
Author

That worked for me as well, it downloaded and installed the update as expected.

@bokumin
Copy link

bokumin commented Oct 7, 2024

I had a similar problem. If this is the first time we install, I think we need to modify "setup.sh" as well..

@skoelle
Copy link

skoelle commented Oct 7, 2024

There is already a pull request for SetupMinecraft.sh
#143

I commented there start.sh needs the change too.

@M-Taylor40
Copy link
Contributor

@skoelle I've updated my branch to include the new URL in the start.sh script and checked the other files to make sure I can't see any other references to the old URL.

Hopefully @TheRemote can review and merge the changes.

@0x233233
Copy link

0x233233 commented Nov 4, 2024

To temporary solve this issues, i created a fork, patched it with the new url like M-Taylor40 has done and created a script to change the minecraft start, stop, etc. scripts to my repo. So other users have an easy solution.

https://github.com/0x233233/MinecraftBedrockServer

@TheRemote
Copy link
Owner

This is now fixed, could you give the latest version a try?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants