LOD database is not being converted when upgrading DH from 2.2.1a (1.21.1) to 2.3.0b-dev (1.21.4)

Just like what title said, recently I updated my Minecraft client while also updating Distant Horizons from 2.2.1a to 2.3.0b. But after updating (and copying DH's data folder and keeping server's name) I found that migration didn't happen, no lagging, no notification/message. When I checked the log, I found following information (⬇️) indicating that DH itself might think there's no data to migrate while the data itself is still there, with a mere name changing from overworld to gm150ja4g3ueg@minecraft@@overworld as well as a 9MB new database in that folder. I tried to restore the backup and doing above all over again. But nothing has changed. 🫠
[20:21:43] [DH-Full Data Migration Thread[0]/INFO]: Found [0] data sources that need migration.
[20:21:43] [DH-Full Data Migration Thread[0]/INFO]: No migration necessary.
[20:21:43] [DH-Full Data Migration Thread[0]/INFO]: Found [0] data sources that need migration.
[20:21:43] [DH-Full Data Migration Thread[0]/INFO]: No migration necessary.
20 Replies
Nyaacinth
NyaacinthOP2w ago
Oh, here's the log
Puhpine
Puhpine2w ago
you dont need to migrate data when going from 2.2.1 to 2.3.0 nothing changed except the location where the sqlite is stored
Nyaacinth
NyaacinthOP2w ago
But I did notice there's no LODs rendering outside 10 chunks (server's render distance) and I need to go everywhere to get LODs again While singleplayer worlds behaves normally
Puhpine
Puhpine2w ago
are there now two sqlite files?
Nyaacinth
NyaacinthOP2w ago
Actually a lot of folders with hash-like names and a sqlite file
Puhpine
Puhpine2w ago
is there one that is a lot bigger than the others?
Nyaacinth
NyaacinthOP2w ago
Yes! There's one with a size of 4.3GB While others are MBs Should I move the sqlite in that folder to the root of that dimension?
Stewi
Stewi2w ago
Oh? Are where any plans to add a migration for this?
Nyaacinth
NyaacinthOP2w ago
I think, according to other support posts, this should be done automatically in most situations Probably I will keep the backup and try to move that db It's working!
hardester
hardester2w ago
Somehow automatic migration not working?
Nyaacinth
NyaacinthOP2w ago
I think so
Puhpine
Puhpine2w ago
eyyy
Nyaacinth
NyaacinthOP2w ago
Probably an edge case?
Puhpine
Puhpine2w ago
perhaps
hardester
hardester2w ago
Without reproduction steps, it'll stay as an edge case.
Nyaacinth
NyaacinthOP2w ago
Yep... Should I provide you with that backup? Or an mmc-pack export of my mc instance? Or any other thing I can help?
Stewi
Stewi2w ago
Reply here if/when someone gets around to starting to try debugging this.
Nyaacinth
NyaacinthOP2w ago
Okay, I'll do that I think I need to mark this as solved, but I'm not sure about that, also I'm not sure on marking which message as solution
jackworks
jackworks2w ago
I wonder what the current migration logic is, in this database, here are Distant_Horizons_server_data/server_name/overworld/[a lot of uuid]/DistantHorizons.sqlite and only 1 has GB level size, the migration should pick the biggest one (or are those UUIDs have other meanings?)
YAGPDB.xyz
YAGPDB.xyz2w ago
Distant Generation doesn't work in multiplayer, meaning DH won't be able to generate LODs for chunks outside the vanilla render distance. Instead, as you travel around the world, LODs will be generated for areas you've visited. In the next update, DH 2.3, you will be able to add DH to your server granted it's running a compatible mod/plugin loader (Fabric, (Neo)Forge, Bukkit and their derivatives). This will allow the server to generate LODs and send them to the client, making distant generation possible on multiplayer. If you wish to try 2.3 early, read everything in this thread: https://discord.com/channels/881614130614767666/1285883332768563284 Keep in mind that this build is still experimental, we do not encourage using it on large servers until further testing.

Did you find this page helpful?