Minecraft plugin issues in MineOS

Mikey J

Dabbler
Joined
Dec 23, 2014
Messages
23
Gents,

I have been running a small Minecraft server in my FreeNAS11.3 server for some time now. It was a Paper server with about 10 plugins and has had no issues. I recently upgraded to TrueNAS 12 and all of my plugins and jails carried over no problem, everything worked fine. The only issue I had was none of my jails would upgrade through the GUI. Long story short, I uninstalled my jails and re configured them in fresh iocage jails. The only one I am now having an issue with is MineOS. Certain Minecraft plugins refuse to run properly. Namely Core Protect, Advanced Teleport, and World Guard. I have attached some pictures where you can see that removing those specific plugins will allow the server to start with out errors, but once the 3 are added, a lot of errors are thrown, and then the server halts.

I am really confused here. I know nothing about Java and was hoping someone could point me in the right direction.
 

Attachments

  • Broken.png
    Broken.png
    352.2 KB · Views: 354
  • Working.png
    Working.png
    455.8 KB · Views: 424
Joined
Jul 10, 2016
Messages
521
The only relevant difference between the MineOS plugin on 12.2 and the older versions that I can think of, is that it moved from openJDK8 to openJDK11, specifically because the Paper servers stopped supporting Java 8.x

It may be that some of the plugins haven't made that transition and/or you may need a new plugin specific to that paper/spigot/java version. Have you checked the Minecraft Forums or the documentation/forums specific to those plugins?
 

Mikey J

Dabbler
Joined
Dec 23, 2014
Messages
23
Jurgen,

First, thank you for your insight. Since my initial post, I have tried 3 new setups.
1. I spun up a FreeNAS 11.3 server, Installed the MineOS plugin and configured a paper server, and oddly enough, it had the exact same issue on Java 8 with the specific plugins I mentioned.

2. I then spun up a MineOS Turnkey setup, and everything was perfectly fine, this time with Java 11.

3. I then configured a server within windows 10 on Java 8, and it was fine there too.

I could be way off here, but it seems to me like all the errors revolve around SQLite. Is there maybe something wrong with how the current version is handling SQLite? I have attached one of the recent error logs. So far I have not posted in any other forum because the Issue ony happens in FreeNAS/TrueNAS. Each test was conducted using both a fresh Minecraft server, and the archived backup of my Minecraft server. Results were the same.
 

Attachments

  • hs_err_pid5349.txt
    384.2 KB · Views: 221
Joined
Jul 10, 2016
Messages
521
Thanks for the log. I concur that it SQLite seems suspicious. How did you install MineOS... from the plugin or manually in a jail?

The plugin doesn't install sqlite et al but only the minimal pkgs that are needed to run mineos-node, and these plugins may some extras. Did you try to install sqlite and/or sqlitejdbc from pkg in your MineOS jail?

If you have that old jail still available, it may be worth checking what packages it has installed.
 

Mikey J

Dabbler
Joined
Dec 23, 2014
Messages
23
I installed MineOS through the supplied plugin when referring to all FreeNAS/TrueNAS tests.

I used pkg to install sqlite3 and sqlitejdbc and neither had any effect on the plugins

the old jail install is long gone. It may have been older than Freenas 11.3. Ill try an older Freenas version next.
 

Mikey J

Dabbler
Joined
Dec 23, 2014
Messages
23
Well gentlemen, after attempting many different things, I am no closer to figuring this out. Things I have so far tried:

1. Rebooting MineOS plugin. Same result
2. Updating MySQL and sqlite. Same result
3. Creating a new server in the same MineOS
4. Updating and Upgrading the jail/plugin Same result
5. Installing a second instance of MineOS in a separate jail. Same result
6. Rebooting TrueNAS. Same result
7. Installed FreeNAS/TrueNAS (multiple versions) on a completely different machine and installing a fresh mineos jail there. Same result
8. Installed MineOS Turnkey on bare metal. EVERYTHING WORKS
9. Run minecraft server from Win 10 PC. EVERYTHING WORKS

At this point Im a bit lost. Anyone else have any ideas?
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,740
Create a standard jail and just install MineOS via the instructions on their Wiki.
 
Joined
Jul 10, 2016
Messages
521
Create a standard jail and just install MineOS via the instructions on their Wiki.

That's exactly what the iocage-plugin does. :grin:
The issue isn't with MineOS or with the iocage-plugin, but with trying to get a specific minecraft plugin to work on FreeBSD.
 
Joined
Jul 10, 2016
Messages
521
OK, I tried to reproduce this, I installed the MineOS plugin with default settings (NAS) on TrueNAS CORE 12.0-U2.1.

No issues with the plugin itself. In the MineOS UI, I downloaded the papermc 1.16.5 profile ("Paper-1.16.5-latest") as that's the one I remember seeing in your logfiles and created a new server called paper.

In the jail, I tweaked the install:
Code:
service mineos stop
pkg install sqlitejdbc
pkg remove openjdk11-jre  # because sqlitejdbc uses openjdk8
# copy CoreProtect-19.5.jar to /var/games/minecraft/servers/paper/plugins
service mineos start

Back in the MineOS UI, I started the paper server. I get the same messages as in your screenshot.
Code:
[21:18:42] [Server thread/INFO]: [CoreProtect] Enabling CoreProtect v19.5
[21:18:43] [Server thread/WARN]: java.lang.IllegalStateException: Current state = RESET, new state = FLUSHED
[21:18:43] [Server thread/WARN]: at java.nio.charset.CharsetDecoder.throwIllegalStateException(CharsetDecoder.java:992)
[21:18:43] [Server thread/WARN]: at java.nio.charset.CharsetDecoder.flush(CharsetDecoder.java:675)
[21:18:43] [Server thread/WARN]: at java.nio.charset.CharsetDecoder.decode(CharsetDecoder.java:804)
[21:18:43] [Server thread/WARN]: at java.nio.charset.Charset.decode(Charset.java:807)
[21:18:43] [Server thread/WARN]: at org.sqlite.core.NativeDB.utf8ByteBufferToString(NativeDB.java:507)
[21:18:43] [Server thread/WARN]: at org.sqlite.core.NativeDB.column_name(NativeDB.java:239)
[21:18:43] [Server thread/WARN]: at org.sqlite.core.DB.column_names(DB.java:733)
[21:18:43] [Server thread/WARN]: at org.sqlite.jdbc3.JDBC3Statement.getResultSet(JDBC3Statement.java:131)
[21:18:43] [Server thread/WARN]: at org.sqlite.jdbc3.JDBC3Statement.executeQuery(JDBC3Statement.java:73)
[21:18:43] [Server thread/WARN]: at net.coreprotect.config.ConfigHandler.loadWorlds(ConfigHandler.java:287)
[21:18:43] [Server thread/WARN]: at net.coreprotect.config.ConfigHandler.performInitialization(ConfigHandler.java:372)
[21:18:43] [Server thread/WARN]: at net.coreprotect.CoreProtect.onEnable(CoreProtect.java:72)
[21:18:43] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263)
[21:18:43] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:380)
[21:18:43] [Server thread/WARN]: at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:483)
[21:18:43] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugin(CraftServer.java:501)
[21:18:43] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugins(CraftServer.java:415)
[21:18:43] [Server thread/WARN]: at net.minecraft.server.v1_16_R3.MinecraftServer.loadWorld(MinecraftServer.java:591)
[21:18:43] [Server thread/WARN]: at net.minecraft.server.v1_16_R3.DedicatedServer.init(DedicatedServer.java:281)
[21:18:43] [Server thread/WARN]: at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1065)
[21:18:43] [Server thread/WARN]: at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:289)
[21:18:43] [Server thread/WARN]: at java.lang.Thread.run(Thread.java:748)
[21:18:44] [Server thread/WARN]: java.lang.IllegalStateException: Current state = RESET, new state = FLUSHED
[21:18:44] [Server thread/WARN]: at java.nio.charset.CharsetDecoder.throwIllegalStateException(CharsetDecoder.java:992)
[21:18:44] [Server thread/WARN]: at java.nio.charset.CharsetDecoder.flush(CharsetDecoder.java:675)
[21:18:44] [Server thread/WARN]: at java.nio.charset.CharsetDecoder.decode(CharsetDecoder.java:804)
[21:18:44] [Server thread/WARN]: at java.nio.charset.Charset.decode(Charset.java:807)
[21:18:44] [Server thread/WARN]: at org.sqlite.core.NativeDB.utf8ByteBufferToString(NativeDB.java:507)
[21:18:44] [Server thread/WARN]: at org.sqlite.core.NativeDB.column_name(NativeDB.java:239)
[21:18:44] [Server thread/WARN]: at org.sqlite.core.DB.column_names(DB.java:733)
[21:18:44] [Server thread/WARN]: at org.sqlite.jdbc3.JDBC3Statement.getResultSet(JDBC3Statement.java:131)
[21:18:44] [Server thread/WARN]: at org.sqlite.jdbc3.JDBC3Statement.executeQuery(JDBC3Statement.java:73)
[21:18:44] [Server thread/WARN]: at net.coreprotect.config.ConfigHandler.loadTypes(ConfigHandler.java:212)
[21:18:44] [Server thread/WARN]: at net.coreprotect.config.ConfigHandler.performInitialization(ConfigHandler.java:373)
[21:18:44] [Server thread/WARN]: at net.coreprotect.CoreProtect.onEnable(CoreProtect.java:72)
[21:18:44] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263)
[21:18:44] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:380)
[21:18:44] [Server thread/WARN]: at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:483)
[21:18:44] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugin(CraftServer.java:501)
[21:18:44] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugins(CraftServer.java:415)
[21:18:44] [Server thread/WARN]: at net.minecraft.server.v1_16_R3.MinecraftServer.loadWorld(MinecraftServer.java:591)
[21:18:44] [Server thread/WARN]: at net.minecraft.server.v1_16_R3.DedicatedServer.init(DedicatedServer.java:281)
[21:18:44] [Server thread/WARN]: at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1065)
[21:18:44] [Server thread/WARN]: at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:289)
[21:18:44] [Server thread/WARN]: at java.lang.Thread.run(Thread.java:748)
[21:18:44] [Server thread/INFO]: [CoreProtect] CoreProtect has been successfully enabled!
[21:18:44] [Server thread/INFO]: [CoreProtect] Using SQLite for data storage.
[21:18:44] [Server thread/INFO]: --------------------
[21:18:44] [Server thread/INFO]: [CoreProtect] Enjoy CoreProtect? Join our Discord!
[21:18:44] [Server thread/INFO]: [CoreProtect] Discord: www.coreprotect.net/discord/
[21:18:44] [Server thread/INFO]: --------------------
[21:18:44] [Server thread/INFO]: Running delayed init tasks
[21:18:44] [Server thread/INFO]: Done (48.382s)! For help, type "help"
[21:18:44] [Server thread/WARN]: [io.papermc.paper.util.PaperJvmChecker] ************************************************************
[21:18:44] [Server thread/WARN]: [io.papermc.paper.util.PaperJvmChecker] * WARNING - YOU ARE RUNNING AN OUTDATED VERSION OF JAVA.
[21:18:44] [Server thread/WARN]: [io.papermc.paper.util.PaperJvmChecker] * PAPER WILL STOP BEING COMPATIBLE WITH THIS VERSION OF
[21:18:44] [Server thread/WARN]: [io.papermc.paper.util.PaperJvmChecker] * JAVA WHEN MINECRAFT 1.17 IS RELEASED.
[21:18:44] [Server thread/WARN]: [io.papermc.paper.util.PaperJvmChecker] *
[21:18:44] [Server thread/WARN]: [io.papermc.paper.util.PaperJvmChecker] * Please update the version of Java you use to run Paper
[21:18:44] [Server thread/WARN]: [io.papermc.paper.util.PaperJvmChecker] * to at least Java 11. When Paper for Minecraft 1.17 is
[21:18:44] [Server thread/WARN]: [io.papermc.paper.util.PaperJvmChecker] * released support for versions of Java before 11 will
[21:18:44] [Server thread/WARN]: [io.papermc.paper.util.PaperJvmChecker] * be dropped.
[21:18:44] [Server thread/WARN]: [io.papermc.paper.util.PaperJvmChecker] *
[21:18:44] [Server thread/WARN]: [io.papermc.paper.util.PaperJvmChecker] * Current Java version: 1.8.0_282
[21:18:44] [Server thread/WARN]: [io.papermc.paper.util.PaperJvmChecker] *
[21:18:44] [Server thread/WARN]: [io.papermc.paper.util.PaperJvmChecker] * Check this forum post for more information:
[21:18:44] [Server thread/WARN]: [io.papermc.paper.util.PaperJvmChecker] * https://papermc.io/java11
[21:18:44] [Server thread/WARN]: [io.papermc.paper.util.PaperJvmChecker] ************************************************************
[21:18:44] [Server thread/INFO]: Timings Reset


That being said, these JDBC and sqlite messages are logged as warnings, not errors. After all this, it states CoreProtect has been successfully enabled!

Not sure how to use CoreProtect, but when I type the following in the console plugins, co, co status this is the output:

Code:
[22:06:02] [Server thread/INFO]: Plugins (1): CoreProtect
[22:06:07] [Server thread/INFO]: ----- CoreProtect Help -----
[22:06:07] [Server thread/INFO]: /co help <command> - Display more info for that command.
[22:06:07] [Server thread/INFO]: /co inspect - Turns the block inspector on or off.
[22:06:07] [Server thread/INFO]: /co rollback <params> - Rollback block data.
[22:06:07] [Server thread/INFO]: /co restore <params> - Restore block data.
[22:06:07] [Server thread/INFO]: /co lookup <params> - Advanced block data lookup.
[22:06:07] [Server thread/INFO]: /co purge <params> - Delete old block data.
[22:06:07] [Server thread/INFO]: /co reload - Reloads the configuration file.
[22:06:07] [Server thread/INFO]: /co status - Displays the plugin status.
[22:06:16] [Thread-16/INFO]: ----- CoreProtect -----
[22:06:16] [Thread-16/INFO]: Version: CoreProtect v19.5.
[22:06:16] [Thread-16/INFO]: License: Invalid donation key. (Please check config.yml)
[22:06:16] [Thread-16/INFO]: Database: Using SQLite. (Initial DB: 19.5)
[22:06:16] [Thread-16/INFO]: Consumer: 3 items in queue.
[22:06:16] [Thread-16/INFO]: Discord: www.coreprotect.net/discord/
[22:06:16] [Thread-16/INFO]: Patreon: www.patreon.com/coreprotect/


Do you get this far?
 

Mikey J

Dabbler
Joined
Dec 23, 2014
Messages
23
Yes, I get that far as well, but once you restart the 1.16.5 instance again, It crashes during start up. If you then delete the coreprotect data, It will start with warning the first time, and crash at every other restart.
 

ver151set

Dabbler
Joined
Jan 28, 2015
Messages
37
Same issue, except I run java 16 due to many plugins requiring it now. Still crashes due to sqlite errors
 

P0PC47

Dabbler
Joined
May 19, 2020
Messages
16
Did you try updating java through the shell for the MineOS plugin? I remember having issues with 1.17 just refusing to start because java wasn't updated.

You can do this by going to your jail for MineOS and selecting 'shell' under options, then print "pkg install openjdk16" in the field.

Not sure if this helps, but its my two cents. :)
 

ver151set

Dabbler
Joined
Jan 28, 2015
Messages
37
Did you try updating java through the shell for the MineOS plugin? I remember having issues with 1.17 just refusing to start because java wasn't updated.

You can do this by going to your jail for MineOS and selecting 'shell' under options, then print "pkg install openjdk16" in the field.

Not sure if this helps, but its my two cents. :)

I did, issue seems to be with sqlite-jdbc

Only get errors with java plugins that try and use sqlite databases, if you change it to use mysql there are no issues
 
Top