Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RCON/Status not working #849

Closed
talktojer opened this issue Sep 8, 2017 · 13 comments
Closed

RCON/Status not working #849

talktojer opened this issue Sep 8, 2017 · 13 comments
Labels
Time Out Issue closed due to inactivity

Comments

@talktojer
Copy link

When I try any RCON commands I get the following error:
arkmanager saveworld
Running command 'saveworld' for instance 'main'
Error connecting to server: Connection refused at -e line 33.

I have checked permissions, I have verified RCON is listening and fuctioning correctly. I put the correct info into the configs as best as I can tell.

I also get this while the server is running, and suspect it;s related:
Again, in this case I have verified the server is running correctly, and can log in.
arkmanager status
Running command 'status' for instance 'main'
Server running: No
Server listening: No
Server build ID: 2098725

netstat -antup | grep 'ShooterGameS'
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 10.0.0.2:37030 0.0.0.0:* LISTEN 9512/ShooterGameSer
udp 0 0 10.0.0.2:37025 0.0.0.0:* 9512/ShooterGameSer
udp 0 0 0.0.0.0:39852 0.0.0.0:* 9512/ShooterGameSer
udp 0 0 10.0.0.2:8778 0.0.0.0:* 9512/ShooterGameSer
udp 0 0 10.00.2:51084 0.0.0.0:* 9512/ShooterGameSer

@klightspeed
Copy link
Collaborator

That looks like it has bound to IP address 10.0.0.2 rather than binding to all interfaces (0.0.0.0)

Is 37030 your RCON port?

@talktojer
Copy link
Author

I obfuscated the IP a little, but yes its binding to the internal IP. 37030 is my RCON.

@klightspeed
Copy link
Collaborator

Do you have MultiHome set in your GameUserSettings.ini?

@talktojer
Copy link
Author

I have tried with, and without. No difference.

@talktojer
Copy link
Author

Any ideas of what I might try next?

@klightspeed
Copy link
Collaborator

What are the contents of the arkserver.log file (with any sensitive data masked out), from the last start line to the end?

@IceScriptX
Copy link

IceScriptX commented Sep 17, 2017

Joining from another Thread, because i got same Problem -->

These are my files:

arkserver.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="/home/steam"                                 # path of your steamcmd instance
steamcmdexec="steamcmd.sh"                                          # name of steamcmd executable
steamcmd_user="steam"                                               # name of the system user who own steamcmd folder
steamcmd_appinfocache="/home/steam/Steam/appcache/appinfo.vdf"      # cache of the appinfo command
steamcmd_workshoplog="/home/steam/Steam/logs/workshop_log.txt"      # Steam workshop log
steamworkshopdir="/home/steam/Steam/steamapps/workshop"
steamlogin="anonymous"                                             # Uncomment this to specify steam login instead of using ano$

# config environment
arkserverexec="ShooterGame/Binaries/Linux/ShooterGameServer"        # name of ARK server executable
arkbackupdir="/home/steam/arkserver/ARK-Backups"                              # path to backup directory
arkwarnminutes="10"                                                 # number of minutes to warn players when using update --warn
arkautorestartfile="/home/steam/arkserver/ShooterGame/Saved/.autorestart"                 # path to autorestart file
arkAutoUpdateOnStart="true"                                        # set this to true if you want to always update before start$
arkBackupPreUpdate="true"                                          # set this to true if you want to perform a backup before up$
#arkStagingDir="/home/steam/arkserver/ARK-Staging"                            # Uncomment to enable updates to be fully downloa$

# 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 exceed$
arkMaxBackupSizeGB="5"                                             # Uncomment this and comment the above to specify the limit $

# 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"

# 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="Ragnarok"                                               # server map (default TheIsland)
#serverMapModId="469987622"                                         # Uncomment this to specify the Map Mod Id (<fileid> in htt$
#ark_TotalConversionMod="111111111"                                 # 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="XXXXX"                               # ARK server admin password, KEEP IT SAFE!
#ark_MaxPlayers="70"
##ark_GameModIds="487516323,487516324,487516325"                     # Uncomment to specify additional mods by Mod Id separated$
#ark_AltSaveDirectoryName="Ark-Saves"                                    # Uncomment to specify a different save directory name
#ark_Port="7778"                                                     # ARK serve$
#ark_QueryPort="27015"                                               # ARK query$


# 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 whe$

# 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="blueark"

arkserver.log

2017-09-17 07:49:18: [blueark] 2017-09-17 07:49:18: start
2017-09-17 07:49:18: [blueark] 2017-09-17 07:49:18: Running /home/steam/arkserver/ShooterGame/Binaries/Linux/ShooterGameServer Ragnarok\?RCONEnabled=True\?RCONPort=32330\?Port=7777\?QueryPort=27015\?ServerPassword\?ServerAdminPassword=XXXX\?MaxPlayers=70\?GameModIds=642284892\,788511607\,898152179\,742077869\,954306979\,764241499\,604784090\,520953653\,727103191\,731604991\,947524058\,655261420\,558079412\,942185438\,540150483\,764755314\,893834064\,1091147617\,670764308\,702828089\,902548451\,880871931\,926567353\,538827119\,880887081\?AltSaveDirectoryName=Ark-Saves\?listen -nosteamclient -lowmemory -nosound -server -log -UseBattlEye -multihome=85.214.228.1 -culture=de
2017-09-17 07:49:18: [blueark] 2017-09-17 07:49:18: Server PID: 15219
2017-09-17 07:49:19: [blueark] [S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
2017-09-17 07:49:19: [blueark] Setting breakpad minidump AppID = 346110
2017-09-17 08:00:42: [blueark] Using binned.
2017-09-17 08:00:42: [blueark] 4.5.1-0+UE4 7038 3077 402 7
2017-09-17 08:00:42: [blueark] CtrlCHandler: Signal=2
2017-09-17 08:00:47: [blueark] /usr/local/bin/arkmanager: Zeile 1028: 15219 Abgebrochen             "$arkserverroot/$arkserverexec" "$arkserveropts" "${arkextraopts[@]}"

AND


[root@h2725656 ~]# netstat -antup | grep 'ShooterGameS'
tcp        0      0 85.214.228.1:32330      0.0.0.0:*               LISTEN                                                                                  



[steam@h2725656 root]$ arkmanager status @blueark
Running command 'status' for instance 'blueark'
 Server running:   Yes
 Server PID:   15560
 Server listening:   No
 Server build ID:   2120726
[steam@h2725656 root]$

@IceScriptX
Copy link

IceScriptX commented Sep 17, 2017

My Root Server got 2 IP adresses, and the ARK server is running on one of them, that's why i got multihome set up in blueark.cfg


# ARK server options - i.e. for -optname=val, use arkopt_optname=val
#arkopt_StructureD.estructionTag=DestroySwampSnowStructures
arkopt_multihome=85.214.228.1
arkopt_culture=de


Is this the problem? Does Arkmanager send the command to the wrong ip?
But other commands are working (start, stop),...xD
AND the RCON is working (can connect via external program)

And if yes, where can i say to arkmanager that he needs to use the specific ip?

@klightspeed
Copy link
Collaborator

arkmanager expects the MultiHome option to be set in ark_MultiHome (case sensitive).

@IceScriptX
Copy link

Testting it right now on my Testserver,... i will update you.. but i think this is the fix xD

@IceScriptX
Copy link

IceScriptX commented Sep 17, 2017

its working:

fixes:
ark_MultiHome="85.214.228.1"

[steam@h2725656 sinusbot]$ arkmanager start @blueark2
Running command 'start' for instance 'blueark2'
Checking for updates before starting
Checking for update; PID: 31086
Your server is already up to date! The most recent version is 2120726.
The server is starting...
The server is now running, and should be up within 10 minutes
[steam@h2725656 sinusbot]$ arkmanager status @blueark2
Running command 'status' for instance 'blueark2'
 Server running:   Yes
 Server PID:   31506
 Server listening:   Yes
Server Name: ![DE]Blue-Voice.eu Prim+S+ TESTSERVER - (v269.0)
Players: 0 / 10
Active Players: 0
 Server online:   Yes
 ARKServers link:   http://arkservers.net/server/85.214.228.1:27016
 Server build ID:   2120726
[steam@h2725656 sinusbot]$ arkmanager stop --warn @blueark2
Running command 'stop' for instance 'blueark2'
This ARK server will shutdown in 10 minutes
Command processed
There are 1 players connected
There are 1 players connected
There are 1 players connected
There are 1 players connected
There are 1 players connected
This ARK server will shutdown in 5 minutes
Command processed
There are 1 players connected
This ARK server will shutdown in 4 minutes
Command processed
There are 1 players connected
This ARK server will shutdown in 3 minutes
Command processed
There are 1 players connected
This ARK server will shutdown in 120 seconds
Command processed
There are 1 players connected
This ARK server will shutdown in 90 seconds
Command processed
There are 1 players connected
This ARK server will shutdown in 60 seconds
Command processed
There are 1 players connected
This ARK server will shutdown in 45 seconds
Command processed
There are 1 players connected
This ARK server will shutdown in 30 seconds
Command processed
There are 1 players connected
This ARK server will shutdown in 20 seconds
Command processed
There are 1 players connected
This ARK server will shutdown in 15 seconds
Command processed
This ARK server will shutdown in 10 seconds
Command processed
This ARK server will shutdown in 5 seconds
Command processed
Stopping server; reason: shutdown
The server has been stopped
[steam@h2725656 sinusbot]$

btw if i want to set messages do i only need to add this in cfg:

msgReasonUpdateApp
msgReasonUpdateMod
msgReasonUpdateAppMod
msgReasonRestart
msgReasonShutdown

like this:

msgReasonUpdateApp="Updating ARK"
msgReasonUpdateMod="Updating Mod: {modnamesupdated}"
msgReasonUpdateAppMod="Updating Mod: {modnamesupdated}"
msgReasonRestart="Restarting"
msgReasonShutdown="Shutdown - Coming soon."

@IceScriptX
Copy link

nvm found information in #766 ;)

@IceScriptX
Copy link

Thank you soooo much! You are awesome!!!!

@Alphakilo Alphakilo added the Time Out Issue closed due to inactivity label Aug 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Time Out Issue closed due to inactivity
Projects
None yet
Development

No branches or pull requests

4 participants