[GH-ISSUE #1938] Minecraft using wrong config #1527

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

Originally created by @Dragonphire on GitHub (Jul 17, 2018).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/1938

I am posting about Minecraft but this seems to be how LGSM is interacting with the setup, which in my opinion should work. The Minecraft server itself runs just fine (at least the one instance). Please let me know if i should post elsewhere.

i have a single user, multiple instance setup as the intention is just 3 different servers with different gamemodes and world files. I have seen others comment of successful setups, so i'm not sure if it's my setup. (I have had trouble finding any specific how to for single user, multiple instances for minecraft specifically. My setup seems flawed in the fact that the server files for all 3 servers are in the same serverfiles directory, so each server shares the same ops.json file for example.)

When i start the server, everything looks fine. when i ./game details, all the values look correct, including pointing to the custom server.properties file. However, when i go to the server in game, the MOD says "Default Server" (which is what i set the default server.properties file to have) instead of the "Gamemode Server" MOD which i set for each server.

within serverfiles, i created a server properties file with the naming convention of ${servicename}.properties. I also created a world folder with similar convention ${servicename}.world

In the lgsm/config-lgsm/server/common.cfg file, i changed servercfg="${servicename}.properties".

So when i run details for each server, i'm getting back the correct config file for each. When i start it, it is saying the correct MOD in the output. But in game, i'm getting the default and i cannot start a second server because it keeps trying to use the default properties which has only the one port.

I even tried to set servercfgdefault="${servicename}.properties" with no success.

Again, i have updated the common.cfg to point each instance to a unique properties file, so i don't see how there is an issue. I appreciate any assistance.

Server 1: https://hastebin.com/axawixibij
Server 2: https://hastebin.com/axozacehen

Originally created by @Dragonphire on GitHub (Jul 17, 2018). Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/1938 I am posting about Minecraft but this seems to be how LGSM is interacting with the setup, which in my opinion should work. The Minecraft server itself runs just fine (at least the one instance). Please let me know if i should post elsewhere. i have a single user, multiple instance setup as the intention is just 3 different servers with different gamemodes and world files. I have seen others comment of successful setups, so i'm not sure if it's my setup. (I have had trouble finding any specific how to for single user, multiple instances for minecraft specifically. My setup seems flawed in the fact that the server files for all 3 servers are in the same serverfiles directory, so each server shares the same ops.json file for example.) When i start the server, everything looks fine. when i ./game details, all the values look correct, including pointing to the custom server.properties file. However, when i go to the server in game, the MOD says "Default Server" (which is what i set the default server.properties file to have) instead of the "Gamemode Server" MOD which i set for each server. within serverfiles, i created a server properties file with the naming convention of ${servicename}.properties. I also created a world folder with similar convention ${servicename}.world In the lgsm/config-lgsm/server/common.cfg file, i changed servercfg="${servicename}.properties". So when i run details for each server, i'm getting back the correct config file for each. When i start it, it is saying the correct MOD in the output. But in game, i'm getting the default and i cannot start a second server because it keeps trying to use the default properties which has only the one port. I even tried to set servercfgdefault="${servicename}.properties" with no success. Again, i have updated the common.cfg to point each instance to a unique properties file, so i don't see how there is an issue. I appreciate any assistance. Server 1: https://hastebin.com/axawixibij Server 2: https://hastebin.com/axozacehen
kerem 2026-02-27 02:57:37 +03:00
Author
Owner

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

Maybe Minecraft doesn't like the dash - in the server config file.
Try renaming mcserver-adventure to adventure (as well as various config files) and see.

<!-- gh-comment-id:405478311 --> @UltimateByte commented on GitHub (Jul 17, 2018): Maybe Minecraft doesn't like the dash `-` in the server config file. Try renaming `mcserver-adventure` to `adventure` (as well as various config files) and see.
Author
Owner

@Dragonphire commented on GitHub (Jul 17, 2018):

same outcome.

https://hastebin.com/cemabiwofo

configs

<!-- gh-comment-id:405516839 --> @Dragonphire commented on GitHub (Jul 17, 2018): same outcome. https://hastebin.com/cemabiwofo ![configs](https://user-images.githubusercontent.com/41317621/42808454-9aef00dc-8970-11e8-8b06-4175ba25c9d9.png)
Author
Owner

@levifig commented on GitHub (Jan 24, 2019):

I'm having an issue where my LGSM isn't obeying the overrides I'm placing on common.cfg. No matter what I change, it runs with whatever _default.cfg is configured. I'm going to posit my issue could be the cause of the bug here too...

<!-- gh-comment-id:457402156 --> @levifig commented on GitHub (Jan 24, 2019): I'm having an issue where my LGSM isn't _obeying_ the overrides I'm placing on `common.cfg`. No matter what I change, it runs with whatever `_default.cfg` is configured. I'm going to posit my issue could be the cause of the bug here too...
Author
Owner

@levifig commented on GitHub (Jan 27, 2019):

Update: after a couple of server restarts, with no intervention on my part, LGSM actually created the common.cfg and <instance>.cfg files (actually overriding my own). Since then, it's been reading those files just fine. No idea why, for a while, it didn't 1) create those files and 2) read those files.

Thought I'd update this thread. Basically, if the common.cfg and <instance>.cfg files are not automatically generated, it seems LGSM has b0rked somewhere and won't even read them if you create them manually.

<!-- gh-comment-id:457885640 --> @levifig commented on GitHub (Jan 27, 2019): Update: after a couple of server restarts, with no intervention on my part, LGSM actually created the `common.cfg` and `<instance>.cfg` files (actually overriding my own). Since then, it's been reading those files just fine. No idea why, for a while, it didn't 1) create those files and 2) read those files. Thought I'd update this thread. Basically, if the `common.cfg` and `<instance>.cfg` files are not automatically generated, it seems LGSM has b0rked somewhere and won't even read them if you create them manually.
Author
Owner

@0DUDDU commented on GitHub (May 11, 2019):

It's simply because minecraft take only the "server.property" file, you cannot specify the property file when you start the server as some other game allow.

To achieve what you want to do, you can create a file in other location and create a simlink in each server file folder

<!-- gh-comment-id:491478743 --> @0DUDDU commented on GitHub (May 11, 2019): It's simply because minecraft take only the "server.property" file, you cannot specify the property file when you start the server as some other game allow. To achieve what you want to do, you can create a file in other location and create a simlink in each server file folder
Author
Owner

@h3o66 commented on GitHub (Jan 29, 2021):

I do not see any way to maeke this work.
If someone knows how to do this, please reopen this issue.

<!-- gh-comment-id:769762289 --> @h3o66 commented on GitHub (Jan 29, 2021): I do not see any way to maeke this work. If someone knows how to do this, please reopen this issue.
Author
Owner

@github-actions[bot] commented on GitHub (Jan 30, 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:1025010453 --> @github-actions[bot] commented on GitHub (Jan 30, 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#1527
No description provided.