How to: Peerbox Support Thread (Updated to v0.6.1)

Updated to Rasbian Scratch and peerbox stopped working. Has this been tested on latest version or should I go back to jessie?

I did not update it to work with new release of Debian, it’s tailored to Jessie.

I no longer have time to support and improve this project, if someone wants to take over message me.

No worries, thanks mate. Jessie is still reliable and the peerbox should really be exclusively set up for the node. Will restore back to my backup image.

how to update my node to the latest v0.6?

I will update the repository in next few days.

4 Likes

v0.6.1 is package is now in the repository.

To upgrade:

`sudo apt update```

sudo apt remove ppcoin

Now follow same upgrade instructions as desktop Peercoin release: https://medium.com/@PeercoinPulse/peercoin-v0-6-release-2831fb4394ad

(cleaning the old blockchain data)

reinstall:

sudo apt install peerbox

Fresh install is easy, business as usual.


I will repair bugs if there are some, but please note that this is last Peerbox update. I urge someone to take over the development, I simply no longer have spare time to do maintenance and introduce new features.

6 Likes

Curious if there’s any project updates. I’m back and considering running a PPC node again 24/7

1 Like

Hi!
I’m trying to install peerbox on a raspberry pi 3, but I’m getting the following errors:

The following packages have unmet dependencies:
 peerbox : Depends: ppcoin but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

I tried installing ppcoin and get the following:

The following packages have unmet dependencies:
ppcoin : Depends: libboost-filesystem1.55.0 but it is not installable
Depends: libboost-program-options1.55.0 but it is not installable
Depends: libboost-system1.55.0 but it is not installable
Depends: libboost-thread1.55.0 but it is not installable
Depends: libssl1.0.0 (>= 1.0.1) but it is not installable
E: Unable to correct problems, you have held broken packages.

I then tried installing the various boost libraries, but they are newer versions. Would that work? I’m running a headless (ssh only) raspberry pi 3.

Uname -a reports:

Linux raspberrypi 4.9.67-v7+ #1061 SMP Tue Dec 5 17:17:24 GMT 2017 armv7l GNU/Linux

Can the lite version of raspbian work? No idea what else I can do as I’ve got those boost-dev libraries installed… Thanks!

i think it is because you are running latest version of rasbian, stretch? peerbox is for jessie
https://downloads.raspberrypi.org/raspbian/images/raspbian-2017-07-05/

Yes! That’s right. Do you think there will be a build for stretch?

not unless someone develops it

Hey,
I guess i’m having the same problem than Intensor in question comment #125.
I type > peerbox -start ::

Starting Peerbox…

After a few seconds the prompt shows up again.
Commands like -rates or -version work.

But now peerbox -info:
results either in

Peercoin deamon is still unresponsive, wait for few more seconds please.
or
Peerbox is not running. Please start Peerbox with “peerbox -start”

and after peerbox -info:
Commands -rates or -version stopped working with the line:

Peerbox is not running. Please start Peerbox with “peerbox -start”

I tried reinstalling, which doesn’t change anything.
Starting only works for user pi.

sudo systemctl start ppcoind

gives:

Failed to start ppcoind.service: Unit ppcoind.service failed to load: No such file or directory.

Getting this error i tried reinstalling peerbox, several times.

RaspberryPI 3 b
2017-07-05-raspbian-jessie

Not sure what else to try.

can you look in the ~/.ppcoin directory, does debug.log give a clue?

Having the same issue.
I’m not finding any files in ~./ppcoin besides the conf file

Is there a ~/.peercoin directory?

Yes, I found it and checked the error log.
Looks like it’s just syncing the blockchain?

2017-12-25 06:18:50 ProcessBlock: ACCEPTED
2017-12-25 06:18:50 received block 0901af8808ba7291108996cef12e4395c9addd7c311f22f84942890867b11c0a
2017-12-25 06:18:50 SetBestChain: new best=0901af8808ba7291108996cef12e4395c9addd7c311f22f84942890867b11c0a height=108136 log2_trust=50.930732 moneysupply=21340559.55369 tx=507531 date=2014-04-22 17:56:19 progress=0.001009
2017-12-25 06:18:50 ProcessBlock: ACCEPTED
2017-12-25 06:18:50 received block ea15788c49d00c0e7a31b08ec8c9f8e67610ea41cbbbcbe4a9242b0f80538869
2017-12-25 06:18:51 SetBestChain: new best=ea15788c49d00c0e7a31b08ec8c9f8e67610ea41cbbbcbe4a9242b0f80538869 height=108137 log2_trust=50.930765 moneysupply=21340560.41369 tx=507533 date=2014-04-22 17:57:11 progress=0.001009
2017-12-25 06:18:51 ProcessBlock: ACCEPTED
2017-12-25 06:18:51 received block 58a743ea63b16d19f4815dc9c57e532663f7cab81fe5ef636b3bec65528a591d
2017-12-25 06:18:51 SetBestChain: new best=58a743ea63b16d19f4815dc9c57e532663f7cab81fe5ef636b3bec65528a591d height=108138 log2_trust=50.930797 moneysupply=21340584.82369 tx=507535 date=2014-04-22 17:58:37 progress=0.001009
2017-12-25 06:18:51 ProcessBlock: ACCEPTED
2017-12-25 06:18:51 received block 728279d786598ad076b49c8f0ae78bc8d9853d35f06529d6ca59d0d03dc17b61
2017-12-25 06:18:51 SetBestChain: new best=728279d786598ad076b49c8f0ae78bc8d9853d35f06529d6ca59d0d03dc17b61 height=108139 log2_trust=50.930829 moneysupply=21340585.46369 tx=507539 date=2014-04-22 18:06:04 progress=0.001009
2017-12-25 06:18:51 ProcessBlock: ACCEPTED
2017-12-25 06:18:51 received block f42decf97ad56025c4d88826befe4a5db331b1cb4acb94ea97f4076b6756408d

That’s what I see at the bottom of the debug log. This was after I left it alone for about an hour.
Earlier today, this is what the debug log was showing

proof-of-stake failed for block 6e23b4f5f7b1bc5858180c26f9cd9ae0e342193870f73a02a305b00323f334a4
2017-12-25 02:27:33 received block 18336b86b3b17ee7378aa2e13eaa90ca381aef2bf0278ddd17bd4bc05d21d2f2
2017-12-25 02:27:33 ERROR: CheckProofOfStake() : tx index not found
2017-12-25 02:27:33 WARNING: ProcessBlock(): check proof-of-stake failed for block 18336b86b3b17ee7378aa2e13eaa90ca381aef2bf0278ddd17bd4bc05d21d2f2
2017-12-25 02:27:33 received block 870dc6277786bbaff3c175965f0f5abedb4aadb288bb2f7a3c526e6900097e74
2017-12-25 02:27:33 ERROR: CheckProofOfStake() : tx index not found
2017-12-25 02:27:33 WARNING: ProcessBlock(): check proof-of-stake failed for block 870dc6277786bbaff3c175965f0f5abedb4aadb288bb2f7a3c526e6900097e74
2017-12-25 02:27:33 received block bdbd44306525fedf4f3bf526779d8b94ba682adc19f1b4bfc157dc75ea197149
2017-12-25 02:27:33 ERROR: CheckProofOfStake() : tx index not found
2017-12-25 02:27:33 WARNING: ProcessBlock(): check proof-of-stake failed for block bdbd44306525fedf4f3bf526779d8b94ba682adc19f1b4bfc157dc75ea197149
2017-12-25 02:27:33 received block 0000000000000000b3e927132cf847a6d331bf5767195228b56ac619fe30ca55
2017-12-25 02:27:33 ProcessBlock: ORPHAN BLOCK, prev=8eed9508f2aff145b5eb688a961259a22a15616e0c2bc9d3d443c6b6ea6ee2d5
2017-12-25 02:27:33 received block 0000000000000002f2333280d8f1a0fc5589d0bb9163dbab41ce2313488f1d55
2017-12-25 02:27:33 ProcessBlock: ORPHAN BLOCK, prev=bdbd44306525fedf4f3bf526779d8b94ba682adc19f1b4bfc157dc75ea197149
2017-12-25 02:27:33 received block 13bd7807d2ce4bcad7b97c4d226c9ec6e649390f5910da840a57e1ff96f3c51d
2017-12-25 02:27:34 ERROR: CheckProofOfStake() : tx index not found
2017-12-25 02:27:34 WARNING: ProcessBlock(): check proof-of-stake failed for block 13bd7807d2ce4bcad7b97c4d226c9ec6e649390f5910da840a57e1ff96f3c51d
2017-12-25 02:27:34 received block 2b4752be832a9e3aaffac2fe4f5569c6c56676296f55eebd88a8af69c9f7d071
2017-12-25 02:27:34 ERROR: ProcessBlock() : already have block (orphan)

etc etc. I’m thinking just let it sit there until the blockchain is fully downloaded?

Looks like it’s syncing to me. Leave it alone.

Still no luck. Processor usage for ppcoin is hovering around 4%, same message.

Edit: checked the log, it’s still downloading. Made it up to about May 2015 :wink:

No luck. Block chain is up to date, still getting the same error message. I restarted the machine and looking at the debug log, Peerbox is connecting to other peers.

By all accounts the node is running, the debug log shows sync activity.
CPU activity is hovering right around 15%
The interesting thing is when I run other commands like -health, this is what I get:

Checking if we are on the right chain…
Using peercoin.mintr.org as reference.

Traceback (most recent call last):
File “/usr/bin/peerbox”, line 443, in
health_check()
File “/usr/bin/peerbox”, line 278, in health_check
r = _check()
File “/usr/bin/peerbox”, line 245, in _check
local = _local()
File “/usr/bin/peerbox”, line 235, in _local
local[“height”] = int(node.getblockcount())
File “/usr/lib/python2.7/dist-packages/peercoin_rpc/peercoin_rpc.py”, line 101, in getblockcount
return self.req(“getblockcount”)
File “/usr/lib/python2.7/dist-packages/peercoin_rpc/peercoin_rpc.py”, line 76, in req
“jsonrpc”: “1.1”})
File “/usr/lib/python2.7/dist-packages/requests/models.py”, line 793, in json
return json.loads(self.text, **kwargs)
File “/usr/lib/python2.7/json/init.py”, line 338, in loads
return _default_decoder.decode(s)
File “/usr/lib/python2.7/json/decoder.py”, line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File “/usr/lib/python2.7/json/decoder.py”, line 384, in raw_decode
raise ValueError(“No JSON object could be decoded”)
ValueError: No JSON object could be decoded

When I run peerbox - balance, I get

Traceback (most recent call last):
File “/usr/bin/peerbox”, line 456, in
print(json.dumps(balance(), indent=4))
File “/usr/bin/peerbox”, line 295, in balance
return { ‘balance’: node.getbalance() }
File “/usr/lib/python2.7/dist-packages/peercoin_rpc/peercoin_rpc.py”, line 116, in getbalance
return self.req(“getbalance”)
File “/usr/lib/python2.7/dist-packages/peercoin_rpc/peercoin_rpc.py”, line 76, in req
“jsonrpc”: “1.1”})
File “/usr/lib/python2.7/dist-packages/requests/models.py”, line 793, in json
return json.loads(self.text, **kwargs)
File “/usr/lib/python2.7/json/init.py”, line 338, in loads
return _default_decoder.decode(s)
File “/usr/lib/python2.7/json/decoder.py”, line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File “/usr/lib/python2.7/json/decoder.py”, line 384, in raw_decode
raise ValueError(“No JSON object could be decoded”)
ValueError: No JSON object could be decoded

Any ideas?