Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Geoff Bourne
@itzg
The documentation could probably do with a diagram to better describe what's going on, but this section attempts to describe the one-way copy'ing of those optional paths to /data
https://github.com/itzg/docker-minecraft-server#using-separate-mounts
I could probably enhance the startup to detect redundant volume mounts to avoid the recursive copying
coldshouldermedia
@coldshouldermedia
I wouldn't be opposed to that! The GUI on my OS is slick, but can make it easy to miss things like that. Thank you so much for your time and patience! Do you have a donations link?
Geoff Bourne
@itzg
You're very welcome and I do actually
https://www.buymeacoffee.com/itzg
coldshouldermedia
@coldshouldermedia
You've been coffee-d! Thanks again.
Geoff Bourne
@itzg
Thanks!
coldshouldermedia
@coldshouldermedia
Should I manually delete the files in my config folder?
And I still have a /data/config directory, should I purge that too?
Geoff Bourne
@itzg
If this is a new container, then you can delete both. The safer solution is to just purge the directory you're mounting to /config
Geoff Bourne
@itzg
I don't have my usual containers handy to check, so I'd say just purge the /config to be safe. Forge servers definitely make use of /data/config but what I don't recall off hand is if vanilla servers use that
coldshouldermedia
@coldshouldermedia
Got it, thanks.
coldshouldermedia
@coldshouldermedia
One minor thing, my Minecraft log appears to be using a different timezone even though I have sync time with host enabled. It is 6 hours fast.
Geoff Bourne
@itzg
RampantPanda
@RampantPanda
So... how are the minecraft servers updated? i have e=version-latest, but sometimes I get the outdated server error.
Should they update with a docker restart?
Geoff Bourne
@itzg
@RampantPanda yes, it can only perform the upgrade during container startup (or restart)
gogopowerjackets
@gogopowerjackets
@itzg Thanks for providing the Minecraft Bedrock Docker Image. I think this is going to be exactly what I need for my macOS server. This is my first time using Docker and I've been able to download and run a server that I can connect to, but I'd like to mount a persistent volume so that I can pass in an existing server's data.
I've tried to run this command, and Docker appears to start, but I don't see the folder populate with any server files I'd expect to see: docker run -d -e EULA=TRUE -p 19132:19132/udp -v /Users/Server/Documents/Minecraft/:/Data itzg/minecraft-bedrock-server
Geoff Bourne
@itzg
@gogopowerjackets you were very close, the mounted path within the container is a lowercase “d” /data
...if you want to retain the world data, then using docker cp of the existing container you running should work https://docs.docker.com/engine/reference/commandline/cp/
dbb12345
@dbb12345
So this is my first time there has been an update. :) It looks like 1.12.1 is the newest version. I tried to change the version in variables but didn't change anything. Not sure if it hasn't been pushed to server yet or if i need to do something?
Geoff Bourne
@itzg
@dbb12345 I'll try too since this will be the first time the new upgrade logic gets to use a real version change
speaking of which, make sure you've pulled the latest image also
ooh, the auto version logic worked at least
> docker run -it --rm -e EULA=TRUE itzg/minecraft-bedrock-server
DEBU[0000] Using /data to match uid and gid
DEBU[0000] Resolved UID=0 from match path
DEBU[0000] Resolved GID=0 from match path
DEBU[0000] Forwarding signal                             signal="window changed"
Downloading Bedrock server version 1.12.1.1 ...
Starting Bedrock server...
NO LOG FILE! - setting up server logging...
[2019-09-06 18:29:25 INFO] Starting Server
[2019-09-06 18:29:25 INFO] Version 1.12.1.1
[2019-09-06 18:29:25 INFO] Session ID eb84c636-049b-41dc-ac5e-6786e4b81fea
[2019-09-06 18:29:25 INFO] Level Name: Bedrock level
[2019-09-06 18:29:25 INFO] Game mode: 0 Survival
[2019-09-06 18:29:25 INFO] Difficulty: 1 EASY
[2019-09-06 18:29:26 INFO] IPv4 supported, port: 19132
[2019-09-06 18:29:26 INFO] IPv6 not supported
[2019-09-06 18:29:26 INFO] IPv4 supported, port: 58066
[2019-09-06 18:29:26 INFO] IPv6 not supported
[2019-09-06 18:29:28 INFO] Server started.
and -e VERSION=1.12.1.1 worked, so perhaps using 1.12.1.1 exactly is the bit that wasn't working
Allen Conlon
@A1994SC
hello, I am having a bit of trouble trying to start a forge server, specifically Direwolf20, and starts with a window and immediately close and the process stops:
Below is the compose
 minecraft-server:
  container_name: direwolf20
  image: itzg/minecraft-server
  restart: 'unless-stopped'
  ports:
    - "25565:25565"
  environment:
    EULA: "TRUE"
    TYPE: "FORGE"
    FORGEVERSION: "14.23.5.2821"
    #Server
    MEMORY: '6G'
  volumes:
    - C:\Games\Minecraft\direwolf:/data
  tty: true
  stdin_open: true
Allen Conlon
@A1994SC
I have made some progress, but it is still stopping and restarting; I think it might be the volumes:
minecraft-server:
  container_name: direwolf20
  image: itzg/minecraft-server
  restart: 'never'
  ports:
    - "25565:25565"
  environment:
    EULA: "TRUE"
    TYPE: "FORGE"
    VERSION: 1.12.2
    FORGEVERSION: 14.23.5.2821
    #Server
    MEMORY: '6G'
  volumes:
    - /game/Minecraft/direwolf:/data
  tty: true
  stdin_open: true
Geoff Bourne
@itzg
@A1994SC what kind of errors can you see in the log just before restart?
Allen Conlon
@A1994SC
Here is the last little bit:
cfbab60e9ef3_direwolf20 | [20:28:47] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing start region for level 0
cfbab60e9ef3_direwolf20 | [20:28:47] [Server thread/WARN] [minecraft/Chunk]: Could not set level chunk heightmap, array length is 0 instead of 256
cfbab60e9ef3_direwolf20 | [20:28:47] [Server thread/ERROR] [minecraft/MinecraftServer]: Encountered an unexpected exception
cfbab60e9ef3_direwolf20 | java.lang.IllegalArgumentException: ChunkNibbleArrays should be 2048 bytes not: 0
cfbab60e9ef3_direwolf20 |       at net.minecraft.world.chunk.NibbleArray.<init>(SourceFile:16) ~[axs.class:?]
cfbab60e9ef3_direwolf20 |       at net.minecraft.world.chunk.storage.AnvilChunkLoader.func_75823_a(AnvilChunkLoader.java:449) ~[aye.class:?]
cfbab60e9ef3_direwolf20 |       at net.minecraft.world.chunk.storage.AnvilChunkLoader.checkedReadChunkFromNBT__Async(AnvilChunkLoader.java:128) ~[aye.class:?]
cfbab60e9ef3_direwolf20 |       at net.minecraft.world.chunk.storage.AnvilChunkLoader.loadChunk__Async(AnvilChunkLoader.java:92) ~[aye.class:?]
cfbab60e9ef3_direwolf20 |       at net.minecraftforge.common.chunkio.ChunkIOProvider.run(ChunkIOProvider.java:70) ~[ChunkIOProvider.class:?]
cfbab60e9ef3_direwolf20 |       at net.minecraftforge.common.chunkio.ChunkIOExecutor.syncChunkLoad(ChunkIOExecutor.java:92) ~[ChunkIOExecutor.class:?]
cfbab60e9ef3_direwolf20 |       at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:118) ~[on.class:?]
cfbab60e9ef3_direwolf20 |       at net.minecraft.world.gen.ChunkProviderServer.func_186028_c(ChunkProviderServer.java:89) ~[on.class:?]
cfbab60e9ef3_direwolf20 |       at net.minecraft.world.gen.ChunkProviderServer.func_186025_d(ChunkProviderServer.java:135) ~[on.class:?]
cfbab60e9ef3_direwolf20 |       at net.minecraft.server.MinecraftServer.func_71222_d(MinecraftServer.java:344) ~[MinecraftServer.class:?]
cfbab60e9ef3_direwolf20 |       at net.minecraft.server.MinecraftServer.func_71247_a(MinecraftServer.java:314) ~[MinecraftServer.class:?]
cfbab60e9ef3_direwolf20 |       at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:270) ~[nz.class:?]
cfbab60e9ef3_direwolf20 |       at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:486) [MinecraftServer.class:?]
cfbab60e9ef3_direwolf20 |       at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]
cfbab60e9ef3_direwolf20 | [20:28:47] [Server thread/ERROR] [minecraft/MinecraftServer]: This crash report has been saved to: /data/./crash-reports/crash-2019-09-06_20.28.47-server.txt
cfbab60e9ef3_direwolf20 | [20:28:47] [Server thread/INFO] [minecraft/MinecraftServer]: Stopping server
cfbab60e9ef3_direwolf20 | [20:28:47] [Server thread/INFO] [minecraft/MinecraftServer]: Saving players
cfbab60e9ef3_direwolf20 | [20:28:47] [Server thread/INFO] [minecraft/MinecraftServer]: Saving worlds
cfbab60e9ef3_direwolf20 | [20:28:47] [Server thread/INFO] [minecraft/MinecraftServer]: Saving chunks for level 'world'/overworld
cfbab60e9ef3_direwolf20 | [20:28:47] [Server thread/INFO] [minecraft/MinecraftServer]: Saving chunks for level 'world'/the_nether
cfbab60e9ef3_direwolf20 | [20:28:47] [Server thread/INFO] [minecraft/MinecraftServer]: Saving chunks for level 'world'/the_end
cfbab60e9ef3_direwolf20 | [20:28:47] [Server thread/INFO] [FML]: Unloading dimension 0
cfbab60e9ef3_direwolf20 | [20:28:47] [Server thread/INFO] [FML]: Unloading dimension -1
cfbab60e9ef3_direwolf20 | [20:28:47] [Server thread/INFO] [FML]: Unloading dimension 1
cfbab60e9ef3_direwolf20 | [20:28:47] [Server thread/INFO] [FML]: The state engine was in incorrect state SERVER_STARTING and forced into state SERVER_STOPPED. Errors may have been discarded.
cfbab60e9ef3_direwolf20 | [20:28:47] [Server Shutdown Thread/INFO] [minecraft/MinecraftServer]: Stopping server
cfbab60e9ef3_direwolf20 | [20:28:47] [Server Shutdown Thread/INFO] [minecraft/MinecraftServer]: Saving players
cfbab60e9ef3_direwolf20 | [20:28:47] [Server Shutdown Thread/INFO] [minecraft/MinecraftServer]: Saving worlds
Geoff Bourne
@itzg
Eww, that's looks like the world data might be corrupted
Allen Conlon
@A1994SC
ok, I have a feeling it is because I am having trouble with volumes
Augie
@AugusDogus
Hey, I'm having an issue using rcon or any method of getting access to the console.
I'm running a paper server so I passed --noconsole when running the initial setup and did not use it as instructed as to not peg the cpu.
The name of my container is compatibility-issues so I ran docker exec -i compatibility_issues rcon-cli and got the following error:
2019/09/08 23:32:57 Failed to connect to RCON serverdial tcp 127.0.0.1:25575: connect: connection refuse
Haven't changed the rcon port in server.properties or added a password.
Recommendations?
Geoff Bourne
@itzg
@AugusDogus sorry for the delay in responding...hmm, I wonder if Paper doesn't start the rcon service by default (or at all)? Agreed that if you hadn't changed that port in server.properties, then it should have worked
Geoff Bourne
@itzg

FWIW, it worked ok for me. I started a container using

docker run -it --rm -e EULA=TRUE -e TYPE=PAPER itzg/minecraft-server

and confirmed rcon part is running by watching for this log after the spawn area is setup

[19:49:59 INFO]: Done (56.551s)! For help, type "help"
[19:49:59 INFO]: Starting remote control listener
[19:49:59 INFO]: RCON running on 0.0.0.0:25575

and then exec'ed with

docker exec 053e7d617de9 rcon-cli help
§e--------- §fHelp: Index (1/10) §e--------------------
§7Use /help [n] to get page n of help.
§6Aliases: §fLists command aliases
§6Bukkit: §fAll commands for Bukkit
§6Minecraft: §fAll commands for Minecraft
§6/advancement: §fA Mojang provided command.
§6/ban: §fA Mojang provided command.
§6/ban-ip: §fA Mojang provided command.
§6/banlist: §fA Mojang provided command.
§6/bossbar: §fA Mojang provided command.
dbb12345
@dbb12345
Ok so I must know. @itzg what got you into this? Not minecraft but the docker/linux world. I do large scale wifi/networking deployment etc.. and am an avid gamer that was forced to use DOS and then Windows etc... So I'm comfortable on a computer and even did programming at a college level. I appreciate the knowledge and wondering what was the spark that led you into this area/passion?
Geoff Bourne
@itzg
@dbb12345 ooh, that's a very deep question :) I have been into programming for eons (it feels like) and adjacent to that I have always been fascinated by operating systems. If I had to sum up my passion for docker and linux in one word it's: consistency. I have found that my mental investment in any one flavor of Linux (Redhat, Ubuntu, etc) has paid off on any other flavor Linux. I know I can jump onto any Linux system and figure out my way around...eventually. Likewise, Docker makes it very consistent for me to create a container on my Windows desktop, but know with high confidence it'll work just fine on a Linux-based system in Google Cloud. In fact, Docker itself is really just a nice frontend for really cool Linux kernel tricks that existed for a while before Docker.
Augie
@AugusDogus
Is the difference there that you included -it in your initial command?
image.png
Geoff Bourne
@itzg
Oops, I use -it out of habit. Let me try again without that and the noconsole option via -e CONSOLE=false
while I'm waiting for that to finish starting up, it's worth noting that Paper may no longer have that issue when console is enabled
Geoff Bourne
@itzg

@AugusDogus yep, this worked too

docker run -d --name paper-rcon -e EULA=TRUE -e TYPE=PAPER -e CONSOLE=false itzg/minecraft-server

with

docker exec paper-rcon rcon-cli help
§e--------- §fHelp: Index (1/10) §e--------------------
§7Use /help [n] to get page n of help.
§6Aliases: §fLists command aliases
§6Bukkit: §fAll commands for Bukkit
§6Minecraft: §fAll commands for Minecraft
§6/advancement: §fA Mojang provided command.
§6/ban: §fA Mojang provided command.
§6/ban-ip: §fA Mojang provided command.
§6/banlist: §fA Mojang provided command.
§6/bossbar: §fA Mojang provided command.
perhaps grep the server.properties just to be sure rcon isn't disabled there for some reason
docker exec paper-rcon grep rcon server.properties
for comparison, mine are showing the defaults
broadcast-rcon-to-ops=true
rcon.port=25575
rcon.password=minecraft
enable-rcon=true
mrogojanu
@mrogojanu
Hello, sorry for question maybe is not the right place to ask here. The docker-compose examples link is dead, is it possible to get this work? Thanks a lot! https://hub.docker.com/r/itzg/examples
Geoff Bourne
@itzg
@mrogojanu this is exactly the right place. Unfortunately the way the Docker Hub builds brings over the repo's README makes those relative links break. I'll work on replacing those with absolute URLs, but in the meantime the links should go to https://github.com/itzg/docker-minecraft-server/tree/master/examples
mrogojanu
@mrogojanu
Thanks for such quick reply and the links! And of course for your work ;)