Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Support] Minecraft-Server

Featured Replies

  • Author
On 5/3/2024 at 3:15 PM, Lugnut said:

How do I set a minimum value in the docker settings? When I first set the container up I set the value to 8G, I want it to fluctuate and not be constantly at that value.

 

Simply change the MEMORY environment value to the value you want.

Any help is appreciated. I have everything (mostly) working.  I am running a forge setup that is modded it is currently in survival.  I know nothing about Minecraft.  My kids want to use /gamemode to switch modes from the client.  I added them as OPS but the OPS.JSON is overwritten on restart.  Can I use /gamemode in docker? What settings do I need to change?

 

#Minecraft server properties
#Wed May 08 22:19:14 EDT 2024
allow-flight=false
allow-nether=true
broadcast-console-to-ops=true
broadcast-rcon-to-ops=true
difficulty=easy
enable-command-block=true
enable-jmx-monitoring=false
enable-query=false
enable-rcon=true
enable-status=true
enforce-secure-profile=true
enforce-whitelist=false
entity-broadcast-range-percentage=100
force-gamemode=false
function-permission-level=2
gamemode=survival
generate-structures=true
generator-settings={}
hardcore=false
hide-online-players=false
initial-disabled-packs=
initial-enabled-packs=vanilla
level-name=world
level-seed=
level-type=minecraft\:normal
max-chained-neighbor-updates=1000000
max-players=20
max-tick-time=60000
max-world-size=29999984
motd=My Unraid Minecraft Server
network-compression-threshold=256
online-mode=true
op-permission-level=4
player-idle-timeout=0
prevent-proxy-connections=false
pvp=true
query.port=25565
rate-limit=0
rcon.password=xxxxxxxxx
rcon.port=25575
require-resource-pack=false
resource-pack=
resource-pack-prompt=
resource-pack-sha1=
server-ip=
server-port=25565
simulation-distance=10
snooper-enabled=true
spawn-animals=true
spawn-monsters=true
spawn-npcs=true
spawn-protection=16
sync-chunk-writes=true
text-filtering-config=
use-native-transport=true
view-distance=10
white-list=false

  • Author

Full docs are here for use in docker.  

  • 2 weeks later...
On 5/4/2024 at 6:07 PM, TQ said:

 

Simply change the MEMORY environment value to the value you want.

When I enter 8G into the MEMORY environment, my server constantly uses 8GB of ram, even if no one is online. Is there a way to have it be set to minimum use say, 2GB and never go above 8? So that it can fluctuate and not take so much of my servers resources even if it's not in use. Typically on a windows environment you could make a .bat file that would have "java -Xmx8192M -Xms2048M" inside and that would signify the maximum is 8gb and the minimum is two.

  • 2 months later...

Is there a way to make this container use the server .jar file that's already downloaded? I use Spigot 1.19 and the download link has been broken for ages. When the docker starts it errors out because the server jar can't be downloaded. I've got a good copy of the file in the directory, not sure why it needs to download a fresh copy at every start up.
Thanks in advance.

  • 3 months later...
On 8/3/2024 at 10:58 AM, testtubetony said:

Is there a way to make this container use the server .jar file that's already downloaded? I use Spigot 1.19 and the download link has been broken for ages. When the docker starts it errors out because the server jar can't be downloaded. I've got a good copy of the file in the directory, not sure why it needs to download a fresh copy at every start up.
Thanks in advance.

Upload the .jar file to your appdata/minecraft. Set "Type" to "CUSTOM" and create variable "CUSTOM_SERVER" with the name of your .jar file as the value.

  • 3 weeks later...

This has been an excellent container for me for the past several months for our family server, however this afternoon the server will no longer load and i'm fully up to date. This is my log file:

 

text  error  warn  system  array  login  

[mc-image-helper] 16:03:36.791 ERROR : 'install-fabric-loader' command failed. Version is 1.40.6
reactor.core.Exceptions$ReactiveException: java.net.UnknownHostException: Failed to resolve 'meta.fabricmc.net' [A(1)]
        at reactor.core.Exceptions.propagate(Exceptions.java:410)
        at reactor.core.publisher.BlockingSingleSubscriber.blockingGet(BlockingSingleSubscriber.java:102)
        at reactor.core.publisher.Mono.block(Mono.java:1779)
        at me.itzg.helpers.fabric.FabricLauncherInstaller.installUsingVersions(FabricLauncherInstaller.java:70)
        at me.itzg.helpers.fabric.InstallFabricLoaderCommand.call(InstallFabricLoaderCommand.java:93)
        at me.itzg.helpers.fabric.InstallFabricLoaderCommand.call(InstallFabricLoaderCommand.java:15)
        at picocli.CommandLine.executeUserObject(CommandLine.java:2045)
        at picocli.CommandLine.access$1500(CommandLine.java:148)
        at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2465)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2457)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2419)
        at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2277)
        at picocli.CommandLine$RunLast.execute(CommandLine.java:2421)
        at picocli.CommandLine.execute(CommandLine.java:2174)
        at me.itzg.helpers.McImageHelper.main(McImageHelper.java:161)
        Suppressed: java.lang.Exception: #block terminated with an error
                at reactor.core.publisher.BlockingSingleSubscriber.blockingGet(BlockingSingleSubscriber.java:104)
                ... 13 common frames omitted
Caused by: java.net.UnknownHostException: Failed to resolve 'meta.fabricmc.net' [A(1)]
        at io.netty.resolver.dns.DnsResolveContext.finishResolve(DnsResolveContext.java:1150)
        at io.netty.resolver.dns.DnsResolveContext.tryToFinishResolve(DnsResolveContext.java:1097)
        at io.netty.resolver.dns.DnsResolveContext.query(DnsResolveContext.java:455)
        at io.netty.resolver.dns.DnsResolveContext.onResponse(DnsResolveContext.java:662)
        at io.netty.resolver.dns.DnsResolveContext.access$500(DnsResolveContext.java:70)
        at io.netty.resolver.dns.DnsResolveContext$2.operationComplete(DnsResolveContext.java:513)
        at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:590)
        at io.netty.util.concurrent.DefaultPromise.notifyListeners0(DefaultPromise.java:583)
        at io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:559)
        at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:492)
        at io.netty.util.concurrent.DefaultPromise.setValue0(DefaultPromise.java:636)
        at io.netty.util.concurrent.DefaultPromise.setSuccess0(DefaultPromise.java:625)
        at io.netty.util.concurrent.DefaultPromise.trySuccess(DefaultPromise.java:105)
        at io.netty.resolver.dns.DnsQueryContext.trySuccess(DnsQueryContext.java:308)
        at io.netty.resolver.dns.DnsQueryContext.finishSuccess(DnsQueryContext.java:299)
        at io.netty.resolver.dns.DnsNameResolver$DnsResponseHandler.channelRead(DnsNameResolver.java:1491)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
        at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
        at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1357)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440)
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
        at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:868)
        at io.netty.channel.epoll.EpollDatagramChannel.processPacket(EpollDatagramChannel.java:662)
        at io.netty.channel.epoll.EpollDatagramChannel.recvmsg(EpollDatagramChannel.java:697)
        at io.netty.channel.epoll.EpollDatagramChannel.access$300(EpollDatagramChannel.java:56)
        at io.netty.channel.epoll.EpollDatagramChannel$EpollDatagramChannelUnsafe.epollInReady(EpollDatagramChannel.java:536)
        at io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:501)
        at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:399)
        at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
        at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
        at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
        at java.base/java.lang.Thread.run(Unknown Source)
Caused by: io.netty.resolver.dns.DnsErrorCauseException: Query failed with SERVFAIL
        at io.netty.resolver.dns.DnsResolveContext.onResponse(..)(Unknown Source)
[init] Running as uid=1000 gid=1000 with /data as 'drwxrwxrwx 1 1000 100 4096 Dec  1 15:48 /data'
[init] Resolving type given fabric
[init] [ERROR] Failed to installFabric launcher given 1.21, LATEST, LATEST

 

I'm rather new to the Unraid world, so I don't even know where to begin. Would anyone be able to assist? This server container is the only one I know with a variable that lets you select which version of MC server you wish to run. Right now, I need to stay on 1.21 due to compatability. All other server options within Unraid auto update to the newest version. 

 

I've been running my Minecraft server with this docker for a few years now without issue. Unfortunately when trying to switch from 1.21 to 1.21.3, it stopped loading the server. I couldn't access logs either, I'd click them and they'd pop up for a second then disappear basically instantly. I tried combing through log files in the docker but found nothing relative to the crash, not sure where else to look for logs to determine why it won't load past 1.21. I updated the docker container today as well, and then edited the version number variable from 1.21 to 1.21.4, and same thing as 1.21.3, simply won't load. Switched back to version 1.21 and works again. I'm at a loss as to where to look for variables to play with since I can't get the normal log roll to show.  Thanks in advance!

  • 2 weeks later...

Hello, I'm migrating my composed servers to this application for easier management and it's working great except for one small issue;

 

I can't use multi-line MOTDs anymore, even when removing the MOTD key in the container manager and editing server.properties via SSH or Shares it converts any \n to \\n so the formatting in the in-game server browser breaks, is there some special Unraid specific formatting I should be using or does it just not work?

The image below shows the MOTD variable in Unraid and what that converts to in server.properties, color, typeface and special character formatting still works (as shown in the second image), it's just that the backslash seems to be causing a problem:

 

image.png.95cfbecf5849ff27ea988f26d056f53b.png

 

image.png.c5b1cb47baf9e3ed8f3e80cfbfd52eb1.png

(It's supposed to be styled like an SSH output when running the "tree" command)

  • 8 months later...
On 4/23/2024 at 5:45 PM, TQ said:

 

Updated.

On 4/23/2024 at 5:45 PM, TQ said:

 

Updated.


Has this broken again? I'm getting that error and my container is fully up to date. When I browse to the image URL I get the following:

This XML file does not appear to have any style information associated with it. The document tree is shown below.

<Error>

<Code>NoSuchKey</Code>

<Message>The specified key does not exist.</Message>

<Key>Color/PNG/512/Gaming/minecraft_logo-512.png</Key>

<RequestId>34WJ68EZ91B92J1H</RequestId>

<HostId>YEGGgD02r/oEsESTKfCbddy3xk6fBiBky4aqtEfOaPl7LswN+QkMIzEKQ2zHv59Jx7NERDbbPLI=</HostId>

</Error>

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.