I’m a Linux n00b. I run Ubuntu on my desktop.
I installed Bitcoin, synced (took a couple days) and reindexed (took another few days).
I modified bitcoin.conf as described - https://www.dropbox.com/s/7mx7uphhf12fmga/counterparty-lib-cheatsheet_9.51.3.pdf
I installed counterparty-cli.
sudo pip3 install counterparty-cli
did not work for me.
sudo pip3 install --no-use-wheel counterparty-cli
worked - https://github.com/CounterpartyXCP/counterparty-lib/issues/674
Then counterparty-server bootstrap
executes okay.
But counterparty-server start
fails
[2016-03-18 10:15:15][INFO] Running v1.1.1 of counterparty-server. [2016-03-18 10:15:15][INFO] Running v9.54.0 of counterparty-lib. [2016-03-18 10:15:15][INFO] Acquiring lock. [2016-03-18 10:15:15][INFO] Connecting to database.
It stays here for more than an hour, then:
[2016-03-18 11:41:19][INFO] Connecting to backend. [2016-03-18 11:41:21][ERROR] Unhandled Exception Traceback (most recent call last): File "/usr/local/bin/counterparty-server", line 9, in <module> load_entry_point('counterparty-cli==1.1.1', 'console_scripts', 'counterparty-server')() File "/usr/local/lib/python3.4/dist-packages/counterpartycli/__init__.py", line 16, in server_main server.main() File "/usr/local/lib/python3.4/dist-packages/counterpartycli/server.py", line 135, in main server.start_all(db) File "/usr/local/lib/python3.4/dist-packages/counterpartylib/server.py", line 359, in start_all connect_to_backend() File "/usr/local/lib/python3.4/dist-packages/counterpartylib/server.py", line 353, in connect_to_backend backend.getblockcount() File "/usr/local/lib/python3.4/dist-packages/counterpartylib/lib/backend/__init__.py", line 42, in getblockcount return BACKEND().getblockcount() File "/usr/local/lib/python3.4/dist-packages/counterpartylib/lib/backend/addrindex.py", line 221, in getblockcount return rpc('getblockcount', []) File "/usr/local/lib/python3.4/dist-packages/counterpartylib/lib/backend/addrindex.py", line 75, in rpc return rpc_call(payload) File "/usr/local/lib/python3.4/dist-packages/counterpartylib/lib/backend/addrindex.py", line 47, in rpc_call raise BackendRPCError(str(response.status_code) + ' ' + response.reason) counterpartylib.lib.backend.addrindex.BackendRPCError: 401 Unauthorized
The connection files:
bitcoin.comf (~/.bitcoin)
rpcuser=bitcoin-rpc rpcpassword=PaSS server=1 daemon=1 rpcthreads=1000 rpctimeout=300 txindex=1 addrindex=1 minrelaytxfee=0.00005 limitfreerelay=0
server.conf (~/.config/counterparty)
[Default] backend-name = addrindex backend-user = bitcoin-rpc backend-password = PaSS rpc-host = localhost rpc-user = counterparty-rpc rpc-password = WoRD
client.conf (~/.config/counterparty)
[Default] counterparty-rpc-user = counterparty-rpc counterparty-rpc-password = WoRD wallet-name = bitcoincore wallet-connect = localhost wallet-user = bitcoin-rpc wallet-password = PaSS
EDIT : First I did not use btcdrak’s version. Then I downloaded newest btcdrak tar.gz for linux 64-bit. I copied the bin folder over to my existing .bitcoin folder. Now I’ve run $ ~/.bitcoin/bin/bitcoin-qt
and finished new reindexing.
It does not change anything. I still don’t get past ‘Connecting to database.’
UPDATE : I deleted the fhree files at ‘./local/share/counterparty’ and then tried counterparty-server bootstrap
followed by `counterparty-server start. As before, I could not connect to DB.
Then I deleted the DB files again. Without first bootstrapping I ran `counterparty-server start’. It connects to the DB now (actually creates a new DB) amd processes blocks. But it works VERY SLOW. Each block takes around 20 seconds! It will take weeks unless it speeds up