fithwum Posted November 9, 2023 Author Share Posted November 9, 2023 also for the fabric template if you already have it installed you will need to add more variables as you can also now pick whatever version of minecraft is supported by fabric YOU WILL NEED TO CHANGE THE DOCKER TAG TO fithwum/minecraft-fabric:latest key: MC_VERSION key: INSTALLER_VERSION Quote Link to comment
fithwum Posted November 10, 2023 Author Share Posted November 10, 2023 for all running the vanilla minecraft you will also need to change your tag to latest and add the MC_VERSION variable this way you can select the version you want instead of waiting for me to add versions Quote Link to comment
Aeloth Posted November 14, 2023 Share Posted November 14, 2023 Hi, I can't connect to the server from the local network (thus not from outside), when I look in the log, I see that the server is running and ready. In minecraft game it says Can't connect to server. I have the port and IP correct. Quote Link to comment
Aeloth Posted November 14, 2023 Share Posted November 14, 2023 (edited) Looks like the container didn't map the ports. There is no network assigned. I don't know how to fix it. EDIT: I just added a port to container and it works. Edited November 14, 2023 by Aeloth Solved Quote Link to comment
fithwum Posted November 14, 2023 Author Share Posted November 14, 2023 sorry forgot to update post i have updated the templates for vanilla and fabric you will need to add some variables this is for added functionality if you add the size variables you will need to delete your run file. i removed the port mapping from the dockerfile so that it was possible to set the port and have it change the port in the settings file this works fine in my testing on 4 different servers so far. i made the changes as they were requested by many people. NEEDED key: GAME_PORT OPTIONAL key: XMX_SIZE key: XMS_SIZE key: XMN_SIZE Quote Link to comment
strangeslinky2 Posted February 10 Share Posted February 10 any changes I make to the ops.json are reverted once I restart the container, my understanding is that the restart pulls the default files. can I change this, or do I need to create a separate container? Brand New to Unraid so I am open to recommendations. Quote Link to comment
fithwum Posted February 10 Author Share Posted February 10 (edited) the only time it should be downloading a new file is when the file is not there at all. all my minecraft dockers are not even setup to download any ops file at all anyway i removed that as it was only there for testing to make things faster for me. the only other thing i can think of is that you dont have your data folders setup somehow. Edited February 10 by fithwum edit Quote Link to comment
Benjamins Posted April 26 Share Posted April 26 On 11/9/2023 at 6:04 PM, fithwum said: also for the fabric template if you already have it installed you will need to add more variables as you can also now pick whatever version of minecraft is supported by fabric YOU WILL NEED TO CHANGE THE DOCKER TAG TO fithwum/minecraft-fabric:latest key: MC_VERSION key: INSTALLER_VERSION I updated to MC Version 1.20.5 and now I am getting java related errors, I think the java version needs to be updated. maybe update java to 22? I am not sure the best way to fix this. java.lang.RuntimeException: An exception occurred when launching the server! at net.fabricmc.loader.impl.launch.server.FabricServerLauncher.main(FabricServerLauncher.java:71) at net.fabricmc.installer.ServerLauncher.main(ServerLauncher.java:69) Suppressed: java.awt.AWTError: Can't connect to X11 window server using '0' as the value of the DISPLAY variable. at java.desktop/sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) at java.desktop/sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:105) at java.base/java.security.AccessController.doPrivileged(AccessController.java:318) at java.desktop/sun.awt.X11GraphicsEnvironment.initStatic(X11GraphicsEnvironment.java:64) at java.desktop/sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:59) at java.desktop/sun.awt.PlatformGraphicsInfo.createGE(PlatformGraphicsInfo.java:36) at java.desktop/java.awt.GraphicsEnvironment$LocalGE.createGE(GraphicsEnvironment.java:93) at java.desktop/java.awt.GraphicsEnvironment$LocalGE.<clinit>(GraphicsEnvironment.java:84) at java.desktop/java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:106) at java.desktop/sun.awt.X11.XToolkit.<clinit>(XToolkit.java:224) at java.desktop/sun.awt.PlatformGraphicsInfo.createToolkit(PlatformGraphicsInfo.java:40) at java.desktop/java.awt.Toolkit.getDefaultToolkit(Toolkit.java:599) at java.desktop/javax.swing.UIManager.getSystemLookAndFeelClassName(UIManager.java:668) at net.fabricmc.loader.impl.gui.FabricMainWindow.open(FabricMainWindow.java:87) at net.fabricmc.loader.impl.gui.FabricGuiEntry.open(FabricGuiEntry.java:51) at net.fabricmc.loader.impl.gui.FabricGuiEntry.displayError(FabricGuiEntry.java:141) at net.fabricmc.loader.impl.gui.FabricGuiEntry.displayError(FabricGuiEntry.java:108) at net.fabricmc.loader.impl.launch.FabricLauncherBase$1.uncaughtException(FabricLauncherBase.java:108) at java.base/java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1082) at java.base/java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1077) at java.base/java.lang.Thread.dispatchUncaughtException(Thread.java:2017) Caused by: java.lang.RuntimeException: Error invoking MC server bundler: java.lang.UnsupportedClassVersionError: net/minecraft/bundler/Main has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 61.0 at net.fabricmc.loader.impl.game.minecraft.BundlerProcessor.process(BundlerProcessor.java:102) at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.locateGame(MinecraftGameProvider.java:192) at net.fabricmc.loader.impl.launch.knot.Knot.createGameProvider(Knot.java:175) at net.fabricmc.loader.impl.launch.knot.Knot.init(Knot.java:130) at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:68) at net.fabricmc.loader.impl.launch.knot.KnotServer.main(KnotServer.java:23) at net.fabricmc.loader.impl.launch.server.FabricServerLauncher.main(FabricServerLauncher.java:69) ... 1 more Caused by: java.lang.UnsupportedClassVersionError: net/minecraft/bundler/Main has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 61.0 at java.base/java.lang.ClassLoader.defineClass1(Native Method) at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017) at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:879) at net.fabricmc.loader.impl.game.minecraft.BundlerProcessor$1.loadClass(BundlerProcessor.java:65) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525) at java.base/java.lang.Class.forName0(Native Method) at java.base/java.lang.Class.forName(Class.java:467) at net.fabricmc.loader.impl.game.minecraft.BundlerProcessor.process(BundlerProcessor.java:85) Quote Link to comment
fithwum Posted April 27 Author Share Posted April 27 it seems that for right now this is not possible as starting with version 1.20.5 of minecraft it now requires java 21 and at this time it is not available on linux except for unstable testing. i will be keeping an eye on this and try to work on a fix 1 Quote Link to comment
warboy Posted May 28 Share Posted May 28 (edited) I feel like I'm doing this wrong, but I've updated from your 1.20.1 image to the latest, and Im trying to add the keys for the Xmx(+etc) to my container, but it seems to be not accepting them? (Invalid maximum heap size). Theyre variables right? Figured it out, It switched from Shell to bash with that update. Corrected. But could you add paper to your support list? *edit 2* Port isnt being assigned, every time I start the server, It changes the port in the server.properties to default. Edited May 29 by warboy Quote Link to comment
fithwum Posted June 19 Author Share Posted June 19 I have been away for some time life things. i do want to look into adding paper to the options. i dont know why your port keeps setting back to default i have not been able to reproduce this also i have now updated java in the docker so now new versions of minecraft are working. Quote Link to comment
AceBurn90 Posted July 13 Share Posted July 13 (edited) Does this container support plugins? I want to install Dynmap. -> https://modrinth.com/plugin/dynmap Does is work so create a folder named "plugins" and put the downloaded dynmap file inside? UPDATE: Short answer -> Yes My server is running fabric 1.21 with Dynmap and SQLite. Edited July 14 by AceBurn90 Quote Link to comment
sMACk Posted September 1 Share Posted September 1 i got everything up and running, but I always get an execution error when I try to stop the container. Any ideas? thanks Quote Link to comment
Voltvol Posted September 9 Share Posted September 9 (edited) hllo from where do i get the ip v4 address to let friends play on my minecraft server port is shared and the ip that is in the docker container is the one from the unraid system = problem friends can't play on it if i give them the ip from the unraid server that is in the docker containercan someone please help me Edited September 9 by Voltvol Quote Link to comment
fithwum Posted September 9 Author Share Posted September 9 you need to port forward in your router and if the players are outside of your network you need to give them your WAN IP (External IP) NOT the ip of the server itself as that will not work from outside the network at all Quote Link to comment
Voltvol Posted September 10 Share Posted September 10 (edited) I Can´t can OP Players wehn i like to op a player it says to me in the server consol that op is not existing /op add *playername* Edited Wednesday at 06:19 AM by Voltvol Quote Link to comment
Recommended Posts
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.