[GH-ISSUE #1104] [ARK] Duplicate parameters | Server config files are overwritten at every server restart. #870

Closed
opened 2026-02-27 02:54:00 +03:00 by kerem · 23 comments
Owner

Originally created by @adgriff2 on GitHub (Oct 6, 2016).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/1104

Originally assigned to: @UltimateByte on GitHub.

All files in these locations are overwritten at every server start:
/home/arkserver/serverfiles/ShooterGame/Saved/Config/LinuxServer/
/home/arkserver/serverfiles/ShooterGame/Saved/Config/CleanSourceConfigs/

arkserver@Server01:~/serverfiles/ShooterGame/Saved/Config/LinuxServer$ stat GameUserSettings.ini
File: ‘GameUserSettings.ini’
Size: 2916 Blocks: 8 IO Block: 4096 regular file
Device: 801h/2049d Inode: 394032 Links: 1
Access: (0600/-rw-------) Uid: ( 1003/arkserver) Gid: ( 1003/arkserver)
Access: 2016-10-06 00:25:36.020873072 -0400
Modify: 2016-10-06 00:39:19.087156534 -0400
Change: 2016-10-06 00:39:19.087156534 -0400
Birth: -
arkserver@Server01:~/serverfiles/ShooterGame/Saved/Config/LinuxServer$ ~/arkserver start
[ OK ] Starting ark-server: ark-server
arkserver@Server01:~/serverfiles/ShooterGame/Saved/Config/LinuxServer$ stat GameUserSettings.ini
File: ‘GameUserSettings.ini’
Size: 2916 Blocks: 8 IO Block: 4096 regular file
Device: 801h/2049d Inode: 394032 Links: 1
Access: (0600/-rw-------) Uid: ( 1003/arkserver) Gid: ( 1003/arkserver)
Access: 2016-10-06 00:41:25.573665726 -0400
Modify: 2016-10-06 00:41:25.577665678 -0400
Change: 2016-10-06 00:41:25.577665678 -0400
Birth: -

I've even tried deleting the entire contents of both folders. The files get recreated and any config changes made are overwritten.

Originally created by @adgriff2 on GitHub (Oct 6, 2016). Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/1104 Originally assigned to: @UltimateByte on GitHub. All files in these locations are overwritten at every server start: /home/arkserver/serverfiles/ShooterGame/Saved/Config/LinuxServer/ /home/arkserver/serverfiles/ShooterGame/Saved/Config/CleanSourceConfigs/ `arkserver@Server01:~/serverfiles/ShooterGame/Saved/Config/LinuxServer$ stat GameUserSettings.ini` File: ‘GameUserSettings.ini’ Size: 2916 Blocks: 8 IO Block: 4096 regular file Device: 801h/2049d Inode: 394032 Links: 1 Access: (0600/-rw-------) Uid: ( 1003/arkserver) Gid: ( 1003/arkserver) Access: 2016-10-06 00:25:36.020873072 -0400 Modify: 2016-10-06 00:39:19.087156534 -0400 Change: 2016-10-06 00:39:19.087156534 -0400 Birth: - `arkserver@Server01:~/serverfiles/ShooterGame/Saved/Config/LinuxServer$ ~/arkserver start` [ OK ] Starting ark-server: ark-server `arkserver@Server01:~/serverfiles/ShooterGame/Saved/Config/LinuxServer$ stat GameUserSettings.ini` File: ‘GameUserSettings.ini’ Size: 2916 Blocks: 8 IO Block: 4096 regular file Device: 801h/2049d Inode: 394032 Links: 1 Access: (0600/-rw-------) Uid: ( 1003/arkserver) Gid: ( 1003/arkserver) Access: 2016-10-06 00:41:25.573665726 -0400 Modify: 2016-10-06 00:41:25.577665678 -0400 Change: 2016-10-06 00:41:25.577665678 -0400 Birth: - I've even tried deleting the entire contents of both folders. The files get recreated and any config changes made are overwritten.
kerem 2026-02-27 02:54:00 +03:00
  • closed this issue
  • added the
    type: bug
    label
Author
Owner

@antonydevanchi commented on GitHub (Oct 6, 2016):

@adgriff2 As far as I know usage correct encoding of the file will help solve the problem. Try UTF-16 LE.

<!-- gh-comment-id:251880240 --> @antonydevanchi commented on GitHub (Oct 6, 2016): @adgriff2 As far as I know usage correct encoding of the file will help solve the problem. Try UTF-16 LE.
Author
Owner

@UltimateByte commented on GitHub (Oct 6, 2016):

@Smile42RU Thanks for the hand, i got no clue about this.
If this is the actual issue, you can also edit your config with nano or vi instead of with an FTP and a windows editor, since they should preserve the formatting.

<!-- gh-comment-id:251939171 --> @UltimateByte commented on GitHub (Oct 6, 2016): @Smile42RU Thanks for the hand, i got no clue about this. If this is the actual issue, you can also edit your config with nano or vi instead of with an FTP and a windows editor, since they should preserve the formatting.
Author
Owner

@adgriff2 commented on GitHub (Oct 6, 2016):

I've been running an ark server on this same box for around a year with my own (quite humble) steamcmd script and never had a config encoding issue, odd. My backup configs are all ascii. This is the first time I've tried LGSM.

That said, I used iconv to change the encoding to UTF-16LE. This had no effect and was overwritten as soon as the server was started.

<!-- gh-comment-id:251971793 --> @adgriff2 commented on GitHub (Oct 6, 2016): I've been running an ark server on this same box for around a year with my own (quite humble) steamcmd script and never had a config encoding issue, odd. My backup configs are all ascii. This is the first time I've tried LGSM. That said, I used iconv to change the encoding to UTF-16LE. This had no effect and was overwritten as soon as the server was started.
Author
Owner

@adgriff2 commented on GitHub (Oct 6, 2016):

It appears that some options are defined in the startup parms and also in the config file. Maybe these are in conflict?

<!-- gh-comment-id:251991396 --> @adgriff2 commented on GitHub (Oct 6, 2016): It appears that some options are defined in the startup parms and also in the config file. Maybe these are in conflict?
Author
Owner

@UltimateByte commented on GitHub (Oct 6, 2016):

Well spotted, it could be !
Can you try removing them from the config file and see ?

<!-- gh-comment-id:252052986 --> @UltimateByte commented on GitHub (Oct 6, 2016): Well spotted, it could be ! Can you try removing them from the config file and see ?
Author
Owner

@adgriff2 commented on GitHub (Oct 6, 2016):

I've reverted to using my previous script for the time being. I'll try to schedule some downtime at some point to play with it.

<!-- gh-comment-id:252062132 --> @adgriff2 commented on GitHub (Oct 6, 2016): I've reverted to using my previous script for the time being. I'll try to schedule some downtime at some point to play with it.
Author
Owner

@UltimateByte commented on GitHub (Oct 6, 2016):

We had several people complaining about this recently. So we need to get our hands in it i guess anyways.

<!-- gh-comment-id:252104737 --> @UltimateByte commented on GitHub (Oct 6, 2016): We had several people complaining about this recently. So we need to get our hands in it i guess anyways.
Author
Owner

@cedarlug commented on GitHub (Oct 7, 2016):

From what I find, this is what Ark does with a config file with an error.
Ref: https://github.com/FezVrasta/ark-server-tools/issues/367
Ref: http://survivetheark.com/index.php?/forums/topic/1614-gameini-wont-save-and-gets-blank-on-server-start/&do=findComment&comment=47538
Ref: https://github.com/FezVrasta/ark-server-tools/issues/260

My recommendation is to put all of your settings in the arkserver script.

<!-- gh-comment-id:252141573 --> @cedarlug commented on GitHub (Oct 7, 2016): From what I find, this is what Ark does with a config file with an error. Ref: https://github.com/FezVrasta/ark-server-tools/issues/367 Ref: http://survivetheark.com/index.php?/forums/topic/1614-gameini-wont-save-and-gets-blank-on-server-start/&do=findComment&comment=47538 Ref: https://github.com/FezVrasta/ark-server-tools/issues/260 My recommendation is to put all of your settings in the `arkserver` script.
Author
Owner

@WriggleDev commented on GitHub (Oct 7, 2016):

Are you generating your gameusersettings.ini and copy/pasting it in?
I ended up taking my generated .ini file and retyping the settings in manually and it worked.

<!-- gh-comment-id:252149142 --> @WriggleDev commented on GitHub (Oct 7, 2016): Are you generating your gameusersettings.ini and copy/pasting it in? I ended up taking my generated .ini file and retyping the settings in manually and it worked.
Author
Owner

@adgriff2 commented on GitHub (Oct 7, 2016):

Are you generating your gameusersettings.ini and copy/pasting it in?
I ended up taking my generated .ini file and retyping the settings in manually and it worked.

At first I was, but then I deleted all the configs and let the starting server recreate them. I then restarted the server without altering the configs. The starting server overwrote the configs it had just created. This seems to confirm that the problem isn't linked to a user altering them.

<!-- gh-comment-id:252266262 --> @adgriff2 commented on GitHub (Oct 7, 2016): > Are you generating your gameusersettings.ini and copy/pasting it in? > I ended up taking my generated .ini file and retyping the settings in manually and it worked. At first I was, but then I deleted all the configs and let the starting server recreate them. I then restarted the server without altering the configs. The starting server overwrote the configs it had just created. This seems to confirm that the problem isn't linked to a user altering them.
Author
Owner

@adgriff2 commented on GitHub (Oct 7, 2016):

Here's what I currently use that doesn't have the config overwriting problem. It's just a small script I wrote to stop the server via systemd, forceupdate it, then start it back up via systemd. Below that is the systemd 'script' that contains the startup command that works. It's much more abbreviated than the one used in LGSM. I'm thinking the LGSM startup command may be the problem.
adgriff2@Server01:~/scripts$ cat updateArk.sh
#!/bin/bash
sudo systemctl stop ark-dedicated.service
&& /home/steamuser/steamcmd/steamcmd.sh
+login anonymous
+force_install_dir /home/steamuser/steamcmd/Ark
+app_update 376030
+quit
&& sudo systemctl start ark-dedicated.service
adgriff2@Server01:~/scripts$ cat /etc/systemd/system/ark-dedicated.service
[Unit]
Description=ARK: Survival Evolved dedicated server
Wants=network-online.target
After=syslog.target network.target nss-lookup.target network-online.target

[Service]
ExecStart=/home/steamuser/steamcmd/Ark/ShooterGame/Binaries/Linux/ShooterGameServer TheIsland?listen?SessionName=GriffinArk -server -log
LimitNOFILE=100000
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s QUIT $MAINPID
User=steamuser
Group=steamuser

[Install]
WantedBy=multi-user.target

<!-- gh-comment-id:252277903 --> @adgriff2 commented on GitHub (Oct 7, 2016): Here's what I currently use that doesn't have the config overwriting problem. It's just a small script I wrote to stop the server via systemd, forceupdate it, then start it back up via systemd. Below that is the systemd 'script' that contains the startup command that works. It's much more abbreviated than the one used in LGSM. I'm thinking the LGSM startup command may be the problem. `adgriff2@Server01:~/scripts$ cat updateArk.sh` #!/bin/bash sudo systemctl stop ark-dedicated.service \ && /home/steamuser/steamcmd/steamcmd.sh \ +login anonymous \ +force_install_dir /home/steamuser/steamcmd/Ark \ +app_update 376030 \ +quit \ && sudo systemctl start ark-dedicated.service `adgriff2@Server01:~/scripts$ cat /etc/systemd/system/ark-dedicated.service` [Unit] Description=ARK: Survival Evolved dedicated server Wants=network-online.target After=syslog.target network.target nss-lookup.target network-online.target [Service] ExecStart=/home/steamuser/steamcmd/Ark/ShooterGame/Binaries/Linux/ShooterGameServer TheIsland?listen?SessionName=GriffinArk -server -log LimitNOFILE=100000 ExecReload=/bin/kill -s HUP $MAINPID ExecStop=/bin/kill -s QUIT $MAINPID User=steamuser Group=steamuser [Install] WantedBy=multi-user.target
Author
Owner

@adgriff2 commented on GitHub (Oct 7, 2016):

Changing the '#parms variable in arkserver.sh to be more like my old startup command seems to have fixed the problem. I removed args for MultiHome, MaxPlayers, QueryPort, RCONPort, Port, and ServerAdminPassword. I think these are taken care of in the config.

<!-- gh-comment-id:252284766 --> @adgriff2 commented on GitHub (Oct 7, 2016): Changing the '#parms variable in arkserver.sh to be more like my old startup command seems to have fixed the problem. I removed args for MultiHome, MaxPlayers, QueryPort, RCONPort, Port, and ServerAdminPassword. I think these are taken care of in the config.
Author
Owner

@UltimateByte commented on GitHub (Oct 7, 2016):

BTW we have to chose anyways if we put stuff inside the .ini or start parameters in LGSM. There are currently some duplicate parameters.
This needs to be addressed.

<!-- gh-comment-id:252295745 --> @UltimateByte commented on GitHub (Oct 7, 2016): BTW we have to chose anyways if we put stuff inside the .ini or start parameters in LGSM. There are currently some duplicate parameters. This needs to be addressed.
Author
Owner

@UltimateByte commented on GitHub (Jan 13, 2017):

I'm on it.
Ark don't give a crap about ports set within cfg file. So we'd rather get them only into start parameters.

<!-- gh-comment-id:272358306 --> @UltimateByte commented on GitHub (Jan 13, 2017): I'm on it. Ark don't give a crap about ports set within cfg file. So we'd rather get them only into start parameters.
Author
Owner

@UltimateByte commented on GitHub (Jan 13, 2017):

So, here is what config looks like now
github.com/GameServerManagers/Game-Server-Configs@3ff04eadc7 (diff-4ca2a40fe9)

SessionName & ServerAdminPassword are set using .ini file.
Leaving RCONPort since Ark will recreate it anyways, at least it'll be in the right location.
Ports/maxplayers/IP are set within start parms; however maxplayers will show up in .ini after starting the server but can't seem to be set within .ini file, resets to 70 no matter what.

Pull-requesting for a main script fix soon.

<!-- gh-comment-id:272364721 --> @UltimateByte commented on GitHub (Jan 13, 2017): So, here is what config looks like now https://github.com/GameServerManagers/Game-Server-Configs/commit/3ff04eadc7c5b76c9fbe9ffee79fd8e6401bec61#diff-4ca2a40fe9ae60534d8ed66ed8a843ce > SessionName & ServerAdminPassword are set using .ini file. > Leaving RCONPort since Ark will recreate it anyways, at least it'll be in the right location. > Ports/maxplayers/IP are set within start parms; however maxplayers will show up in .ini after starting the server but can't seem to be set within .ini file, resets to 70 no matter what. Pull-requesting for a main script fix soon.
Author
Owner

@UltimateByte commented on GitHub (Jan 29, 2017):

This has been merged.
Advised:

  • Updating arkserver script
  • Running ./arkserver uf;
  • Grabbing the newest config file (renaming the older will do the trick, newest will be downloaded).
<!-- gh-comment-id:275884168 --> @UltimateByte commented on GitHub (Jan 29, 2017): This has been merged. Advised: - Updating `arkserver` script - Running `./arkserver uf`; - Grabbing the newest config file (renaming the older will do the trick, newest will be downloaded).
Author
Owner

@jkdoug commented on GitHub (Feb 25, 2017):

I'm having this issue myself, using the latest and greatest arkserver scripts. Nothing I've tried so far has stopped my config from being overwritten every time I start the server.

The weird thing is that I see no message echo'd, and my default config, which I edited, remains intact. I don't know where it's even getting the config file it's using or where in the code it's doing this.

<!-- gh-comment-id:282490236 --> @jkdoug commented on GitHub (Feb 25, 2017): I'm having this issue myself, using the latest and greatest arkserver scripts. Nothing I've tried so far has stopped my config from being overwritten every time I start the server. The weird thing is that I see no message echo'd, and my default config, which I edited, remains intact. I don't know where it's even getting the config file it's using or where in the code it's doing this.
Author
Owner

@UltimateByte commented on GitHub (Feb 25, 2017):

@jkdoug What are you editing your config with ? Are you sure you're putting settings at the right location ? Are you editing config files while the server is off ? (you should)

<!-- gh-comment-id:282492063 --> @UltimateByte commented on GitHub (Feb 25, 2017): @jkdoug What are you editing your config with ? Are you sure you're putting settings at the right location ? Are you editing config files while the server is off ? (you should)
Author
Owner

@jkdoug commented on GitHub (Feb 25, 2017):

Yes, I stopped the server, edited serverfiles/ShooterGame/Saved/Config/LinuxServer/GameUserSettings.ini with vi, and started the server again.

I tried editing arkserver to use the develop branch. It seems that the features are not merged into the master very often.

<!-- gh-comment-id:282492353 --> @jkdoug commented on GitHub (Feb 25, 2017): Yes, I stopped the server, edited serverfiles/ShooterGame/Saved/Config/LinuxServer/GameUserSettings.ini with vi, and started the server again. I tried editing arkserver to use the develop branch. It seems that the features are not merged into the master very often.
Author
Owner

@UltimateByte commented on GitHub (Feb 25, 2017):

@jkdoug Once a week. Changes mentioned here are already implemented.

<!-- gh-comment-id:282493251 --> @UltimateByte commented on GitHub (Feb 25, 2017): @jkdoug Once a week. Changes mentioned here are already implemented.
Author
Owner

@jkdoug commented on GitHub (Feb 25, 2017):

Well, I'm sorry, but the changes are not fixing anything for me. Maybe I'll try deleting everything and starting over.

<!-- gh-comment-id:282493408 --> @jkdoug commented on GitHub (Feb 25, 2017): Well, I'm sorry, but the changes are not fixing anything for me. Maybe I'll try deleting everything and starting over.
Author
Owner

@UltimateByte commented on GitHub (Feb 25, 2017):

@jkdoug Any mistake in Ark's config file will make it overwritten. LGSM part about it has been fixed unless proved otherwise.

<!-- gh-comment-id:282494168 --> @UltimateByte commented on GitHub (Feb 25, 2017): @jkdoug Any mistake in Ark's config file will make it overwritten. LGSM part about it has been fixed unless proved otherwise.
Author
Owner

@lock[bot] commented on GitHub (Jul 18, 2018):

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:406109645 --> @lock[bot] commented on GitHub (Jul 18, 2018): 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#870
No description provided.