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

Docker Setup #1254

Closed 1mathart closed 1 year ago

1mathart commented 1 year ago

Hello, i would like to setup an ARK server for pc users (steam & epic games) all running with docker but i always end up with this error "Invalid steamcmd_user in config file".

i made this docker compose with "hermsi/ark-server" image.

version: "3.8"
services:

 ark:
  image: "hermsi/ark-server:latest"
  container_name: "ark"
  network_mode: "host"
  hostname: "ark"
  restart: "always"
  volumes:
    - "/opt/ark:/app"
    - "/opt/ark-backup:/home/steam/ARK-Backups"
  healthcheck:
    disable: true
  environment:
    SESSION_NAME: "X"
    SERVER_MAP: "TheIsland"
    SERVER_PASSWORD: "X
    ADMIN_PASSWORD: "X"
    MAX_PLAYERS: "8"
    UPDATE_ON_START: "false"
    BACKUP_ON_STOP: "false"
    PRE_UPDATE_BACKUP: "true"
    WARN_ON_STOP: "true"
    ENABLE_CROSSPLAY: "true"
    DISABLE_BATTLEYE: "true"
    GAME_CLIENT_PORT: "7777"
    UDP_SOCKET_PORT: "7778"
    RCON_PORT: "27020"
    SERVER_LIST_PORT: "27015"

i don't understand what i'm doing wrong, if someone could help me.

mattague commented 1 year ago

First of all, this is for a different project run by different people, so it might be better to post on their github. Secondly, they do have a warning at the bottom of the readme that might be related to this:

⚠️ Upgrade-Information ⚠️ If you upgrade from an image-version prior to the timestamp 1656497302 you'll have to edit line 15 in arkmanager.cfg. Replace with: steamlogin="${STEAM_LOGIN}"

Idk if this is related to that but if you have had this running at any point it might help to look there. If it is not related to that, it seems that you may need to follow the instructions in their readme for configuring the steam login

klightspeed commented 1 year ago

Invalid steamcmd_user in config file means that you are running as root, and the username in steamcmd_user does not exist in your environment. This suggests that USER is set to root, which suggests that you have the docker container running as root.