Stacktrace Error probably due to LuckPerms on Pterodactyl?
Hi.
So, I'm having these stacktrace errors on my console on my Pterodactyl Panel (provided by my host when buying the server).:
[01:09:06 WARN]: Exception in thread "Thread-5" java.lang.NoClassDefFoundError: org/h2/api/ErrorCode
[01:09:06 WARN]: at org.h2.message.DbException.getJdbcSQLException(DbException.java:475)
[01:09:06 WARN]: at org.h2.message.DbException.get(DbException.java:212)
[01:09:06 WARN]: at org.h2.mvstore.db.Store.close(Store.java:402)
[01:09:06 WARN]: at org.h2.engine.Database.closeOpenFilesAndUnlock(Database.java:1261)
[01:09:06 WARN]: at org.h2.engine.Database.closeImpl(Database.java:1225)
[01:09:06 WARN]: at org.h2.engine.Database.close(Database.java:1144)
[01:09:06 WARN]: at org.h2.engine.OnExitDatabaseCloser.onShutdown(OnExitDatabaseCloser.java:85)
[01:09:06 WARN]: at org.h2.engine.OnExitDatabaseCloser.run(OnExitDatabaseCloser.java:114)
[01:09:06 WARN]: Caused by: java.lang.ClassNotFoundException: org.h2.api.ErrorCode
[01:09:06 WARN]: at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
[01:09:06 WARN]: at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:592)
[01:09:06 WARN]: at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
[01:09:06 WARN]: ... 8 more
This ONLY appears on server shutdown and restarts (ofc in the shutdown process).
I'm pretty sure the issue is caused by LuckPerms.
It doesn't happen on my local server (hosted on my local Windows PC with same exact setup and plugins setup the same exact way).
It only happens in the Pterodactyl environment (it seems).
I'm also having some other inconsistencies regarding Pl-Hide-Pro and CMI command handling on the Pterodactyl hosted server vs. my local server.
On the Pterodactyl one, it seems Pl-Hide-Pro has a lower priority than CMI or other plugins when the users perform them, since it shows the CMI "No permission" message when performing a blocked command, instead of the Pl-Hide "Unknown command" message.
Is it environment related? Why am I facing these inconsistencies and (at this point) bugs and errors with this plugins?Solution:Jump to solution
Tanks everyone.
About the original issue, being LuckPerms giving errors, it was the h2 database. I didn’t actually fix that with h2, but using MySQL did the job and I no longer have errors....
12 Replies
Other than the operating system, the only other different thing is that I'm running Java 24 on my local PC, and the hosted server is running Java 22.
Java 22 is the maximum version I can select.
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Use 21
Dont use non lts
non lts?
Oh Long-Term Support, sorry
So 21 is the latest Long Term Support java version?
That your host supports
Sooo.
The stacktrace error does NOT appear when I run “stop” command from console BUT it does when I use “Stop” and “Restart” button from Pterodactyl.
Also doing the stop command just restarts the server, but that’s a spigot config I guess
it does actually stop, restart is most likely pterodactyl, it sees server going down without the user doing it through the panel
its pterodactyl
pterodactyl auto restarts a server that goes down
depending on some things*
okok ty
Should I use --add-modules=jdk.incubator.vector with Purpur 1.21.5 and Java 21?
Yeah it'll help your performance a little bit but it's also not the end of the world if you leave it out
not really
only if you use image on map plugins
and actually
no
it doesnt do anything
its a pufferfish simd optimization, 1.21.5 purpur doesnt have pufferfish patches
oh I forgot pufferfish hasn't updated yet
Solution
Tanks everyone.
About the original issue, being LuckPerms giving errors, it was the h2 database. I didn’t actually fix that with h2, but using MySQL did the job and I no longer have errors.