[GH-ISSUE #1939] Minecraft install script is getting 403 for downloading the Jar file #1526

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

Originally created by @tazboyz16 on GitHub (Jul 19, 2018).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/1939

Fresh install of Ubuntu 16.04 LTS

Installing Minecraft Server

Accept Minecraft EULA

You are required to accept the EULA:
https://account.mojang.com/documents/minecraft_eula
By using auto-install you are indicating your agreement to the EULA.

downloading minecraft_server.1.13.jar...downloading minecraft_server.1.13.jar...
curl: (22) The requested URL returned error: 403 Forbidden
FAIL
https://s3.amazonaws.com/Minecraft.Download/versions/1.13/minecraft_server.1.13.jar

mcserver@Minecraft:~$ wget https://s3.amazonaws.com/Minecraft.Download/versions/1.13/minecraft_server.1.13.jar
--2018-07-18 21:13:00-- https://s3.amazonaws.com/Minecraft.Download/versions/1.13/minecraft_server.1.13.jar
Resolving s3.amazonaws.com (s3.amazonaws.com)... 52.216.228.139
Connecting to s3.amazonaws.com (s3.amazonaws.com)|52.216.228.139|:443... connected.
HTTP request sent, awaiting response... 403 Forbidden
2018-07-18 21:13:00 ERROR 403: Forbidden.

Originally created by @tazboyz16 on GitHub (Jul 19, 2018). Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/1939 Fresh install of Ubuntu 16.04 LTS Installing Minecraft Server ================================= Accept Minecraft EULA ================================= You are required to accept the EULA: https://account.mojang.com/documents/minecraft_eula By using auto-install you are indicating your agreement to the EULA. downloading minecraft_server.1.13.jar...downloading minecraft_server.1.13.jar... curl: (22) The requested URL returned error: 403 Forbidden FAIL https://s3.amazonaws.com/Minecraft.Download/versions/1.13/minecraft_server.1.13.jar mcserver@Minecraft:~$ wget https://s3.amazonaws.com/Minecraft.Download/versions/1.13/minecraft_server.1.13.jar --2018-07-18 21:13:00-- https://s3.amazonaws.com/Minecraft.Download/versions/1.13/minecraft_server.1.13.jar Resolving s3.amazonaws.com (s3.amazonaws.com)... 52.216.228.139 Connecting to s3.amazonaws.com (s3.amazonaws.com)|52.216.228.139|:443... connected. HTTP request sent, awaiting response... 403 Forbidden 2018-07-18 21:13:00 ERROR 403: Forbidden.
kerem 2026-02-27 02:57:37 +03:00
Author
Owner

@kennyLtv commented on GitHub (Jul 19, 2018):

I do believe they phased our the s3 download points for the jar files.

At the top of the versions file associated with the s3 URL is this:

"__comment": "This URL is being phased out! Please update your scripts to check https://launchermeta.mojang.com/mc/game/version_manifest.json instead. Thanks <3 --Dinnerbone",

The new version manifest returns back the locations of the releases as well as what the current release is. You can find that manifest here

<!-- gh-comment-id:406129015 --> @kennyLtv commented on GitHub (Jul 19, 2018): I do believe they phased our the s3 download points for the jar files. At the top of the versions file associated with the s3 [URL](https://s3.amazonaws.com/Minecraft.Download/versions/versions.json) is this: ` "__comment": "This URL is being phased out! Please update your scripts to check https://launchermeta.mojang.com/mc/game/version_manifest.json instead. Thanks <3 --Dinnerbone",` The new version manifest returns back the locations of the releases as well as what the current release is. You can find that manifest [here](https://launchermeta.mojang.com/mc/game/version_manifest.json)
Author
Owner

@MrGraversen commented on GitHub (Jul 19, 2018):

It seems like there's now a JSON directive to read:

	"assets": "1.13",
	"downloads": {
		"client": {
			"sha1": "c0b970952cdd279912da384cdbfc0c26e6c6090b",
			"size": 16033625,
			"url": "https://launcher.mojang.com/mc/game/1.13/client/c0b970952cdd279912da384cdbfc0c26e6c6090b/client.jar"
		},
		"server": {
			"sha1": "d0caafb8438ebd206f99930cfaecfa6c9a13dca0",
			"size": 32649675,
			"url": "https://launcher.mojang.com/mc/game/1.13/server/d0caafb8438ebd206f99930cfaecfa6c9a13dca0/server.jar"
		}
<!-- gh-comment-id:406329523 --> @MrGraversen commented on GitHub (Jul 19, 2018): It seems like there's now a JSON directive to read: ``` "assets": "1.13", "downloads": { "client": { "sha1": "c0b970952cdd279912da384cdbfc0c26e6c6090b", "size": 16033625, "url": "https://launcher.mojang.com/mc/game/1.13/client/c0b970952cdd279912da384cdbfc0c26e6c6090b/client.jar" }, "server": { "sha1": "d0caafb8438ebd206f99930cfaecfa6c9a13dca0", "size": 32649675, "url": "https://launcher.mojang.com/mc/game/1.13/server/d0caafb8438ebd206f99930cfaecfa6c9a13dca0/server.jar" } ```
Author
Owner

@ptrj commented on GitHub (Jul 19, 2018):

They changed url ? https://minecraft.net/en-us/download/server
and even you download jar file manually, start doesn't work

[ FAIL ] Starting mcserver: Executable was not found:
 * /path/mcserver/serverfiles/minecraft_server.jar nogui


$ sha1sum serverfiles/minecraft_server.jar
d0caafb8438ebd206f99930cfaecfa6c9a13dca0  serverfiles/minecraft_server.jar
$ ls -l serverfiles/minecraft_server.jar
-rwxr-xr-x 1 user user 32649675 Jul 19 17:45 serverfiles/minecraft_server.jar
<!-- gh-comment-id:406329985 --> @ptrj commented on GitHub (Jul 19, 2018): They changed url ? https://minecraft.net/en-us/download/server and even you download jar file manually, start doesn't work ``` [ FAIL ] Starting mcserver: Executable was not found: * /path/mcserver/serverfiles/minecraft_server.jar nogui $ sha1sum serverfiles/minecraft_server.jar d0caafb8438ebd206f99930cfaecfa6c9a13dca0 serverfiles/minecraft_server.jar $ ls -l serverfiles/minecraft_server.jar -rwxr-xr-x 1 user user 32649675 Jul 19 17:45 serverfiles/minecraft_server.jar ```
Author
Owner

@dementedusa commented on GitHub (Jul 20, 2018):

I downloaded the server .jar file and put it into the directory it was in and then when I tried to run it it put out an eror with double nogui. so I went to the mcserver.cfg and down on line 92 got rid of the nogui and it worked.

<!-- gh-comment-id:406459379 --> @dementedusa commented on GitHub (Jul 20, 2018): I downloaded the server .jar file and put it into the directory it was in and then when I tried to run it it put out an eror with double nogui. so I went to the mcserver.cfg and down on line 92 got rid of the nogui and it worked.
Author
Owner

@ptrj commented on GitHub (Jul 20, 2018):

+++++ '[' '!' -f /var/mcserver/lgsm/functions/check_executable.sh ']'
+++++ '[' noforce == forcedl ']'
+++++ '[' -f /var/mcserver/lgsm/functions/check_executable.sh ']'
+++++ fn_dl_md5
+++++ '[' nomd5 '!=' 0 ']'
+++++ '[' nomd5 '!=' nomd5 ']'
+++++ '[' run == run ']'
+++++ source /var/mcserver/lgsm/functions/check_executable.sh
++++++ local commandname=CHECK
++++++++ readlink -f /var/mcserver/lgsm/functions/check_executable.sh
+++++++ basename /var/mcserver/lgsm/functions/check_executable.sh
++++++ local function_selfname=check_executable.sh
++++++ '[' '!' -f '/var/mcserver/serverfiles/minecraft_server.jar nogui' ']'
++++++ fn_script_log_warn 'Executable was not found: /var/mcserver/serverfiles/minecraft_server.jar nogui'
++++++ '[' -d /var/mcserver/log/script ']'
++++++ '[' -n CHECK ']'
+++++++ date '+%b %d %H:%M:%S.%3N'
++++++ echo -e 'Jul 20 17:48:50.089 mcserver: CHECK: WARN: Executable was not found: /var/mcserver/serverfiles/minecraft_server.jar nogui'
++++++ exitcode=3
++++++ '[' -d /var/mcserver/log/script ']'
++++++ fn_print_fail_nl 'Executable was not found:'
++++++ '[' -n Starting ']'
++++++ echo -en '\r\033[K[\e[31m FAIL \e[0m] Starting mcserver: Executable was not found:'
[ FAIL ] Starting mcserver: Executable was not found:++++++ sleep 0.5
++++++ echo -en '\n'

++++++ echo ' * /var/mcserver/serverfiles/minecraft_server.jar nogui'
 * /var/mcserver/serverfiles/minecraft_server.jar nogui
++++++ exitcode=1
++++++ core_exit.sh
<!-- gh-comment-id:406643032 --> @ptrj commented on GitHub (Jul 20, 2018): ``` +++++ '[' '!' -f /var/mcserver/lgsm/functions/check_executable.sh ']' +++++ '[' noforce == forcedl ']' +++++ '[' -f /var/mcserver/lgsm/functions/check_executable.sh ']' +++++ fn_dl_md5 +++++ '[' nomd5 '!=' 0 ']' +++++ '[' nomd5 '!=' nomd5 ']' +++++ '[' run == run ']' +++++ source /var/mcserver/lgsm/functions/check_executable.sh ++++++ local commandname=CHECK ++++++++ readlink -f /var/mcserver/lgsm/functions/check_executable.sh +++++++ basename /var/mcserver/lgsm/functions/check_executable.sh ++++++ local function_selfname=check_executable.sh ++++++ '[' '!' -f '/var/mcserver/serverfiles/minecraft_server.jar nogui' ']' ++++++ fn_script_log_warn 'Executable was not found: /var/mcserver/serverfiles/minecraft_server.jar nogui' ++++++ '[' -d /var/mcserver/log/script ']' ++++++ '[' -n CHECK ']' +++++++ date '+%b %d %H:%M:%S.%3N' ++++++ echo -e 'Jul 20 17:48:50.089 mcserver: CHECK: WARN: Executable was not found: /var/mcserver/serverfiles/minecraft_server.jar nogui' ++++++ exitcode=3 ++++++ '[' -d /var/mcserver/log/script ']' ++++++ fn_print_fail_nl 'Executable was not found:' ++++++ '[' -n Starting ']' ++++++ echo -en '\r\033[K[\e[31m FAIL \e[0m] Starting mcserver: Executable was not found:' [ FAIL ] Starting mcserver: Executable was not found:++++++ sleep 0.5 ++++++ echo -en '\n' ++++++ echo ' * /var/mcserver/serverfiles/minecraft_server.jar nogui' * /var/mcserver/serverfiles/minecraft_server.jar nogui ++++++ exitcode=1 ++++++ core_exit.sh ```
Author
Owner

@Synt3x commented on GitHub (Jul 20, 2018):

Same issue as https://github.com/GameServerManagers/LinuxGSM/issues/1944

<!-- gh-comment-id:406679184 --> @Synt3x commented on GitHub (Jul 20, 2018): Same issue as https://github.com/GameServerManagers/LinuxGSM/issues/1944
Author
Owner

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

#1944 has more sources to solve the issue, closing this one

<!-- gh-comment-id:406748931 --> @UltimateByte commented on GitHub (Jul 20, 2018): #1944 has more sources to solve the issue, closing this one
Author
Owner

@lock[bot] commented on GitHub (Jul 20, 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:513506636 --> @lock[bot] commented on GitHub (Jul 20, 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#1526
No description provided.