GUIDE The importance of getting rid of Warns (in logs)

Status
Not open for further replies.

RussianBear

Member
Member
Hi man, bear there.
Since im a very occupied bear, this will be a short guide about how getting ride of those cases. Mostly of them are caused by common mistakes that can be easy solved just reading the logs. Yes, im not kidding! Reading the logs actually helps.

Well, most of you will know the importance of getting your console clean of molesting warns. Let's start with soft warns (just alerting you that something is happening), in this case, FAWE warns me about the logging of the WorldEdit services:

Soft warns: Nothing to be scared. Just an information about the plugin/s functionality.
[14:21:19] [Craft Scheduler Thread - 71/INFO]: (FAWE) Potentially unsafe extent blocked: net.coreprotect.worldedit.CoreProtectLogger
[14:21:19] [Craft Scheduler Thread - 71/INFO]: (FAWE) - For area restrictions, it is recommended to use the FaweAPI
[14:21:19] [Craft Scheduler Thread - 71/INFO]: (FAWE) - For block logging, it is recommended to use use BlocksHub
[14:21:19] [Craft Scheduler Thread - 71/INFO]: (FAWE) - To allow this plugin add it to the FAWE `allowed-plugins` list
[14:21:19] [Craft Scheduler Thread - 71/INFO]: (FAWE) - To hide this message set `debug` to false in the FAWE config.yml
[14:21:19] [Craft Scheduler Thread - 71/INFO]: (FAWE) Note on CoreProtect:
[14:21:19] [Craft Scheduler Thread - 71/INFO]: (FAWE) - If you disable CP's WE logger (CP config) and this still shows, please update CP
[14:21:19] [Craft Scheduler Thread - 71/INFO]: (FAWE) - Use BlocksHub and set `debug` false in the FAWE config

Better to read those since you can't know if it will be something important in a near future.
In the last case, i just needed to install FaweAPI. That happens for using FAWE (And WorldEdit, of course) with CoreProtect system together, when you use WorldEdit, this will get into your console.
As you can read, you can disable the message just setting the debug in false, but i don't like the idea.

Medium warns: Listen it and take them more seriously.
[08:55:42] [Server thread/ERROR]: Could not pass event PrepareItemCraftEvent to ItemLoreStats v7.38
org.bukkit.event.EventException: null
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot-1.12.jar:git-Spigot-596221b-2c5c611]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot-1.12.jar:git-Spigot-596221b-2c5c611]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:499) [spigot-1.12.jar:git-Spigot-596221b-2c5c611]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:484) [spigot-1.12.jar:git-Spigot-596221b-2c5c611]
at org.bukkit.craftbukkit.v1_12_R1.event.CraftEventFactory.callPreCraftEvent(CraftEventFactory.java:772) [spigot-1.12.jar:git-Spigot-596221b-2c5c611]
at net.minecraft.server.v1_12_R1.Container.a(Container.java:652) [spigot-1.12.jar:git-Spigot-596221b-2c5c611]
at net.minecraft.server.v1_12_R1.ContainerPlayer.a(ContainerPlayer.java:75) [spigot-1.12.jar:git-Spigot-596221b-2c5c611]
at net.minecraft.server.v1_12_R1.InventoryCrafting.setItem(InventoryCrafting.java:130) [spigot-1.12.jar:git-Spigot-596221b-2c5c611]
at net.minecraft.server.v1_12_R1.Slot.set(SourceFile:79) [spigot-1.12.jar:git-Spigot-596221b-2c5c611]
at net.minecraft.server.v1_12_R1.Container.setItem(Container.java:456) [spigot-1.12.jar:git-Spigot-596221b-2c5c611]
at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:2128) [spigot-1.12.jar:git-Spigot-596221b-2c5c611]
at net.minecraft.server.v1_12_R1.PacketPlayInSetCreativeSlot.a(SourceFile:23) [spigot-1.12.jar:git-Spigot-596221b-2c5c611]
at net.minecraft.server.v1_12_R1.PacketPlayInSetCreativeSlot.a(SourceFile:9) [spigot-1.12.jar:git-Spigot-596221b-2c5c611]
at net.minecraft.server.v1_12_R1.PlayerConnectionUtils$1.run(SourceFile:13) [spigot-1.12.jar:git-Spigot-596221b-2c5c611]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_111]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_111]
at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46) [spigot-1.12.jar:git-Spigot-596221b-2c5c611]
at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:747) [spigot-1.12.jar:git-Spigot-596221b-2c5c611]
at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:405) [spigot-1.12.jar:git-Spigot-596221b-2c5c611]
at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:678) [spigot-1.12.jar:git-Spigot-596221b-2c5c611]
at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:576) [spigot-1.12.jar:git-Spigot-596221b-2c5c611]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_111]
Caused by: java.lang.NullPointerException
at com.github.supavitax.itemlorestats.Crafting.AddedStats.addStatsToCraftedItem(AddedStats.java:38) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_111]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_111]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_111]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_111]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) ~[spigot-1.12.jar:git-Spigot-596221b-2c5c611]
... 21 more

Those ones are especially common in the servers. Are functionalities of plugins that aren't working correctly (for the version or a mistake during the creation of that). It won't crash your server, but will make your console extremely spammed and, if you let them accumulate, maybe will start lagging your server.

That's so easy to solve and at the same time is the most forgotten: Just search that you're using the correct version and no compatibility issues between plugins are being created. In the page are normally the incompatibilities and a link to report bugs if that's the case. Always report your bugs to the plugin author, think that's the only way to get rid of that one.

In the last one we can see how ItemLoreStats is not working fine with 1.12 version, if we go through his Bukkit site a lot of users said the same. That's 'cause ItemLoreStats is not compatibilized yet with 1.12 version. Thanks to the users that reported the bugs, he will update it soon (as i readed). Temporally solution: remove it from your plugins folder, what's the point on having plugins not working and spamming your console?

Crash warns: YOU SHALL NOT PASS.
[13:04:29] [Server thread/INFO]: [AuthMe] Connection arguments loaded, Hikari ConnectionPool ready!
[13:04:29] [Server thread/WARN]: [Server thread] INFO fr.xephi.authme.libs.zaxxer.hikari.HikariDataSource - AuthMeMYSQLPool - Starting...
[13:04:29] [Server thread/WARN]: [AutoSaveWorld] Plugin AuthMe attempted to establish connection socket://X.X.X.X:3306 in main server thread
[13:04:30] [Server thread/WARN]: [Server thread] ERROR fr.xephi.authme.libs.zaxxer.hikari.pool.HikariPool - AuthMeMYSQLPool - Exception during pool initialization.
[13:04:30] [Server thread/WARN]: java.sql.SQLException: Access denied for user 'XXX'@'XXX' (using password: YES)
[13:04:30] [Server thread/WARN]: at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:964)
[13:04:30] [Server thread/WARN]: at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3973)
[13:04:30] [Server thread/WARN]: at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3909)
[13:04:30] [Server thread/WARN]: at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:873)
[13:04:30] [Server thread/WARN]: at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1710)
[13:04:30] [Server thread/WARN]: at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1226)
[13:04:30] [Server thread/WARN]: at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2194)
[13:04:30] [Server thread/WARN]: at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2225)
[13:04:30] [Server thread/WARN]: at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2024)
[13:04:30] [Server thread/WARN]: at com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:779)
[13:04:30] [Server thread/WARN]: at com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:47)
[13:04:30] [Server thread/WARN]: at sun.reflect.GeneratedConstructorAccessor69.newInstance(Unknown Source)
[13:04:30] [Server thread/WARN]: at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
[13:04:30] [Server thread/WARN]: at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
[13:04:30] [Server thread/WARN]: at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
[13:04:30] [Server thread/WARN]: at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:389)
[13:04:30] [Server thread/WARN]: at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:330)
[13:04:30] [Server thread/WARN]: at fr.xephi.authme.libs.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:112)
[13:04:30] [Server thread/WARN]: at fr.xephi.authme.libs.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:118)
[13:04:30] [Server thread/WARN]: at fr.xephi.authme.libs.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:358)
[13:04:30] [Server thread/WARN]: at fr.xephi.authme.libs.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:201)
[13:04:30] [Server thread/WARN]: at fr.xephi.authme.libs.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:443)
[13:04:30] [Server thread/WARN]: at fr.xephi.authme.libs.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:514)
[13:04:30] [Server thread/WARN]: at fr.xephi.authme.libs.zaxxer.hikari.pool.HikariPool.(HikariPool.java:111)
[13:04:30] [Server thread/WARN]: at fr.xephi.authme.libs.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:97)
[13:04:30] [Server thread/WARN]: at fr.xephi.authme.datasource.MySQL.getConnection(MySQL.java:168)
[13:04:30] [Server thread/WARN]: at fr.xephi.authme.datasource.MySQL.checkTablesAndColumns(MySQL.java:175)
[13:04:30] [Server thread/WARN]: at fr.xephi.authme.datasource.MySQL.(MySQL.java:78)
[13:04:30] [Server thread/WARN]: at fr.xephi.authme.initialization.DataSourceProvider.createDataSource(DataSourceProvider.java:70)
[13:04:30] [Server thread/WARN]: at fr.xephi.authme.initialization.DataSourceProvider.get(DataSourceProvider.java:46)
[13:04:30] [Server thread/WARN]: at fr.xephi.authme.initialization.DataSourceProvider.get(DataSourceProvider.java:25)
[13:04:30] [Server thread/WARN]: at fr.xephi.authme.libs.jalu.injector.handlers.provider.ProviderHandlerImpl$UninitializedProviderInstantiation.instantiateWith(ProviderHandlerImpl.java:141)
[13:04:30] [Server thread/WARN]: at fr.xephi.authme.libs.jalu.injector.InjectorImpl.instantiate(InjectorImpl.java:181)
[13:04:30] [Server thread/WARN]: at fr.xephi.authme.libs.jalu.injector.InjectorImpl.get(InjectorImpl.java:155)
[13:04:30] [Server thread/WARN]: at fr.xephi.authme.libs.jalu.injector.InjectorImpl.getSingleton(InjectorImpl.java:56)
[13:04:30] [Server thread/WARN]: at fr.xephi.authme.AuthMe.instantiateServices(AuthMe.java:256)
[13:04:30] [Server thread/WARN]: at fr.xephi.authme.AuthMe.initialize(AuthMe.java:231)
[13:04:30] [Server thread/WARN]: at fr.xephi.authme.AuthMe.onEnable(AuthMe.java:140)
[13:04:30] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264)
[13:04:30] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:337)
[13:04:30] [Server thread/WARN]: at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:402)
[13:04:30] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugin(CraftServer.java:374)
[13:04:30] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugins(CraftServer.java:323)
[13:04:30] [Server thread/WARN]: at net.minecraft.server.v1_12_R1.MinecraftServer.t(MinecraftServer.java:421)
[13:04:30] [Server thread/WARN]: at net.minecraft.server.v1_12_R1.MinecraftServer.l(MinecraftServer.java:382)
[13:04:30] [Server thread/WARN]: at net.minecraft.server.v1_12_R1.MinecraftServer.a(MinecraftServer.java:337)
[13:04:30] [Server thread/WARN]: at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:272)
[13:04:30] [Server thread/WARN]: at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:544)
[13:04:30] [Server thread/WARN]: at java.lang.Thread.run(Thread.java:745)
[13:04:30] [Server thread/WARN]: [AuthMe] Can't initialize the MySQL database: [SQLException]: Access denied for user 'XXX'@'XXX' (using password: YES)
[13:04:30] [Server thread/WARN]: [AuthMe] Please check your database settings in the config.yml file!

I didn't have crashes made by incompatibilities between versions, so i caused 1 to make this post. If you open the Crash log, you'll see how fast you'll locate the crash. Trust me, you won't need to ask for support.
For those who didn't got it, let's go to read the crash first lines:

[13:04:30] [Server thread/WARN]: java.sql.SQLException: Access denied for user 'XXX'@'XXX' (using password: YES)
And
[13:04:30] [Server thread/WARN]: [AuthMe] Please check your database settings in the config.yml file!

Hey, that's something. He warns us about how bad we configured the config.yml file and how our database can't be connected. Join those two terms: You configured in one or more ways bad your config.yml.

Of course, crashes can come from a lot of different shapes and colors, like incompatibility issues, bad coding of the plugin author, bad configuration of the server's owner... You just need to take the time to see ALL THE LOGS and perform an action to solve it. Always try to update your plugins when they ask to do it, usually it is for the best of your server. Do it, of course, in a local server to try nothing will be screwed up updating your server's plugins.

Well, that was quite long to write, sorry for the orthography mistakes, im not english native speaker so i can have a lot of errors during this post. This is not a support thread so don't post here troubles regarding your logs please, is just informative.

If you liked/was useful for you, leave me a THUMBS UP. Every one is a Vodka bottle for me.

Sincerely, a drunk bear.
 
Status
Not open for further replies.

Latest profile posts

I recovered most of my maps :smile:
JesusX0 wrote on patatino2000's profile.
Hey you have discord?
JesusX0 wrote on Churchill VII's profile.
Hey you have discord?
JesusX0 wrote on Ochinche's profile.
Hey, you have discord?
Ultimate 2.28USD? lol

Forum statistics

Threads
934
Messages
2,236
Members
26,212
Latest member
wuool

Online statistics

Members online
0
Guests online
7
Total visitors
7
Top