Hello,
I have two instances of bitcoin-qt running, one on mainnet and one on testnet.
I also want to run two instances of counterpartyd on both networks.
The mainnet of counterpartyd is working well
But the testnet counterpartyd not working.
I get this logs when I try to open it:<br />>counterpartyd --testnet --testcoin server<br />>echo off<br />Traceback (most recent call last):<br /> File "C:\\XCP\\counterpartyd_build\\env\\lib\\site-packages\\requests\\packages\\urlli<br />b3\\connectionpool.py", line 478, in urlopen<br /> body=body, headers=headers)<br /> File "C:\\XCP\\counterpartyd_build\\env\\lib\\site-packages\\requests\\packages\\urlli<br />b3\\connectionpool.py", line 285, in _make_request<br /> conn.request(method, url, **httplib_request_kw)<br /> File "c:\\Python32\\Lib\\http\\client.py", line 967, in request<br /> self._send_request(method, url, body, headers)<br /> File "c:\\Python32\\Lib\\http\\client.py", line 1005, in _send_request<br /> self.endheaders(body)<br /> File "c:\\Python32\\Lib\\http\\client.py", line 963, in endheaders<br /> self._send_output(message_body)<br /> File "c:\\Python32\\Lib\\http\\client.py", line 808, in _send_output<br /> self.send(msg)<br /> File "c:\\Python32\\Lib\\http\\client.py", line 746, in send<br /> self.connect()<br /> File "C:\\XCP\\counterpartyd_build\\env\\lib\\site-packages\\requests\\packages\\urlli<br />b3\\connection.py", line 95, in connect<br /> ssl_version=resolved_ssl_version)<br /> File "C:\\XCP\\counterpartyd_build\\env\\lib\\site-packages\\requests\\packages\\urlli<br />b3\\util.py", line 634, in ssl_wrap_socket<br /> return context.wrap_socket(sock, server_hostname=server_hostname)<br /> File "c:\\Python32\\Lib\\ssl.py", line 189, in wrap_socket<br /> _context=self)<br /> File "c:\\Python32\\Lib\\ssl.py", line 276, in __init__<br /> raise x<br /> File "c:\\Python32\\Lib\\ssl.py", line 272, in __init__<br /> self.do_handshake()<br /> File "c:\\Python32\\Lib\\ssl.py", line 451, in do_handshake<br /> self._sslobj.do_handshake()<br />socket.error: [Errno 10054] An existing connection was forcibly closed by the re<br />mote host<br /><br />During handling of the above exception, another exception occurred:<br /><br />Traceback (most recent call last):<br /> File "C:\\XCP\\counterpartyd_build\\env\\lib\\site-packages\\requests\\adapters.py",<br />line 324, in send<br /> timeout=timeout<br /> File "C:\\XCP\\counterpartyd_build\\env\\lib\\site-packages\\requests\\packages\\urlli<br />b3\\connectionpool.py", line 528, in urlopen<br /> raise MaxRetryError(self, url, e)<br />requests.packages.urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='ra<br />w2.github.com', port=443): Max retries exceeded with url: /PhantomPhreak/counter<br />partyd/master/versions.json (Caused by <class 'socket.error'>: [Errno 10054] An<br />existing connection was forcibly closed by the remote host)<br /><br />During handling of the above exception, another exception occurred:<br /><br />Traceback (most recent call last):<br /> File "C:\\XCP\\counterpartyd_build\\dist\\counterpartyd\\lib\\util.py", line 293, in<br /> versions_check<br /> response = requests.get(host, headers={'cache-control': 'no-cache'})<br /> File "C:\\XCP\\counterpartyd_build\\env\\lib\\site-packages\\requests\\api.py", line<br />55, in get<br /> return request('get', url, **kwargs)<br /> File "C:\\XCP\\counterpartyd_build\\env\\lib\\site-packages\\requests\\api.py", line<br />44, in request<br /> return session.request(method=method, url=url, **kwargs)<br /> File "C:\\XCP\\counterpartyd_build\\env\\lib\\site-packages\\requests\\sessions.py",<br />line 382, in request<br /> resp = self.send(prep, **send_kwargs)<br /> File "C:\\XCP\\counterpartyd_build\\env\\lib\\site-packages\\requests\\sessions.py",<br />line 485, in send<br /> r = adapter.send(request, **kwargs)<br /> File "C:\\XCP\\counterpartyd_build\\env\\lib\\site-packages\\requests\\adapters.py",<br />line 372, in send<br /> raise ConnectionError(e)<br />requests.exceptions.ConnectionError: HTTPSConnectionPool(host='raw2.github.com',<br /> port=443): Max retries exceeded with url: /PhantomPhreak/counterpartyd/master/v<br />ersions.json (Caused by <class 'socket.error'>: [Errno 10054] An existing connec<br />tion was forcibly closed by the remote host)<br /><br />During handling of the above exception, another exception occurred:<br /><br />Traceback (most recent call last):<br /> File "C:\\XCP\\counterpartyd_build\\dist\\counterpartyd\\counterpartyd.py", line 59<br />7, in <module><br /> util.versions_check(db)<br /> File "C:\\XCP\\counterpartyd_build\\dist\\counterpartyd\\lib\\util.py", line 296, in<br /> versions_check<br /> raise exceptions.DatabaseVersionError('Unable to check client, database vers<br />ions. How's your Internet access?')<br />lib.exceptions.DatabaseVersionError: Unable to check client, database versions.<br />How's your Internet access?<br />
I tried to delete the database file in the Roaming\CounterParty\Counterpartyd dir:
counterpartyd.9.testnet.db, counterpartyd.9.testnet.db-shm, counterpartyd.9.testnet.db-wal
and got this logs:<br />Traceback (most recent call last):<br /> File "C:\\XCP\\counterpartyd_build\\env\\lib\\site-packages\\requests\\packages\\urlli<br />b3\\connectionpool.py", line 478, in urlopen<br /> body=body, headers=headers)<br /> File "C:\\XCP\\counterpartyd_build\\env\\lib\\site-packages\\requests\\packages\\urlli<br />b3\\connectionpool.py", line 285, in _make_request<br /> conn.request(method, url, **httplib_request_kw)<br /> File "c:\\Python32\\Lib\\http\\client.py", line 967, in request<br /> self._send_request(method, url, body, headers)<br /> File "c:\\Python32\\Lib\\http\\client.py", line 1005, in _send_request<br /> self.endheaders(body)<br /> File "c:\\Python32\\Lib\\http\\client.py", line 963, in endheaders<br /> self._send_output(message_body)<br /> File "c:\\Python32\\Lib\\http\\client.py", line 808, in _send_output<br /> self.send(msg)<br /> File "c:\\Python32\\Lib\\http\\client.py", line 746, in send<br /> self.connect()<br /> File "c:\\Python32\\Lib\\http\\client.py", line 724, in connect<br /> self.timeout, self.source_address)<br /> File "c:\\Python32\\Lib\\socket.py", line 404, in create_connection<br /> raise err<br /> File "c:\\Python32\\Lib\\socket.py", line 395, in create_connection<br /> sock.connect(sa)<br />socket.error: [Errno 10061] No connection could be made because the target machi<br />ne actively refused it<br /><br />During handling of the above exception, another exception occurred:<br /><br />Traceback (most recent call last):<br /> File "C:\\XCP\\counterpartyd_build\\env\\lib\\site-packages\\requests\\adapters.py",<br />line 324, in send<br /> timeout=timeout<br /> File "C:\\XCP\\counterpartyd_build\\env\\lib\\site-packages\\requests\\packages\\urlli<br />b3\\connectionpool.py", line 528, in urlopen<br /> raise MaxRetryError(self, url, e)<br />requests.packages.urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='loc<br />alhost', port=3001): Max retries exceeded with url: /api/addr/mvCounterpartyXXXX<br />XXXXXXXXXXW24Hef (Caused by <class 'socket.error'>: [Errno 10061] No connection<br />could be made because the target machine actively refused it)<br /><br />During handling of the above exception, another exception occurred:<br /><br />Traceback (most recent call last):<br /> File "C:\\XCP\\counterpartyd_build\\dist\\counterpartyd\\counterpartyd.py", line 80<br />0, in <module><br /> bitcoin.get_btc_balance(config.UNSPENDABLE, normalize=False)<br /> File "C:\\XCP\\counterpartyd_build\\dist\\counterpartyd\\lib\\bitcoin.py", line 446,<br /> in get_btc_balance<br /> r = requests.get(config.INSIGHT + '/api/addr/' + address)<br /> File "C:\\XCP\\counterpartyd_build\\env\\lib\\site-packages\\requests\\api.py", line<br />55, in get<br /> return request('get', url, **kwargs)<br /> File "C:\\XCP\\counterpartyd_build\\env\\lib\\site-packages\\requests\\api.py", line<br />44, in request<br /> return session.request(method=method, url=url, **kwargs)<br /> File "C:\\XCP\\counterpartyd_build\\env\\lib\\site-packages\\requests\\sessions.py",<br />line 382, in request<br /> resp = self.send(prep, **send_kwargs)<br /> File "C:\\XCP\\counterpartyd_build\\env\\lib\\site-packages\\requests\\sessions.py",<br />line 485, in send<br /> r = adapter.send(request, **kwargs)<br /> File "C:\\XCP\\counterpartyd_build\\env\\lib\\site-packages\\requests\\adapters.py",<br />line 372, in send<br /> raise ConnectionError(e)<br />requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=3<br />001): Max retries exceeded with url: /api/addr/mvCounterpartyXXXXXXXXXXXXXXW24He<br />f (Caused by <class 'socket.error'>: [Errno 10061] No connection could be made b<br />ecause the target machine actively refused it)<br /><br />During handling of the above exception, another exception occurred:<br /><br />Traceback (most recent call last):<br /> File "C:\\XCP\\counterpartyd_build\\dist\\counterpartyd\\counterpartyd.py", line 80<br />2, in <module><br /> raise exceptions.InsightError('Could not connect to Insight server.')<br />lib.exceptions.InsightError: Could not connect to Insight server.<br />
After this run the deleted files are recreated and if I runs again the counterpartyd --testnet --testcoin server
command I am getting the first log one more time.
Can someone tell me what this is?
[quote author=bitcoiner link=topic=189.msg1363#msg1363 date=1395183715]
Hello,
I have two instances of bitcoin-qt running, one on mainnet and one on testnet.
I also want to run two instances of counterpartyd on both networks.
The mainnet of counterpartyd is working well
But the testnet counterpartyd not working.
I get this logs when I try to open it:<br />>counterpartyd --testnet --testcoin server<br />>echo off<br />Traceback (most recent call last):<br /> File "C:\\XCP\\counterpartyd_build\\env\\lib\\site-packages\\requests\\packages\\urlli<br />b3\\connectionpool.py", line 478, in urlopen<br /> body=body, headers=headers)<br /> File "C:\\XCP\\counterpartyd_build\\env\\lib\\site-packages\\requests\\packages\\urlli<br />b3\\connectionpool.py", line 285, in _make_request<br /> conn.request(method, url, **httplib_request_kw)<br /> File "c:\\Python32\\Lib\\http\\client.py", line 967, in request<br /> self._send_request(method, url, body, headers)<br /> File "c:\\Python32\\Lib\\http\\client.py", line 1005, in _send_request<br /> self.endheaders(body)<br /> File "c:\\Python32\\Lib\\http\\client.py", line 963, in endheaders<br /> self._send_output(message_body)<br /> File "c:\\Python32\\Lib\\http\\client.py", line 808, in _send_output<br /> self.send(msg)<br /> File "c:\\Python32\\Lib\\http\\client.py", line 746, in send<br /> self.connect()<br /> File "C:\\XCP\\counterpartyd_build\\env\\lib\\site-packages\\requests\\packages\\urlli<br />b3\\connection.py", line 95, in connect<br /> ssl_version=resolved_ssl_version)<br /> File "C:\\XCP\\counterpartyd_build\\env\\lib\\site-packages\\requests\\packages\\urlli<br />b3\\util.py", line 634, in ssl_wrap_socket<br /> return context.wrap_socket(sock, server_hostname=server_hostname)<br /> File "c:\\Python32\\Lib\\ssl.py", line 189, in wrap_socket<br /> _context=self)<br /> File "c:\\Python32\\Lib\\ssl.py", line 276, in __init__<br /> raise x<br /> File "c:\\Python32\\Lib\\ssl.py", line 272, in __init__<br /> self.do_handshake()<br /> File "c:\\Python32\\Lib\\ssl.py", line 451, in do_handshake<br /> self._sslobj.do_handshake()<br />socket.error: [Errno 10054] An existing connection was forcibly closed by the re<br />mote host<br /><br />During handling of the above exception, another exception occurred:<br /><br />Traceback (most recent call last):<br /> File "C:\\XCP\\counterpartyd_build\\env\\lib\\site-packages\\requests\\adapters.py",<br />line 324, in send<br /> timeout=timeout<br /> File "C:\\XCP\\counterpartyd_build\\env\\lib\\site-packages\\requests\\packages\\urlli<br />b3\\connectionpool.py", line 528, in urlopen<br /> raise MaxRetryError(self, url, e)<br />requests.packages.urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='ra<br />w2.github.com', port=443): Max retries exceeded with url: /PhantomPhreak/counter<br />partyd/master/versions.json (Caused by <class 'socket.error'>: [Errno 10054] An<br />existing connection was forcibly closed by the remote host)<br /><br />During handling of the above exception, another exception occurred:<br /><br />Traceback (most recent call last):<br /> File "C:\\XCP\\counterpartyd_build\\dist\\counterpartyd\\lib\\util.py", line 293, in<br /> versions_check<br /> response = requests.get(host, headers={'cache-control': 'no-cache'})<br /> File "C:\\XCP\\counterpartyd_build\\env\\lib\\site-packages\\requests\\api.py", line<br />55, in get<br /> return request('get', url, **kwargs)<br /> File "C:\\XCP\\counterpartyd_build\\env\\lib\\site-packages\\requests\\api.py", line<br />44, in request<br /> return session.request(method=method, url=url, **kwargs)<br /> File "C:\\XCP\\counterpartyd_build\\env\\lib\\site-packages\\requests\\sessions.py",<br />line 382, in request<br /> resp = self.send(prep, **send_kwargs)<br /> File "C:\\XCP\\counterpartyd_build\\env\\lib\\site-packages\\requests\\sessions.py",<br />line 485, in send<br /> r = adapter.send(request, **kwargs)<br /> File "C:\\XCP\\counterpartyd_build\\env\\lib\\site-packages\\requests\\adapters.py",<br />line 372, in send<br /> raise ConnectionError(e)<br />requests.exceptions.ConnectionError: HTTPSConnectionPool(host='raw2.github.com',<br /> port=443): Max retries exceeded with url: /PhantomPhreak/counterpartyd/master/v<br />ersions.json (Caused by <class 'socket.error'>: [Errno 10054] An existing connec<br />tion was forcibly closed by the remote host)<br /><br />During handling of the above exception, another exception occurred:<br /><br />Traceback (most recent call last):<br /> File "C:\\XCP\\counterpartyd_build\\dist\\counterpartyd\\counterpartyd.py", line 59<br />7, in <module><br /> util.versions_check(db)<br /> File "C:\\XCP\\counterpartyd_build\\dist\\counterpartyd\\lib\\util.py", line 296, in<br /> versions_check<br /> raise exceptions.DatabaseVersionError('Unable to check client, database vers<br />ions. How's your Internet access?')<br />lib.exceptions.DatabaseVersionError: Unable to check client, database versions.<br />How's your Internet access?<br />
I tried to delete the database file in the Roaming\CounterParty\Counterpartyd dir:
counterpartyd.9.testnet.db, counterpartyd.9.testnet.db-shm, counterpartyd.9.testnet.db-wal
and got this logs:<br />Traceback (most recent call last):<br /> File "C:\\XCP\\counterpartyd_build\\env\\lib\\site-packages\\requests\\packages\\urlli<br />b3\\connectionpool.py", line 478, in urlopen<br /> body=body, headers=headers)<br /> File "C:\\XCP\\counterpartyd_build\\env\\lib\\site-packages\\requests\\packages\\urlli<br />b3\\connectionpool.py", line 285, in _make_request<br /> conn.request(method, url, **httplib_request_kw)<br /> File "c:\\Python32\\Lib\\http\\client.py", line 967, in request<br /> self._send_request(method, url, body, headers)<br /> File "c:\\Python32\\Lib\\http\\client.py", line 1005, in _send_request<br /> self.endheaders(body)<br /> File "c:\\Python32\\Lib\\http\\client.py", line 963, in endheaders<br /> self._send_output(message_body)<br /> File "c:\\Python32\\Lib\\http\\client.py", line 808, in _send_output<br /> self.send(msg)<br /> File "c:\\Python32\\Lib\\http\\client.py", line 746, in send<br /> self.connect()<br /> File "c:\\Python32\\Lib\\http\\client.py", line 724, in connect<br /> self.timeout, self.source_address)<br /> File "c:\\Python32\\Lib\\socket.py", line 404, in create_connection<br /> raise err<br /> File "c:\\Python32\\Lib\\socket.py", line 395, in create_connection<br /> sock.connect(sa)<br />socket.error: [Errno 10061] No connection could be made because the target machi<br />ne actively refused it<br /><br />During handling of the above exception, another exception occurred:<br /><br />Traceback (most recent call last):<br /> File "C:\\XCP\\counterpartyd_build\\env\\lib\\site-packages\\requests\\adapters.py",<br />line 324, in send<br /> timeout=timeout<br /> File "C:\\XCP\\counterpartyd_build\\env\\lib\\site-packages\\requests\\packages\\urlli<br />b3\\connectionpool.py", line 528, in urlopen<br /> raise MaxRetryError(self, url, e)<br />requests.packages.urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='loc<br />alhost', port=3001): Max retries exceeded with url: /api/addr/mvCounterpartyXXXX<br />XXXXXXXXXXW24Hef (Caused by <class 'socket.error'>: [Errno 10061] No connection<br />could be made because the target machine actively refused it)<br /><br />During handling of the above exception, another exception occurred:<br /><br />Traceback (most recent call last):<br /> File "C:\\XCP\\counterpartyd_build\\dist\\counterpartyd\\counterpartyd.py", line 80<br />0, in <module><br /> bitcoin.get_btc_balance(config.UNSPENDABLE, normalize=False)<br /> File "C:\\XCP\\counterpartyd_build\\dist\\counterpartyd\\lib\\bitcoin.py", line 446,<br /> in get_btc_balance<br /> r = requests.get(config.INSIGHT + '/api/addr/' + address)<br /> File "C:\\XCP\\counterpartyd_build\\env\\lib\\site-packages\\requests\\api.py", line<br />55, in get<br /> return request('get', url, **kwargs)<br /> File "C:\\XCP\\counterpartyd_build\\env\\lib\\site-packages\\requests\\api.py", line<br />44, in request<br /> return session.request(method=method, url=url, **kwargs)<br /> File "C:\\XCP\\counterpartyd_build\\env\\lib\\site-packages\\requests\\sessions.py",<br />line 382, in request<br /> resp = self.send(prep, **send_kwargs)<br /> File "C:\\XCP\\counterpartyd_build\\env\\lib\\site-packages\\requests\\sessions.py",<br />line 485, in send<br /> r = adapter.send(request, **kwargs)<br /> File "C:\\XCP\\counterpartyd_build\\env\\lib\\site-packages\\requests\\adapters.py",<br />line 372, in send<br /> raise ConnectionError(e)<br />requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=3<br />001): Max retries exceeded with url: /api/addr/mvCounterpartyXXXXXXXXXXXXXXW24He<br />f (Caused by <class 'socket.error'>: [Errno 10061] No connection could be made b<br />ecause the target machine actively refused it)<br /><br />During handling of the above exception, another exception occurred:<br /><br />Traceback (most recent call last):<br /> File "C:\\XCP\\counterpartyd_build\\dist\\counterpartyd\\counterpartyd.py", line 80<br />2, in <module><br /> raise exceptions.InsightError('Could not connect to Insight server.')<br />lib.exceptions.InsightError: Could not connect to Insight server.<br />
After this run the deleted files are recreated and if I runs again the counterpartyd --testnet --testcoin server
command I am getting the first log one more time.
Can someone tell me what this is?
[/quote]
To run counterpartyd on testnet, you need to run an Insight server (or run with [tt]–force[/tt]).
Thank you!
the --force trick solved it
why do i need it and what is an Insight server?
btw I see that the testnet block indexing is crazy faster than the maintest. Is this normal?
How can I speedup the indexing on the mainet?
Thanks again.
https://github.com/bitpay/insight
I’m not sure you can get the reindex to be any faster in any simple way - the testnet blocks are much smaller than the mainnet ones.