It had been a pleasant surprise to find that my peerbox has found a POS block, before I found ppcoind was stuck at a block 5 days ago, minting on a dead-end chain, after I rebooted it.
The block number of the main chain is about 135322. Note that the load was very high.
I saved the debug log and restarted ppcoind twice but couldnāt get it to start resync. So I rebooted peerbox. It didnāt help either.
What should I do?
OK I copied blk* database/* from my laptop, set owner, group, permission right, and removed addr.dat. Now the box is minting on the main chain. load is 0.23.
Iām reading this and I do not know why it was on wrong blockchain. Iām not sure that this goes to Peerbox issues, since this can happen to any ppc client. Did you maybe use ppcoind-blockchain package that lead it to use wrong chain?
I agree it could be a problem of the original peercoind or even bitcoind. Since peerbox is inteded to be left running unattended for a long time, maybe a watch dog is good to have.
I am not using the ppcoind-blockchain package. I kept 6MB (if uncompressed) debug.log if you are interested.
I agree it could be a problem of the original peercoind or even bitcoind. Since peerbox is inteded to be left running unattended for a long time, maybe a watch dog is good to have.
I am not using the ppcoind-blockchain package. I kept 6MB (if uncompressed) debug.log if you are interested.[/quote]
so you propose this as solution?
[quote=āmhps, post:15, topic:2829ā]Maybe to add something that the box is minting on the main chain.
Iād like to see a short format that shows the parameters that often change:
connection, balance, diff, staked, last block number and how long ago it was found (health indicator), CPU load, temperature.[/quote]
Ok, can do but you mentioned too much stuff here IMO.
Maybe health indicator is enough beside existing features?
Did you research how do people usually detect wrong chain, and how do they fix it?
[quote=āpeerchemist, post:7, topic:2928ā]so you propose this as solution?
[quote=āmhps, post:15, topic:2829ā]Maybe to add something that the box is minting on the main chain.
Iād like to see a short format that shows the parameters that often change:
connection, balance, diff, staked, last block number and how long ago it was found (health indicator), CPU load, temperature.[/quote][/quote]
Itās not a solution, but a general suggestion helping the user to monitor the status of peerbox more easily. The health indicator could have helped me to spot the problem reported here. If my peerbox hadnāt found a new block, I would not have noticed that it was running on the wrong chain.
Ok, can do but you mentioned too much stuff here IMO.
Maybe health indicator is enough beside existing features?
Did you research how do people usually detect wrong chain, and how do they fix it?
I agree that watchdog is good idea.
I havenāt done research in any comprehensive way. Usually people find out by noticing that their found blocks are orphaned. To detect the problem I was having, one can check if the time of the last block falls far behind the current system time.
Letting peerbox auto-start minting by a watchdog might need have the passphrase left in the SD card, which is a security concern.