Troubleshooting¶
Common issues and how to fix them.
Start with docker compose exec hytale hytale-cli doctor for read-only checks.
For a shareable JSON report, use hytale-cli report. See diagnostics
for coverage, privacy, exit codes and optional network checks.
Warning
This is the most common issue. If players can't connect, check this first.
Server authentication error: "Server authentication unavailable"¶
Symptom: Players cannot connect; you see this in server logs:
[SEVERE] [HandshakeHandler] Server session token not available - cannot request auth grant
[INFO] [Hytale] Disconnecting ... with the message: Server authentication unavailable - please try again later
Cause: The server is not authenticated. In HYTALE_AUTH_MODE=authenticated (the default), the server must complete a device-code login after startup before players can connect.
Fix:
For a fresh server, first check the logs for the automatically started device login. To start a new login with encrypted persistence:
If several profiles are offered, use hytale-cli auth select <name-or-number>. For manual console access:
- Attach to the server console:
- Run:
-
Follow the URL + device code shown in the console.
-
If multiple profiles are shown, pick one:
- Check status:
Detach without stopping the server:
- Press
Ctrl-pthenCtrl-q
Downloader authentication (first-time setup)¶
Symptom: Container logs show a URL + device code on first run.
Cause: The official Hytale Downloader uses OAuth device-code flow to authenticate before downloading server files.
Fix: Open the URL in your browser and enter the device code shown in the logs. After completion, the download will proceed.
Watch logs during first-time auth:
Note
ARM64 images include emulation for the official downloader. Java and the game server remain native; no platform: linux/amd64 override is needed.
Expired downloader login (invalid_grant)¶
If auto-download stops with oauth2: "invalid_grant", the saved downloader login
has expired or been revoked. This happens before the game server starts, so changing
HYTALE_SESSION_TOKEN_BROKER_TIMEOUT_SECONDS does not help.
For Docker Compose, sign in once using a temporary container:
docker compose stop hytale
docker compose run --rm --no-deps \
-e HYTALE_AUTO_DOWNLOAD=true \
-e HYTALE_AUTO_UPDATE=true \
-e HYTALE_DOWNLOADER_RESET_CREDENTIALS=true \
--entrypoint /usr/local/bin/hytale-auto-download hytale
docker compose up -d hytale
Follow the device-login URL in the temporary container's output. The regular
container then reuses the new login. Worlds, configuration and server authentication
are preserved. Keep the same volumes and platform as the regular service.
If HYTALE_DOWNLOADER_CREDENTIALS_SRC is set, obtain a fresh downloader login and
replace that mounted file instead. Otherwise the old login would be copied back on
every start. Resetting and seeding credentials together is rejected.
On other platforms, set HYTALE_DOWNLOADER_RESET_CREDENTIALS=true for one startup,
follow the login in the logs, then remove the setting before restarting again.
Session Token Broker enabled, but no broker logs¶
Symptom: HYTALE_SESSION_TOKEN_BROKER_ENABLED=true is set, but startup logs show no broker activity.
Cause: The broker step runs later in startup. If an earlier phase fails or blocks, broker logs will not appear yet. Common examples:
- Auto-download/update is still waiting on first-time downloader device auth.
- Auto-download failed before startup reached the broker step.
- Both
HYTALE_SERVER_SESSION_TOKENandHYTALE_SERVER_IDENTITY_TOKENare already set (broker is skipped by design).
Fix:
- Check full container logs from startup (
docker compose logs -f hytale), not only interactive attach output. - For non-interactive startup, either:
- seed
/data/.hytale-downloader-credentials.jsonviaHYTALE_DOWNLOADER_CREDENTIALS_SRC, or - pre-provision
/data/Assets.zipand/data/server/HytaleServer.jarand setHYTALE_AUTO_DOWNLOAD=false.
- seed
Auto-download on ARM64 (Apple Silicon)¶
Current ARM64 images run the official x86-64 downloader through a bundled emulator. Java and the game server run natively. No privileged mode or host emulation setup is required.
If you see the old error Auto-download is not supported on arm64, update the
image and recreate the container:
Remove any platform: linux/amd64 override from your Compose service to use the
native ARM64 image. Keep the existing /data volume so downloaded files, worlds
and credentials are preserved. Follow any downloader login prompt in the logs.
Manual provisioning remains available: server-files.md.
Permission denied errors on /data¶
Symptom:
Cause: The container runs as uid=1000 (non-root) by default. If the host directory mounted to /data is owned by a different user, the container cannot write to it.
Fix: Make the host directory writable for uid 1000:
Or, if you want to use a different uid, run the container with a matching user:
Warning
Avoid running as root (user: "0:0") in production.
Read-only root filesystem¶
Symptom: When running with a read-only root filesystem (e.g., Kubernetes with readOnlyRootFilesystem: true):
WARNING: Could not write to /etc/machine-id (read-only filesystem?)
WARNING: The Hytale server may fail with 'Failed to get Hardware UUID'.
Cause: The container needs to write a machine-id to /etc/machine-id. The Hytale server reads this file for hardware identification.
Fix (Kubernetes): Disable read-only root filesystem:
The machine-id is persisted to /data/.machine-id for stability across restarts.
Fix (Docker Compose): Mount /tmp as tmpfs if needed:
Container exits immediately with "Missing server jar" or "Missing assets"¶
Symptom: Container exits with clear error messages about missing files.
Cause: The server files and Assets.zip are not present in /data.
Fix:
- Set
HYTALE_AUTO_DOWNLOAD=trueto let the container download them automatically. - Or provision files manually:
server-files.md
Tip
AOT errors are usually harmless with ENABLE_AOT=auto (default). The server will continue without AOT.
AOT cache errors on startup¶
Symptom: Java errors mentioning AOT cache incompatibility or "modules size has changed".
Cause: The AOT cache was generated for a different Java version or architecture.
Fix:
- Delete the existing cache (
./data/server/HytaleServer.aot) and regenerate it, or - Set
ENABLE_AOT=falseto disable AOT.
See: configuration.md
High CPU usage from garbage collection¶
Symptom: Server uses a lot of CPU even with few players; GC logs show frequent collections.
Cause: The JVM heap is too small for the workload.
Fix: Increase JVM_XMX:
Monitor and experiment with different values.
See: configuration.md
CurseForge mods: HTTP 403 when resolving download URL¶
Symptom: You see a warning like:
WARNING: failed to install mod <modId>: failed to resolve download URL (CurseForge API returned HTTP 403 ...)
Cause: CurseForge returned HTTP 403 for the download-url endpoint. This often means the mod author has disabled third-party/API downloads for the project.
Fix:
- Remove the mod from
HYTALE_CURSEFORGE_MODS. - If the mod is essential, ask the author to enable API downloads or install the mod manually.
Debug: Set HYTALE_CURSEFORGE_DEBUG=true to print additional diagnostics on API failures.