Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Error: Corruption: not an sstable (bad magic number) - Leveldb error #274

Closed
MeijeSibbel opened this issue Oct 12, 2017 · 5 comments
Closed

Comments

@MeijeSibbel
Copy link

MeijeSibbel commented Oct 12, 2017

Package Versions

Replace the values below using the output from storjshare --version.

5.1.0

Replace the values below using the output from node --version.

unknown

Expected Behavior

Please describe the program's expected behavior.

Actual Behavior

Please describe the program's actual behavior. Please include any stack traces
or log output in the back ticks below.

{"level":"info","message":"replying to message to e6ab0f0628fc8ebcf86c38b2c73bd67bde7d7ffd","timestamp":"2017-10-12T17:52:58.496Z"}
{"level":"info","message":"received valid message from {\"userAgent\":\"8.3.0\",\"protocol\":\"1.2.0\",\"hdKey\":\"xpub6AHweYHAxk1EhJSBctQD1nLWPog6Sy2eTpKQLExR1hfzTyyZQWvU4EYNXv1NJN7GpLYXnDLt4PzN874g6zSjAQdFCHZN7U7nbYKYVDUzD42\",\"hdIndex\":128,\"address\":\"renter-127.renters.prod.storj.io\",\"port\":8400,\"nodeID\":\"93e6ad2577f005cf07b46dc5526e1e952e164907\",\"lastSeen\":1507821558954}","timestamp":"2017-10-12T17:53:02.803Z"}
{"level":"info","message":"replying to message to 33631fc938fba691190cf7e4525bd221c2b487fe","timestamp":"2017-10-12T17:53:02.848Z"}
{"level":"info","message":"received valid message from {\"userAgent\":\"8.3.0\",\"protocol\":\"1.2.0\",\"hdKey\":\"xpub6AHweYHAxk1EhJSBctQD1nLWPog6Sy2eTpKQLExR1hfzTyyZQWvU4EYNXv1NJN7GpLYXnDLt4PzN874g6zSjAQdFCHZN7U7nbYKYVDUzD42\",\"hdIndex\":301,\"address\":\"renter-300.renters.prod.storj.io\",\"port\":8400,\"nodeID\":\"5959d3fe5ac48893822a937f528aee0afb9efc39\",\"lastSeen\":1507825463018}","timestamp":"2017-10-12T17:53:13.175Z"}
{"level":"info","message":"sending PING message to {\"userAgent\":\"8.1.0\",\"protocol\":\"1.2.0\",\"address\":\"199.115.166.218\",\"port\":4000,\"nodeID\":\"003840cdde2ba41380e17415a995e0b4a1066c31\",\"lastSeen\":1507830793175}","timestamp":"2017-10-12T17:53:13.175Z"}
{"level":"info","message":"handling mirror request from 5959d3fe5ac48893822a937f528aee0afb9efc39 hash 5b79d0350c301224055f1f2e445cdf61474c1355","timestamp":"2017-10-12T17:53:13.213Z"}
{"level":"info","message":"opening data transfer with {\"userAgent\":\"8.1.0\",\"protocol\":\"1.2.0\",\"address\":\"95.79.191.56\",\"port\":4000,\"nodeID\":\"906d6cad60b472b4c5ac979f360fabc8aa4da730\",\"lastSeen\":\"2017-10-12T17:53:08.468Z\"} to mirror 5b79d0350c301224055f1f2e445cdf61474c1355","timestamp":"2017-10-12T17:53:13.225Z"}
{"level":"info","message":"replying to message to a083a363be07463a9f17272882a898a626f364d3","timestamp":"2017-10-12T17:53:13.226Z"}
{"level":"info","message":"received valid message from {\"userAgent\":\"8.3.0\",\"protocol\":\"1.2.0\",\"hdKey\":\"xpub6AHweYHAxk1EhJSBctQD1nLWPog6Sy2eTpKQLExR1hfzTyyZQWvU4EYNXv1NJN7GpLYXnDLt4PzN874g6zSjAQdFCHZN7U7nbYKYVDUzD42\",\"hdIndex\":281,\"address\":\"renter-280.renters.prod.storj.io\",\"port\":8400,\"nodeID\":\"5cd8a61ef379b17f5e22bc3eda2cd130c10559fc\",\"lastSeen\":1507825011868}","timestamp":"2017-10-12T17:53:13.249Z"}
{"level":"info","message":"handling mirror request from 5cd8a61ef379b17f5e22bc3eda2cd130c10559fc hash 5b79d0350c301224055f1f2e445cdf61474c1355","timestamp":"2017-10-12T17:53:13.250Z"}
{"level":"info","message":"opening data transfer with {\"userAgent\":\"8.1.0\",\"protocol\":\"1.2.0\",\"address\":\"95.79.191.56\",\"port\":4000,\"nodeID\":\"906d6cad60b472b4c5ac979f360fabc8aa4da730\",\"lastSeen\":\"2017-10-12T17:53:08.468Z\"} to mirror 5b79d0350c301224055f1f2e445cdf61474c1355","timestamp":"2017-10-12T17:53:13.251Z"}
{"level":"info","message":"replying to message to 5b05fddb27603ad5aeead7c21f3d22058b20e46b","timestamp":"2017-10-12T17:53:13.251Z"}
{"level":"info","message":"successfully mirrored shard hash 5b79d0350c301224055f1f2e445cdf61474c1355 size 101","timestamp":"2017-10-12T17:53:13.388Z"}
events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: Corruption: not an sstable (bad magic number)
{"level":"warn","message":"your address is public and traversal strategies are disabled","timestamp":"2017-10-12T17:53:30.875Z"}
{"level":"info","message":"node created with nodeID 90b473f2e18939e173a7585e13a5e05229569a75","timestamp":"2017-10-12T17:53:30.895Z"}
{"level":"warn","message":"config bridgeUri is deprecated, please use bridges config instead","timestamp":"2017-10-12T17:53:30.880Z"}
{"level":"info","message":"clock is synchronized with ntp, delta: 6 ms","timestamp":"2017-10-12T17:53:30.902Z"}
{"level":"info","message":"resolving contacts from https://api.storj.io","timestamp":"2017-10-12T17:53:30.903Z"}
{"level":"info","message":"Connected to bridge: https://api.storj.io","timestamp":"2017-10-12T17:53:31.416Z"}
{"level":"info","message":"Connected to bridge: https://api.storj.io","timestamp":"2017-10-12T17:53:31.416Z"}
{"level":"info","message":"received valid message from {\"userAgent\":\"8.1.0\",\"protocol\":\"1.2.0\",\"address\":\"locusf.dy.fi\",\"port\":4000,\"nodeID\":\"199cc3e769463985e0631a74c99fc36baf5a2dfd\",\"lastSeen\":1507748652468}","timestamp":"2017-10-12T17:53:31.854Z"}
{"level":"info","message":"received PING from 199cc3e769463985e0631a74c99fc36baf5a2dfd, sending PONG","timestamp":"2017-10-12T17:53:31.858Z"}
{"level":"info","message":"replying to message to 98db513defc5e6e83008022f00ef1eebba3a121c","timestamp":"2017-10-12T17:53:31.858Z"}
{"level":"info","message":"attempting to join network via storj://5.189.160.97:4078/163657b1201c4e05ab58cc005108ef33f706103f","timestamp":"2017-10-12T17:53:32.118Z"}

google/leveldb#408

Steps to Reproduce

Please include the steps the reproduce the issue, numbered below. Include as
much detail as possible.

  1. ...
  2. ...
  3. ...
@guelz
Copy link

guelz commented Oct 12, 2017

checking in.. That's my error!-)
node restarting on a windows 10 machine.
GUI 7.1.0 Daemon 5.1.0 Core 8.1.0 Protocol 1.2.0

@tempestb
Copy link

Meije, is this data yours? I ask, because I wrote a tool that leverages the leveldown repair() method. I'm not exactly sure if it will fix the problem (Because I don't have the problem, I can't run it to see if it can fix it) But if you have a system that has this error, I could provide instructions on how to run it and you can see if it will work. Note, that it could also destroy everything since I don't yet know what it is doing. So I would prefer to have it only used as a last resort for testing. Give me a shout if you want to try it.

@MeijeSibbel
Copy link
Author

@tempestb , nope this is not my error, its from a user on rocketchat.

@Hypocritus
Copy link

Hypocritus commented Aug 14, 2018

I am having this issue as well on some of my nodes. This seems to be a leveldb bug.

Any remedy to this problem?

@RichardLitt
Copy link

👋 Hey! Thanks for this contribution. Apologies for the delay in responding!

We've decided to rearchitect Storj, so that we can scale better. You can read more about this decision here. This means that we are entirely focused on v3 at the moment, in the storj/storj repository. Our white paper for v3 is coming very, very soon - follow along on the blog and in our Rocketchat.

As this repository is part of the v2 network, we're no longer maintaining this repository. I am going to close this for now. If you have any questions, I encourage you to jump on Rocketchat and ask them there. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants