Thank you very much for your reply.
Run ./bitcoin-cli getblocktemplate , I got following:
error code: -9
error message:
Bitcoin is not connected!
In debug log:
2018-04-29 14:41:29 Bitcoin Core version v0.16.0.0-9ea62a3dc-dirty (release build)
Oh, sorry I forgot to mention, in order to mine, the node has to connect to at least one peer node. So you need to run another instance of bitcoind and let it connect to the first node, like:
bitcoind -addnode=127.0.0.1:6333 -port=9333 -rpcport=9332 .... other arguments
replace 6333 with your first node's port.
After this, try restart the miner again.
Also from the debug.log you posted, it looks you didn't remove the dns seeds servers, that's ok, you can add "-dns=0 -dnsseed=0" to bitcoind command line arguments to disable them. If you are running your private network, there is no point to connect to public bitcoin nodes.
I use
sudo ./bitcoind -addnode=10.211.55.5:8963 -debug=rpc -dns=0 -dnsseed=0
And run
./bitcoin-cli getblocktemplate
I got:
error code: -10
error message:
Bitcoin is downloading blocks...
And debug.log is
2018-04-30 03:32:36 init message: Rewinding blocks...
2018-04-30 03:32:36 init message: Verifying blocks...
2018-04-30 03:32:36 block index 17ms
2018-04-30 03:32:36 init message: Loading wallet...
2018-04-30 03:32:36 nFileVersion = 160000
2018-04-30 03:32:36 Keys: 2001 plaintext, 0 encrypted, 2001 w/ metadata, 2001 total
2018-04-30 03:32:36 wallet 26ms
2018-04-30 03:32:36 setKeyPool.size() = 2000
2018-04-30 03:32:36 mapWallet.size() = 0
2018-04-30 03:32:36 mapAddressBook.size() = 0
2018-04-30 03:32:36 mapBlockIndex.size() = 1
2018-04-30 03:32:36 nBestHeight = 0
2018-04-30 03:32:36 Imported mempool transactions from disk: 0 succeeded, 0 failed, 0 expired, 0 already there
2018-04-30 03:32:36 torcontrol thread start
2018-04-30 03:32:36 Bound to [::]:8963
2018-04-30 03:32:36 Bound to 0.0.0.0:8963
2018-04-30 03:32:36 init message: Loading P2P addresses...
2018-04-30 03:32:36 Loaded 1168 addresses from peers.dat 2ms
2018-04-30 03:32:36 init message: Loading banlist...
2018-04-30 03:32:36 init message: Starting network threads...
2018-04-30 03:32:36 DNS seeding disabled
2018-04-30 03:32:36 net thread start
2018-04-30 03:32:36 addcon thread start
2018-04-30 03:32:36 init message: Done loading
2018-04-30 03:32:36 opencon thread start
2018-04-30 03:32:36 msghand thread start
2018-04-30 03:32:36 New outbound peer connected: version: 70015, blocks=0, peer=0
2018-04-30 03:32:42 connect() to [2001:0:9d38:90d7:10aa:20c7:aa6f:d318]:8333 failed after select(): Connection refused (111)
2018-04-30 03:32:43 connect() to [2001:0:9d38:6ab8:302b:340f:e723:b15e]:8333 failed after select(): Connection refused (111)
2018-04-30 03:32:43 connect() to [2a01:4f8:192:34d0::2]:8333 failed after select(): Connection refused (111)
2018-04-30 03:32:49 ThreadRPCServer method=getblocktemplate
2018-04-30 03:32:50 connect() to 43.229.76.45:8333 failed after select(): Connection refused (111)
2018-04-30 03:32:56 connect() to [2001:41d0:1:8b26::1]:8333 failed after select(): Connection refused (111)
2018-04-30 03:32:56 connect() to [2002:b4b2:3612::b4b2:3612]:8333 failed after select(): Connection refused (111)
2018-04-30 03:32:58 connect() to [2a02:c205:2008:7160::1]:8333 failed after select(): Connection refused (111)
2018-04-30 03:32:59 connect() to [2001:0:9d38:6ab8:34f7:15b2:3012:3a74]:8333 failed after select(): Connection refused (111)
2018-04-30 03:32:59 connect() to [2604:a880:2:d0::22fa:3001]:8333 failed after select(): Connection refused (111)
2018-04-30 03:33:01 connect() to [2a01:4f8:10a:3718::2]:8333 failed after select(): Connection refused (111)
2018-04-30 03:33:02 connect() to [2601:646:4101:1603:5809:1bff:fe55:6678]:8333 failed after select(): Connection refused (111)
2018-04-30 03:33:08 connect() to 5.45.75.15:8333 failed after select(): Connection refused (111)
2018-04-30 03:33:09 connect() to 79.46.194.163:8333 failed after select(): Connection refused (111)