TrueNAS: Minecraft 1.17 Server

TrueNAS Minecraft V 1.17Minecraft version 1.17 is the latest version of Minecraft to be released. This TrueNAS: Minecraft 1.17 Server article will show you how upgrade your TrueNAS Minecraft MineOS installation to be compatible with this new version. Minecraft 1.17 includes a number of new features mobs and blocks which are detailed in the Minecraft Wiki. You may have run into a few error messages when trying to run a Minecraft 1.17 server including: “Failed to login: Invalid session (Try restarting your game and the launcher)” or “Failed to verify user name!”. These errors are related to the underlying Java installation which needs to be upgraded. This is a quick post to walk you through upgrading your TrueNAS server to Minecraft 1.17. You will of course need to install and setup a Minecraft server first and you can follow the digiMoot TrueNAS: Install Minecraft Server article.

This is part of my ongoing series of TrueNAS and FreeNAS setup, configuration and install articles.

Upgrading MineOS for Minecraft 1.17 on TrueNAS

Alright, so it is actually pretty simple to update your MineOS to the latest Java version so that you can play Minecraft Version 1.17. You need to first, stop your minecraft servers from your MineOS webUI. Then drop to a shell of your MineOS jail – you can either SSH into your server or you can use the TrueNAS jail interface. Once in the shell, run the following command to install Java 16.

pkg install openjdk16-16.0.1+9.1

Once this is done, you can make sure that Java is version 16 but running the following command:

java -version

It should output something like:

openjdk version “16.0.1” 2021-04-20
OpenJDK Runtime Environment (build 16.0.1+9-1)
OpenJDK 64-Bit Server VM (build 16.0.1+9-1, mixed mode, sharing)

If you see something like this, you should be updated. Close you shell and head back to the MineOS webUI. If you haven’t done so, set the 1.17 profile and download / create the jars. Update the Minecraft server to use the 1.17 jars and profile and start it up.

Congrats! You’ve completed the TrueNAS: Minecraft 1.17 Server article and update your MineOS installation!

You may also need to update Java on your game PC as you may get an error “A JNI error has occurred,  please check your installation and try again”. I use TLauncher and it may be updated now, but if you have problems you can follow the steps in this video.

That’s it! Happy minin’!



Update TrueNAS to Java 16:

Liked it? Take a second to support digiMoot on Patreon!

Leave a Reply

Your email address will not be published. Required fields are marked *