Markers reset on server restart when usign MySQL for map
See original GitHub issueI’ve set up a Minecraft 1.16.1 with the latest PaperMC server with Dynmap-3.1-beta-2-spigot. The map is saved in a remote MySQL database.
I can add/remove markers with no issues. When I restart the server it clears everything new saved in the MarkerFiles table. When I stop, the data is there.
{"sets": {"player_markers": {"hide": false,"circles": {},"areas": {},"label": "Player Markers","markers": {"dog--161-220-world": {"markup": false,"x": -161.20491496670442,"icon": "sign","y": 64.0,"dim": "16x16","z": 220.32777644624107,"label": "Turtles!! "}},"lines": {},"layerprio": 0},"markers": {"hide": false,"circles": {},"areas": {},"label": "Markers","markers": {"_spawn_world": {"markup": false,"x": -196.0,"icon": "world","y": 72.0,"dim": "16x16","z": 261.0,"label": "Spawn"}},"lines": {},"layerprio": 0}},"timestamp": 1596263059605}
But when the server starts, the data is overwritten with default I guess:
{"sets": {"player_markers": {"hide": false,"circles": {},"areas": {},"label": "Player Markers","markers": {},"lines": {},"layerprio": 0},"markers": {"hide": false,"circles": {},"areas": {},"label": "Markers","markers": {"_spawn_world": {"markup": false,"x": -196.0,"icon": "world","y": 72.0,"dim": "16x16","z": 261.0,"label": "Spawn"}},"lines": {},"layerprio": 0}},"timestamp": 1596262006614}
Is there a way I can fix the markers and still keep the map loaded in the database?
Later Edit: the same thing happens regardless if the data is saved in MySQL or not, I tested a default setting and I have the same issue
Issue Analytics
- State:
- Created 3 years ago
- Comments:9
Top GitHub Comments
Great thanks for this. Its very helpful in narrowing down the issue- I’m fairly new to the dynmap team and still learning the backend but I hope to figure this out as its a very common issue with many causes (one of which was the /dynmap reload command)
I’ve nailed it down the an issue with certain operations that close dynmap and more often than not its papermc servers not spigot servers. Im wondering if its related to the issue in #3066
Are there any shutdown errors from dynmap in the log?
@alurosu no longer the case in beta-4-617 (1.18.1), markers persist after restart, update and retry. If it still happens to you please reopen this