Zrips / Jobs

Jobs
Apache License 2.0
172 stars 213 forks source link

Jobs issues when starting plugin on FreeNAS/TrueNAS jail #1308

Open har888811 opened 2 years ago

har888811 commented 2 years ago

Attempted to create a 1.17.1 minecraft server using spigot (tried on Paper 1.17.1 as well) on a FreeNAS 11.2 server jail running FreeBSD 11.4 release later I tried upgrading to TrueNAS 12 running FreeBSD 12.2 release on the jail. All plugins would load and work just fine except for Jobs Reborn which would fail to load with an error and be disabled. Sometimes the entire server would crash when [Jobs] Enabling Jobs v5.0.0.8 but most of the time it would simply output the error code and still run (without jobs). Issue is replicable in fresh jails and VM.


Logs

Relevant lastlog to the issue (displayed by both spigot and paper)

.
.
.
[CMILib] Loading CMILib v1.0.4.1
[Jobs] Loading Jobs v5.0.0.8
.
.
.
.
.
.
.
[13:19:30] [Server thread/INFO]: [CMILib] Enabling CMILib v1.0.4.1
[13:19:32] [Server thread/INFO]: Server version: v1_17_R1 - 1.17.1 - spigot
[13:19:33] [Server thread/INFO]: Updated (EN) language file. Took 103ms
[13:19:33] [Server thread/INFO]: [Jobs] Enabling Jobs v5.0.0.8
[13:19:33] [Server thread/WARN]: java.lang.IllegalStateException: Current state = RESET, new state = FLUSHED
[13:19:33] [Server thread/WARN]:    at java.base/java.nio.charset.CharsetDecoder.throwIllegalStateException(CharsetDecoder.java:996)
[13:19:33] [Server thread/WARN]:    at java.base/java.nio.charset.CharsetDecoder.flush(CharsetDecoder.java:679)
[13:19:33] [Server thread/WARN]:    at java.base/java.nio.charset.CharsetDecoder.decode(CharsetDecoder.java:808)
[13:19:33] [Server thread/WARN]:    at java.base/java.nio.charset.Charset.decode(Charset.java:811)
[13:19:33] [Server thread/WARN]:    at org.sqlite.core.NativeDB.utf8ByteBufferToString(NativeDB.java:507)
[13:19:33] [Server thread/WARN]:    at org.sqlite.core.NativeDB.column_name(NativeDB.java:239)
[13:19:33] [Server thread/WARN]:    at org.sqlite.core.DB.column_names(DB.java:733)
[13:19:33] [Server thread/WARN]:    at org.sqlite.jdbc3.JDBC3Statement.getResultSet(JDBC3Statement.java:131)
[13:19:33] [Server thread/WARN]:    at org.sqlite.jdbc3.JDBC3Statement.executeQuery(JDBC3Statement.java:73)
[13:19:33] [Server thread/WARN]:    at org.sqlite.jdbc3.JDBC3Statement.executeQuery(JDBC3Statement.java:56)
[13:19:33] [Server thread/WARN]:    at org.sqlite.jdbc3.JDBC3DatabaseMetaData.getTables(JDBC3DatabaseMetaData.java:1844)
[13:19:33] [Server thread/WARN]:    at com.gamingmesh.jobs.dao.JobsSQLite.isTable(JobsSQLite.java:80)
[13:19:33] [Server thread/WARN]:    at com.gamingmesh.jobs.dao.JobsDAO.createDefaultTable(JobsDAO.java:526)
[13:19:33] [Server thread/WARN]:    at com.gamingmesh.jobs.dao.JobsDAO.setUp(JobsDAO.java:489)
[13:19:33] [Server thread/WARN]:    at com.gamingmesh.jobs.dao.JobsSQLite.initialize(JobsSQLite.java:14)
[13:19:33] [Server thread/WARN]:    at com.gamingmesh.jobs.dao.JobsManager.startSqlite(JobsManager.java:137)
[13:19:33] [Server thread/WARN]:    at com.gamingmesh.jobs.dao.JobsManager.start(JobsManager.java:96)
[13:19:33] [Server thread/WARN]:    at com.gamingmesh.jobs.config.GeneralConfigManager.loadGeneralSettings(GeneralConfigManager.java:315)
[13:19:33] [Server thread/WARN]:    at com.gamingmesh.jobs.config.GeneralConfigManager.reload(GeneralConfigManager.java:260)
[13:19:33] [Server thread/WARN]:    at com.gamingmesh.jobs.Jobs.reload(Jobs.java:829)
[13:19:33] [Server thread/WARN]:    at com.gamingmesh.jobs.Jobs.startup(Jobs.java:545)
[13:19:33] [Server thread/WARN]:    at com.gamingmesh.jobs.Jobs.onEnable(Jobs.java:739)
[13:19:33] [Server thread/WARN]:    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264)
[13:19:33] [Server thread/WARN]:    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:342)
[13:19:33] [Server thread/WARN]:    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:480)
[13:19:33] [Server thread/WARN]:    at org.bukkit.craftbukkit.v1_17_R1.CraftServer.enablePlugin(CraftServer.java:520)
[13:19:33] [Server thread/WARN]:    at org.bukkit.craftbukkit.v1_17_R1.CraftServer.enablePlugins(CraftServer.java:434)
[13:19:33] [Server thread/WARN]:    at net.minecraft.server.MinecraftServer.loadWorld(MinecraftServer.java:619)
[13:19:33] [Server thread/WARN]:    at net.minecraft.server.dedicated.DedicatedServer.init(DedicatedServer.java:266)
[13:19:33] [Server thread/WARN]:    at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1010)
[13:19:33] [Server thread/WARN]:    at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:305)
[13:19:33] [Server thread/WARN]:    at java.base/java.lang.Thread.run(Thread.java:831)
[13:19:33] [Server thread/INFO]: There was some issues when starting plugin. Please contact dev about this. Plugin will be disabled.
.
.

Full log can be found here. Here is another log with other plugins loaded. The java crash logs I still have are from the time I was using openjdk16 but I'm including them here here and here. I unfortunately did not save the openjdk17 crash logs, my apologies.


Config

Not sure if relevant, but I used MineOS to manage the server. The instructions I followed to do this can be found here. Differences from the original steps:

Both MIneOS and Jobs/CMILib were ran at default settings

I had other plugins that were working perfectly fine including: Elevator, Essentials, LuckPerms, mcMMO, Multiverse-Core, Multiverse-Portals, PlaceholderAPI, Randomtp, Scoreboard-revision, TAB, Towny, Vault. Other plugins were included in initial runs but functionality not checked.

To make sure no other plugins were interfering, I ran the server with only CMILib and Jobs Reborn. I tried having both on the latest version (1.0.4.1 and 5.0.0.8 respectively) at the time of writing as well as different combinations of Jobs Reborn 5.0.0.0 to 5.0.0.8 with CMILib 1.0.2.14 to 1.0.4.1 with the same outcome.


Jobs version: 5.0.0.0 -> 5.0.0.8

Server Type (Spigot/Paper/etc): Spigot and Paper

Server Version (using /ver): 1.17.1

mrfloris commented 2 years ago

Do you have other plugins that use sqlite3 ?

har888811 commented 2 years ago

Do you have other plugins that use sqlite3 ?

I'm not sure if I do. However, the same issue would happen even with only CMILib and Jobs (and Vault) in the plugin folder. The first log was from such a run.