itzg / itzg/docker-minecraft-bedrock-server
Server crashed when startup with crash report "at __clone (UnknownFile:?)"
- Dominant language
- Shell
- Stars
- 1.9k
- Forks
- 302
- Avg merge
- 2h 26m
- Merged PRs (30d)
- 2
Description
- docker-compose.yml
```yaml
# version: "3.5"
services:
minecraft:
container_name: minecraft
image: itzg/minecraft-bedrock-server
environment:
EULA: "TRUE"
GAMEMODE: creative
SERVER_NAME: Your Server Name
ports:
- 19132:19132/udp
# - 39133:39133/udp
volumes:
- ./minecraft:/data
- /var/run/docker.sock:/var/run/docker.sock
labels:
minecraft_bedrock_server: "true"
stdin_open: true
tty: true
sysctls:
net.ipv4.ip_local_port_range: 39132 39133
bds_bridge:
container_name: bds_bridge
image: macchie/minecraft-bedrock-server-bridge
environment:
- TELEGRAM_BOT_TOKEN=12345
- TELEGRAM_BOT_ADMINS=username1,username2
volumes:
- /var/run/docker.sock:/var/run/docker.sock
# backup:
# container_name: backup
# image: kaiede/minecraft-bedrock-backup
# restart: always
# depends_on:
# # Make sure the minecraft service starts before the backup
# minecraft:
# condition: service_healthy
# volumes:
# # Map your backups folder into /backups
# - ./backups:/backups
# # Map the data folders for the server
# - ./minecraft:/minecraft
# # (Optional) Map a configuration folder separately from the backups.
# - ./backup-config:/config
websocket:
container_name: websocket
image: joanroig/admincraft-websocket:latest
restart: always
depends_on:
# Make sure the minecraft service starts before the websockets service
minecraft:
condition: service_healthy
ports:
- 8080:8080
volumes:
- /var/run/docker.sock:/var/run/docker.sock # Mount Docker socket
- ./certs:/usr/src/app/certs:ro
environment:
SECRET_KEY: test
USE_SSL: "false" # Change to "false" to disable SSL
```
- logs(container: minecraft)
```fish
mooling@mooling-cos ~/临/temp> sudo docker-compose up -d (base)
[+] Running 2/2
✔ Container bds_bridge Running 0.0s
✘ Container minecraft Error 37.1s
dependency failed to start: container minecraft exited (1)
mooling@mooling-cos ~/临/temp [1]> sudo docker logs minecraft (base)
DEBU[0000] Using /data to match uid and gid
DEBU[0000] Resolved UID=1000 from match path
DEBU[0000] Resolved GID=1000 from match path
Looking up latest version...
Starting Bedrock server...
NO LOG FILE! - setting up server logging...
[2025-04-17 04:55:15:620 INFO] Starting Server
[2025-04-17 04:55:15:620 INFO] Version: 1.21.73.01
[2025-04-17 04:55:15:620 INFO] Session ID: 48150963-8d4c-411d-be7a-fab1be3f317b
[2025-04-17 04:55:15:620 INFO] Build ID: 32470935
[2025-04-17 04:55:15:620 INFO] Branch: r/21_u7
[2025-04-17 04:55:15:620 INFO] Commit ID: 0f9f415bba796108c0ba6af89026a8479f220d0f
[2025-04-17 04:55:15:621 INFO] Configuration: Publish
[2025-04-17 04:55:15:621 INFO] Level Name: Bedrock level
[2025-04-17 04:55:15:621 INFO] No CDN config file found for dedicated server
[2025-04-17 04:55:15:621 INFO] Game mode: 1 Creative
[2025-04-17 04:55:15:621 INFO] Difficulty: 1 EASY
[2025-04-17 04:55:15:622 INFO] Content logging to console is enabled.
[2025-04-17 04:55:15:920 INFO] Opening level 'worlds/Bedrock level/db'
[2025-04-17 04:55:15:926 INFO] [SERVER] Pack Stack - None
[2025-04-17 04:55:16:432 INFO] IPv4 supported, port: 19132: Used for gameplay and LAN discovery
[2025-04-17 04:55:16:432 INFO] IPv6 supported, port: 19133: Used for gameplay
[2025-04-17 04:55:16:451 INFO] Server started.
[2025-04-17 04:55:16:451 INFO] ================ TELEMETRY MESSAGE ===================
[2025-04-17 04:55:16:451 INFO] Server Telemetry is currently not enabled.
[2025-04-17 04:55:16:451 INFO] Enabling this telemetry helps us improve the game.
[2025-04-17 04:55:16:451 INFO]
[2025-04-17 04:55:16:451 INFO] To enable this feature, add the line 'emit-server-telemetry=true'
[2025-04-17 04:55:16:451 INFO] to the server.properties file in the handheld/src-server directory
[2025-04-17 04:55:16:451 INFO] ======================================================
[2025-04-17 04:55:16:480 INFO] Package: com.mojang.minecraft.dedicatedserver
Version: 1.21.73.01
OS: Linux
Server start: 2025-04-17 04:55:15 UTC
Dmp timestamp: 2025-04-17 04:55:16 UTC
Upload Date: 2025-04-17 04:55:16 UTC
Session ID: 48150963-8d4c-411d-be7a-fab1be3f317b
Commit hash: 0f9f415bba796108c0ba6af89026a8479f220d0f
Build id: 32470935
CrashReporter Key: b9c251b6-74ea-39b8-a3f0-bebd277b48e4
Crash
[2025-04-17 04:55:16:480 INFO] at __clone (UnknownFile:?)
ac97e495-5de1-4d73-860e-de1969bb2af52025-04-17T04:55:19.018Z WARN mc-server-runner Minecraft server failed. Inspect logs above for errors that indicate cause. DO NOT report this line as an error. {"exitCode": 1}
2025-04-17T04:55:19.020Z INFO mc-server-runner Done
DEBU[0000] Using /data to match uid and gid
DEBU[0000] Resolved UID=1000 from match path
DEBU[0000] Resolved GID=1000 from match path
Looking up latest version...
Downloading Bedrock server version 1.21.73.01 ...
2025/04/17 04:57:57 Setting server-name to Your Server Name in server.properties
2025/04/17 04:57:57 Setting gamemode to creative in server.properties
Starting Bedrock server...
NO LOG FILE! - setting up server logging...
[2025-04-17 04:57:57:168 INFO] Starting Server
[2025-04-17 04:57:57:168 INFO] Version: 1.21.73.01
[2025-04-17 04:57:57:168 INFO] Session ID: 210c2739-5099-46bd-bcd1-8d50818e0d7c
[2025-04-17 04:57:57:168 INFO] Build ID: 32470935
[2025-04-17 04:57:57:168 INFO] Branch: r/21_u7
[2025-04-17 04:57:57:168 INFO] Commit ID: 0f9f415bba796108c0ba6af89026a8479f220d0f
[2025-04-17 04:57:57:168 INFO] Configuration: Publish
[2025-04-17 04:57:57:168 INFO] Level Name: Bedrock level
[2025-04-17 04:57:57:169 INFO] No CDN config file found for dedicated server
[2025-04-17 04:57:57:169 INFO] Game mode: 1 Creative
[2025-04-17 04:57:57:169 INFO] Difficulty: 1 EASY
[2025-04-17 04:57:57:170 INFO] Content logging to console is enabled.
[2025-04-17 04:57:57:454 INFO] Opening level 'worlds/Bedrock level/db'
[2025-04-17 04:57:57:460 INFO] [SERVER] Pack Stack - None
[2025-04-17 04:57:57:912 INFO] IPv4 supported, port: 19132: Used for gameplay and LAN discovery
[2025-04-17 04:57:57:912 INFO] IPv6 supported, port: 19133: Used for gameplay
[2025-04-17 04:57:57:932 INFO] Server started.
[2025-04-17 04:57:57:932 INFO] ================ TELEMETRY MESSAGE ===================
[2025-04-17 04:57:57:932 INFO] Server Telemetry is currently not enabled.
[2025-04-17 04:57:57:932 INFO] Enabling this telemetry helps us improve the game.
[2025-04-17 04:57:57:932 INFO]
[2025-04-17 04:57:57:932 INFO] To enable this feature, add the line 'emit-server-telemetry=true'
[2025-04-17 04:57:57:932 INFO] to the server.properties file in the handheld/src-server directory
[2025-04-17 04:57:57:932 INFO] ======================================================
[2025-04-17 04:57:57:960 INFO] Package: com.mojang.minecraft.dedicatedserver
Version: 1.21.73.01
OS: Linux
Server start: 2025-04-17 04:57:57 UTC
Dmp timestamp: 2025-04-17 04:57:57 UTC
Upload Date: 2025-04-17 04:57:57 UTC
Session ID: 210c2739-5099-46bd-bcd1-8d50818e0d7c
Commit hash: 0f9f415bba796108c0ba6af89026a8479f220d0f
Build id: 32470935
CrashReporter Key: 8c4937c1-64cb-3532-a8dc-1deb28f67293
Crash
[2025-04-17 04:57:57:960 INFO] at __clone (UnknownFile:?)
bd8e8ecd-57a3-40c6-a942-47f3fefb1e2b2025-04-17T04:58:00.745Z WARN mc-server-runner Minecraft server failed. Inspect logs above for errors that indicate cause. DO NOT report this line as an error. {"exitCode": 1}
2025-04-17T04:58:00.746Z INFO mc-server-runner Done
```
- Oprating system
`Arch Linux (rolling) x86_64 with kernel Linux 6.14.2-arch1-1`
Contributor guide
Research direction
Start with docker-compose.yml and reproduce the failure using the provided minecraft service configuration. Inspect the minecraft container logs alongside the Arch Linux 6.14.2 environment to determine whether the crash is caused by the image, configuration, or Bedrock server. Done means identifying a reproducible cause and a confirmed configuration or image-level resolution.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, docker-compose
- Domain
- infrastructure
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100