mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2026-04-24 21:56:01 +03:00
[GH-ISSUE #4222] [Bug]: Server hostname not displaying properly in scripts or alerts #2656
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#2656
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 @justaFluffypanda on GitHub (May 30, 2023).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/4222
User story
As a server operator, I woud like the host name of my server be parsed correctly as to display properly in console output and discord alerts.
Game
CS:GO
Linux distro
Ubuntu 22.04
Command
command: start
Further information
Since the recent update when starting my CS:GO servers the server's name is not accurately parsed by LGSM and instead reports as "NOT SET." The "NOT SET" name also shows up on discord alerts. The server name displays correctly in-game and in gamedig queries so this is must be parsing issue within LGSM.
My Valheim server is functioning as normal, with the main difference being my CS:GO servers' names all begin with a '[' character which is possibly breaking whatever query is doing the parsing.
Relevant log output
No response
Steps to reproduce
No response
@SylenThunder commented on GitHub (May 31, 2023):
To expand on this some, I see the same with an error in the 7 Days server.
/home/ageofdemons/lgsm/modules/info_game.sh: line 134: -: command not found
[ OK ] Starting sdtdserver: NOT SET
@ghost commented on GitHub (Jun 6, 2023):
xmlparser won't parse if space is in sdtdserver.xml
@dgibbs64 commented on GitHub (Jun 6, 2023):
@xRuffKez can you provide an example of this so I can replicate it please,
@ghost commented on GitHub (Jun 6, 2023):
@dgibbs64 On debian11 testet:
You will see an error in the cli -: Command not found.
This happens while xmlparser cannot parse spaces in strings. E.g. "Linux Gameserver". It will output NOT SET.
If you configure sdtdserver.xml with "Linux_Gameserver" or "LinuxGameserver", xmlparser successfully completes parsing.
@dgibbs64 commented on GitHub (Jun 6, 2023):
@xRuffKez spot on, thanks. I will look at this and add to a hotfix
@ghost commented on GitHub (Jun 6, 2023):
XMLLint version:

@ghost commented on GitHub (Jun 6, 2023):
I investigated the Code and at fn_info_game_sdtd() spaces from config file sdtdserver.xml need to be escaped! Else the string won't be parsed by xmllint.
An untidy fix:
In function fn_info_game_sdtd() go under "fi" and edit the "NOT SET" to your liking.
@dgibbs64 commented on GitHub (Jun 6, 2023):
thanks that will help when I take a look :)
@Pshock13 commented on GitHub (Jun 13, 2023):
Another work around looks like you can add
 instead of spaces to the name of your server. I think this might be a healthier work around than editing "NOT SET" as it should still work just fine once this bug is fixed.ie. instead of "
My Game Host" try "My Game Host"@Pshock13 commented on GitHub (Jun 13, 2023):
I've also noticed an issue with server password as well that I think is due to the use of xmllint
When ServerPassword has a leading character that cannot be escaped in XML like a dollar sign($):
value="$dollar"./sdtdserver dt -->
Server Password: NOT SET&Status: STOPPEDWhen ServerPassword has a non-escapable character elsewhere in the password:
value="dol$lar"./sdtdserver dt -->
Server Password: dol&Status: STOPPED// the $ cuts off the passwordWhen ServerPassword has a non-escapable at the end the password:
value="dollar$"./sdtdserver dt -->
Server Password: dollar$&Status: STOPPED//notice the $ shows up when it's at the end but still doesn't allow the server to start upWhen ServerPassword has no special characters:
value="dollar"./sdtdserver dt -->
Server Password: dollar&Status: STARTEDI'm sure there are other characters that won't work, I only noticed this because my password previously had a leading $ before I updated LGSM and it had worked fine before.
@Ankh- commented on GitHub (Jun 21, 2023):
Just a FYI, i had the same issues on my 7 days 2 Die host. Just did a check and found out that one of the dependencies got removed: libxml2-utils. Just reinstalled it and now everything works again.
The host is a LXC Debian 11 container on a Proxmox host
@dgibbs64 commented on GitHub (Aug 30, 2023):
I have replicated the issue with CS:GO and can confirm that anything with
[ ]has an issue@github-actions[bot] commented on GitHub (Sep 16, 2024):
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.