Error on plugin startup
MithrandirCraft opened this issue ยท 40 comments
Plugin + server version info:
Spigot 1.13.2
MM 2.0.3
Online mode: no
BungeeCord: yes
Server/crash log
https://pastebin.com/YYdN1hVh
Error occurs on startup.
New error: https://gist.github.com/MithrandirCraft/3b9e977a538cf63c8d0c3d85c2debeae
I don't understand what you want me to edit in the config, you want me to change a table name?
Could you please share your config file with me?
With Marriage Master v2.0.4 you can either edit the config or rename the column. Since it's failing with creating the homes table now you went with renaming the column so there is no need to edit the config.
That's a strange one, it looks like your priests table contains the key 0 more than once. Which should not be possible.
Could you please dump me that table?
If you delete the player_id
column and then rename the priest_id
column to player_id
it should work when you reload the plugin.
I have just released an update that should prevent this from happening.
If you have renamed the column already make sure to update all of your config files with v2.0.3.
Alternative with v2.0.4:
- Delete the
player_id
column - Edit already upgraded config files by adding the
Database.SQL.Tables.Fields.PriestID
key with the valuepriest_id
.
Current config: https://gist.github.com/MithrandirCraft/a38960dc43f7a5eb50d05543dbe1e789
I seem to have other issues I haven't checked. Players tell me the whole system simply doesn't work, which would be comprehensible if there are still database connection issues.
Please run this query DELETE FROM marry_home WHERE marry_id NOT IN (SELECT marry_partners.marry_id FROM marry_partners);
on your database. It should cleanup the homes table so that it can be converted to the new format when you restart your server.
I deleted the whole marry_home table, since I still had issues... it seems like the plugin just can't generate it again. Same error. The table simply doesn't exist, and doesn't get generated right now.
Please try this build: https://ci.pcgamingfreaks.at/job/MarriageMaster/lastSuccessfulBuild/artifact/artifacts/MarriageMaster-2.0.5-RC3-Release.jar
And in case it fails please provide me with the startup log.
Please run this SHOW CREATE TABLE hub.marry_partners;
query and send me the output.
I don't know what the command you sent me does, but I'm assuming it may be Hub. instead of hub.
Thanks.
The table uses the MyISAM engine which does not support foreign keys. That resolves the question around why the other table is not being created correctly.
Please run these query's to convert the tables to InnoDB:
ALTER TABLE marry_players ENGINE = InnoDB;
ALTER TABLE marry_priests ENGINE = InnoDB;
ALTER TABLE marry_partners ENGINE = InnoDB;
and try to restart/reload the plugin afterwards.
The table name for homes wasn't the same as in config. I've corrected this, we'll see how it goes from now.
all my plugins have problems with this latest or oldest builds, some error in bukkit communications.
`[02:25:42] [Server thread/INFO]: [FeatherBoard] An error occurred while initi ....
-
open the file
plugins/FeatherBoard/placeholders/placeholder_marriagemaster.yml
and set theenabled
option tofalse
. -
update your UltimateChat to the latest dev build: http://host.areaz12server.net.br:8080/job/UltimateChat/229/artifact/UltimateChat-Sponge-8/target/UltimateChat-1.8.9-b229-Universal.jar
The plugin loads without errors now, but according to reports (will confirm this myself), you can set a home, but you can't teleport to it...
I also see these strange errors on console:
https://gist.github.com/MithrandirCraft/0b763f294d4690b1729de6c3d81dda8e
Well, they're all using 2.X+
Allthough Survival is using 2.0.5-RC3-Release which you gave me personally. May be related to the issue.
I'll set them all to the version you gave me for now.
Please check your BungeeCord again, the communication format for BungeeCord has changed with v2.
And home|<username>
is the old communication format.
Also I have already released v2.0.6 with some more bugfixes ;)
all my plugins have problems with this latest or oldest builds, some error in bukkit communications.
[02:25:42] [Server thread/INFO]: [FeatherBoard] An error occurred while initializing placeholders code=marriagemaster [02:25:42] [Server thread/INFO]: [FeatherBoard] The placeholders have been disabled for use. [02:25:42] [Server thread/WARN]: java.lang.ClassCastException: at.pcgamingfreaks.MarriageMasterStandalone.Bukkit.MarriageMaster cannot be cast to at.pcgamingfreaks.MarriageMaster.Bukkit.MarriageMaster [02:25:42] [Server thread/WARN]: at be.maximvdw.placeholdercore.placeholders.MarriageMasterPlaceholderPack.onEnable(MarriageMasterPlaceholderPack.java:67) [02:25:42] [Server thread/WARN]: at be.maximvdw.featherboard.F.registerPlaceHolder(F.java:83) [02:25:42] [Server thread/WARN]: at be.maximvdw.featherboard.bp.a(bp.java:101) [02:25:42] [Server thread/WARN]: at be.maximvdw.featherboard.bp.a(bp.java:164) [02:25:42] [Server thread/WARN]: at be.maximvdw.featherboard.bp.g(bp.java:64) [02:25:42] [Server thread/WARN]: at be.maximvdw.featherboard.a5.b(a5.java:32) [02:25:42] [Server thread/WARN]: at be.maximvdw.featherboard.a5.<init>(a5.java:18) [02:25:42] [Server thread/WARN]: at be.maximvdw.featherboard.FeatherBoard.m(FeatherBoard.java:36) [02:25:42] [Server thread/WARN]: at be.maximvdw.featherboard.P.a(P.java:38) [02:25:42] [Server thread/WARN]: at be.maximvdw.featherboard.P.onEnable(P.java:72) [02:25:42] [Server thread/WARN]: at be.maximvdw.featherboard.FeatherBoard.onEnable(FeatherBoard.java:96) [02:25:42] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) [02:25:42] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:338) [02:25:42] [Server thread/WARN]: at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:420) [02:25:42] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_14_R1.CraftServer.enablePlugin(CraftServer.java:467) [02:25:42] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_14_R1.CraftServer.enablePlugins(CraftServer.java:381) [02:25:42] [Server thread/WARN]: at net.minecraft.server.v1_14_R1.MinecraftServer.a(MinecraftServer.java:464) [02:25:42] [Server thread/WARN]: at net.minecraft.server.v1_14_R1.DedicatedServer.init(DedicatedServer.java:282) [02:25:42] [Server thread/WARN]: at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:859) [02:25:42] [Server thread/WARN]: at java.lang.Thread.run(Unknown Source) [02:25:43] [Server thread/INFO]: [FeatherBoard] Checking for placeholder updates ... [02:25:43] [Server thread/INFO]: [FeatherBoard] Loaded 5548 of the 5552 placholders [02:25:43] [Server thread/INFO]: [MVdWPlaceholderAPI] Hooked into MVdW plugin: FeatherBoard [02:25:44] [Server thread/INFO]: [FeatherBoard] Loading custom effect 'example1' ... [02:25:44] [Server thread/INFO]: [FeatherBoard] Creating new custom effect: example1 [02:25:44] [Server thread/INFO]: [FeatherBoard] Loading custom effect 'example2' ... [02:25:44] [Server thread/INFO]: [FeatherBoard] Creating new custom effect: example2 [02:25:44] [Server thread/INFO]: [FeatherBoard] Loading custom effect 'example3' ... [02:25:44] [Server thread/INFO]: [FeatherBoard] Creating new custom effect: example3 [02:25:45] [Server thread/INFO]: [FeatherBoard] Using OPTIMAL as the update strategy [02:25:45] [Server thread/INFO]: [FeatherBoard] Loading scoreboard 'benchmark' ... [02:25:46] [Server thread/INFO]: [FeatherBoard] Loading scoreboard 'combat-scoreboard-example' ... [02:25:46] [Server thread/INFO]: [FeatherBoard] Loading scoreboard 'default' ... [02:25:46] [Server thread/INFO]: [FeatherBoard] Loading scoreboard 'mcmmo-levelup' ... [02:25:46] [Server thread/INFO]: [FeatherBoard] Loading scoreboard 'towny-town-example' ... [02:25:46] [Server thread/INFO]: [FeatherBoard] Added 'PERMISSION' as the default scoreboard assign method [02:25:46] [Server thread/INFO]: [FeatherBoard] Generating metrics information ... [02:25:47] [Server thread/INFO]: [FeatherBoard] Failed to check for an update on spigot. [02:25:47] [Server thread/WARN]: java.io.IOException: Server returned HTTP response code: 521 for URL: https://api.spigotmc.org/legacy/update.php?resource=2691 [02:25:47] [Server thread/WARN]: at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source) [02:25:47] [Server thread/WARN]: at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) [02:25:47] [Server thread/WARN]: at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source) [02:25:47] [Server thread/WARN]: at be.maximvdw.featherboard.cJ.g(cJ.java:40) [02:25:47] [Server thread/WARN]: at be.maximvdw.featherboard.cJ.c(cJ.java:29) [02:25:47] [Server thread/WARN]: at be.maximvdw.featherboard.FeatherBoard.f(FeatherBoard.java:18) [02:25:47] [Server thread/WARN]: at be.maximvdw.featherboard.P.a(P.java:18) [02:25:47] [Server thread/WARN]: at be.maximvdw.featherboard.P.onEnable(P.java:72) [02:25:47] [Server thread/WARN]: at be.maximvdw.featherboard.FeatherBoard.onEnable(FeatherBoard.java:96) [02:25:47] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) [02:25:47] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:338) [02:25:47] [Server thread/WARN]: at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:420) [02:25:47] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_14_R1.CraftServer.enablePlugin(CraftServer.java:467) [02:25:47] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_14_R1.CraftServer.enablePlugins(CraftServer.java:381) [02:25:47] [Server thread/WARN]: at net.minecraft.server.v1_14_R1.MinecraftServer.a(MinecraftServer.java:464) [02:25:47] [Server thread/WARN]: at net.minecraft.server.v1_14_R1.DedicatedServer.init(DedicatedServer.java:282) [02:25:47] [Server thread/WARN]: at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:859) [02:25:47] [Server thread/WARN]: at java.lang.Thread.run(Unknown Source) [02:25:47] [Server thread/INFO]: [FeatherBoard] Your version is up to date! [02:25:48] [Server thread/INFO]: [FeatherBoard] Toggle persistence is disabled! [02:25:48] [Server thread/INFO]: [FeatherBoard] Adding command 'featherboard'
[02:25:51 INFO]: [UltimateChat] Enabling UltimateChat v1.8.9 [02:25:51 INFO]: [UltimateChat] All configurations loaded! [02:25:51 INFO]: [UltimateChat] Language file loaded - Using: PT-BR [02:25:51 INFO]: [UltimateChat] ProtocolLib found. Hooked. [02:25:51 WARN]: java.lang.ClassCastException: at.pcgamingfreaks.MarriageMasterStandalone.Bukkit.MarriageMaster cannot be cast to at.pcgamingfreaks.MarriageMaster.Bukkit.MarriageMaster [02:25:51 WARN]: at br.net.fabiozumbi12.UltimateChat.Bukkit.UChat.onEnable(UChat.java:224) [02:25:51 WARN]: at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) [02:25:51 WARN]: at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:338) [02:25:51 WARN]: at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:420) [02:25:51 WARN]: at org.bukkit.craftbukkit.v1_14_R1.CraftServer.enablePlugin(CraftServer.java:467) [02:25:51 WARN]: at org.bukkit.craftbukkit.v1_14_R1.CraftServer.enablePlugins(CraftServer.java:381) [02:25:51 WARN]: at net.minecraft.server.v1_14_R1.MinecraftServer.a(MinecraftServer.java:464) [02:25:51 WARN]: at net.minecraft.server.v1_14_R1.DedicatedServer.init(DedicatedServer.java:282) [02:25:51 WARN]: at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:859) [02:25:51 WARN]: at java.lang.Thread.run(Unknown Source) [02:25:51 INFO]: [UltimateChat] UltimateChat v1.8.9 disabled!
[02:25:51] [Server thread/INFO]: [UltimateChat] Enabling UltimateChat v1.8.9 [02:25:51] [Server thread/INFO]: [UltimateChat] All configurations loaded! [02:25:51] [Server thread/INFO]: [UltimateChat] Language file loaded - Using: PT-BR [02:25:51] [Server thread/INFO]: [UltimateChat] ProtocolLib found. Hooked. [02:25:51] [Server thread/WARN]: java.lang.ClassCastException: at.pcgamingfreaks.MarriageMasterStandalone.Bukkit.MarriageMaster cannot be cast to at.pcgamingfreaks.MarriageMaster.Bukkit.MarriageMaster [02:25:51] [Server thread/WARN]: at br.net.fabiozumbi12.UltimateChat.Bukkit.UChat.onEnable(UChat.java:224) [02:25:51] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) [02:25:51] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:338) [02:25:51] [Server thread/WARN]: at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:420) [02:25:51] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_14_R1.CraftServer.enablePlugin(CraftServer.java:467) [02:25:51] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_14_R1.CraftServer.enablePlugins(CraftServer.java:381) [02:25:51] [Server thread/WARN]: at net.minecraft.server.v1_14_R1.MinecraftServer.a(MinecraftServer.java:464) [02:25:51] [Server thread/WARN]: at net.minecraft.server.v1_14_R1.DedicatedServer.init(DedicatedServer.java:282) [02:25:51] [Server thread/WARN]: at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:859) [02:25:51] [Server thread/WARN]: at java.lang.Thread.run(Unknown Source) [02:25:51] [Server thread/INFO]: [UltimateChat] UltimateChat v1.8.9 disabled!
all my plugins have problems with this latest or oldest builds, some error in bukkit communications.
`[02:25:42] [Server thread/INFO]: [FeatherBoard] An error occurred while initi ....
- open the file
plugins/FeatherBoard/placeholders/placeholder_marriagemaster.yml
and set theenabled
option tofalse
.- update your UltimateChat to the latest dev build: http://host.areaz12server.net.br:8080/job/UltimateChat/229/artifact/UltimateChat-Sponge-8/target/UltimateChat-1.8.9-b229-Universal.jar
after that the heart of marry tag on uchat disapear
all my plugins have problems with this latest or oldest builds, some error in bukkit communications.
`[02:25:42] [Server thread/INFO]: [FeatherBoard] An error occurred while initi ....
- open the file
plugins/FeatherBoard/placeholders/placeholder_marriagemaster.yml
and set theenabled
option tofalse
.- update your UltimateChat to the latest dev build: http://host.areaz12server.net.br:8080/job/UltimateChat/229/artifact/UltimateChat-Sponge-8/target/UltimateChat-1.8.9-b229-Universal.jar
after that the heart of marry tag on uchat disapear
Enable this option:
https://github.com/GeorgH93/MarriageMaster/blob/master/resources/config.yml#L89
Some users that write marry home now get a message telling them they are not married, however they do show up as married on the list...
-
They're old married players, I tried it with some characters I recently married myself, and everything works fine. It works fine for some players as well.
-
Yes. All other functions of marriage master work. Maybe something's wrong on my database.
Please send me your plugin config from the BungeeCord and the used BungeeCord version.
Please tell me:
- Are the players that experience the problem only newly married (since the last restart of the BungeeCord) players?
- Can they perform other global actions (if enabled) like chat or tp?
It's a default generated config. When I updated, I tried to copy a new one which I'd already configured, apparently it didn't like it, and declared it as _old
The one currently is a newly generated one. Does it need to be configured like the rest? It's a bit strange that the bungee plugin would generate the same configuration as in the rest of servers.
The BungeeCord config is mostly the same as the Bukkit config (some keys removed and very view keys added and the versions are different Bungee is on 100 Bukkit on 94).
The options that are available on Bukkit and BungeeCord should be set to the same values, especially the Database and Marriage settings.
Your Bukkit config (the one you posted previous) does not use UUIDs and the default config does, so that could be the cause of the problem (the UUIDs of your players in the database not matching their real UUID).
I'll configure the bungee one by hand, since it seems like it may be slightly diferent.