mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2026-04-25 06:05:57 +03:00
[GH-ISSUE #3505] [BUG] mcbserver install and update failing #2368
Labels
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
No due date set.
Dependencies
No dependencies set.
Reference
starred/LinuxGSM#2368
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @us3r1d on GitHub (Jul 5, 2021).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/3505
User Story
./mcbserver installfailed on "Checking remote build"; I checked an existing server with./mcbserver updateand it failed at the same point.Basic info
Further Information
This appears to be caused by Minecraft changing their web server to block access from scriptable command-line clients (see the Mojang bug at https://bugs.mojang.com/browse/WEB-4753). Changing the curl command in the install and update scripts from:
curl -Ls "https://www.minecraft.net/en-us/download/server/bedrock/"
to:
/usr/bin/curl --cookie -Ls -H "user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36" "https://www.minecraft.net/en-us/download/server/bedrock"
got updates working again and allowed install to complete, though
./mcbserver startstill doesn't work so there's probably something else as well; I'll update when/if I get that working.(I don't use curl much, so that command was put together by referencing the man pages and web searching; I have no doubt it can be done better.)
@us3r1d commented on GitHub (Jul 5, 2021):
The issue preventing start from working was a missing package that the instructions and prereq check didn't include so I opened a new bug for it at https://github.com/GameServerManagers/LinuxGSM/issues/3506.
@dgibbs64 commented on GitHub (Jul 5, 2021):
Thanks to reporting this. This will be a priority bug fix.
@dgibbs64 commented on GitHub (Jul 5, 2021):
Just checked this and still working on Ubuntu 20.04 currently. CentOS 8 will need extra work that will be linked with your other PR. The new API end point will be used in a future release.
@pastorhudson commented on GitHub (Jul 8, 2021):
I’m also unable to install mcbserver on fresh server install of Ubuntu 20.04 LTS. Valheim installed fine. But mcbserver install fails as @us3r1d describes. I’m happy to provide logs if needed.
EDIT:
Changing line 11 and line 82 of /home/mcbserver/lgsm/functions/update_minecraft_bedrock.sh
to
latestmcbuildurl=$(curl --cookie -Ls -H "user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36" "https://www.minecraft.net/en-us/download/server/bedrock" | grep -o 'https://minecraft.azureedge.net/bin-linux/[^"]*zip')and
remotebuild=$(curl --cookie -Ls -H "user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36" "https://www.minecraft.net/en-us/download/server/bedrock" | grep -o 'https://minecraft.azureedge.net/bin-linux/[^"]*' | sed 's/.*\///' | grep -Eo "[.0-9]+[0-9]")respectively allowed for successful install.
However it may be better to identify lgsm as the user agent rather than fake it. Or use the api to download the game files instead.
@Ir0nsh007er commented on GitHub (Jul 22, 2021):
Same bug on Debian 10
@asgarov commented on GitHub (Jul 22, 2021):
Ubuntu 20.04.2 LTS
LinuxGSM v21.2.4
I have the same problem updating the server. Tried both suggestions above (the one in the description and https://github.com/GameServerManagers/LinuxGSM/issues/3505#issuecomment-876459810), neither helped, although both result in the following difference in the output compared with the unmodified script:
Before the change:
After the change:
@Ir0nsh007er commented on GitHub (Jul 22, 2021):
wow ty work fine
@h3o66 commented on GitHub (Aug 7, 2021):
Fixed with version v21.2.4
@github-actions[bot] commented on GitHub (Aug 8, 2022):
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.