Hi BRAND NUBE - HELP IM REALLY STUCK ALMOST THERE THOUGH

new to linux and have got quite far but still have not started the miner.

Thanks for the info in this forum ive got a lot of help already. Still having a problem.

I have entered the zcash -daemon instruction and it has started the zcash server but immediatly gave me the prompt again without doing anything.
like so:

x@xx:~/zcash$ ./src/zcashd -daemon
Zcash server starting
x@xx:~/zcash$

I am sure it has not worked and need to figure out what has happened?

I repeated it and got this:

x@xx:~/zcash$ ./src/zcashd -daemon
Zcash server starting
x@xx:~/zcash$ Error: Cannot obtain a lock on data directory /home/butrosabate/.zcash/testnet3. Bitcoin Core is probably already running.

What can I do to get further?

Try this
~/zcash/./src/zcash-cli getinfo

what do you get ?

{
“version” : 1000025,
“protocolversion” : 170002,
“walletversion” : 60000,
“balance” : 0.00000000,
“blocks” : 10365,
“timeoffset” : 0,
“connections” : 8,
“proxy” : “”,
“difficulty” : 2538.73869529,
“testnet” : true,
“keypoololdest” : 1477153024,
“keypoolsize” : 101,
“paytxfee” : 0.00000000,
“relayfee” : 0.00005000,
“errors” : “WARNING: check your network connection, 0 blocks received in the last 4 hours (96 expected)”
}

Was this your first run of the zcashd?

Did you experience or initiate any sort of abrupt shutdown prior to issuing the zcashd -daemon command?

The reason I ask is because I experienced the same thing you did after my computer locked up at some point while zcashd was running. The only way to restart it was to do a hard reboot but when I did and entered zcashd -daemon I received that command.

When I issue the zcash-cli getinfo command I get the following:
error: {“code”:-28,“message”:“Activating best chain…”}

And it’s been stuck that way for hours. Anyone know of a fix?

Yes, this was my first run of the zcashd

{
“version” : 1000025,
“protocolversion” : 170002,
“walletversion” : 60000,
“balance” : 0.00000000,
“blocks” : 10365,
“timeoffset” : 0,
“connections” : 8,
“proxy” : “”,
“difficulty” : 2538.73869529,
“testnet” : true,
“keypoololdest” : 1477153024,
“keypoolsize” : 101,
“paytxfee” : 0.00000000,
“relayfee” : 0.00005000,
“errors” : “WARNING: check your network connection, 0 blocks received in the last 4 hours (96 expected)”
}

Hmmm, weird. I wish I knew what to tell you. I’m sure someone else can tell both of us how to debug out problem.

If you are going to mine you need to add
gen=1 in your config file

@shiftaET Your miner is running fine. If you look at your system monitor ir should show your CPU chugging away hashing. If not make sure you have gen=1 set in your zcash.conf file. You can also set genproclimit=4 in that file to mine with more cores.

@cascadiacrypto If it is still stuck trying to find the chain, go ahead and run a ./src/zcash-cli stop to stop it (or kill the PID with system monitor) and restart it with ./src/zcashd -reindex

1 Like

Thanks Shawn for the speedy reply. You rock! I’ll try this and report back.

Once it completes the reindex, stop it again and then restart normally

I’ve been waiting patiently while it reindexes. Roughly how long at the longest should it take? Is there a command where I monitor its progress like “tail” something?

I don’t think there is any way to monitor it directly. I doesn’t usually take that long, you can try stopping it and restarting normally to see if it worked

1 Like

That did the trick. It worked and has successfully re-synced to the blockchain’s current block height!

Thanks!

thanks - now im trying to get coins from faucet and I get ¨Issue sending transaction. Is your address correct?¨

any ideas?

Faucet runs on the old testnet.

Go here to get someone to send you some coin

For anyone wondering whether zcashd is doing something or not: Open a terminal and type tail -f .zcash/testnet3/debug.log

If zcashd has connections and is adding to your blockchain, you should get lines like

2016-10-22 19:51:02 UpdateTip: new best=0000532b58f8f19f949bc86c51ff9fb9de42c61137ccb455aa03d900a7f3f175  height=10404  log2_work=25.608868  tx=12133  date=2016-10-22 19:50:01 progress=1.000000  cache=0.1MiB(371tx)

every time a new block is produced. If the height value is the same as the Chain Height in the https://explorer.zcha.in/, then you’re syncing.

When you do a zcashd -reindex you will see similar log lines, except that the height will start at height=0 - the genesis block - and quickly increase until the chain is current.

When you’re mining, you will see something like

2016-10-19 08:36:01 ZcashMiner:
2016-10-19 08:36:01 proof-of-work found
  hash: 00101ff97af6a0c9590b9609349ed81b122320ad8d2d8db716abdb0055414841
target: 0021521a00000000000000000000000000000000000000000000000000000000
2016-10-19 08:36:01 CBlock(hash=00101ff97af6a0c9590b9609349ed81b122320ad8d2d8db716abdb0055414841, ver=4, hashPrevBlock=001959b169bcedbe7b2476f8e50ffd082f0b8874a38c73595bfc0444eaf7a02a, hashMerkleRoot=899f92ea0bf3dea8f123371e5f5f4
44744d4e461a790d869376dd37eb8b8c37e, hashReserved=0000000000000000000000000000000000000000000000000000000000000000, nTime=1476866160, nBits=1f21521a, nNonce=0000a8baedb13b4ce0d8d881909979203a1f0147b6d2361f613e2c1df1260093, vtx=1)
  CTransaction(hash=899f92ea0b, ver=1, vin.size=1, vout.size=2, nLockTime=0)
    CTxIn(COutPoint(0000000000, 4294967295), coinbase 0273200101)
    CTxOut(nValue=4.15350000, scriptPubKey=03a0f3445be488a84f58108bfe12e0)
    CTxOut(nValue=1.03837500, scriptPubKey=OP_HASH160 ef775f1f997f122a062)

  vMerkleTree:  899f92ea0bf3dea8f123371e5f5f444744d4e461a790d869376dd37eb8b8c37e
2016-10-19 08:36:01 generated 4.1535
2016-10-19 08:36:01 keypool keep 7

But be aware that if you’re using the default zcash algorithm (and not the Tromp solver), you will likely have to wait for along time to mine a block - as in days of waiting.

2 Likes

how do i get the trompsolver?

I’m curious if you can help me since you seem like you know what your talking about. I used " tail -f .zcash/testnet3/debug.log" and I got this “cannot open ‘.zcash/testnet3/debug.log’ for reading: No such file or directory” even though I can manually go to the file and see things happening.

Also I’ve been mining for quite some time with a zero balance and it is keeping up with the blockchain just fine from what I can tell