arkmanager / ark-server-tools

Set of server tools used to manage ARK: Survival Evolved servers on Linux
MIT License
684 stars 144 forks source link

Tool re-downloads all removed mods #1111

Closed Sc0r closed 4 years ago

Sc0r commented 4 years ago

Hi there. Found out my server is running a ton of mods which should not be there. Some of them were in the arkmanager.cfg, but most of them were installed ages ago (and are probably dormant in the steam workshop folder) so after I found there is all these wrong mods running I disabled and uninstalled all of them with uninstallmod and disablemod and made sure they are also not in the arkmanager.cfg After I cleaned it all up, I ran one more arkmanager checkmodupdate --update-mods @crystal and It came out all clean. I booted it up, when it finished after a short while it shut down again for an update- redownloading everything. oof. I've doublechecked, I removed it from GameUserSettings already and I just have no idea where it gets the idea to redownload and install it all.

[EDIT] nvm, turns out they were in the game.ini. I assume game.ini should be empty?

arkmanager.log

2020-06-16 14:02:48: [crystal] The server is starting...
2020-06-16 14:02:48: [crystal] The server is now running, and should be up within 10 minutes
2020-06-16 14:15:01: [main] Checking for update; PID: 8885
2020-06-16 14:15:19: [main] Your server is already up to date! The most recent version is 5169549.
2020-06-16 14:15:19: [crystal] Checking for update; PID: 9487
2020-06-16 14:17:03: [crystal] Saving world
2020-06-16 14:17:05: [crystal] Stopping server; reason: update
2020-06-16 14:17:07: [crystal] The server has been stopped
2020-06-16 14:17:07: [crystal] Updating mod 1136125765
2020-06-16 14:17:08: [crystal] Mod 1136125765 updated
2020-06-16 14:17:08: [crystal] Updating mod 1207157150
2020-06-16 14:18:03: [crystal] Mod 1207157150 updated
2020-06-16 14:18:03: [crystal] Updating mod 1587892307
2020-06-16 14:18:05: [crystal] Mod 1587892307 updated
2020-06-16 14:18:05: [crystal] Updating mod 1829635965
2020-06-16 14:18:07: [crystal] Mod 1829635965 updated
2020-06-16 14:18:07: [crystal] Updating mod 1891446920
2020-06-16 14:18:12: [crystal] Mod 1891446920 updated
2020-06-16 14:18:12: [crystal] Updating mod 1984129536
2020-06-16 14:18:13: [crystal] Mod 1984129536 updated
2020-06-16 14:18:13: [crystal] Updating mod 2031840245
2020-06-16 14:18:14: [crystal] Mod 2031840245 updated
2020-06-16 14:18:14: [crystal] Updating mod 519998112
2020-06-16 14:18:20: [crystal] Mod 519998112 updated
2020-06-16 14:18:20: [crystal] Updating mod 561820195
2020-06-16 14:18:39: [crystal] Mod 561820195 updated
2020-06-16 14:18:40: [crystal] Updating mod 839162288
2020-06-16 14:22:26: [crystal] Mod 839162288 updated
2020-06-16 14:22:26: [crystal] Updating mod 899987403
2020-06-16 14:22:57: [crystal] Mod 899987403 updated
2020-06-16 14:22:57: [crystal] The server is starting...
2020-06-16 14:22:57: [crystal] The server is now running, and should be up within 10 minutes

arkmanager.cfg

arkstChannel="master"                                               # change it to a different branch to get non-stable versions
install_bindir="/usr/local/bin"
install_libexecdir="/usr/local/libexec/arkmanager"
install_datadir="/usr/local/share/arkmanager"

# config SteamCMD
steamcmdroot="/usr/games"                                 # path of your steamcmd instance - change this to "/usr/games" on Debian/Ubuntu/CentOS if you have the steamcmd package installed
steamcmdexec="steamcmd"                                          # name of steamcmd executable - change this to "steamcmd" on Debian/Ubuntu/CentOS if you have the steamcmd package installed
steamcmd_user="urd"                                               # name of the system user who own steamcmd folder
steamcmd_appinfocache="/home/urd/.steam/appcache/appinfo.vdf"      # cache of the appinfo command - change this to "/home/urd/.steam/appcache/appinfo.vdf" on Debian/Ubuntu/CentOS if you have the steamcmd package installed
steamcmd_workshoplog="/home/urd/.steam/logs/workshop_log.txt"      # Steam workshop log - change this to "/home/steam/.steam/logs/workshop_log.txt" on Debian/Ubuntu/CentOS if you have the steamcmd package installed
#steamlogin="anonymous"                                             # Uncomment this to specify steam login instead of using anonymous login
steamcmdhome=/home/urd/                                         # Uncomment this to override steamcmd home directory

# config environment
arkserverexec="ShooterGame/Binaries/Linux/ShooterGameServer"        # name of ARK server executable
arkbackupdir="/home/urd/ARK-Backups"                              # path to backup directory
arkwarnminutes="15"                                                 # number of minutes to warn players when using update --warn
arkprecisewarn="false"                                              # set this to true to obey warnminutes even if no players are connected (recommended for clusters)
arkautorestartfile="ShooterGame/Saved/.autorestart"                 # path to autorestart file
arkAutoUpdateOnStart="false"                                        # set this to true if you want to always update before startup
arkBackupPreUpdate="false"                                          # set this to true if you want to perform a backup before updating
#arkBackupPostCommand='aws s3 cp "$backupfile" "s3://bucket_name/backups"'  # Set this if you want a command to run after performing a backup
#arkStartDelay=20                                                   # set this to change the maximum delay between server starts - 0 or unser for no delay, will continue immediately when server is up
#defaultinstance_max=20                                             # Same as above, for v1.6.43 compatibility
#arkStagingDir="/home/urd/ARK-Staging"                            # Uncomment to enable updates to be fully downloaded before restarting the server (reduces downtime while updating)

# Options to automatically remove old backups to keep backup size in check
# Each compressed backup is generally about 1-2MB in size.
arkMaxBackupSizeMB="500"                                            # Set to automatically remove old backups when size exceeds this limit
#arkMaxBackupSizeGB="2"                                             # Uncomment this and comment the above to specify the limit in whole GB

# Update warning messages
# Modify as desired, putting the %d replacement operator where the number belongs
msgWarnUpdateMinutes="This ARK server will shutdown for an update in %d minutes"
msgWarnUpdateSeconds="This ARK server will shutdown for an update in %d seconds"
msgWarnRestartMinutes="This ARK server will shutdown for a restart in %d minutes"
msgWarnRestartSeconds="This ARK server will shutdown for a restart in %d seconds"
msgWarnShutdownMinutes="This ARK server will shutdown in %d minutes"
msgWarnShutdownSeconds="This ARK server will shutdown in %d seconds"
msgWarnCancelled="Restart cancelled by player request"

#broadcastcmd="serverchat"                                          # Uncomment to use serverchat instead of broadcast

# Notifications
discordWebhookURL="https://discordapp.com/api/webhooks/721863098058801193/72vt3RIvCF4V5H1huF-UHKzmGkeGru4M_OYU7-h-5cW23YmuT0uIqgGbQ1QjIfam9UZL"
notifyMsgShuttingDown="Shutting down"
notifyMsgStarting="Starting... ETA 12 minutes"
notifyMsgServerUp="Server is up"
notifyMsgStoppedListening="Server has stopped listening - restarting"
notifyMsgServerTerminated="Server exited - restarting"
notifyTemplate="Message from instance {instance} on server {server}: {msg}"
# noNotifyWarning=true
# notifyCommand='echo "$msg" | mailx -s "Message from instance ${instance} on server ${HOSTNAME}" "email@domain.com"'

# Restart cancel chat command
#chatCommandRestartCancel="/cancelupdate"

# ARK server common options - use ark_<optionname>=<value>
# comment out these values if you want to define them
# inside your GameUserSettings.ini file
serverMap="TheIsland"                                               # server map (default TheIsland)
#serverMapModId="469987622"                                         # Uncomment this to specify the Map Mod Id (<fileid> in http://steamcommunity.com/sharedfiles/filedetails/?id=<fileid>)
#ark_TotalConversionMod="496735411"                                 # Uncomment this to specify a total-conversion mod
ark_RCONEnabled="True"                                              # Enable RCON Protocol
ark_ServerPassword=""                                               # ARK server password, empty: no password required to login
ark_ServerAdminPassword="x"                        # ARK server admin password, KEEP IT SAFE!
ark_MaxPlayers="70"
ark_GameModIds="2112724006,731604991,539464369,558651608,618916953,679529026,741203089,880871931,1091147617,1404697612,1846109576,1963444664,2053416662,1409757911,783163029,821530042,2024119790,935556994,1991290615,2019355924"                     # Uncomment to specify additional mods by Mod Id separated by commas
#ark_AltSaveDirectoryName="SotF"                                    # Uncomment to specify a different save directory name

# ARK server flags - use arkflag_<optionname>=true
#arkflag_OnlyAdminRejoinAsSpectator=true                            # Uncomment to only allow admins to rejoin as spectator
#arkflag_DisableDeathSpectator=true                                 # Uncomment to disable players from becoming spectators when they die

# ARK server options - i.e. for -optname=val, use arkopt_optname=val
#arkopt_StructureDestructionTag=DestroySwampSnowStructures

# config Service
logdir="/var/log/arktools"                                          # Logs path (default /var/log/arktools)

# steamdb specific
appid=376030                                                        # Linux server App ID
mod_appid=346110                                                    # App ID for mods

# Mod OS Selection
mod_branch=Windows
# Add mod-specific OS selection below:
#mod_branch_496735411=Windows

# alternate configs
# example for config name "ark1":
#configfile_ark1="/path/to/config/file"

defaultinstance="main"                                              # See /etc/arkmanager/instances/main.cfg - Instance config options will overide the Global option in this file.

crystal.cfg

# config environment
arkserverroot="/home/gameservers/TheArk/crystal"                                   # path of your ARK server files (default ~/ARK)

# ARK server options - use ark_<optionname>=<value>
# comment out these values if you want to define them
# inside your GameUserSettings.ini file
serverMap="CrystalIsles"                                               # server map (default TheIsland)
#serverMapModId="469987622"                                         # Uncomment this to specify the Map Mod Id (<fileid> in http://steamcommunity.com/sharedfiles/filedetails/?id=<fileid>)
#ark_TotalConversionMod="496735411"                                 # Uncomment this to specify a total-conversion mod
ark_RCONEnabled="True"                                              # Enable RCON Protocol
ark_RCONPort="32330"                                                # RCON Port
ark_SessionName="Mangoland Crystal Isles"                                  # if your session name needs special characters please use the .ini instead
ark_Port="7779"                                                     # ARK server port (default 7778)
ark_QueryPort="27016"                                               # ARK query port (default 27015)
ark_ServerPassword=""                                               # ARK server password, empty: no password required to login
ark_ServerAdminPassword="x"                               # ARK server admin password, KEEP IT SAFE!
ark_MaxPlayers="70"
#ark_GameModIds="487516323,487516324,487516325"                     # Uncomment to specify additional mods by Mod Id separated by commas
#ark_AltSaveDirectoryName="SotF"                                    # Uncomment to specify a different save directory name

# ARK server flags - use arkflag_<optionname>=true
#arkflag_OnlyAdminRejoinAsSpectator=true                            # Uncomment to only allow admins to rejoin as spectator
#arkflag_DisableDeathSpectator=true                                 # Uncomment to disable players from becoming spectators when they die

# ARK server options - i.e. for -optname=val, use arkopt_optname=val
#arkopt_StructureDestructionTag=DestroySwampSnowStructures

#arkPreStart="/etc/arkmanager/instances/instance.start"              # Set this to override the start script; defaults to config file name with .cfg replaced by .start
klightspeed commented 4 years ago

game.ini should be empty by default.