<blockquote>
  <p>bitcoin-cli getinfo</p>
</blockquote>

<p>The <code>getinfo</code> RPC has been removed in the master branch (which is what you are using). Try using a different RPC like <code>getblockchaininfo</code> or <code>getnetworkinfo</code>. The fact that you are getting a response with <code>Method not found</code> indicates that the RPC server is up and running, so the node should be working.</p>

<p>I don't think <code>-daemon</code> and <code>-printtoconsole</code> interact well so you may not actually see the debug lines.</p>

CC BY-SA 3.0
2017-09-17T20:14:11.377Z
When i tail the log i now get
 2017-09-17 15:10:46 Reindexing block file blk00076.dat... 2017-09-17 15:10:47 tor: Thread interrupt 2017-09-17 15:10:47 torcontrol thread exit 2017-09-17 15:10:47 net thread exit 2017-09-17 15:10:47 addcon thread exit 2017-09-17 15:10:47 opencon thread exit 2017-09-17 15:10:47 msghand thread exit 2017-09-17 15:10:47 scheduler thread interrupt 2017-09-17 15:10:47 Shutdown: In progress... 2017-09-17 15:10:50 Shutdown: done

Is there a reason the node is automatically shutting down as i haven't authorised any shutdown commands ? Is there a way to check?
Chris Dixon
CC BY-SA 3.0
2017-09-17T20:16:20.170Z
Can you post the full log as an edit to your question and format properly in code blocks?
Ava Chow
CC BY-SA 3.0
2017-09-17T15:41:13.690Z
2017-09-17T15:41:13.690Z
Ava Chow
<p>and run bitcoind and bitcoin-cli from source so i can start messing around with some of the api calls and hopefully develop some cool stuff.
Unfortuantely running bitcoind says i must reindex the blockchain as i'm building over the top of a previous corrupted blockchain.
Running the call:</p>

<p>bitcoind -reindex -daemon -printtoconsole</p>

<p>I get:</p>

<pre><code>2017-09-17 15:11:12 Bitcoin version v0.15.99.0-e278f86c5 
2017-09-17 15:11:12 InitParameterInteraction: parameter interaction: -whitelistforcerelay=1 -&gt; setting -whitelistrelay=1 
2017-09-17 15:11:12 Assuming ancestors of block 0000000000000000003b9ce759c2a087d52abc4266f8f4ebd6d768b89defa50a have valid signatures. 
2017-09-17 15:11:12 Setting nMinimumChainWork=000000000000000000000000000000000000000000723d3581fe1bd55373540a 
2017-09-17 15:11:12 Using the 'sse4' SHA256 implementation 
2017-09-17 15:11:12 Using RdRand as an additional entropy source Bitcoin server starting
</code></pre>

<p>With nothing ever progressing past Bitcoin Server starting. Then when i run:</p>

<p>bitcoin-cli getinfo</p>

<p>error code: -32601 </p>

<p>error message: Method not found</p>

<p>The process is still running correctly and i can't rerun bitcoind as i've got the process already running in the background. Does anyone have any ideas ?</p>

<p>UPDATE:<br>
When i tail the log i now get</p>

<pre><code>2017-09-17 15:10:46 Reindexing block file blk00076.dat... 
2017-09-17 15:10:47 tor: Thread interrupt 
2017-09-17 15:10:47 torcontrol thread exit 
2017-09-17 15:10:47 net thread exit 
2017-09-17 15:10:47 addcon thread exit 
2017-09-17 15:10:47 opencon thread exit 
2017-09-17 15:10:47 msghand thread exit 
2017-09-17 15:10:47 scheduler thread interrupt 
2017-09-17 15:10:47 Shutdown: In progress... 
2017-09-17 15:10:50 Shutdown: done 
</code></pre>

<p>Is there a reason the node is automatically shutting down as i haven't authorised any shutdown commands ? Is there a way to check? </p>

<p>UPDATE2:
<a href="https://gist.github.com/anonymous/eb0d26892161f2b25933917d1d89c139" rel="nofollow noreferrer">https://gist.github.com/anonymous/eb0d26892161f2b25933917d1d89c139</a></p>

<p>Left it running again using -reindex and no -printtoconsole still as a daemon. 
Trying to interpret the above log, looks like i'm all up and running ? Is there a way to check and next time i start the bitcoind process i do it without a -reindex ?</p>

CC BY-SA 3.0
2017-09-21T04:10:54.427Z
Can you post more of the log (stuff before this snippet)?
Ava Chow
CC BY-SA 3.0
2017-09-21T17:31:57.510Z
Only ever pass -reindex once. If you shutdown, and restart, it will continue where it left off. If you start with -reindex again, it will start over.
Pieter Wuille
<bitcoin-core><bitcoind><bitcoin-cli>
Bitcoin Core 0.15 reindexing blockchain looks like its hanging?
Chris Dixon
# Bitcoin Core 0.15 reindexing blockchain looks like its hanging?

(Asked by: username_0 on 2017-09-17)

and run bitcoind and bitcoin-cli from source so i can start messing around with some of the api calls and hopefully develop some cool stuff.
Unfortuantely running bitcoind says i must reindex the blockchain as i'm building over the top of a previous corrupted blockchain.
Running the call:

bitcoind -reindex -daemon -printtoconsole

I get:

```
2017-09-17 15:11:12 Bitcoin version v0.15.99.0-e278f86c5 
2017-09-17 15:11:12 InitParameterInteraction: parameter interaction: -whitelistforcerelay=1 -> setting -whitelistrelay=1 
2017-09-17 15:11:12 Assuming ancestors of block 0000000000000000003b9ce759c2a087d52abc4266f8f4ebd6d768b89defa50a have valid signatures. 
2017-09-17 15:11:12 Setting nMinimumChainWork=000000000000000000000000000000000000000000723d3581fe1bd55373540a 
2017-09-17 15:11:12 Using the 'sse4' SHA256 implementation 
2017-09-17 15:11:12 Using RdRand as an additional entropy source Bitcoin server starting

```

With nothing ever progressing past Bitcoin Server starting. Then when i run:

bitcoin-cli getinfo

error code: -32601

error message: Method not found

The process is still running correctly and i can't rerun bitcoind as i've got the process already running in the background. Does anyone have any ideas ?

UPDATE:  
When i tail the log i now get

```
2017-09-17 15:10:46 Reindexing block file blk00076.dat... 
2017-09-17 15:10:47 tor: Thread interrupt 
2017-09-17 15:10:47 torcontrol thread exit 
2017-09-17 15:10:47 net thread exit 
2017-09-17 15:10:47 addcon thread exit 
2017-09-17 15:10:47 opencon thread exit 
2017-09-17 15:10:47 msghand thread exit 
2017-09-17 15:10:47 scheduler thread interrupt 
2017-09-17 15:10:47 Shutdown: In progress... 
2017-09-17 15:10:50 Shutdown: done 

```

Is there a reason the node is automatically shutting down as i haven't authorised any shutdown commands ? Is there a way to check?

UPDATE2:
<https://gist.github.com/anonymous/eb0d26892161f2b25933917d1d89c139>

Left it running again using -reindex and no -printtoconsole still as a daemon.
Trying to interpret the above log, looks like i'm all up and running ? Is there a way to check and next time i start the bitcoind process i do it without a -reindex ?

**Tags:** bitcoin-core, bitcoind, bitcoin-cli

> **Comments:**
> **username_1**: Can you post more of the log (stuff before this snippet)?  
> **username_2**: Only ever pass -reindex once. If you shutdown, and restart, it will continue where it left off. If you start with -reindex again, it will start over.  

---

## 1 answers

### Answer by username_1 on 2017-09-17. Score: 2

> bitcoin-cli getinfo

The `getinfo` RPC has been removed in the master branch (which is what you are using). Try using a different RPC like `getblockchaininfo` or `getnetworkinfo`. The fact that you are getting a response with `Method not found` indicates that the RPC server is up and running, so the node should be working.

I don't think `-daemon` and `-printtoconsole` interact well so you may not actually see the debug lines.

> **Comments:**
> **username_0**: When i tail the log i now get  2017-09-17 15:10:46 Reindexing block file blk00076.dat... 2017-09-17 15:10:47 tor: Thread interrupt 2017-09-17 15:10:47 torcontrol thread exit 2017-09-17 15:10:47 net thread exit 2017-09-17 15:10:47 addcon thread exit 2017-09-17 15:10:47 opencon thread exit 2017-09-17 15:10:47 msghand thread exit 2017-09-17 15:10:47 scheduler thread interrupt 2017-09-17 15:10:47 Shutdown: In progress... 2017-09-17 15:10:50 Shutdown: done  Is there a reason the node is automatically shutting down as i haven't authorised any shutdown commands ? Is there a way to check?  
> **username_1**: Can you post the full log as an edit to your question and format properly in code blocks?  

---

