[GH-ISSUE #3355] [BUG] Server Description Missing. #2298

Closed
opened 2026-02-27 03:02:06 +03:00 by kerem · 10 comments
Owner

Originally created by @ThePureCC on GitHub (Mar 11, 2021).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/3355

User Story

As a server host, I want to be able to set a static server description for Rust servers so that I can set a server description.

Basic info

  • Distro: [CentOS 7.9]
  • Game: [Rust]
  • Command: [Wipe]
  • LinuxGSM version: [v21.1.3]

Further Information

It's similar to #1976 but in a different way.

I'm using LinuxGSM to install a Rust game server, but the description for the game server is missing. i.e. server.description property.

Supposedly, according to /home/rustserver/serverfiles/server/rustserver/cfg/server.cfg(It's a bash file where it "Creates default server configs") , it downloads the config file from https://github.com/GameServerManagers/Game-Server-Configs/blob/master/Rust/server.cfg, but I can't find the exact file anywhere. The only thing I have for the same functionality/content of that config file is a serverauto.cfg file in /home/rustserver/serverfiles/server/rustserver/cfg, where it doesn't have a server.description property, nor does it look anything like the server.cfg file hosted on github.

From the name,serverauto.cfg, I inferred that the file was auto generated, and for every time I use the wipe command, this file gets reset. So even if I manually add server.description to serverauto.cfg, it'll still get overwritten on wipe.

If anyone could let me know how I can load the server.cfg file properly without having to manually set server.description each wipe I'd really appreciate it.

To Reproduce

Steps to reproduce the behaviour:

  1. Run ./rustserver wipe or full-wipe
  2. The server.cfg file gets overwritten by default stuff, and does not download the Game-Server-Configs file.

Expected behaviour

It should download the config file from github based on Rust game.

Edits

Edit1:

I was reading rustserver-console.log and found these entries:

`-e "creating ${servercfgdir} config directory."
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

-e ""
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

-e "${lightyellow}Downloading ${gamename} Configs${default}"
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

-e "================================="
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

-e "default configs from https://github.com/GameServerManagers/Game-Server-Configs"
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

-e "copying ${config} config file."
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

-e "copying ${servercfgdefault} config file."
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

-e "changing hostname."
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

-e "changing rcon/admin password."
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

-e "Config file not found, cannot alter it."
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)`

So it's clearly something is wrong. I'm just not sure what is the reason why it's not finding the config file.

Originally created by @ThePureCC on GitHub (Mar 11, 2021). Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/3355 ## User Story As a server host, I want to be able to set a static server description for Rust servers so that I can set a server description. ## Basic info * **Distro:** [CentOS 7.9] * **Game:** [Rust] * **Command:** [Wipe] * **LinuxGSM version:** [v21.1.3] ## Further Information It's similar to #1976 but in a different way. I'm using LinuxGSM to install a Rust game server, but the description for the game server is missing. i.e. server.description property. Supposedly, according to `/home/rustserver/serverfiles/server/rustserver/cfg/server.cfg`(It's a bash file where it "Creates default server configs") , it downloads the config file from `https://github.com/GameServerManagers/Game-Server-Configs/blob/master/Rust/server.cfg`, but I can't find the exact file anywhere. The only thing I have for the same functionality/content of that config file is a `serverauto.cfg` file in `/home/rustserver/serverfiles/server/rustserver/cfg,` where it doesn't have a `server.description` property, nor does it look anything like the `server.cfg` file hosted on github. From the name,`serverauto.cfg`, I inferred that the file was auto generated, and for every time I use the `wipe` command, this file gets reset. So even if I manually add `server.description` to `serverauto.cfg`, it'll still get overwritten on `wipe`. If anyone could let me know how I can load the `server.cfg` file properly without having to manually set `server.description` each wipe I'd really appreciate it. ## To Reproduce Steps to reproduce the behaviour: 1. Run ./rustserver wipe or full-wipe 2. The server.cfg file gets overwritten by default stuff, and does not download the Game-Server-Configs file. ## Expected behaviour It should download the config file from github based on Rust game. ## Edits Edit1: I was reading rustserver-console.log and found these entries: `-e "creating ${servercfgdir} config directory." (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) -e "" (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) -e "${lightyellow}Downloading ${gamename} Configs${default}" (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) -e "=================================" (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) -e "default configs from https://github.com/GameServerManagers/Game-Server-Configs" (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) -e "copying ${config} config file." (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) -e "copying ${servercfgdefault} config file." (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) -e "changing hostname." (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) -e "changing rcon/admin password." (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) -e "Config file not found, cannot alter it." (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)` So it's clearly something is wrong. I'm just not sure what is the reason why it's not finding the config file.
Author
Owner

@h3o66 commented on GitHub (Mar 11, 2021):

Maybe I do not understand what you want to say, but the config file serverfiles/server/rustserver/cfg/server.cfg does not get deleted for me with the wipe command.
The config ONLY gets downloaded when you install the server, there is no point for me why the script should download it within a wipe.

<!-- gh-comment-id:797000192 --> @h3o66 commented on GitHub (Mar 11, 2021): Maybe I do not understand what you want to say, but the config file `serverfiles/server/rustserver/cfg/server.cfg` does not get deleted for me with the wipe command. The config ONLY gets downloaded when you install the server, there is no point for me why the script should download it within a wipe.
Author
Owner

@ThePureCC commented on GitHub (Mar 11, 2021):

Maybe I do not understand what you want to say, but the config file serverfiles/server/rustserver/cfg/server.cfg does not get deleted for me with the wipe command.
The config ONLY gets downloaded when you install the server, there is no point for me why the script should download it within a wipe.

Yeah, it's kind of confusing. Basically my problem is that I don't have a config file from https://github.com/GameServerManagers/Game-Server-Configs for some reason.

the serverfiles/server/rustserver/cfg/server.cfg contains bash file information, I'll copy a snippet of it:

!/bin/bash
# LinuxGSM install_config.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: Creates default server configs.

functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"

# Checks if server cfg dir exists, creates it if it doesn't.
fn_check_cfgdir(){
	if [ ! -d "${servercfgdir}" ]; then
		echo -e "creating ${servercfgdir} config directory."
		fn_script_log_info "creating ${servercfgdir} config directory."
		mkdir -pv "${servercfgdir}"
	fi
}

# Downloads default configs from Game-Server-Configs repo to lgsm/config-default.
fn_fetch_default_config(){
	echo -e ""
	echo -e "${lightyellow}Downloading ${gamename} Configs${default}"
	echo -e "================================="
	echo -e "default configs from https://github.com/GameServerManagers/Game-Server-Configs"
	fn_sleep_time
	mkdir -p "${lgsmdir}/config-default/config-game"
	githuburl="https://raw.githubusercontent.com/GameServerManagers/Game-Server-Configs/master"
	for config in "${array_configs[@]}"; do
		fn_fetch_file "${githuburl}/${gamedirname}/${config}" "${remote_fileurl_backup}" "GitHub" "Bitbucket" "${lgsmdir}/config-default/config-game" "${config}" "nochmodx" "norun" "forcedl" "nomd5"
	done
}

(I replaced the hashtag sign with X since github reads it as markdown)

So as you can see it's not an actual server.cfg file. Something somewhere went wrong, and I don't know what it is.

And you are right, it should've been downloaded when I install the server, but I don't know what's going on here.

<!-- gh-comment-id:797007580 --> @ThePureCC commented on GitHub (Mar 11, 2021): > Maybe I do not understand what you want to say, but the config file `serverfiles/server/rustserver/cfg/server.cfg` does not get deleted for me with the wipe command. > The config ONLY gets downloaded when you install the server, there is no point for me why the script should download it within a wipe. Yeah, it's kind of confusing. Basically my problem is that I don't have a config file from https://github.com/GameServerManagers/Game-Server-Configs for some reason. the `serverfiles/server/rustserver/cfg/server.cfg` contains bash file information, I'll copy a snippet of it: ``` !/bin/bash # LinuxGSM install_config.sh module # Author: Daniel Gibbs # Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Creates default server configs. functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" # Checks if server cfg dir exists, creates it if it doesn't. fn_check_cfgdir(){ if [ ! -d "${servercfgdir}" ]; then echo -e "creating ${servercfgdir} config directory." fn_script_log_info "creating ${servercfgdir} config directory." mkdir -pv "${servercfgdir}" fi } # Downloads default configs from Game-Server-Configs repo to lgsm/config-default. fn_fetch_default_config(){ echo -e "" echo -e "${lightyellow}Downloading ${gamename} Configs${default}" echo -e "=================================" echo -e "default configs from https://github.com/GameServerManagers/Game-Server-Configs" fn_sleep_time mkdir -p "${lgsmdir}/config-default/config-game" githuburl="https://raw.githubusercontent.com/GameServerManagers/Game-Server-Configs/master" for config in "${array_configs[@]}"; do fn_fetch_file "${githuburl}/${gamedirname}/${config}" "${remote_fileurl_backup}" "GitHub" "Bitbucket" "${lgsmdir}/config-default/config-game" "${config}" "nochmodx" "norun" "forcedl" "nomd5" done } ``` (I replaced the hashtag sign with X since github reads it as markdown) So as you can see it's not an actual server.cfg file. Something somewhere went wrong, and I don't know what it is. And you are right, it should've been downloaded when I install the server, but I don't know what's going on here.
Author
Owner

@h3o66 commented on GitHub (Mar 11, 2021):

remove this file and execute again the lgsm install command
in this case: ./rustserver install or ./rustserver auto-install

PS: also formatted your comment the right way ;)

<!-- gh-comment-id:797012937 --> @h3o66 commented on GitHub (Mar 11, 2021): remove this file and execute again the lgsm install command in this case: `./rustserver install` or `./rustserver auto-install` PS: also formatted your comment the right way ;)
Author
Owner

@ThePureCC commented on GitHub (Mar 11, 2021):

remove this file and execute again the lgsm install command
in this case: ./rustserver install or ./rustserver auto-install

PS: also formatted your comment the right way ;)

Running ./rustserver install will replace all my files and settings in lgsm, right? Reason I'm asking is because I already have the server setup and running with oxide plugins, and user groups and stuff.

I had trouble installing it online because of the routing issue of my server(that has a huge latency connecting to github/bitbucket). I asked on discord to see if I can install it somewhat offline/locally, but didn't get a response.

And thanks for the formatting.

<!-- gh-comment-id:797015516 --> @ThePureCC commented on GitHub (Mar 11, 2021): > remove this file and execute again the lgsm install command > in this case: `./rustserver install` or `./rustserver auto-install` > > PS: also formatted your comment the right way ;) Running `./rustserver install` will replace all my files and settings in lgsm, right? Reason I'm asking is because I already have the server setup and running with oxide plugins, and user groups and stuff. I had trouble installing it online because of the routing issue of my server(that has a huge latency connecting to github/bitbucket). I asked on discord to see if I can install it somewhat offline/locally, but didn't get a response. And thanks for the formatting.
Author
Owner

@h3o66 commented on GitHub (Mar 11, 2021):

well, then replace the config manually or backup the important data and reinstall.
Just tested a manual install, that worked.

<!-- gh-comment-id:797029333 --> @h3o66 commented on GitHub (Mar 11, 2021): well, then replace the config manually or backup the important data and reinstall. Just tested a manual install, that worked.
Author
Owner

@ThePureCC commented on GitHub (Mar 11, 2021):

well, then replace the config manually or backup the important data and reinstall.
Just tested a manual install, that worked.

What do you mean by manual install? Download the github repo to local and run ./rustserver install ?

I would very much like to know if simply replacing the server.cfg file from the bash script to the Game-Server-Configs file would work.

Could you please let me know the correct and specific directory to place server.cfg for Rust servers? Is it rustserver/serverfiles/server/rustserver/cfg? Because I was reading the bash file, and there was something in there says $servercfgdir, and there were also some other directories that doesn't look like it. Pretty confusing.

Here's some more information on it when I was reading console log during server start at very early stage:

-e "creating ${servercfgdir} config directory." 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

-e "" 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

-e "${lightyellow}Downloading ${gamename} Configs${default}" 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

-e "=================================" 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

-e "default configs from https://github.com/GameServerManagers/Game-Server-Configs" 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

-e "copying ${config} config file."     <-------------------------------------------------
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

-e "copying ${servercfgdefault} config file."     <-------------------------------------------------
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

-e "changing hostname." 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

-e "changing rcon/admin password." 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

-e "Config file not found, cannot alter it."   <-------------------------------------------------
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

I've marked some interesting lines. It looks like it tried to copy the config file, but was maybe failed? So it copied the default file and place it there?

<!-- gh-comment-id:797062060 --> @ThePureCC commented on GitHub (Mar 11, 2021): > well, then replace the config manually or backup the important data and reinstall. > Just tested a manual install, that worked. What do you mean by manual install? Download the github repo to local and run `./rustserver install` ? I would very much like to know if simply replacing the `server.cfg` file from the bash script to the Game-Server-Configs file would work. Could you please let me know the correct and specific directory to place `server.cfg` for Rust servers? Is it `rustserver/serverfiles/server/rustserver/cfg`? Because I was reading the bash file, and there was something in there says `$servercfgdir`, and there were also some other directories that doesn't look like it. Pretty confusing. Here's some more information on it when I was reading console log during server start at very early stage: ``` -e "creating ${servercfgdir} config directory." (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) -e "" (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) -e "${lightyellow}Downloading ${gamename} Configs${default}" (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) -e "=================================" (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) -e "default configs from https://github.com/GameServerManagers/Game-Server-Configs" (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) -e "copying ${config} config file." <------------------------------------------------- (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) -e "copying ${servercfgdefault} config file." <------------------------------------------------- (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) -e "changing hostname." (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) -e "changing rcon/admin password." (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) -e "Config file not found, cannot alter it." <------------------------------------------------- (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) ``` I've marked some interesting lines. It looks like it tried to copy the config file, but was maybe failed? So it copied the default file and place it there?
Author
Owner

@h3o66 commented on GitHub (Mar 14, 2021):

well, dont keep it this complicated:

delete or move away the config serverfiles/server/rustserver/cfg/server.cfg

then switch to the folder serverfiles/server/rustserver/cfg/ and just download the template:
wget https://github.com/GameServerManagers/Game-Server-Configs/raw/master/Rust/server.cfg

<!-- gh-comment-id:798900307 --> @h3o66 commented on GitHub (Mar 14, 2021): well, dont keep it this complicated: delete or move away the config `serverfiles/server/rustserver/cfg/server.cfg` then switch to the folder `serverfiles/server/rustserver/cfg/` and just download the template: `wget https://github.com/GameServerManagers/Game-Server-Configs/raw/master/Rust/server.cfg`
Author
Owner

@ThePureCC commented on GitHub (Mar 14, 2021):

well, dont keep it this complicated:

delete or move away the config serverfiles/server/rustserver/cfg/server.cfg

then switch to the folder serverfiles/server/rustserver/cfg/ and just download the template:
wget https://github.com/GameServerManagers/Game-Server-Configs/raw/master/Rust/server.cfg

That's what I ended up doing. It seems to be working. I haven't tried to see if wipe/full-wipe is going to cause any issues. But yeah, this is kind of a bug on the program at where the console log says config file missing, it should've downloaded the Game-Server-Configs, but it didn't.

<!-- gh-comment-id:798913509 --> @ThePureCC commented on GitHub (Mar 14, 2021): > well, dont keep it this complicated: > > delete or move away the config `serverfiles/server/rustserver/cfg/server.cfg` > > then switch to the folder `serverfiles/server/rustserver/cfg/` and just download the template: > `wget https://github.com/GameServerManagers/Game-Server-Configs/raw/master/Rust/server.cfg` That's what I ended up doing. It seems to be working. I haven't tried to see if wipe/full-wipe is going to cause any issues. But yeah, this is kind of a bug on the program at where the console log says config file missing, it should've downloaded the Game-Server-Configs, but it didn't.
Author
Owner

@h3o66 commented on GitHub (Mar 14, 2021):

I could not reproduce this with a fresh install of the gameserver.

~ closing as solved

<!-- gh-comment-id:798923064 --> @h3o66 commented on GitHub (Mar 14, 2021): I could not reproduce this with a fresh install of the gameserver. ~ closing as solved
Author
Owner

@github-actions[bot] commented on GitHub (Mar 15, 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.

<!-- gh-comment-id:1067424554 --> @github-actions[bot] commented on GitHub (Mar 15, 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.
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#2298
No description provided.