question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Markers reset on server restart when usign MySQL for map

See original GitHub issue

I’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:closed
  • Created 3 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
FedUpWith-Techcommented, Aug 3, 2020

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?

0reactions
JurgenKuypercommented, Dec 29, 2021

@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

Read more comments on GitHub >

github_iconTop Results From Across the Web

MySQL 8.0 Reference Manual :: 13.7.8.8 RESTART Statement
This statement stops and restarts the MySQL server. It requires the SHUTDOWN privilege. One use for RESTART is when it is not possible...
Read more >
Refresh google map markers from mysql - Stack Overflow
I am sort of OK with PHP/MySQL but very new to Google Maps. <script type='text/javascript'> //This javascript will load when the page loads....
Read more >
Spatial Map Visualization Developer's Guide
cached data, creating tile layers, managing tile layers, and restarting the server (use the. Monitoring link to restart). 1.5.2 Configuring the Map ......
Read more >
Known issues - PaperCut
Application Server doesn't start successfully when using MySQL 8.0.23 ... PaperCut NG/MF installer always resets web-print-hot-folder security permissions.
Read more >
Debezium connector for SQL Server
For information about the SQL Server versions that are compatible with this ... after a restart the connector resumes reading the SQL Server...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found