Refined Storage

Refined Storage

77M Downloads

(BUG) All Refined Storage Drive Bays empty after server restart

Vaygrim opened this issue ยท 14 comments

commented

Issue description:

We perform scheduled restarts of our servers twice a day, just to keep performance 'fresh'. After this morning's scheduled restart, the server came back online with all RS Drive Bay blocks being empty of drives.

What you expected to happen:

Not this.

Steps to reproduce:

  1. Literally no clue what caused it.

Version (make sure you are on the latest version before reporting):

  • Minecraft: 1.12.2
  • Forge: 2705
  • Refined Storage: 1.5.34
  • Refined Storage Addons: 0.3
  • Reborn Storage: 1.12.2-3.1.0.50

Does this issue occur on a server? YES

If a (crash)log is relevant for this issue, link it here:

No crash log, but we are trying to pull the server logs from this time period. It's going to be a metric butt-ton of data to go thru tho. Want 'em ?

commented

I have the same problem. Is there any other way to fix it?I guess this ia a data loss of nbt.When my server has restarted,every RS Block will change its face direction and Disc drive/Network Transmitter will be cleard
.Hope this problem will be fixed and I like this mod very much...

Minecraft: 1.12.2
Forge: 2815
Refined Storage: 1.6.14
Reborn Storage: 1.12.2-3.3.2.79

commented

I had disk corruption, showing 0%, and a string of letters and numbers (instead of 5000/16000k or something like that) after a server mod update. I found that it was because the mod altered a few of its item files, thereby corrupting the whole disk (since it couldn't match the old item IDs). This may be what is happening to you, too.

The backup file didn't seem to fix it... It's rather difficult to update any mods when all player's disks get corrupted, and they lose their items.

commented

I didn't update this mod . I just restart my server and this bug caused.

commented

Are all the other blocks reconfigured as well?

commented

Yup, all Import / Export Buses, External Storage Buses, everything reset back to factory defaults.

commented

Do you have a backup?

commented

You can restore by copying refinedstorage_nodes.dat.

commented

The greater worry is what caused it to happen, and will it happen again?

commented

I don't know, there are no reproduction steps. I'm just trying to help you get it back to running as it was, as a temporary solution.

commented

I just want to make sure I'm communicating myself here, as things can get "Lost in Translation" in text form:

This is NOT a "FIX IT NOW" bug report. This is in fact a "WOAH, What happened .. maybe we should give the mod dev a heads up?" bug report. I 100% realize this may in fact not be fixable directly in any way. I don't really even know what broke or how, heh. So .. no pressure, no anger. Just passing on info.

Much love!

commented

I know, no worries ;-)

commented

I had the exact same thing in a FTB Revelations server running RS-1.5.34. I do not have access to that server for backups or logs. I had: all drive bays emptied, all upgrades gone, all configuration reset, all patterns gone (both in processing crafters and the Reborn Storage multiblock).

I would normally consider a Me Too! report (with no logs) to be not particularly useful but there's an additional data point. Nobody else's RS systems on the server were affected. Mine was the only one of the five that was reset.

The key difference between theirs and mine was that mine was active continuously active. It was receiving some items from ore processing and requesting on demand crafting periodically. The other systems were dormant when nobody was using them.

There is a distinct possibility that I may have crashed the server with an incident with an uncontrolled draconic evolution stabilized mob spawner. My RS system would have been trying to keep up with processing the drops after I'd logged out.

commented

Alright found a way to reproduce the bug in my dev environment.

  1. Run in debug mode
  2. Fill the diskfile somehow.
  3. Put a breakpoint in StorageDiskManager.java Line 138
  4. Change the disk and force it to save.
  5. after hitting the breakpoint add another breakpoint in MapStorage.java Line 135 and continue to that
  6. Crash the game using task manager (pressing stop in Intellij finishes the write).
  7. Marvel at your new 0 byte sized file

Solution: Overwrite the vanilla save mechanism. They are using FileOutputStreams maybe something else doesn't overwrite the file until it's actually complete?

commented

Closing as this is a vanilla issue.