Skip to content
This repository has been archived by the owner on Aug 23, 2020. It is now read-only.

Database snapshot from Linux leads to unexpected behaviour on Windows #477

Open
romansemko opened this issue Jan 9, 2018 · 6 comments
Open

Comments

@romansemko
Copy link
Contributor

romansemko commented Jan 9, 2018

Steps to reproduce on Windows:

  1. Use the latest IRI 1.4.1.6
  2. Download the database snapshot from iota.partners. Extract.
  3. Start IRI with database path pointing to the extracted folder.
  4. IRI logs following error during the start:
    ERROR com.iota.iri.Milestone - Error initializing snapshots. Skipping. org.rocksdb.RocksDBException: Snappy not supported or corrupted Snappy compressed block contents at org.rocksdb.RocksDB.get(Native Method) ~[iri-1.4.1.6-bolero.jar:na] at org.rocksdb.RocksDB.get(RocksDB.java:810) ~[iri-1.4.1.6-bolero.jar:na] at com.iota.iri.storage.rocksDB.RocksDBPersistenceProvider.get(RocksDBPersistenceProvider.java:193) ~[iri-1.4.1.6-bolero.jar:na] at com.iota.iri.storage.Tangle.load(Tangle.java:40) ~[iri-1.4.1.6-bolero.jar:na] at com.iota.iri.controllers.StateDiffViewModel.load(StateDiffViewModel.java:18) ~[iri-1.4.1.6-bolero.jar:na] at com.iota.iri.LedgerValidator.buildSnapshot(LedgerValidator.java:229) ~[iri-1.4.1.6-bolero.jar:na] at com.iota.iri.LedgerValidator.init(LedgerValidator.java:201) ~[iri-1.4.1.6-bolero.jar:na] at com.iota.iri.Milestone.lambda$init$1(Milestone.java:138) ~[iri-1.4.1.6-bolero.jar:na] at java.lang.Thread.run(Unknown Source) ~[na:1.8.0_151] 01/09 01:24:33.047 [main] INFO com.iota.iri.IRI - IOTA Node initialised correctly.

IRI continues normally, nonetheless. However, it never gets synced. All values apart of the all transactions stay at zero. Does not matter if one uses Nelson or static neighbours.

@zoran
Copy link
Contributor

zoran commented Jan 9, 2018

that's strange, because the DB is a full copy and not a snapshot.

@romansemko
Copy link
Contributor Author

I suspect that the rockdb dll for windows is linked without snappy, whereas on mac/linux it's with snappy. Similar to this issue: facebook/rocksdb#1887

Would be nice to have them identical. And still not sure why it affects IRI not being synchronised.

@JasonCoombs
Copy link

seeing the same error here.

@huggre
Copy link

huggre commented Jan 14, 2018

Same issue with my Windows node, switched to Ubuntu and problem solved.

@alon-e
Copy link
Contributor

alon-e commented Jan 14, 2018

This is a known issue in RocksDB - the only way to resolve this is to actively not compress the DB.
CompressionTypes
in the past, the only compression type supported on all systems (Linux, Windows, Mac) was No Compression - tested by reading available Options in IDE on each system.

this could have changed since, if so, then it's worth reconsidering a different, cross-platform compression scheme - help wanted to explore this.

@brunoamancio
Copy link

Same issue when developing on windows.

@iotasyncbot iotasyncbot changed the title Database snapshot from Linux leads to unexpected behaviour on Windows IRI-275 ⁃ Database snapshot from Linux leads to unexpected behaviour on Windows Apr 17, 2018
@anyong anyong changed the title IRI-275 ⁃ Database snapshot from Linux leads to unexpected behaviour on Windows Database snapshot from Linux leads to unexpected behaviour on Windows Apr 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Issues Backlog
  
Awaiting triage
Development

No branches or pull requests

6 participants