[GH-ISSUE #1675] [Rust] Server starting with only first word of "server.hostname" parameter #1303

Closed
opened 2026-02-27 02:56:24 +03:00 by kerem · 13 comments
Owner

Originally created by @MrGraversen on GitHub (Oct 28, 2017).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/1675

I've configured a server to launch as My Rust Server, but it is simply found in-game as My.

Here's the Hastebin: https://hastebin.com/cagufureli

From the Hastebin:

Command-line Parameters
=================================
./RustDedicated -batchmode +server.ip * +server.port 28015 +server.tickrate 60 +server.hostname "My Rust Server" +server.identity "rustserver"  +server.maxplayers 50 +server.worldsize 5000 +server.saveinterval 300 +rcon.web 1 +rcon.ip * +rcon.port 28016 +rcon.password "********" -logfile "/home/*/rust/log/server/rustserver-game-2017-10-29-01:19:37.log"

It seems like a weird issue; I used to host a Rust server from a canned gameservers hosting provider, and the server.hostname parameter worked fine.

Originally created by @MrGraversen on GitHub (Oct 28, 2017). Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/1675 I've configured a server to launch as `My Rust Server`, but it is simply found in-game as `My`. Here's the Hastebin: https://hastebin.com/cagufureli From the Hastebin: ``` Command-line Parameters ================================= ./RustDedicated -batchmode +server.ip * +server.port 28015 +server.tickrate 60 +server.hostname "My Rust Server" +server.identity "rustserver" +server.maxplayers 50 +server.worldsize 5000 +server.saveinterval 300 +rcon.web 1 +rcon.ip * +rcon.port 28016 +rcon.password "********" -logfile "/home/*/rust/log/server/rustserver-game-2017-10-29-01:19:37.log" ``` It seems like a weird issue; I used to host a Rust server from a canned gameservers hosting provider, and the `server.hostname` parameter worked fine.
kerem 2026-02-27 02:56:24 +03:00
Author
Owner

@MrGraversen commented on GitHub (Oct 29, 2017):

I strung together some information from other issues, and was able to come up with the following solution:

In my lgsm/config-lgsm/rustserver/rustserverX.cfg I inserted line 119 from rustserver on the master branch, and then the server was able to start without debug mode (something I also wasn't able to do), and the server name now appears to be set correctly.

<!-- gh-comment-id:340249820 --> @MrGraversen commented on GitHub (Oct 29, 2017): I strung together some information from other issues, and was able to come up with the following solution: In my `lgsm/config-lgsm/rustserver/rustserverX.cfg` I inserted [line 119 from rustserver on the master branch](https://github.com/GameServerManagers/LinuxGSM/blob/9bf74b80c266c92110029a1aa6333acec1580299/Rust/rustserver#L119), and then the server was able to start without `debug` mode (something I also wasn't able to do), and the server name now appears to be set correctly.
Author
Owner

@dgibbs64 commented on GitHub (Dec 19, 2017):

@UltimateByte Please can you check that the fix_rust.sh is working as intended. Thanks

<!-- gh-comment-id:352881828 --> @dgibbs64 commented on GitHub (Dec 19, 2017): @UltimateByte Please can you check that the fix_rust.sh is working as intended. Thanks
Author
Owner

@thorpj commented on GitHub (Apr 23, 2018):

@MrGraversen
I made the change you recommended (but in common.cfg)

From ./rustserver debug
Continue? [Y/n] Y [ INFO ] Debug rustserver: Stopping any running servers [ INFO ] Stopping rustserver: servername is already stopped [ OK ] Debug rustserver: Starting debug /home/rustserver/lgsm/functions/command_debug.sh: line 107: LD_LIBRARY_PATH=:/home/rustserver/serverfiles/RustDedicated_Data/Plugins/x86_64: No such file or directory [ OK ] Debug rustserver: Stopping debug
I have tried
executable="LD_LIBRARY_PATH=/home/rustserver/serverfiles/RustDedicated_Data/Plugins/x86_64 ./RustDedicated"
and
executable="LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/rustserver/serverfiles/RustDedicated_Data/Plugins/x86_64 ./RustDedicated" in common.cfg
./rustserver start does not work either

line 107 of command_debug.sh :
"${executable} ${params}

<!-- gh-comment-id:383646131 --> @thorpj commented on GitHub (Apr 23, 2018): @MrGraversen I made the change you recommended (but in common.cfg) From ./rustserver debug ``Continue? [Y/n] Y [ INFO ] Debug rustserver: Stopping any running servers [ INFO ] Stopping rustserver: servername is already stopped [ OK ] Debug rustserver: Starting debug /home/rustserver/lgsm/functions/command_debug.sh: line 107: LD_LIBRARY_PATH=:/home/rustserver/serverfiles/RustDedicated_Data/Plugins/x86_64: No such file or directory [ OK ] Debug rustserver: Stopping debug `` I have tried `` executable="LD_LIBRARY_PATH=/home/rustserver/serverfiles/RustDedicated_Data/Plugins/x86_64 ./RustDedicated" `` and `` executable="LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/rustserver/serverfiles/RustDedicated_Data/Plugins/x86_64 ./RustDedicated" `` in common.cfg ./rustserver start does not work either line 107 of command_debug.sh : `` "${executable} ${params} ``
Author
Owner

@UltimateByte commented on GitHub (Apr 23, 2018):

@thorpj Post details please as required here to try diagnosing anything.
https://github.com/GameServerManagers/LinuxGSM/wiki/Support

GitHub
LinuxGSM - Linux Game Server Managers_
<!-- gh-comment-id:383662752 --> @UltimateByte commented on GitHub (Apr 23, 2018): @thorpj Post details please as required here to try diagnosing anything. https://github.com/GameServerManagers/LinuxGSM/wiki/Support <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

@dgibbs64 commented on GitHub (Apr 23, 2018):

@UltimateByte new support link :) https://linuxgsm.com/support/#guide

LinuxGSM
There are various ways to get help and support with LinuxGSM. Including wiki, steam group and discord
<!-- gh-comment-id:383663536 --> @dgibbs64 commented on GitHub (Apr 23, 2018): @UltimateByte new support link :) https://linuxgsm.com/support/#guide <blockquote><img src="http://gameservermanagers.com/wp-content/uploads/2015/08/lgsm-full-dark.png" width="48" align="right"><div>LinuxGSM</div><div><strong><a href="https://linuxgsm.com/support/">Support – LinuxGSM</a></strong></div><div>There are various ways to get help and support with LinuxGSM. Including wiki, steam group and discord</div></blockquote>
Author
Owner

@UltimateByte commented on GitHub (Apr 23, 2018):

Awesome! @dgibbs64

<!-- gh-comment-id:383664262 --> @UltimateByte commented on GitHub (Apr 23, 2018): Awesome! @dgibbs64
Author
Owner

@thorpj commented on GitHub (Apr 23, 2018):

Apologies @UltimateByte
./rustserver debug works, ./rustserver start gives error below
Multiple mods are installed, however they work fine with ./rustserver debug, so I doubt they're causing this issue
Game: Rust
Details: https://hastebin.com/ilowizodes.sql
Error (found in a console.log file):

dlopen failed trying to load:
steamclient.so
with error:
steamclient.so: cannot open shared object file: No such file or directory
[S_API FAIL] SteamAPI_Init(): Sys_LoadModule failed to load: steamclient.so
[S_API FAIL] SteamAPI_Init() failed
InitServer: GameServer_Init returned false
eac_server.so [x64] :: OnUnload()

steamclient.so exists in $LD_LIBRARY_PATH which is $HOME/serverfiles/RustDedicatedData/Plugins/x86_64/steamclient.so (host is 64bit)

lsb_release -a: Ubuntu 16.04.4
uname -a: Linux rust-01.gameserver 4.4.0-116-generic #140-Ubuntu SMP Mon Feb 12 21:23:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
ldd --version: (Ubuntu GLIBC 2.23-0ubuntu10) 2.23
tmux -V: 2.1
from a relevant server log file:


...
...
...

Server startup complete
EasyAntiCheat Scout Shutting Down

(Filename: /home/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

EasyAntiCheat Server Shutting Down

(Filename: /home/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

[Raknet] Server Shutting Down (Shutting Down)
Unloaded plugin Rust:IO for Oxide v2.15.0 by playrust.io / dcode
<!-- gh-comment-id:383749064 --> @thorpj commented on GitHub (Apr 23, 2018): Apologies @UltimateByte ./rustserver debug works, ./rustserver start gives error below Multiple mods are installed, however they work fine with ./rustserver debug, so I doubt they're causing this issue Game: Rust Details: https://hastebin.com/ilowizodes.sql Error (found in a console.log file): ``` dlopen failed trying to load: steamclient.so with error: steamclient.so: cannot open shared object file: No such file or directory [S_API FAIL] SteamAPI_Init(): Sys_LoadModule failed to load: steamclient.so [S_API FAIL] SteamAPI_Init() failed InitServer: GameServer_Init returned false eac_server.so [x64] :: OnUnload() ``` steamclient.so exists in $LD_LIBRARY_PATH which is $HOME/serverfiles/RustDedicatedData/Plugins/x86_64/steamclient.so (host is 64bit) lsb_release -a: Ubuntu 16.04.4 uname -a: `Linux rust-01.gameserver 4.4.0-116-generic #140-Ubuntu SMP Mon Feb 12 21:23:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux` ldd --version: `(Ubuntu GLIBC 2.23-0ubuntu10) 2.23` tmux -V: 2.1 from a relevant server log file: ```Couldn't initialize Steam Server (172.20.10.230) ... ... ... Server startup complete EasyAntiCheat Scout Shutting Down (Filename: /home/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51) EasyAntiCheat Server Shutting Down (Filename: /home/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51) [Raknet] Server Shutting Down (Shutting Down) Unloaded plugin Rust:IO for Oxide v2.15.0 by playrust.io / dcode ```
Author
Owner

@thorpj commented on GitHub (Apr 24, 2018):

It appears that the fix was to add the debug flag

parms="$parms -debug" in common.cfg

Apparently there's an issue that Facepunch need to resolve

<!-- gh-comment-id:383802752 --> @thorpj commented on GitHub (Apr 24, 2018): It appears that the fix was to add the debug flag parms="$parms -debug" in common.cfg Apparently there's an issue that Facepunch need to resolve
Author
Owner

@UltimateByte commented on GitHub (Apr 24, 2018):

Your start parameters are messed up. Whatever you did, this is wrong. The fix you applied is already applied properly by LinuxGSM. Adding "LD_LIBRARY_PATH=/home/rustserver/serverfiles/RustDedicated_Data/Plugins/x86_64" to start parameters is not correct.

Here is what a clean server looks like: https://hastebin.com/uyovunuxut

Please, review your config, make a backup of it and start clean from _common.cfg, and stop messing with start parameters if you don't know what you're doing.

<!-- gh-comment-id:384034698 --> @UltimateByte commented on GitHub (Apr 24, 2018): Your start parameters are messed up. Whatever you did, this is wrong. The fix you applied is already applied properly by LinuxGSM. Adding "LD_LIBRARY_PATH=/home/rustserver/serverfiles/RustDedicated_Data/Plugins/x86_64" to start parameters is not correct. Here is what a clean server looks like: https://hastebin.com/uyovunuxut Please, review your config, make a backup of it and start clean from _common.cfg, and stop messing with start parameters if you don't know what you're doing. <blockquote><div><strong><a href="https://hastebin.com/uyovunuxut">hastebin</a></strong></div></blockquote>
Author
Owner

@UltimateByte commented on GitHub (Apr 24, 2018):

Also, bind to a real IP and update your LinuxGSM.

PS: No harm intended, I just gotta be efficient atm, no time for screwing around with unneeded cautiousness.

<!-- gh-comment-id:384036537 --> @UltimateByte commented on GitHub (Apr 24, 2018): Also, bind to a real IP and update your LinuxGSM. PS: No harm intended, I just gotta be efficient atm, no time for screwing around with unneeded cautiousness.
Author
Owner

@thorpj commented on GitHub (Apr 25, 2018):

@UltimateByte I have tested:

  • clean config
  • with the fix you recommended
  • with edits to the fix so that it definitely links to the correct path

And the finally found that I needed to add the -debug parameter. Yes I can now remove that line, but clearly it's not a problem, as my server works with or without that line.

I'm not binding to a specific ip for $reasons. I have updated LGSM since the last commit. A few days ago.

<!-- gh-comment-id:384144529 --> @thorpj commented on GitHub (Apr 25, 2018): @UltimateByte I have tested: * **clean config** * with the fix you recommended * with edits to the fix so that it definitely links to the correct path And the finally found that I needed to add the `-debug` parameter. Yes I can now remove that line, but clearly it's not a problem, as my server works with or without that line. I'm not binding to a specific ip for $reasons. I have updated LGSM since the last commit. A few days ago.
Author
Owner

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

@thorpj
But did you try a clean install where the only modification is that you bind to a real interface IP (and use different ports if needed) ?

<!-- gh-comment-id:384188353 --> @UltimateByte commented on GitHub (Apr 25, 2018): @thorpj But did you try a clean install where the only modification is that you bind to a real interface IP (and use different ports if needed) ?
Author
Owner

@lock[bot] commented on GitHub (Apr 25, 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:486568663 --> @lock[bot] commented on GitHub (Apr 25, 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#1303
No description provided.