HUB
Sign inSign up

jimbit0/aska-dedicated-server

By jimbit0

•Updated 13 days ago

ASKA dedicated server on Linux: Alpine + Wine 11, ntsync, crash reports and save backups

Image
3

2.3K

jimbit0/aska-dedicated-server repository overview

⁠ASKA Dedicated Server (Docker)

DockerAlpineStatus

Run an ASKA dedicated server on Linux. The server binary is Windows-only, so it runs under Alpine's own Wine 11, with ntdll.so patched for the Unity memory runaway. The image sizes Unity's worker threads to your CPU cores, detects crashes, finds your save and can back it up on start, and runs as a non-root user (UID 1000). Its healthcheck turns green only once the game has opened its session.

Image: jimbit0/aska-dedicated-server:experimental (x86-64 only)

⁠Changelog

⁠experimental 0.3.1 (2026-11-22)
  • When a player leaves, the game sometimes logs Disconnected from chat with reason DisconnectByClientLogic. The server still restarts when it sees that line, as it did before, but it no longer reports it as a crash. To turn the restart off, see Crashes and restarts below.
  • Memory and CPU limits are now read correctly in privileged Kubernetes pods. 0.3.0 used the host's values there.
⁠experimental 0.3.0 (2026-11-06)
  • Wine fix for the Unity GC memory runaway (Wine bug 59333⁠)
  • ntsync support: ASKA_NTSYNC_ENABLED (auto or 1)
  • ASKA_MAX_CPU_CORES removed; it never did anything on this tag
  • Wine stdout log renamed from proton_stdout.log to wine_stdout.log
  • Alpine 3.24.4
  • The unstable (Debian + Proton-GE) tag is retired and gets no further builds
⁠experimental 0.2.1 (2026-09-05)
  • Alpine musl-native Wine variant. Why? I'm bored

⁠Quick start

services:
  aska:
    image: jimbit0/aska-dedicated-server:experimental
    container_name: aska-server
    restart: unless-stopped
    stop_grace_period: 90s   # the game gets up to 75 s to exit; Docker's default 10 s kills it first
    mem_limit: 8g
    ports:
      - "27015:27015/udp"
      - "27016:27016/udp"
    environment:
      ASKA_DISPLAY_NAME: "My ASKA Server"
      ASKA_SERVER_NAME: "my-server"
      ASKA_AUTH_TOKEN: "YOUR_TOKEN_HERE"
      ASKA_SAVE_BACKUP: "1"
    volumes:
      - ./aska/server:/home/steam/aska_server
      - ./aska/saves:/aska-saves

With docker run, pass --stop-timeout 90 and --restart unless-stopped. The first boot downloads the server from Steam, so expect several minutes before the container reports healthy.

⁠Requirements

  • Linux x86-64 host, 4+ CPU cores, 8 GB+ RAM, 2 GB+ disk
  • UDP 27015 and 27016 open
  • A Steam Game Server Login Token for App ID 1898300, the base game (manage here⁠)
  • Both volumes writable by UID 1000
  • Optional: kernel 6.14+ with the ntsync module and /dev/ntsync passed in, so Wine uses ntsync

⁠Configuration

VariableDefaultDescription
ASKA_AUTH_TOKENnoneSteam GSLT, required
ASKA_DISPLAY_NAMEASKA ServerName in the server browser
ASKA_SERVER_NAMEaska_defaultInternal server identifier
ASKA_PASSWORD""Join password (empty = open)
ASKA_REGIONdefaultdefault, Asia, EU, US, etc.
ASKA_MODEnormalGame mode
ASKA_MAX_PLAYERS4Concurrent players
ASKA_SEED""World generation seed
ASKA_KEEP_WORLD_ALIVEfalseKeep the world running with no players
ASKA_AUTOSAVE_STYLEevery morningevery morning, frequent, manual
ASKA_SAVE_ID""World to load, see Saves below
ASKA_SAVE_BACKUP / ASKA_KEEP_SAVES0 / 31 = tar.gz backup on start; keep the newest N
ASKA_WORKER_THREADSautoUnity worker threads (auto = cores − 1, minimum 2)
ASKA_NTSYNC_ENABLEDautoauto = ntsync if /dev/ntsync opens; 1 = refuse to start without it
ASKA_SKIP_STEAM_UPDATE01 = skip the game update on start
ASKA_STEAM_VALIDATE01 = validate game files (slower)
ASKA_STEAM_GAME_PORT / ASKA_STEAM_QUERY_PORT27015 / 27016Ports inside the container
TZUTCLog and backup timestamps, e.g. Asia/Kuala_Lumpur

Rarely needed: ASKA_CRASH_PATTERN (see Crashes and restarts below), ASKA_CRASH_LOG_LINES (30), ASKA_ENABLE_PROFILING, ASKA_XVFB_SCREEN, ASKA_PROPERTIES_FILENAME.

⁠Saves

The server loads the first of: ASKA_SAVE_ID, the save id in server.properties.docker.txt, the newest savegame_* folder in /aska-saves, or a new world. A save folder appears only after the first auto-save.

To use an existing save, drop its savegame_* folder into /aska-saves and clear any stale save id in the properties file, or set ASKA_SAVE_ID to the folder suffix (savegame_0fef8_181125131111 becomes 0fef8_181125131111). A Windows server keeps its saves in %USERPROFILE%\AppData\LocalLow\Sand Sailor Studio\Aska\data\server\.

Backups go to /aska-saves/backups/, taken at start before the server launches. A new world has nothing to back up on its first boot.

⁠Memory

jemalloc's page reclaim is tuned from the container's memory limit, or the host's RAM when there is none. It does not govern the footprint: Wine serves most of the game's memory from its own heap. Measured idle, the server holds ~1.5 GB; jemalloc adds ~220 MB, and its reclaim setting moves that by under 5 MB. Size the limit for the world you host.

⁠Logs

docker logs -f aska-server
docker exec aska-server tail -f /home/steam/aska_server/logs/aska_game_output.log

Logs live in /home/steam/aska_server/logs/: aska_game_output.log, wine_stdout.log, and the SteamCMD and Xvfb logs. Each is rotated to <name>.old on start. The container turns healthy once the game logs The session is now open!.

⁠Crashes and restarts

The image watches the game's exit code and its log. When it sees one of these lines, it stops the server and the container exits, so your restart policy can start it again: Fatal error, Segmentation fault, Stack overflow, OutOfMemoryException, Application will be terminated, Crash!!!. Each crash writes crash_<time>.log to the logs folder and prints a summary on the next start.

One more line restarts the server without counting as a crash: Disconnected from chat with reason DisconnectByClientLogic. The game sometimes logs it when the last player leaves. We have not confirmed that the server takes players and chat normally after that line, so the image restarts it. The restart takes about two minutes.

To turn that restart off, set:

ASKA_CRASH_PATTERN: "Crash!!!"

ASKA_CRASH_PATTERN replaces every built-in log rule with the one line you give it, the chat restart included. Crash!!! is Unity's crash banner, so the setting above still catches real crashes, along with the exit code. The other five crash lines are no longer watched.

⁠Common issues
  • Auth token invalid: generate it for App ID 1898300.
  • Permission denied: the volumes must be owned by UID 1000.
  • World lost progress on restart: a stop has not been proven to save. Save in game first.

⁠Tags

TagDescription
experimentalAlpine + Wine 11, the only maintained tag
unstableDebian 13 + Proton-GE, retired 2026-11-06, no further builds

⁠Acknowledgements

MIT. Not affiliated with Sand Sailor Studio or Valve.

Last updated 2026-11-22. Image version: experimental 0.3.1. Maintainer: jimbit.

Tag summary
Recent tags
Content type
Image
Digest
sha256:7f68f996a…
Size
260 MB
Last updated
13 days ago
docker pull jimbit0/aska-dedicated-server:experimental