[GH-ISSUE #3376] [BUG] Server files pointing to wrong location after latest LinuxGSM update #2309

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

Originally created by @Shebuka on GitHub (Mar 15, 2021).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/3376

User Story

The new version of LinuxGSM added -savedir parameter to vhserver that is causing the game to not recognize the current savedir and points to a completely different location.

Basic info

  • Distro: Ubuntu 20.04.2 LTS
  • Game: Valheim
  • Command: start
  • LinuxGSM version: v21.2.1

Further Information

May be caused by the fact that the -savedir parameter is escaped by ' (single apostrophe).
#3266 and #3370 may be the ones to look at

To Reproduce

Steps to reproduce the behaviour:

  1. Update to v21.2.1
  2. Start server
  3. Enter the game and observe that it's a completely new world
  4. Find that you now have /home/vhserver/serverfiles/'/home/vhserver/.config/unity3d/IronGate/Valheim' folder (folder named ' and folder named Valheim')

Expected behaviour

That it point to correct location

Originally created by @Shebuka on GitHub (Mar 15, 2021). Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/3376 ## User Story The new version of LinuxGSM added -savedir parameter to vhserver that is causing the game to not recognize the current savedir and points to a completely different location. ## Basic info * **Distro:** Ubuntu 20.04.2 LTS * **Game:** Valheim * **Command:** start * **LinuxGSM version:** v21.2.1 ## Further Information May be caused by the fact that the -savedir parameter is escaped by ' (single apostrophe). #3266 and #3370 may be the ones to look at ## To Reproduce Steps to reproduce the behaviour: 1. Update to v21.2.1 2. Start server 3. Enter the game and observe that it's a completely new world 4. Find that you now have **/home/vhserver/serverfiles/'/home/vhserver/.config/unity3d/IronGate/Valheim'** folder (folder named **'** and folder named **Valheim'**) ## Expected behaviour That it point to correct location
Author
Owner

@zeerorg commented on GitHub (Mar 15, 2021):

Had this same issue. The -savedir should not have singlequotes.

<!-- gh-comment-id:799442937 --> @zeerorg commented on GitHub (Mar 15, 2021): Had this same issue. The `-savedir` should not have singlequotes.
Author
Owner

@dgibbs64 commented on GitHub (Mar 15, 2021):

Thanks. I will be addressing this issue this evening. Having some issues with quotes currently

<!-- gh-comment-id:799456134 --> @dgibbs64 commented on GitHub (Mar 15, 2021): Thanks. I will be addressing this issue this evening. Having some issues with quotes currently
Author
Owner

@dgibbs64 commented on GitHub (Mar 15, 2021):

I have put a temporary commit into master to hopefully resolve the issue until I can get home. Just update LinuxGSM

Please can someone test and let me know.

<!-- gh-comment-id:799471312 --> @dgibbs64 commented on GitHub (Mar 15, 2021): I have put a temporary commit into master to hopefully resolve the issue until I can get home. Just update LinuxGSM Please can someone test and let me know.
Author
Owner

@tbrigley commented on GitHub (Mar 15, 2021):

many valheim lgsm dedicated servers are offline due to auto-updates from this change, i'm trying to figure out a workaround to bring it back online with least impact. any advise from people also encountering this?

<!-- gh-comment-id:799533395 --> @tbrigley commented on GitHub (Mar 15, 2021): many valheim lgsm dedicated servers are offline due to auto-updates from this change, i'm trying to figure out a workaround to bring it back online with least impact. any advise from people also encountering this?
Author
Owner

@dgibbs64 commented on GitHub (Mar 15, 2021):

remove the quotes or -savedir from parameters.

I have done a temporary commit to try and fix it until I get home in a few hours.

so run

./vhserver update-lgsm

and that may also help

<!-- gh-comment-id:799539439 --> @dgibbs64 commented on GitHub (Mar 15, 2021): remove the quotes or `-savedir` from parameters. I have done a temporary commit to try and fix it until I get home in a few hours. so run ``` ./vhserver update-lgsm ``` and that may also help
Author
Owner

@Shebuka commented on GitHub (Mar 15, 2021):

many valheim lgsm dedicated servers are offline due to auto-updates from this change, i'm trying to figure out a workaround to bring it back online with least impact. any advise from people also encountering this?

For now I've opened the common.cfg of my server (in ~/lgsm/config-lgsm/vhserver) and added startparameters="-name '${servername}' -password ${serverpassword} -port ${port} -world ${gameworld} -public ${public}".

Can't test the fix as there are people on the server right now.

<!-- gh-comment-id:799549807 --> @Shebuka commented on GitHub (Mar 15, 2021): > many valheim lgsm dedicated servers are offline due to auto-updates from this change, i'm trying to figure out a workaround to bring it back online with least impact. any advise from people also encountering this? For now I've opened the `common.cfg` of my server (in `~/lgsm/config-lgsm/vhserver`) and added `startparameters="-name '${servername}' -password ${serverpassword} -port ${port} -world ${gameworld} -public ${public}"`. Can't test the fix as there are people on the server right now.
Author
Owner

@dgibbs64 commented on GitHub (Mar 16, 2021):

Hotfix has been released that should resolve this issue.

<!-- gh-comment-id:800088330 --> @dgibbs64 commented on GitHub (Mar 16, 2021): Hotfix has been released that should resolve this issue.
Author
Owner

@Alvar195 commented on GitHub (Mar 17, 2021):

Doesn't seem fixed. _default.cfg still includes single quotes: -savedir '${savedir}'

https://github.com/GameServerManagers/LinuxGSM/blob/v21.2.2/lgsm/config-default/config-lgsm/vhserver/_default.cfg

<!-- gh-comment-id:801357388 --> @Alvar195 commented on GitHub (Mar 17, 2021): Doesn't seem fixed. _default.cfg still includes single quotes: `-savedir '${savedir}'` https://github.com/GameServerManagers/LinuxGSM/blob/v21.2.2/lgsm/config-default/config-lgsm/vhserver/_default.cfg
Author
Owner

@Shebuka commented on GitHub (Mar 18, 2021):

@Alvar195 The quotes are needed for paths with spaces in them. The fix is not to remove quotes.

<!-- gh-comment-id:801835419 --> @Shebuka commented on GitHub (Mar 18, 2021): @Alvar195 The quotes are needed for paths with spaces in them. The fix is not to remove quotes.
Author
Owner

@github-actions[bot] commented on GitHub (Mar 19, 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:1072895231 --> @github-actions[bot] commented on GitHub (Mar 19, 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#2309
No description provided.