arkmanager / ark-server-tools

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

Server won't run anymore after power outage #1151

Closed bjornhollander closed 3 years ago

bjornhollander commented 3 years ago

Hello, we recently had an power outage when we had a private ARK server running on a Linux server. However after powering up the server again, I can't seem to get the ARK server online again. When executing arkmanager status I get the following status:

Running command 'status' for instance 'theisland' Server running: No Server listening: Yes Server Name: Ark Server - (v312.65) Players: 0 / 10 Active Players: 0 Server online: Yes ARKServers link: http://arkservers.net/server/[MY-IP]:27015 Steam connect link: steam://connect/[MY-IP]:27015 Server build ID: 5653551 Server version: 314.3

When executing arkmanager start @theisland the server won't start and the log wil say:

2020-10-08 17:40:50: [theisland] 2020-10-08 17:40:50: start 2020-10-08 17:40:50: [theisland] 2020-10-08 17:40:50: Running /home/steam/TheIsland/ShooterGame/Binaries/Linux/ShooterGameServer TheIsland\?RCONEnabled=True\?RCONPort=32330\?SessionName=Ark\ Server\?Port=7778\?QueryPort=27015\?ServerPassword=[PASSWORD]\?ServerAdminPassword=[PASSWORD]\?MaxPlayers=10\?listen 2020-10-08 17:40:50: [theisland] 2020-10-08 17:40:50: Server PID: 3828160 2020-10-08 17:40:51: [theisland] [S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed. 2020-10-08 17:40:55: [theisland] /usr/local/bin/arkmanager: line 1189: 3828160 Aborted (core dumped) "$arkserverroot/$arkserverexec" "$arkserveropts" "${arkextraopts[@]}" 2020-10-08 17:40:55: [theisland] 2020-10-08 17:40:55: Bad PID ''; expected '3828160' 2020-10-08 17:40:55: [theisland] 2020-10-08 17:40:55: exited with status 0

I can't seem to find what is causing the weird server status (running: no, online: yes) and how to solve this. Any suggestions?

klightspeed commented 3 years ago

This suggests that the arkmanager service has automatically started the server, potentially from a different directory to that expected.

Assuming you're on Ubuntu, you should be able to stop the service using sudo systemctl stop arkmanager, and disable it using sudo systemctl disable arkmanager

bjornhollander commented 3 years ago

Never considered this simple solution... But it worked like a charm! Thank! 😄🥳