DW20 chunk in Wrong location issue

  • Please make sure you are posting in the correct place. Server ads go here and modpack bugs go here
  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Cougar281

New Member
Jul 29, 2019
167
0
0
A DW20 server I started playing on a week or two just started having an issue where when I log in, I see animals around, but I'm falling until it times out and the console gets constantly spammed with messages indicating that a chunk was in the wrong location.

[12:12:03] [Server thread/INFO]: Cougar281 joined the game
[12:12:04] [Chunk I/O Executor Thread-1/ERROR]: Chunk file at 51,24 is in the wrong location; relocating. (Expected 51, 24, got 59, 31)
[12:12:04] [Server thread/INFO]: [Server] Welcome back, Cougar281
[12:12:04] [Server thread/INFO]: You whisper to Cougar281: Hey there, Cougar281!
[12:12:04] [Server thread/INFO]: You whisper to Cougar281: Welcome to
[12:12:04] [Server thread/WARN]: Wrong location! EntitySquid['Squid'/1034, l='world', x=830.24, y=47.11, z=388.15] (at 51, 24 instead of 59, 31)
[12:12:04] [Server thread/WARN]: Wrong location! EntitySquid['Squid'/1035, l='world', x=830.24, y=47.11, z=388.15] (at 51, 24 instead of 59, 31)
[12:12:04] [Server thread/WARN]: Wrong location! EntitySquid['Squid'/1036, l='world', x=830.24, y=47.11, z=388.15] (at 51, 24 instead of 59, 31)
[12:12:04] [Server thread/WARN]: Wrong location! EntitySquid['Squid'/1037, l='world', x=830.24, y=47.11, z=388.15] (at 51, 24 instead of 59, 31)
[12:12:04] [Server thread/WARN]: Wrong location! EntitySquid['Squid'/1038, l='world', x=830.24, y=47.11, z=388.15] (at 51, 24 instead of 59, 31)
[12:12:04] [Server thread/WARN]: Wrong location! EntitySquid['Squid'/1039, l='world', x=830.24, y=47.11, z=388.15] (at 51, 24 instead of 59, 31)
[12:12:04] [Server thread/WARN]: Wrong location! EntitySquid['Squid'/1040, l='world', x=830.24, y=47.11, z=388.15] (at 51, 24 instead of 59, 31)
[12:12:04] [Server thread/WARN]: Wrong location! EntitySquid['Squid'/1041, l='world', x=830.24, y=47.11, z=388.15] (at 51, 24 instead of 59, 31)
[12:12:04] [Server thread/WARN]: Wrong location! EntitySquid['Squid'/1042, l='world', x=830.24, y=47.11, z=388.15] (at 51, 24 instead of 59, 31)
[12:12:04] [Server thread/WARN]: Wrong location! EntitySquid['Squid'/1043, l='world', x=830.24, y=47.11, z=388.15] (at 51, 24 instead of 59, 31)
[12:12:04] [Server thread/WARN]: Wrong location! EntitySquid['Squid'/1044, l='world', x=830.24, y=47.11, z=388.15] (at 51, 24 instead of 59, 31)
[12:12:04] [Server thread/WARN]: Wrong location! EntitySquid['Squid'/1045, l='world', x=830.24, y=47.11, z=388.15] (at 51, 24 instead of 59, 31)
[12:12:04] [Server thread/WARN]: Wrong location! EntitySquid['Squid'/1046, l='world', x=830.24, y=47.11, z=388.15] (at 51, 24 instead of 59, 31)
[12:12:04] [Server thread/WARN]: Wrong location! EntitySquid['Squid'/1047, l='world', x=830.24, y=47.11, z=388.15] (at 51, 24 instead of 59, 31)

Basically, it's that over and over until MCMyAdmin is killed.

I think this stems from a failed drive in the RAID1 array that this server was stored on. It was giving me all kinds of trouble with lag and such until I moved it over to a different array. The initial problem I had was the level.dat got hosed and it was running off the backup, which erased my location and all my inventory (Why is it this way?? It used to be that info was stored in a player data file, not the global world file...). I recovered it and was able to get back in it and back to my 'home', after which I made a backup in MCMA. This new issue with the wrong chunk cropped up next. If I restore the backup, I can get in to the server - I still get "I/O Executor Thread-1/ERROR]: Chunk file at 51,24 is in the wrong location; relocating. (Expected 51, 24, got 59, 31)" in the console though. It says 'relocating', but if I log out and then back in, it does it again, so it would seem it's not fixing it.

Since the last time I restored it, I've logged out and back in a few times and restarted the server and so far, while it's still coming up with the 'wrong location' message, it isn't spazzing out, so I'm at a loss as to what is causing that to happen after a bit.

I tried using Minecraft Region Fixer, but that seemed inconsistent, at best. One time I ran it, just to see what it would fine, and it reported a chunk with a wrong location. I made a copy of the folder to have a backup to compare to and ran it again, and it reported no issues. I finally figured out which file was the problem and removed it, and of course, it was the chunk where EVERYTHING I've been doing is located so when I removed it (after making a backup), that chunk was reset and all was lost.

Is there any way to actually fix this, or is my world pretty much hosed?
 

GreenZombie

New Member
Jul 29, 2019
2,402
-1
0
Open the offending mca file in NBTExplorer, find the offending chunk and delete that specific node. Or manually apply the location fix.

SSP games use the level.dat for player data. SMP games use the player data/*.dat files
 

Cougar281

New Member
Jul 29, 2019
167
0
0
I got NBTExplorer and poked around the offending mca file, and finally found where it had the location messed up (In the 'Chunk [19, 24] in world at (51, 24)' portion of the mca file, under level, it had 'xPos: 59' and 'zPos: 31' - Obviously, that doesn't match the '51,24' that it's supposed to be, so I changed it and saved it.... now, after saving it, uploading it to my server, starting the world and trying to log in, I now get the inverse message, indicating 'at 51,24 instead of 59,31'. It seems that the change I made in NBTExplorer is recognized, but now it thinks the correct location actually belongs in the wrong location... What did I miss?

As far as the level.dat vs player data/ dat files, This is a server running under MCMyAdmin on a linux machine - assuming it's really using the player data/dat files, then the borked level.dat should not have set me back at at spawn with all my inventory gone, I would think, yet that's what happened...
 
Last edited:

GreenZombie

New Member
Jul 29, 2019
2,402
-1
0
I got NBTExplorer and poked around the offending mca file, and finally found where it had the location messed up (In the 'Chunk [19, 24] in world at (51, 24)' portion of the mca file, under level, it had 'xPos: 59' and 'zPos: 31' - Obviously, that doesn't match the '51,24' that it's supposed to be, so I changed it and saved it.... now, after saving it, uploading it to my server, starting the world and trying to log in, I now get the inverse message, indicating 'at 51,24 instead of 59,31'. It seems that the change I made in NBTExplorer is recognized, but now it thinks the correct location actually belongs in the wrong location... What did I miss?

As far as the level.dat vs player data/ dat files, This is a server running under MCMyAdmin on a linux machine - assuming it's really using the player data/dat files, then the borked level.dat should not have set me back at at spawn with all my inventory gone, I would think, yet that's what happened...

No idea. There must be some other fields that cache the position.
Does this one chunk contain critical content? Deleting the MCA file is going to delete a 512x512 area of the world (iirc) which will cause a lot of collateral damage - deleting just the one misplaced chunk node might not cause any significant loss to your build
 

Cougar281

New Member
Jul 29, 2019
167
0
0
Unfortunately, the affected file contains *everything* I've done :(. Quarry, power system, sag mill, etc, small ae system... If I cant figure out how to fix it, I there's no point in keeping the world, so I'll make a new one if I can't figure it out. Maybe the problem has something to do with my being in the chunk... I'll try the backup when I was reverted to spawn and see what happens.

Sent from my 831C using Tapatalk
 

Cougar281

New Member
Jul 29, 2019
167
0
0
So I ended up deleting the offending chunk in the file, and apparently, while the file contained my base, the offending chunk in the file was not my base - nothing appears to be missing whatsoever, so that managed to fix my issue. Glad it wasn't my base! Oddly, while I ended up losing all the inventory that I had on my player and ended up back at spawn as if I was a brand new player, my niece didn't lose a thing or end up back at spawn.

Thanks for the tips.