Comments (16)
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.
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.
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.
how do you have your configuration of bitcoind.conf?
Maybe you forgot txindex=1
from insight-api.
Hi @cmgustavo,
Bitcoin.conf:
rpcuser=XXX
rpcpassword=YYY
server=1
maxconnections=100
rpcssl=1
rpcallowip=X.X.X.X
txindex=1
from insight-api.
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.
Hi @matiu , everything looks great in the bitcoind log
from insight-api.
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.
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.
Uploaded blk1/2 to :
http://cryptogenesis.com/blocks.tgz
from insight-api.
thanks @cryptogenesis i check them today.
from insight-api.
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.
Also, please check if the last version fixes the issues, some changes were made in the synchronization process.
from insight-api.
@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.
Let me know if you need any other blk files
from insight-api.
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)
- Request multiple transactions by list of txid
- Documentation for /api/utils/estimatefee HOT 1
- Setting up with an existing bitcoin full-node
- UTXO returns spent outputs
- Cannot broadcast transaction with huge amounts of inputs HOT 1
- Confirmation number for sent BCH transaction does not increase HOT 2
- Help. Blocks.js : 400 Bad Request Altcoin HOT 6
- "Invalid argument" instead of "invalid checksum" HOT 1
- Method not found. Code:-32601 HOT 7
- why sync not continue after 81% (446128 blocks height)
- How can I distinguish testnet and mainnet?
- what is p2p transform port?
- what is p2p transform port?
- Large block of the Bitcoin Cash
- Block Height Differences in insight
- Wrong estimate fee HOT 4
- Endpoint to get mempool txs HOT 1
- DdzFFzCqrht18zRUyie7z3PtuD3DzYs4f2fpGyme6ybojcqyovvhPsaDuSjhwmPYitRsenEcVAw6jh9XNxA2WP6Mvh22ZX9qNP5HQ5ix
- How to setup insight-api with bitcoin sv. Any kind of help is highly appreciated. HOT 1
- which repo to use? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from insight-api.