docker-minecraft-server
docker-minecraft-server copied to clipboard
Structure File (NBT) not found after running /structure save in container
Describe the problem
Hi all, I'm working on a project to evaluate LLM performance using Minecraft. While trying to export the saved structure, no matter how hard I try, I cannot seem to find the file within the docker container. I was wondering if someone here could help me out. Is this an issue with permissions or am I missing something else?
when trying to load the file, with filename, within the container itself using /structure load however, it seems to work
https://github.com/mc-bench/orchestrator (repo in question)
thank you!
Container definition
services:
mc:
image: itzg/minecraft-server:latest
container_name: mc-llm-{llm_id}
ports:
- "{port}:25565"
- "{rcon_port}:25575"
environment:
EULA: "TRUE"
VERSION: "1.20.4"
TYPE: "PAPER"
DIFFICULTY: "peaceful"
VIEW_DISTANCE: "10"
MODE: "creative"
LEVEL_TYPE: "flat"
GENERATE_STRUCTURES: "false"
SPAWN_PROTECTION: "0"
MAX_PLAYERS: "20"
ENABLE_COMMAND_BLOCK: "true"
SPAWN_MONSTERS: "false"
SPAWN_ANIMALS: "false"
SPAWN_NPCS: "false"
ALLOW_NETHER: "false"
MOTD: "Development Test Server"
OVERRIDE_SERVER_PROPERTIES: "true"
TZ: "UTC"
ENABLE_ROLLING_LOGS: "false"
EXEC_DIRECTLY: "true"
ALLOW_FLIGHT: "true"
ONLINE_MODE: "false"
MAX_WORLD_SIZE: "1000"
INIT_MEMORY: "1G"
MAX_MEMORY: "2G"
ENABLE_RCON: "true"
RCON_PASSWORD: "{rcon_password}"
RCON_PORT: "25575"
FORCE_GAMEMODE: "true"
PLAYER_IDLE_TIMEOUT: "0"
ALLOW_CHEATS: "true"
DEFAULT_TIME: "6000"
TIME_LOCK: "6000"
EXISTING_OPS_FILE: "SYNCHRONIZE"
PAPER_SPIGOT_YAML: |
settings:
spam-limiter:
tab-spam-increment: 0
tab-spam-limit: 999999
limit-player-interactions: false
use-display-name-in-quit-message: false
unsupported-settings:
allow-permanent-block-break-exploits: true
allow-piston-duplication: true
perform-username-validation: false
messages:
kick:
authentication-servers-down: false
connection-throttle: false
flying-player: false
flying-vehicle: false
players:
disable-spam-limiter: true
config-version: 12
world-settings:
default:
tick-rates:
mob-spawner: 1
game-mechanics:
disable-player-interaction-limiter: true
misc:
disable-player-interaction-limiter: true
packet-limiter:
kick-threshold: 999999
incoming-packet-threshold: 999999
max-packet-rate: 999999
interval: 10.0
packet-limiting:
all-packets:
action: IGNORE
max-packet-rate: 999999
interval: 10.0
network-compression-threshold: -1
network-compression-threshold: -1
player-auto-save-rate: -1
max-player-auto-save-per-tick: -1
SPIGOT_YAML: |
settings:
timeout-time: 3600000
restart-on-crash: false
spam-exclusions:
- /
connection-throttle: -1
netty-threads: 8
commands:
spam-exclusions:
- /
silent-commandblock-console: true
log: false
players:
disable-spam-limiter: true
world-settings:
default:
mob-spawn-range: 0
BUKKIT_YAML: |
settings:
connection-throttle: -1
spam-exclusions:
- /
timeout-time: 3600000
volumes:
- ./data:/data
- ./ops.json:/data/ops.json
tty: true
stdin_open: true
restart: unless-stopped
healthcheck:
test: mc-health
interval: 30s
timeout: 5s
retries: 3
start_period: 1m
Container logs
[14:41:01] [ServerMain/INFO]: Environment: Environment[sessionHost=https://sessionserver.mojang.com, servicesHost=https://api.minecraftservices.com, name=PROD]
[14:41:02] [ServerMain/INFO]: Loaded 1174 recipes
[14:41:02] [ServerMain/INFO]: Loaded 1271 advancements
[14:41:02] [Server thread/INFO]: Starting minecraft server version 1.20.4
[14:41:02] [Server thread/INFO]: Loading properties
[14:41:02] [Server thread/INFO]: This server is running Paper version git-Paper-499 (MC: 1.20.4) (Implementing API version 1.20.4-R0.1-SNAPSHOT) (Git: 9de3f75 on ver/1.20.4)
[14:41:02] [Server thread/INFO]: Server Ping Player Sample Count: 12
[14:41:02] [Server thread/INFO]: Using 4 threads for Netty based IO
[14:41:03] [Server thread/WARN]: [!] The timings profiler has been enabled but has been scheduled for removal from Paper in the future.
We recommend installing the spark profiler as a replacement: https://spark.lucko.me/
For more information please visit: https://github.com/PaperMC/Paper/issues/8948
[14:41:03] [Server thread/INFO]: [ChunkTaskScheduler] Chunk system is using 1 I/O threads, 2 worker threads, and gen parallelism of 2 threads
[14:41:03] [Server thread/INFO]: Default game type: CREATIVE
[14:41:03] [Server thread/INFO]: Generating keypair
[14:41:03] [Server thread/INFO]: Starting Minecraft server on *:25565
[14:41:03] [Server thread/INFO]: Using epoll channel type
[14:41:03] [Server thread/INFO]: Paper: Using libdeflate (Linux aarch64) compression from Velocity.
[14:41:03] [Server thread/INFO]: Paper: Using OpenSSL (Linux aarch64) cipher from Velocity.
[14:41:03] [Server thread/INFO]: Server permissions file permissions.yml is empty, ignoring it
[14:41:03] [Server thread/WARN]: **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
[14:41:03] [Server thread/WARN]: The server will make no attempt to authenticate usernames. Beware.
[14:41:03] [Server thread/WARN]: While this makes the game possible to play without internet access, it also opens up the ability for hackers to connect with any username they choose.
[14:41:03] [Server thread/WARN]: To change this, set "online-mode" to "true" in the server.properties file.
[14:41:03] [Server thread/INFO]: Preparing level "world"
[14:41:03] [Server thread/INFO]: Preparing start region for dimension minecraft:overworld
[14:41:03] [Server thread/INFO]: Time elapsed: 120 ms
[14:41:03] [Server thread/INFO]: Preparing start region for dimension minecraft:the_end
[14:41:03] [Server thread/INFO]: Time elapsed: 47 ms
[14:41:03] [Server thread/INFO]: Starting remote control listener
[14:41:03] [Server thread/INFO]: Thread RCON Listener started
[14:41:03] [Server thread/INFO]: RCON running on 0.0.0.0:25575
[14:41:03] [Server thread/INFO]: Running delayed init tasks
[14:41:03] [Server thread/INFO]: Done (1.234s)! For help, type "help"
[14:41:03] [Server thread/INFO]: Timings Reset
[14:41:40] [RCON Listener #1/INFO]: Thread RCON Client /192.168.158.1 started
[14:41:40] [RCON Client /192.168.158.1 #2/INFO]: Thread RCON Client /192.168.158.1 shutting down
[14:41:40] [RCON Listener #1/INFO]: Thread RCON Client /192.168.158.1 started
[14:41:40] [RCON Client /192.168.158.1 #3/INFO]: Thread RCON Client /192.168.158.1 shutting down
[14:41:40] [RCON Listener #1/INFO]: Thread RCON Client /192.168.158.1 started
[14:41:40] [Server thread/INFO]: [Rcon: Successfully filled 201 block(s)]
[14:41:40] [Server thread/INFO]: [Rcon: Successfully filled 101 block(s)]
[14:41:40] [Server thread/INFO]: [Rcon: Successfully filled 100 block(s)]
[14:41:41] [Server thread/INFO]: [Rcon: Set the time to 1000]
[14:41:41] [Server thread/INFO]: [Rcon: Set the weather to clear]
[14:41:41] [Server thread/INFO]: [Rcon: Gamerule doWeatherCycle is now set to: false]
[14:41:41] [Server thread/INFO]: [Rcon: Gamerule doDaylightCycle is now set to: false]
[14:41:41] [RCON Client /192.168.158.1 #4/INFO]: Thread RCON Client /192.168.158.1 shutting down
[14:42:01] [RCON Listener #1/INFO]: Thread RCON Client /192.168.158.1 started
[14:42:01] [RCON Client /192.168.158.1 #5/INFO]: Thread RCON Client /192.168.158.1 shutting down
[14:42:01] [RCON Listener #1/INFO]: Thread RCON Client /192.168.158.1 started
[14:42:01] [RCON Client /192.168.158.1 #6/INFO]: Thread RCON Client /192.168.158.1 shutting down
[14:42:02] [User Authenticator #0/INFO]: UUID of player Builder is a1b1b4de-45be-3659-b2e1-5c9a1693e63b
[14:42:02] [Server thread/INFO]: Builder joined the game
[14:42:02] [Server thread/INFO]: Builder[/192.168.158.1:46678] logged in with entity id 11 at ([world]1.5, -60.0, 2.5)
[14:42:03] [Server thread/INFO]: Builder issued server command: /setblock 0 0 0 minecraft:stone
[14:42:04] [Server thread/INFO]: Builder issued server command: /setblock 0 0 1 minecraft:stone
[14:42:05] [Server thread/INFO]: Builder issued server command: /setblock 0 1 0 minecraft:stone
[14:42:06] [Server thread/INFO]: Builder issued server command: /setblock 0 1 1 minecraft:stone
[14:42:07] [Server thread/INFO]: Builder issued server command: /setblock 1 0 0 minecraft:stone
[14:42:08] [Server thread/INFO]: Builder issued server command: /setblock 1 0 1 minecraft:stone
[14:42:09] [Server thread/INFO]: Builder issued server command: /setblock 1 1 0 minecraft:stone
[14:42:10] [Server thread/INFO]: Builder issued server command: /setblock 1 1 1 minecraft:stone
[14:42:11] [Server thread/INFO]: Builder issued server command: /structure save structure_2024-11-22T09-42-01 0 0 0 1 1 1 false disk
root@8d6335897128:/data/logs# ls```
You're mounting relative host directory called "data":
volumes:
- ./data:/data
It'll be in there.
This issue is stale because it has been open 30 days with no activity. Please add a comment describing the reason to keep this issue open.