[GH-ISSUE #1961] LGSM takes minecraft snapshotversion on install #1537

Closed
opened 2026-02-27 02:57:41 +03:00 by kerem · 7 comments
Owner

Originally created by @xopez on GitHub (Jul 25, 2018).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/1961

Originally assigned to: @UltimateByte on GitHub.

Just made a new minecraft server 2 hours ago with a fresh user. So the functions are up2date.
The script downloaded the server version 18w30a which is the latest snapshot. Had to manually download latest vanilla, renaming it to minecraft_server.jar and overwriting the current file.
latest snapshot and release from https://launchermeta.mojang.com/mc/game/version_manifest.json

{
   "latest":{
      "snapshot":"18w30a",
      "release":"1.13"
   },
   "versions":[
      {
         "id":"18w30a",
         "type":"snapshot",
         "time":"2018-07-25T14:36:57+00:00",
         "releaseTime":"2018-07-25T14:29:31+00:00",
         "url":"https://launchermeta.mojang.com/mc/game/7fc78b1de5a9d288a7279524aa071bef2c5160dd/18w30a.json"
      },
      {
         "id":"1.13",
         "type":"release",
         "time":"2018-07-20T13:11:52+00:00",
         "releaseTime":"2018-07-18T15:11:46+00:00",
         "url":"https://launchermeta.mojang.com/mc/game/3132596cced9f9d6f1ca97aeec75651e6a9df0bc/1.13.json"
      },
....

Describe the bug
Installs wrong version / snapshot version.

Steps to reproduce the behaviour:

  1. install new minecraft server
  2. start server
  3. see in the log its running latest snapshot and not latest release

Expected behaviour
Should install latest release.

Minimum Information
https://hastebin.com/efujewalix

Originally created by @xopez on GitHub (Jul 25, 2018). Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/1961 Originally assigned to: @UltimateByte on GitHub. Just made a new minecraft server 2 hours ago with a fresh user. So the functions are up2date. The script downloaded the server version 18w30a which is the latest snapshot. Had to manually download latest vanilla, renaming it to minecraft_server.jar and overwriting the current file. latest snapshot and release from https://launchermeta.mojang.com/mc/game/version_manifest.json ``` { "latest":{ "snapshot":"18w30a", "release":"1.13" }, "versions":[ { "id":"18w30a", "type":"snapshot", "time":"2018-07-25T14:36:57+00:00", "releaseTime":"2018-07-25T14:29:31+00:00", "url":"https://launchermeta.mojang.com/mc/game/7fc78b1de5a9d288a7279524aa071bef2c5160dd/18w30a.json" }, { "id":"1.13", "type":"release", "time":"2018-07-20T13:11:52+00:00", "releaseTime":"2018-07-18T15:11:46+00:00", "url":"https://launchermeta.mojang.com/mc/game/3132596cced9f9d6f1ca97aeec75651e6a9df0bc/1.13.json" }, .... ``` **Describe the bug** Installs wrong version / snapshot version. Steps to reproduce the behaviour: 1. install new minecraft server 2. start server 3. see in the log its running latest snapshot and not latest release **Expected behaviour** Should install latest release. **Minimum Information** https://hastebin.com/efujewalix
kerem 2026-02-27 02:57:41 +03:00
Author
Owner

@UltimateByte commented on GitHub (Jul 25, 2018):

Ow crap, thanks for reporting.
At the time of correcting the download link for Minecraft, the release and latest were the same, so I couldn't verify this.
Fix will most likely be easy, it's on this line: https://github.com/GameServerManagers/LinuxGSM/blob/master/lgsm/functions/update_minecraft.sh#L12

GitHub
LinuxGSM - Linux Game Server Managers_
<!-- gh-comment-id:407832186 --> @UltimateByte commented on GitHub (Jul 25, 2018): Ow crap, thanks for reporting. At the time of correcting the download link for Minecraft, the release and latest were the same, so I couldn't verify this. Fix will most likely be easy, it's on this line: https://github.com/GameServerManagers/LinuxGSM/blob/master/lgsm/functions/update_minecraft.sh#L12 <blockquote><img src="https://avatars2.githubusercontent.com/u/20358373?s=400&v=4" width="48" align="right"><div><img src="https://assets-cdn.github.com/favicon.ico" height="14"> GitHub</div><div><strong><a href="https://github.com/GameServerManagers/LinuxGSM">GameServerManagers/LinuxGSM</a></strong></div><div>LinuxGSM - Linux Game Server Managers_</div></blockquote>
Author
Owner

@UltimateByte commented on GitHub (Jul 25, 2018):

I'm going out right now, I'll solve this when I'm back.

<!-- gh-comment-id:407832384 --> @UltimateByte commented on GitHub (Jul 25, 2018): I'm going out right now, I'll solve this when I'm back.
Author
Owner

@UltimateByte commented on GitHub (Jul 25, 2018):

I think I got it. Took me like 2 hours for two lines...
Was tough to learn jq even more.

Testing right now. Will patch if it works.

<!-- gh-comment-id:407925250 --> @UltimateByte commented on GitHub (Jul 25, 2018): I think I got it. Took me like 2 hours for two lines... Was tough to learn `jq` even more. Testing right now. Will patch if it works.
Author
Owner

@UltimateByte commented on GitHub (Jul 25, 2018):

Install works, version check seems to work as well.

Example:

ultimatebyte@gaben:~$ ./mcserver u
[  OK  ] Update mcserver: Checking for update: mojang.com


No update available:
        Current version: 1.13
        Available version: 1.13

[  OK  ] Update mcserver: No update available

Patching now.

<!-- gh-comment-id:407926167 --> @UltimateByte commented on GitHub (Jul 25, 2018): Install works, version check seems to work as well. Example: ``` ultimatebyte@gaben:~$ ./mcserver u [ OK ] Update mcserver: Checking for update: mojang.com No update available: Current version: 1.13 Available version: 1.13 [ OK ] Update mcserver: No update available ``` Patching now.
Author
Owner

@xopez commented on GitHub (Jul 25, 2018):

Can confirm. Works for myself with a new user.
mcserver-console.log:

[01:37:54] [main/WARN]: Ambiguity between arguments [teleport, destination] and [teleport, targets] with inputs: [Player, 0123, @e, dd12be42-52a9-4a91-a8a1-11c01849e498]
[01:37:54] [main/WARN]: Ambiguity between arguments [teleport, location] and [teleport, destination] with inputs: [0.1 -0.5 .9, 0 0 0]
[01:37:54] [main/WARN]: Ambiguity between arguments [teleport, location] and [teleport, targets] with inputs: [0.1 -0.5 .9, 0 0 0]
[01:37:54] [main/WARN]: Ambiguity between arguments [teleport, targets] and [teleport, destination] with inputs: [Player, 0123, dd12be42-52a9-4a91-a8a1-11c01849e498]
[01:37:54] [main/WARN]: Ambiguity between arguments [teleport, targets, location] and [teleport, targets, destination] with inputs: [0.1 -0.5 .9, 0 0 0]
[01:37:54] [main/INFO]: Loaded 0 recipes
[01:37:54] [main/INFO]: Loaded 0 advancements
[01:37:54] [Server thread/INFO]: Starting minecraft server version 1.13
....

So the version is right. Thanks for that 👍

<!-- gh-comment-id:407930012 --> @xopez commented on GitHub (Jul 25, 2018): Can confirm. Works for myself with a new user. mcserver-console.log: ``` [01:37:54] [main/WARN]: Ambiguity between arguments [teleport, destination] and [teleport, targets] with inputs: [Player, 0123, @e, dd12be42-52a9-4a91-a8a1-11c01849e498] [01:37:54] [main/WARN]: Ambiguity between arguments [teleport, location] and [teleport, destination] with inputs: [0.1 -0.5 .9, 0 0 0] [01:37:54] [main/WARN]: Ambiguity between arguments [teleport, location] and [teleport, targets] with inputs: [0.1 -0.5 .9, 0 0 0] [01:37:54] [main/WARN]: Ambiguity between arguments [teleport, targets] and [teleport, destination] with inputs: [Player, 0123, dd12be42-52a9-4a91-a8a1-11c01849e498] [01:37:54] [main/WARN]: Ambiguity between arguments [teleport, targets, location] and [teleport, targets, destination] with inputs: [0.1 -0.5 .9, 0 0 0] [01:37:54] [main/INFO]: Loaded 0 recipes [01:37:54] [main/INFO]: Loaded 0 advancements [01:37:54] [Server thread/INFO]: Starting minecraft server version 1.13 .... ``` So the version is right. Thanks for that 👍
Author
Owner

@UltimateByte commented on GitHub (Jul 25, 2018):

This one should last now, I think I got the cleanest way to proceed, at least with the current json from Mojang.
-> Gets the latest version, puts it into a jq variable
-> Gets the URL corresponding to the latest version; this URL is another .json containing all the build links from the version
-> Goes to this link to get the link for the server build

All that using jq, not simple when you're discovering it. :o))

<!-- gh-comment-id:407932819 --> @UltimateByte commented on GitHub (Jul 25, 2018): This one should last now, I think I got the cleanest way to proceed, at least with the current json from Mojang. -> Gets the latest version, puts it into a `jq` variable -> Gets the URL corresponding to the latest version; this URL is another .json containing all the build links from the version -> Goes to this link to get the link for the server build All that using `jq`, not simple when you're discovering it. :o))
Author
Owner

@lock[bot] commented on GitHub (Jul 26, 2019):

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

<!-- gh-comment-id:515264237 --> @lock[bot] commented on GitHub (Jul 26, 2019): This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Sign in to join this conversation.
No labels
Atomic
Epic
cannot reproduce
command: backup
command: console
command: debug
command: details
command: fast-dl
command: install
command: mods
command: monitor
command: post-details
command: restart
command: send
command: start
command: stop
command: update
command: update-lgsm
command: validate
command: wipe
distro: AlmaLinux
distro: Arch Linux
distro: CentOS
distro: Debian
distro: Fedora
distro: RedHat
distro: Rocky Linux
distro: Ubuntu
distro: openSUSE
engine: goldsrc
engine: source
game: 7 Days to Die
game: ARMA 3
game: Ark: Survival Evolved
game: Assetto Corsa
game: Avorion
game: BATTALION: Legacy
game: Barotrauma
game: Battalion 1944
game: Battlefield 1942
game: Black Mesa: Deathmatch
game: Blade Symphony
game: Call of Duty 2
game: Call of Duty 4
game: Call of Duty: United Offensive
game: Counter-Strike 1.6
game: Counter-Strike 2
game: Counter-Strike: Global Offensive
game: Counter-Strike: Source
game: Day of Infamy
game: Dayz
game: Death Match Classic
game: Don't Starve Together
game: ET: Legacy
game: Eco
game: Factorio
game: Factorio
game: Garry's Mod
game: Half-Life
game: Hurtword
game: Insurgecy
game: Insurgecy
game: Insurgency: Sandstorm
game: Just Cause 3
game: Killing Floor
game: Killing Floor 2
game: Left 4 Dead 2
game: Minecraft
game: Minecraft Bedrock
game: Mordhau
game: Multi Theft Auto
game: Mumble
game: Natural Selection 2
game: No More Room in Hell
game: Pavlov VR
game: Post Scriptum
game: Project Zomboid
game: Quake 3
game: QuakeWorld
game: Red Orchestra: Ostfront 41-45
game: Return to Castle Wolfenstein
game: Rising World
game: Rust
game: San Andreas Multiplayer
game: Satisfactory
game: Soldat
game: Soldier of Fortune 2
game: Squad
game: Squad 44
game: Starbound
game: Stationeers
game: Sven Co-op
game: Team Fortress 2
game: Teamspeak 3
game: Teeworlds
game: Terraria
game: The Front
game: Unreal Tournament 2004
game: Unreal Tournament 3
game: Unreal Tournament 99
game: Unturned
game: Valheim
game: Wurm Unlimited
game: Zombie Master Reborn
game: label missing
good first issue
help wanted
info: alerts
info: dependency
info: docker
info: docs
info: email
info: query
info: steamcmd
info: systemd
info: tmux
info: website
info: website
needs more info
outcome: duplicate
outcome: issue resolved
outcome: issue resolved
outcome: issue unresolved
outcome: pr accepted
outcome: pr rejected
outcome: unconfirmed
outcome: wontfix
outcome: wrong forum
potential-duplicate
priority
pull-request
type: bug
type: feature
type: feature
type: feature request
type: game server request
type: refactor
waiting response
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/LinuxGSM#1537
No description provided.