Coder Social home page Coder Social logo

Comments (16)

matiu avatar matiu commented on August 23, 2024

I will sumit a patch for this today. In the mean time you can erase the contents of db/ and try again. Thanks. —
Sent from Mailbox for iPhone

On Wed, Mar 19, 2014 at 7:31 AM, cryptogenesis [email protected]
wrote:

On first run I am getting this error:
[historic_sync] ERROR: NEED_SYNC Ignoring block with non existing prev:00000000000069cf03c847d7d1d58b44474021b31dc65a8e83fd3a08e60a768c
[historic_sync] ABORTED with error: NEED_SYNC Ignoring block with non existing prev:00000000000069cf03c847d7d1d58b44474021b31dc65a8e83fd3a08e60a768c
When I run util/sync.js -D I get:
Deleting Sync DB...
Counting connected blocks. This could take some minutes
[historic_sync] Seeking file to:000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f
[historic_sync] Got 0 blocks in current DB, out of 291297 block at bitcoind
[historic_sync] bitcoind dataDir configured...importing blocks from .dat files
[historic_sync] First file index: 0
[historic_sync] Starting from: 000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f
[historic_sync] status: [0%]
Reading Blockfile /root/.bitcoin/blocks/blk00000.dat [128 MB]
[historic_sync] status: [0%]
Moving forward to file:/root/.bitcoin/blocks/blk00001.dat
Reading Blockfile /root/.bitcoin/blocks/blk00001.dat [128 MB]
[historic_sync] ERROR: NEED_SYNC Ignoring block with non existing prev:00000000000069cf03c847d7d1d58b44474021b31dc65a8e83fd3a08e60a768c
CRITICAL ERROR: { status: 'error',
blockChainHeight: 291297,
syncPercentage: '0.001',
syncedBlocks: 2,
syncTipHash: undefined,
error: 'NEED_SYNC Ignoring block with non existing prev:00000000000069cf03c847d7d1d58b44474021b31dc65a8e83fd3a08e60a768c',
type: 'from .dat Files',
startTs: 1395225069374,

endTs: null }

Reply to this email directly or view it on GitHub:
#21

from insight-api.

matiu avatar matiu commented on August 23, 2024

Hi @cryptogenesis

Sorry, the error was not related o the previous comments, I check the code and it is ok.
Further examination of the log you summited, make me realize that your file:

 /root/.bitcoin/blocks/blk00000.dat

seems to be empty. (no sync progress is reported while processing that file, which is not possible).

Could you check bitcoind to be sure that bitcoind has finished downloading the blockchain?

from insight-api.

cryptogenesis avatar cryptogenesis commented on August 23, 2024

Hi @matiu,

Thank you for the help -- my Bitcoind is up to date, see:

root@xxxx: bitcoind getmininginfo
{
"blocks" : 291320,
"currentblocksize" : 0,
"currentblocktx" : 0,
"difficulty" : 4250217919.86953545,
"errors" : "",
"generate" : false,
"genproclimit" : -1,
"hashespersec" : 0,
"pooledtx" : 188,
"testnet" : false
}

I have a symbolic link from /root/.bitcoin to another disk drive, could that be interfering?

Also: -rw------- 1 root root 134217728 Jan 25 09:46 blk00000.dat

from insight-api.

cmgustavo avatar cmgustavo commented on August 23, 2024

how do you have your configuration of bitcoind.conf?
Maybe you forgot txindex=1

from insight-api.

cryptogenesis avatar cryptogenesis commented on August 23, 2024

Hi @cmgustavo,

Bitcoin.conf:

rpcuser=XXX
rpcpassword=YYY
server=1
maxconnections=100
rpcssl=1
rpcallowip=X.X.X.X
txindex=1

from insight-api.

matiu avatar matiu commented on August 23, 2024

if you tail bitcoind log, everything looks normal, and progress is 1.000 ?

On Wed, Mar 19, 2014 at 10:02 AM, cryptogenesis [email protected]:

Hi @cmgustavo https://github.com/cmgustavo,

Bitcoin.conf:

rpcuser=XXX
rpcpassword=YYY
server=1
maxconnections=100
rpcssl=1
rpcallowip=X.X.X.X
txindex=1


Reply to this email directly or view it on GitHubhttps://github.com//issues/21#issuecomment-38047443
.

Matías Alejo Garcia
Skype/Twitter: @EMATIU
Roads? Where we're going, we don't need roads!

from insight-api.

cryptogenesis avatar cryptogenesis commented on August 23, 2024

Hi @matiu , everything looks great in the bitcoind log

from insight-api.

cryptogenesis avatar cryptogenesis commented on August 23, 2024

Copied my bitcoin folder to a new Ubuntu instance, still getting the same issue:

info - socket.io started
insight server listening on port 3000 in development mode
Counting connected blocks. This could take some minutes
[historic_sync] Seeking file to:000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f
[historic_sync] Got 0 blocks in current DB, out of 291374 block at bitcoind
[historic_sync] bitcoind dataDir configured...importing blocks from .dat files
[historic_sync] First file index: 0
[historic_sync] Starting from: 000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f
[historic_sync] status: [0%]
Reading Blockfile /root/.bitcoin/blocks/blk00000.dat [128 MB]
[historic_sync] status: [0%]
Moving forward to file:/root/.bitcoin/blocks/blk00001.dat
Reading Blockfile /root/.bitcoin/blocks/blk00001.dat [128 MB]
{ '0': 'connecting to 127.0.0.1:8333' }
[historic_sync] ERROR: NEED_SYNC Ignoring block with non existing prev:00000000000069cf03c847d7d1d58b44474021b31dc65a8e83fd3a08e60a768c
[historic_sync] ABORTED with error: NEED_SYNC Ignoring block with non existing prev:00000000000069cf03c847d7d1d58b44474021b31dc65a8e83fd3a08e60a768c
{ '0': 'connected to 127.0.0.1:8333' }
[p2p_sync] Connected to 1 peer
[p2p_sync] Handle tx: 188cbd62f0a0bb3de4b6f1a94f41f4d1e96aec42bf7198f493823e5388ab47c9

from insight-api.

matiu avatar matiu commented on August 23, 2024

Thanks. Coud you share blk000001 and blk000002  so we can try to reproduce the error?—
Sent from Mailbox for iPhone

On Wed, Mar 19, 2014 at 6:27 PM, cryptogenesis [email protected]
wrote:

Copied my bitcoin folder to a new Ubuntu instance, still getting the same issue:
info - socket.io started
insight server listening on port 3000 in development mode
Counting connected blocks. This could take some minutes
[historic_sync] Seeking file to:000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f
[historic_sync] Got 0 blocks in current DB, out of 291374 block at bitcoind
[historic_sync] bitcoind dataDir configured...importing blocks from .dat files
[historic_sync] First file index: 0
[historic_sync] Starting from: 000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f
[historic_sync] status: [0%]
Reading Blockfile /root/.bitcoin/blocks/blk00000.dat [128 MB]
[historic_sync] status: [0%]
Moving forward to file:/root/.bitcoin/blocks/blk00001.dat
Reading Blockfile /root/.bitcoin/blocks/blk00001.dat [128 MB]
{ '0': 'connecting to 127.0.0.1:8333' }
[historic_sync] ERROR: NEED_SYNC Ignoring block with non existing prev:00000000000069cf03c847d7d1d58b44474021b31dc65a8e83fd3a08e60a768c
[historic_sync] ABORTED with error: NEED_SYNC Ignoring block with non existing prev:00000000000069cf03c847d7d1d58b44474021b31dc65a8e83fd3a08e60a768c
{ '0': 'connected to 127.0.0.1:8333' }
[p2p_sync] Connected to 1 peer

[p2p_sync] Handle tx: 188cbd62f0a0bb3de4b6f1a94f41f4d1e96aec42bf7198f493823e5388ab47c9

Reply to this email directly or view it on GitHub:
#21 (comment)

from insight-api.

cryptogenesis avatar cryptogenesis commented on August 23, 2024

Uploaded blk1/2 to :

http://cryptogenesis.com/blocks.tgz

from insight-api.

matiu avatar matiu commented on August 23, 2024

thanks @cryptogenesis i check them today.

from insight-api.

matiu avatar matiu commented on August 23, 2024

Oops, sorry, I meant blk00000.dat and blk00001.dat. Could you upload them
again. Sorry about that.

On Wed, Mar 19, 2014 at 11:45 PM, cryptogenesis [email protected]:

Uploaded blk1/2 to :

http://cryptogenesis.com/blocks.tgz


Reply to this email directly or view it on GitHubhttps://github.com//issues/21#issuecomment-38130394
.

Matías Alejo Garcia
Skype/Twitter: @EMATIU
Roads? Where we're going, we don't need roads!

from insight-api.

matiu avatar matiu commented on August 23, 2024

Also, please check if the last version fixes the issues, some changes were made in the synchronization process.

from insight-api.

cryptogenesis avatar cryptogenesis commented on August 23, 2024

@matiu apologies for the delay -- I updated to latest version of insight, still got the error, I have uploaded blk00000.dat here:

http://cryptogenesis.com/blk00000.tgz

blk00001.dat can be found in:
http://cryptogenesis.com/blocks.tgz

from insight-api.

cryptogenesis avatar cryptogenesis commented on August 23, 2024

Let me know if you need any other blk files

from insight-api.

matiu avatar matiu commented on August 23, 2024

Hi @cryptogenesis. Sorry the delay.

I tried your file blk00000.tgz.
It is almost empty, that is why you were having problem. If you do

xxd blk00000.dat

on the extracted file you will see that there is only some info that the beginning (the genesis block), but nothing else.

from insight-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.