Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BagOfGold v4.5.4 - First time install error #142

Closed
C4BR3R4 opened this issue Apr 13, 2023 · 13 comments
Closed

BagOfGold v4.5.4 - First time install error #142

C4BR3R4 opened this issue Apr 13, 2023 · 13 comments
Labels
Fixed - To be tested Developer is waiting for the reporter to test the fix.

Comments

@C4BR3R4
Copy link

C4BR3R4 commented Apr 13, 2023

Errors in console to installing plugin:
[BagOfGold] Enabling BagOfGold v4.5.3 [BagOfGold] Config.yml was backed up to plugins/BagOfGold/backup/config.yml.bak1 [BagOfGold][Debug] bStat is enabled [BagOfGold][Debug] Initialize database [BagOfGold] Database version 3 detected. [BagOfGold]Copying players from BagOfGold til BagOfGoldCore database Error occurred while enabling BagOfGold v4.5.3 (Is it up to date?) java.lang.NullPointerException: Cannot invoke "one.lindegaard.BagOfGold.storage.DataStoreManager.flush()" because the return value of "one.lindegaard.BagOfGold.BagOfGold.getDataStoreManager()" is null at one.lindegaard.BagOfGold.storage.SQLiteDataStore.migrateDatabaseLayoutFromV3ToV4(SQLiteDataStore.java:221) ~[BagOfGold-4.5.3.jar:?] at one.lindegaard.BagOfGold.storage.DatabaseDataStore.initialize(DatabaseDataStore.java:143) ~[BagOfGold-4.5.3.jar:?] at one.lindegaard.BagOfGold.BagOfGold.onEnable(BagOfGold.java:144) ~[BagOfGold-4.5.3.jar:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:279) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:?] at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:192) ~[paper-1.19.4.jar:git-Paper-510] at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:104) ~[paper-1.19.4.jar:git-Paper-510] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:507) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:?] at org.bukkit.craftbukkit.v1_19_R3.CraftServer.enablePlugin(CraftServer.java:555) ~[paper-1.19.4.jar:git-Paper-510] at org.bukkit.craftbukkit.v1_19_R3.CraftServer.enablePlugins(CraftServer.java:466) ~[paper-1.19.4.jar:git-Paper-510] at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:638) ~[paper-1.19.4.jar:git-Paper-510] at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:437) ~[paper-1.19.4.jar:git-Paper-510] at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:308) ~[paper-1.19.4.jar:git-Paper-510] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1104) ~[paper-1.19.4.jar:git-Paper-510] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:320) ~[paper-1.19.4.jar:git-Paper-510] at java.lang.Thread.run(Unknown Source) ~[?:?] [BagOfGold] Disabling BagOfGold v4.5.3

@Rocologo
Copy link
Owner

First time? But it looks like it's trying to upgrade an old database?

You can stop your server and then delete bagofgold.db and set database_version in config.yml to 0 and then start the server again

@C4BR3R4
Copy link
Author

C4BR3R4 commented Apr 13, 2023

Testing...

@C4BR3R4
Copy link
Author

C4BR3R4 commented Apr 13, 2023

First time? But it looks like it's trying to upgrade an old database?

You can stop your server and then delete bagofgold.db and set database_version in config.yml to 0 and then start the server again

Is first time.

I have deleted the bagofgold.db file and the customitemslib.db file and set database_version in config.yml to 0 in both plugins and the problem continues.

@Rocologo
Copy link
Owner

Did you stop the server before changing the value to 0?

@C4BR3R4
Copy link
Author

C4BR3R4 commented Apr 13, 2023

Did you stop the server before changing the value to 0?

Of course

@C4BR3R4
Copy link
Author

C4BR3R4 commented Apr 13, 2023

Log: https://pastebin.com/ZUmEWsXz
Error starting line 505

@Rocologo
Copy link
Owner

This one

one.lindegaard.BagOfGold.storage.SQLiteDataStore.migrateDatabaseLayoutFromV3ToV4(SQLiteDataStore.java:221)

Means that the plugin try to update the database, which should not happen. If you have deleted the DB file you can also try to set version to 4. (Newest)

@C4BR3R4
Copy link
Author

C4BR3R4 commented Apr 13, 2023

Changed to 4 deleting the database and the problem continues with new errors:

[18:48:53 INFO]: [CustomItemsLib] Enabling CustomItemsLib v1.0.6 [18:48:54 INFO]: [CustomItemsLib][Debug] Loading config.yml file, version -1 [18:48:54 INFO]: [CustomItemsLib][Debug] Initialize database [18:48:54 WARN]: one.lindegaard.CustomItemsLib.storage.DataStoreException: org.sqlite.SQLiteException: [SQLITE_ERROR] SQL error or missing database (no such table: mh_PlayerSettings) [18:48:54 WARN]: at CustomItemsLib-1.0.6.jar//one.lindegaard.CustomItemsLib.storage.DatabaseDataStore.createRandomBountyPlayer(DatabaseDataStore.java:432) [18:48:54 WARN]: at CustomItemsLib-1.0.6.jar//one.lindegaard.CustomItemsLib.storage.DatabaseDataStore.initialize(DatabaseDataStore.java:114) [18:48:54 WARN]: at CustomItemsLib-1.0.6.jar//one.lindegaard.CustomItemsLib.Core.onEnable(Core.java:145) [18:48:54 WARN]: at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:279) [18:48:54 WARN]: at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:192) [18:48:54 WARN]: at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:104) [18:48:54 WARN]: at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:507) [18:48:54 WARN]: at org.bukkit.craftbukkit.v1_19_R3.CraftServer.enablePlugin(CraftServer.java:555) [18:48:54 WARN]: at org.bukkit.craftbukkit.v1_19_R3.CraftServer.enablePlugins(CraftServer.java:466) [18:48:54 WARN]: at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:638) [18:48:54 WARN]: at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:437) [18:48:54 WARN]: at net.minecraft.server.dedicated.DedicatedServer.e(DedicatedServer.java:308) [18:48:54 WARN]: at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1104) [18:48:54 WARN]: at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:320) [18:48:54 WARN]: at java.base/java.lang.Thread.run(Unknown Source) [18:48:54 WARN]: Caused by: org.sqlite.SQLiteException: [SQLITE_ERROR] SQL error or missing database (no such table: mh_PlayerSettings) [18:48:54 WARN]: at org.sqlite.core.DB.newSQLException(DB.java:1179) [18:48:54 WARN]: at org.sqlite.core.DB.newSQLException(DB.java:1190) [18:48:54 WARN]: at org.sqlite.core.DB.throwex(DB.java:1150) [18:48:54 WARN]: at org.sqlite.core.NativeDB.prepare_utf8(Native Method) [18:48:54 WARN]: at org.sqlite.core.NativeDB.prepare(NativeDB.java:126) [18:48:54 WARN]: at org.sqlite.core.DB.prepare(DB.java:264) [18:48:54 WARN]: at org.sqlite.jdbc3.JDBC3Statement.lambda$executeQuery$1(JDBC3Statement.java:81) [18:48:54 WARN]: at org.sqlite.jdbc3.JDBC3Statement.withConnectionTimeout(JDBC3Statement.java:454) [18:48:54 WARN]: at org.sqlite.jdbc3.JDBC3Statement.executeQuery(JDBC3Statement.java:79) [18:48:54 WARN]: at CustomItemsLib-1.0.6.jar//one.lindegaard.CustomItemsLib.storage.DatabaseDataStore.createRandomBountyPlayer(DatabaseDataStore.java:416) [18:48:54 WARN]: ... 14 more [18:48:54 ERROR]: Error occurred while enabling CustomItemsLib v1.0.6 (Is it up to date?) java.lang.NullPointerException: Cannot invoke "one.lindegaard.CustomItemsLib.storage.DataStoreManager.isRunning()" because the return value of "one.lindegaard.CustomItemsLib.Core.getDataStoreManager()" is null at one.lindegaard.CustomItemsLib.storage.DatabaseDataStore.shutdown(DatabaseDataStore.java:160) ~[CustomItemsLib-1.0.6.jar:?] at one.lindegaard.CustomItemsLib.Core.onEnable(Core.java:149) ~[CustomItemsLib-1.0.6.jar:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:279) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:?] at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:192) ~[paper-1.19.4.jar:git-Paper-510] at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:104) ~[paper-1.19.4.jar:git-Paper-510] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:507) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:?] at org.bukkit.craftbukkit.v1_19_R3.CraftServer.enablePlugin(CraftServer.java:555) ~[paper-1.19.4.jar:git-Paper-510] at org.bukkit.craftbukkit.v1_19_R3.CraftServer.enablePlugins(CraftServer.java:466) ~[paper-1.19.4.jar:git-Paper-510] at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:638) ~[paper-1.19.4.jar:git-Paper-510] at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:437) ~[paper-1.19.4.jar:git-Paper-510] at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:308) ~[paper-1.19.4.jar:git-Paper-510] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1104) ~[paper-1.19.4.jar:git-Paper-510] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:320) ~[paper-1.19.4.jar:git-Paper-510] at java.lang.Thread.run(Unknown Source) ~[?:?] [18:48:54 INFO]: [CustomItemsLib] Disabling CustomItemsLib v1.0.6 [18:48:54 INFO]: [CustomItemsLib][Debug] Saving all rewardblocks to disk. [18:48:54 INFO]: [CustomItemsLib][Debug] Saving worldgroups. [18:48:54 INFO]: [CustomItemsLib][Debug] Shutdown StoreManager [18:48:54 ERROR]: Error occurred (in the plugin loader) while disabling CustomItemsLib v1.0.6 (Is it up to date?) java.lang.NullPointerException: Cannot invoke "one.lindegaard.CustomItemsLib.storage.DataStoreManager.shutdown()" because "one.lindegaard.CustomItemsLib.Core.mDataStoreManager" is null at one.lindegaard.CustomItemsLib.Core.onDisable(Core.java:197) ~[CustomItemsLib-1.0.6.jar:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:281) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:?] at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.disablePlugin(PaperPluginInstanceManager.java:227) ~[paper-1.19.4.jar:git-Paper-510] at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.disablePlugin(PaperPluginManagerImpl.java:109) ~[paper-1.19.4.jar:git-Paper-510] at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:537) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:?] at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:196) ~[paper-1.19.4.jar:git-Paper-510] at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:104) ~[paper-1.19.4.jar:git-Paper-510] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:507) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:?] at org.bukkit.craftbukkit.v1_19_R3.CraftServer.enablePlugin(CraftServer.java:555) ~[paper-1.19.4.jar:git-Paper-510] at org.bukkit.craftbukkit.v1_19_R3.CraftServer.enablePlugins(CraftServer.java:466) ~[paper-1.19.4.jar:git-Paper-510] at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:638) ~[paper-1.19.4.jar:git-Paper-510] at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:437) ~[paper-1.19.4.jar:git-Paper-510] at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:308) ~[paper-1.19.4.jar:git-Paper-510] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1104) ~[paper-1.19.4.jar:git-Paper-510] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:320) ~[paper-1.19.4.jar:git-Paper-510] at java.lang.Thread.run(Unknown Source) ~[?:?]

@C4BR3R4 C4BR3R4 changed the title BagOfGold installing first time BagOfGold first time install error Apr 13, 2023
@C4BR3R4 C4BR3R4 changed the title BagOfGold first time install error BagOfGold v4.5.4 - First time install error Apr 13, 2023
@Rocologo
Copy link
Owner

I have created a copy of my test server and deleted the db files from both CustomItemsLib, BagOfGold and Mobhunting and started my test server. No errors???

Then I checked your log file and the database_version is 3 not 4

[18:10:05] [Server thread/INFO]: [BagOfGold] Database version 3 detected.

  1. Stop the server
  2. Change database_version to 4
  3. Start the server

@Rocologo
Copy link
Owner

Or try snapshot 131 or newer

https://jenkins.lindegaard.one/job/BagOfGold/

@Rocologo Rocologo added the Fixed - To be tested Developer is waiting for the reporter to test the fix. label Apr 13, 2023
@C4BR3R4
Copy link
Author

C4BR3R4 commented Apr 14, 2023

I have deleted the entire folders. Installed BagOfGold 4.5.5 #132 and Mobhunting.
I keep getting errors now about BagOfGold and also Mobhunting.

Log server: https://pastebin.com/NtAJ5NTy
Errors line 286 and 312

@Rocologo
Copy link
Owner

I so strange why you are having so many problems. Are you running your server on Linux or Windows ?

This error

[13:47:03] [Server thread/ERROR]: Error occurred while enabling MobHunting v8.5.3 (Is it up to date?)
java.lang.NullPointerException: Cannot invoke "one.lindegaard.MobHunting.storage.DataStoreManager.flush()" because the return value of "one.lindegaard.MobHunting.MobHunting.getDataStoreManager()" is null

Should be fixed in newest snapshot from yesterday: https://jenkins.lindegaard.one/job/MobHunting/

Yesterday I only tested what happenden when I deleted the db file. I will try to delete the folders completely later today and see if I can get this error too:

[13:47:03] [Server thread/INFO]: [MobHunting] Language file does not exist. Creating a new file based on en_US. You need to translate the file yourself.
[13:47:03] [Server thread/WARN]: java.io.IOException: No such file or directory
[13:47:03] [Server thread/WARN]: at java.base/java.io.UnixFileSystem.createFileExclusively(Native Method)

@C4BR3R4
Copy link
Author

C4BR3R4 commented Apr 14, 2023

Server is running "Linux 5.4.0-90-generic (amd64)" under Java JRE 18. Hosting by "Sparkedhost.com" and "Pterodactyl Panel".

Until before the last test I did not have MobHunting installed, I understand that it is not a dependency?
But I have only been able to install BagOfGold correctly after installing MobHunting and the last mentioned error.

Then I have restarted the server again without MobHunting and the error did not appear again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fixed - To be tested Developer is waiting for the reporter to test the fix.
Projects
None yet
Development

No branches or pull requests

2 participants