Troubleshooting#

The server will not start#

No Podman socket found or Podman service at ... is not responding

The Podman service is not running. On Linux and WSL2 start it with systemctl --user enable --now podman.socket. On macOS start the Podman machine and check that CONTAINER_HOST is set. See Set up Podman.

Timeout starting minecraft server or failed to start

The message ends with the last lines of the server’s log. podman logs mciwb-server shows all of it.

Minecraft Server 'mciwb-server' already exists, so its settings are reused

The options that you gave differ from those of the existing container, and were ignored. Run mciwb stop, then mciwb start with the new options.

mciwb cannot connect#

Could not connect to server localhost:20100

No server is listening there. Run mciwb start, or give the --port that you gave to mciwb start.

Wrong RCON password

Give the password that the server was started with, see The RCON password.

The Minecraft client says that the server or the client is outdated

The client must run the same release as the server, see Minecraft version.

Blocks do not appear#

Minecraft only runs commands in chunks that are loaded: those near a player, and those that are forced to stay loaded. Elsewhere the server replies That position is not loaded. The builders raise BuildError with that reply, and world.set_block logs it and returns False. The older functions (polygon, Volume.fill) carry on without an error, but each command that failed logs a warning:

WARNING: RCON reply to 'fill ...' looks lost or garbled by another client, retrying: 'That position is not loaded'

Either join the game and stand near the build, or load the chunks in the script before building. Give two opposite corners, as x and z:

world.cmd("forceload add 632 -1658 660 -1630")

The chunks load in the background, so the first commands after this may still fail: wait a few seconds before building. forceload remove with the same corners lets them unload again.

Replies get mixed up#

The server has one output buffer for all of its RCON connections. If another program uses RCON at the same moment as mciwb (a server dashboard that polls list, say), a reply can come back empty or with the other program’s output in it. This is rare: about one command in 10000.

mciwb checks the replies to setblock, fill and loot, and sends the command again if the reply is wrong, with a warning in the log. Other commands are sent once, because some are not safe to send twice. For a command of your own that is safe to repeat, give world.cmd the reply that you expect:

world.cmd("gamerule advance_time", expect=r"Game rule \S+ is currently set to \S+")

A command is rejected#

world.cmd returns the server’s reply as text, error messages included, so print it. Commands change between Minecraft releases: in 26.x, game rules have snake case names (advance_time, not doDaylightCycle).

mciwb cannot find a player#

could not set up or give signs to NAME, player not found in the world

--player names a player who is not in the game. Check the spelling and that they have joined. mciwb keeps looking: once they are in, give them the action signs with world.signs.give_signs() (see The interactive shell).

no player has been added

The script or shell used world.player (or world.player.pos) before any player was added. Start with --player NAME, or call world.add_player("NAME") once the player has joined the game.

Something else#

Add --debug to any mciwb command for more detailed logging. If that does not explain it, please open an issue at gilesknap/mciwb#issues.