mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2026-04-25 06:05:57 +03:00
[GH-ISSUE #1104] [ARK] Duplicate parameters | Server config files are overwritten at every server restart. #870
Labels
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
No due date set.
Dependencies
No dependencies set.
Reference
starred/LinuxGSM#870
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.iniFile: ‘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.iniFile: ‘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.
@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.
@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.
@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.
@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?
@UltimateByte commented on GitHub (Oct 6, 2016):
Well spotted, it could be !
Can you try removing them from the config file and see ?
@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.
@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.
@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
arkserverscript.@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.
@adgriff2 commented on GitHub (Oct 7, 2016):
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.
@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
@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.
@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.
@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.
@UltimateByte commented on GitHub (Jan 13, 2017):
So, here is what config looks like now
github.com/GameServerManagers/Game-Server-Configs@3ff04eadc7 (diff-4ca2a40fe9)Pull-requesting for a main script fix soon.
@UltimateByte commented on GitHub (Jan 29, 2017):
This has been merged.
Advised:
arkserverscript./arkserver uf;@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.
@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)
@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.
@UltimateByte commented on GitHub (Feb 25, 2017):
@jkdoug Once a week. Changes mentioned here are already implemented.
@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.
@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.
@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.