Quantcast
Channel: Active questions tagged server - Bitcoin Stack Exchange
Viewing all articles
Browse latest Browse all 53

Bitcoin-cli - error: couldn't connect to server: unknown (code -1)

$
0
0

I have read through a number of posts on here about this error but none seem to solve my problem. I am trying to use Altcoin-cli on my alt-coin (which is an exact clone of the bitcoin source) using my generated Altcoind daemon and Altcoin-cli

I know that it is an exact copy of bitcoin because I forked it myself (for learning purposes) so the error isn't caused by me breaking some code. Here are the steps I am doing:

1) In one terminal I run Altcoind -daemon -reindex

2) In my Altcoin.conf fine I have this:

rpcuser=barneyrpcpassword=12345rpcport=22777listen=1server=1dbcache=50daemon=1testnet=0maxuploadtarget=200txindex=1

3) I then run Altcoin-cli generate 1 -1 in attempt to mine a block. This is where I get the error:

error: couldn't connect to server: unknown (code -1)(make sure server is running and you are connecting to the correct RPC port)

Also, when I run the cli command, this line appears in the debug.log

keypool reserve 2

I will add my debug.log dump below too, but it looks fine to me. The connection refused errors are the coin attempting to connect to seed nodes that don't exist yet.

DEBUG.LOG Dump

2018-01-04 07:10:51 Bitcoin version v0.1.0.0-0b9d033-dirty2018-01-04 07:10:51 InitParameterInteraction: parameter interaction: -whitelistforcerelay=1 -> setting -whitelistrelay=12018-01-04 07:10:51 Assuming ancestors of block 00000000000000000013176bf8d7dfeab4e1db31dc93bc311b436e82ab226b90 have valid signatures.2018-01-04 07:10:51 Default data directory /home/veggie/.Teggie2018-01-04 07:10:51 Using data directory /home/veggie/.Teggie2018-01-04 07:10:51 Using config file /home/veggie/.Teggie/Teggie.conf2018-01-04 07:10:51 Using at most 125 automatic connections (1024 file descriptors available)2018-01-04 07:10:51 Using 32 MiB out of 32 requested for signature cache, able to store 1048576 elements2018-01-04 07:10:51 Using 0 threads for script verification2018-01-04 07:10:51 Binding RPC on address 0.0.0.0 port 22777 failed.2018-01-04 07:10:51 HTTP: creating work queue of depth 162018-01-04 07:10:51 Config options rpcuser and rpcpassword will soon be deprecated. Locally-run instances may remove rpcuser to use cookie-based auth, or may be replaced with rpcauth. Please see share/rpcuser for rpcauth auth generation.2018-01-04 07:10:51 HTTP: starting 4 worker threads2018-01-04 07:10:51 Using BerkeleyDB version Berkeley DB 4.8.30: (April  9, 2010)2018-01-04 07:10:51 Using wallet wallet.dat2018-01-04 07:10:51 init message: Verifying wallet...2018-01-04 07:10:51 CDBEnv::Open: LogDir=/home/veggie/.Teggie/database ErrorFile=/home/veggie/.Teggie/db.log2018-01-04 07:10:51 scheduler thread start2018-01-04 07:10:51 Bound to [::]:228222018-01-04 07:10:51 Bound to 0.0.0.0:228222018-01-04 07:10:51 Cache configuration:2018-01-04 07:10:51 * Using 6.2MiB for block index database2018-01-04 07:10:51 * Using 8.0MiB for chain state database2018-01-04 07:10:51 * Using 35.8MiB for in-memory UTXO set (plus up to 286.1MiB of unused mempool space)2018-01-04 07:10:51 init message: Loading block index...2018-01-04 07:10:51 Wiping LevelDB in /home/veggie/.Teggie/blocks/index2018-01-04 07:10:51 Opening LevelDB in /home/veggie/.Teggie/blocks/index2018-01-04 07:10:51 Opened LevelDB successfully2018-01-04 07:10:51 Using obfuscation key for /home/veggie/.Teggie/blocks/index: 00000000000000002018-01-04 07:10:51 Wiping LevelDB in /home/veggie/.Teggie/chainstate2018-01-04 07:10:51 Opening LevelDB in /home/veggie/.Teggie/chainstate2018-01-04 07:10:51 Opened LevelDB successfully2018-01-04 07:10:51 Wrote new obfuscate key for /home/veggie/.Teggie/chainstate: 2e49fc905edaf50c2018-01-04 07:10:51 Using obfuscation key for /home/veggie/.Teggie/chainstate: 2e49fc905edaf50c2018-01-04 07:10:51 Initializing databases...2018-01-04 07:10:51 init message: Verifying blocks...2018-01-04 07:10:51  block index              15ms2018-01-04 07:10:51 CTxMemPool::ReadFeeEstimates(): unable to read policy estimator data (non-fatal)2018-01-04 07:10:51 init message: Loading wallet...2018-01-04 07:10:51 nFileVersion = 100002018-01-04 07:10:51 Keys: 103 plaintext, 0 encrypted, 103 w/ metadata, 103 total2018-01-04 07:10:51  wallet                    6ms2018-01-04 07:10:51 setKeyPool.size() = 1012018-01-04 07:10:51 mapWallet.size() = 02018-01-04 07:10:51 mapAddressBook.size() = 12018-01-04 07:10:51 Reindexing block file blk00000.dat...2018-01-04 07:10:51 UpdateTip: new best=0000794e30ec87650feebfdc5c39c51927ebb8407129ed5e93375dd825e50380 height=0 version=0x00000001 log2_work=17 tx=1 date='2017-12-06 14:20:46' progress=1.000000 cache=0.0MiB(0tx)2018-01-04 07:10:51 mapBlockIndex.size() = 12018-01-04 07:10:51 nBestHeight = 02018-01-04 07:10:51 init message: Loading addresses...2018-01-04 07:10:51 Loaded 2 addresses from peers.dat  1ms2018-01-04 07:10:51 init message: Loading banlist...2018-01-04 07:10:51 init message: Starting network threads...2018-01-04 07:10:51 init message: Done loading2018-01-04 07:10:51 msghand thread start2018-01-04 07:10:51 opencon thread start2018-01-04 07:10:51 addcon thread start2018-01-04 07:10:51 dnsseed thread start2018-01-04 07:10:51 net thread start2018-01-04 07:10:51 torcontrol thread start2018-01-04 07:10:51 Loaded 1 blocks from external file in 210ms2018-01-04 07:10:51 Reindexing finished2018-01-04 07:10:51 Imported mempool transactions from disk: 0 successes, 0 failed, 0 expired2018-01-04 07:10:53 connect() to 207.246.105.211:22822 failed after select(): Connection refused (111)2018-01-04 07:10:55 connect() to 45.63.111.147:22822 failed after select(): Connection refused (111)2018-01-04 07:10:58 connect() to 45.63.111.147:22822 failed after select(): Connection refused (111)2018-01-04 07:11:00 connect() to 207.246.105.211:22822 failed after select(): Connection refused (111)

Viewing all articles
Browse latest Browse all 53

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>