Database isnt saved. V3 #172
Labels
No Label
API
Addon Request
Bug
Duplicate
Enhancement
Feature Request
High Priority
Hybrid Software
Incompatibility
Invalid
Legacy
Low Priority
Missing Information
Needs Confirmation
Possible with API
Question
Won't Fix
v3
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: SBDevelopment/VehiclesPlus#172
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Database is not being saved on server stop, see video.
https://youtu.be/6PYbmeq_JFY
Same happens event if I delete data.db and create a garage with an empty db.
https://www.youtube.com/watch?v=7TXzagSnwek
Same error using mysql.
Garage config isnt saved.to Garage config isnt saved. V3Garage config isnt saved. V3to Config isnt saved. V3Config isnt saved. V3to Database isnt saved. V3can you maybe send the database file after stopping the first time?
Its empty, here I show it to you in a video.
In last try the vehicle is saved in the db, but the garages don't, and the vehicle didn't spawn.
https://youtu.be/JdwTBQTO6G8
Please provide the error as text.
[13:52:20] [Server thread/INFO]: [VehiclesPlus] Enabling VehiclesPlus v3.0.0-SNAPSHOT
[13:52:20] [Server thread/INFO]: [VehiclesPlus] -------------------------------
[13:52:20] [Server thread/INFO]: [VehiclesPlus] VehiclesPlus v3.0.0-SNAPSHOT
[13:52:20] [Server thread/INFO]: [VehiclesPlus] Made by SBDeveloper
[13:52:20] [Server thread/INFO]: [VehiclesPlus]
[13:52:20] [Server thread/INFO]: [VehiclesPlus] This copy is bought on SpigotMC (2302).
[13:52:20] [Server thread/INFO]: [VehiclesPlus] Loading config...
[13:52:20] [Server thread/INFO]: [VehiclesPlus] Loading API and settings...
[13:52:21] [Server thread/INFO]: [VehiclesPlus] Connecting to data storage...
[13:52:21] [Server thread/INFO]: [VehiclesPlus] Connecting to the MySQL database 'VehiclesPlus'...
[13:52:21] [Server thread/INFO]: [nl.sbdeveloper.vehiclesplus.libs.hikari.HikariDataSource] HikariPool-1 - Starting...
[13:52:21] [Server thread/INFO]: [nl.sbdeveloper.vehiclesplus.libs.hikari.pool.HikariPool] HikariPool-1 - Added connection com.mysql.cj.jdbc.ConnectionImpl@6f0b9181
[13:52:21] [Server thread/INFO]: [nl.sbdeveloper.vehiclesplus.libs.hikari.HikariDataSource] HikariPool-1 - Start completed.
[13:52:21] [Server thread/INFO]: [VehiclesPlus] Loading vehicle storage...
[13:52:21] [Server thread/ERROR]: [VehiclesPlus] Couldn't load a vehicle
nl.sbdeveloper.vehiclesplus.libs.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "garage" (class nl.sbdeveloper.vehiclesplus.api.vehicles.impl.StorageVehicle), not marked as ignorable (7 known properties: "parts", "statics", "actionBarMessage", "uuid", "trunkItems", "displayName", "vehicleModel"])
at [Source: REDACTED (
StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION
disabled); line: 1, column: 10832] (through reference chain: nl.sbdeveloper.vehiclesplus.api.vehicles.impl.StorageVehicle["garage"])at nl.sbdeveloper.vehiclesplus.libs.jackson.databind.exc.UnrecognizedPropertyException.from(UnrecognizedPropertyException.java:61) ~[VehiclesPlus-3.0.0-PRE5.jar:?]
at nl.sbdeveloper.vehiclesplus.libs.jackson.databind.DeserializationContext.handleUnknownProperty(DeserializationContext.java:1153) ~[VehiclesPlus-3.0.0-PRE5.jar:?]
at nl.sbdeveloper.vehiclesplus.libs.jackson.databind.deser.std.StdDeserializer.handleUnknownProperty(StdDeserializer.java:2224) ~[VehiclesPlus-3.0.0-PRE5.jar:?]
at nl.sbdeveloper.vehiclesplus.libs.jackson.databind.deser.BeanDeserializerBase.handleUnknownProperty(BeanDeserializerBase.java:1793) ~[VehiclesPlus-3.0.0-PRE5.jar:?]
at nl.sbdeveloper.vehiclesplus.libs.jackson.databind.deser.BeanDeserializerBase.handleUnknownVanilla(BeanDeserializerBase.java:1771) ~[VehiclesPlus-3.0.0-PRE5.jar:?]
at nl.sbdeveloper.vehiclesplus.libs.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:279) ~[VehiclesPlus-3.0.0-PRE5.jar:?]
at nl.sbdeveloper.vehiclesplus.libs.jackson.databind.deser.BeanDeserializer._deserializeUsingPropertyBased(BeanDeserializer.java:464) ~[VehiclesPlus-3.0.0-PRE5.jar:?]
at nl.sbdeveloper.vehiclesplus.libs.jackson.databind.deser.BeanDeserializerBase.deserializeFromObjectUsingNonDefault(BeanDeserializerBase.java:1493) ~[VehiclesPlus-3.0.0-PRE5.jar:?]
at nl.sbdeveloper.vehiclesplus.libs.jackson.databind.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:348) ~[VehiclesPlus-3.0.0-PRE5.jar:?]
at nl.sbdeveloper.vehiclesplus.libs.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:185) ~[VehiclesPlus-3.0.0-PRE5.jar:?]
at nl.sbdeveloper.vehiclesplus.libs.jackson.databind.deser.DefaultDeserializationContext.readRootValue(DefaultDeserializationContext.java:342) ~[VehiclesPlus-3.0.0-PRE5.jar:?]
at nl.sbdeveloper.vehiclesplus.libs.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4899) ~[VehiclesPlus-3.0.0-PRE5.jar:?]
at nl.sbdeveloper.vehiclesplus.libs.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3846) ~[VehiclesPlus-3.0.0-PRE5.jar:?]
at nl.sbdeveloper.vehiclesplus.libs.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3814) ~[VehiclesPlus-3.0.0-PRE5.jar:?]
at nl.sbdeveloper.vehiclesplus.utils.jackson.JacksonHelper.fromJSON(JacksonHelper.java:67) ~[VehiclesPlus-3.0.0-PRE5.jar:?]
at nl.sbdeveloper.vehiclesplus.storage.db.MySQLDB.lambda$loadVehicles$1(MySQLDB.java:70) ~[VehiclesPlus-3.0.0-PRE5.jar:?]
at nl.sbdeveloper.vehiclesplus.storage.db.DataStorageHCP.execute(DataStorageHCP.java:19) ~[VehiclesPlus-3.0.0-PRE5.jar:?]
at nl.sbdeveloper.vehiclesplus.storage.db.MySQLDB.loadVehicles(MySQLDB.java:60) ~[VehiclesPlus-3.0.0-PRE5.jar:?]
at nl.sbdeveloper.vehiclesplus.VehiclesPlus.onEnable(VehiclesPlus.java:106) ~[VehiclesPlus-3.0.0-PRE5.jar:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:281) ~[purpur-api-1.20.4-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:190) ~[purpur-1.20.4.jar:git-Purpur-"544a2b6"]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:104) ~[purpur-1.20.4.jar:git-Purpur-"544a2b6"]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:507) ~[purpur-api-1.20.4-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.v1_20_R3.CraftServer.enablePlugin(CraftServer.java:651) ~[purpur-1.20.4.jar:git-Purpur-"544a2b6"]
at org.bukkit.craftbukkit.v1_20_R3.CraftServer.enablePlugins(CraftServer.java:562) ~[purpur-1.20.4.jar:git-Purpur-"544a2b6"]
at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:678) ~[purpur-1.20.4.jar:git-Purpur-"544a2b6"]
at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:438) ~[purpur-1.20.4.jar:git-Purpur-"544a2b6"]
at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:345) ~[purpur-1.20.4.jar:git-Purpur-"544a2b6"]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1148) ~[purpur-1.20.4.jar:git-Purpur-"544a2b6"]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:326) ~[purpur-1.20.4.jar:git-Purpur-"544a2b6"]
at java.lang.Thread.run(Thread.java:840) ~[?:?]
[13:52:21] [Server thread/INFO]: [VehiclesPlus] Loading garage storage...
[13:52:21] [Server thread/INFO]: [VehiclesPlus] Loading tasks...
[13:52:21] [Server thread/INFO]: [VehiclesPlus] Registering commands...
[13:52:21] [Server thread/INFO]: [VehiclesPlus] [ACF] Enabled Asynchronous Tab Completion Support!
[13:52:21] [Server thread/INFO]: [VehiclesPlus] Loading the language file lang_en.yml...
[13:52:21] [Server thread/INFO]: [VehiclesPlus] Set the locale 'en' as default.
[13:52:21] [Server thread/INFO]: [VehiclesPlus] Registering events...
[13:52:21] [Server thread/WARN]: [VehiclesPlus] Enabled legacy EntityDismountEvent listener, which is required for older versions (below 1.20.4 for Spigot or 1.20 for PaperSpigot).
[13:52:21] [Server thread/INFO]: [VehiclesPlus] Loading GUIs...
[13:52:21] [Server thread/INFO]: [VehiclesPlus] Detected WorldGuard (v7.x)! Loading custom flags...
[13:52:21] [Server thread/INFO]: [VehiclesPlus] Loading SmoothCoastersAPI...
[13:52:21] [Server thread/INFO]: [VehiclesPlus] Loading metrics (can be disabled in the config of bStats)...
[13:52:21] [Server thread/INFO]: [VehiclesPlus] Plugin enabled!
[13:52:21] [Server thread/INFO]: [VehiclesPlus] -------------------------------