Counterpartyd Build system: Technical support thread

I am not a programmer, so I don’t know what to do to fix this:



System information:
Windows 7 32bit
Pentium D Presler 950 (yeah, I know it’s ancient)
Intel 945 chipset (hence the 32bit Windows)

I’ve installed Python, the Python extensions, and APSW, all 32bit versions as linked on http://counterpartyd-build.readthedocs.org/en/latest/BuildingFromSource.html

[quote author=RobBase link=topic=13.msg722#msg722 date=1392870699]
I am not a programmer, so I don’t know what to do to fix this:



System information:
Windows 7 32bit
Pentium D Presler 950 (yeah, I know it’s ancient)
Intel 945 chipset (hence the 32bit Windows)

I’ve installed Python, the Python extensions, and APSW, all 32bit versions as linked on http://counterpartyd-build.readthedocs.org/en/latest/BuildingFromSource.html
[/quote]


It can’t find the branch for Counterparty. Did you install git?
http://git-scm.com/download/win
Git for Windows. Download here and install. Use the default installer options (except, select “Run Git from the Windows Command Prompt” on the appropriate screen)

[quote author=Bountyful link=topic=13.msg723#msg723 date=1392876400]



It can’t find the branch for Counterparty. Did you install git?
http://git-scm.com/download/win
Git for Windows. Download here and install. Use the default installer options (except, select “Run Git from the Windows Command Prompt” on the appropriate screen)
[/quote]

Yeap, I had to install git in order to run git clone and create the counterpartyd_build directory.

Now, on that note, there were a lot of options thrown at me when I installed git, and the documentation for setting up counterpartyd didn’t mention exactly which options I should select…

[quote author=Bountyful link=topic=13.msg723#msg723 date=1392876400]
Use the default installer options (except, select “Run Git from the Windows Command Prompt” on the appropriate screen)
[/quote]

I’ve reinstalled git using the windows command prompt option (I had selected bash only before). Unfortunately, I still get the same errors.


Transaction (unsigned): 0100000001c89e23e1f025a50bbf45bf220f1af59800246858700321
af5c8e81d02da7996f0200000000ffffffff036c2a0000000000001976a914981b8ae908a0e9df84
6a5f907a240099957b2b3a88ac6c2a000000000000675141049d58106afce4b98dc34eba4fcc211d
c3030c849007362e43b7d6175fce3a9e6dcc5656ba813a43c675718bbdff88e909e0aff8945c993b
d64388c1cfe7853ec8211c434e545250525459000000000000000000000001000000000007a12000
00000052aee8120000000000001976a91401daa08a4173b62e000e3d25b90a16c7ee52c8e188ac00
000000
Confirm? (y/N) y
Traceback (most recent call last):
  File “C:\counterpartyd_build\dist\counterpartyd\counterpartyd.py”, line 503, i
n
    print(unsigned_tx_hex) if args.unsigned else json_print(bitcoin.transmit(uns
igned_tx_hex))
  File “C:\counterpartyd_build\dist\counterpartyd\lib\bitcoin.py”, line 404, in
transmit
    return rpc(‘sendrawtransaction’, [signed_tx_hex])
  File “C:\counterpartyd_build\dist\counterpartyd\lib\bitcoin.py”, line 103, in
rpc
    raise exceptions.BitcoindError(’{}’.format(response_json[‘error’]))
lib.exceptions.BitcoindError: {‘message’: ‘TX rejected’, ‘code’: -22}


Thanks


Bug report:


version v6.1


[tt]counterpartyd server[/tt] works well.


[tt]counterpartyd wallet[/tt] doesn’t work:


c:\\counterpartyd_build>counterpartyd wallet<br /><br /><br />c:\\counterpartyd_build>echo off<br /><br /><br />Traceback (most recent call last):<br />&nbsp; File &quot;c:\\counterpartyd_build\\dist\\counterpartyd\\counterpartyd.py&quot;, line 554, i<br />n <module><br />&nbsp; &nbsp; for group in bitcoin.rpc('listaddressgroupings', []):<br />&nbsp; File &quot;c:\\counterpartyd_build\\dist\\counterpartyd\\lib\\bitcoin.py&quot;, line 105, in<br />rpc<br />&nbsp; &nbsp; response_json = response.json()<br />&nbsp; File &quot;c:\\counterpartyd_build\\env\\lib\\site-packages\\requests\\models.py&quot;, line 7<br />32, in json<br />&nbsp; &nbsp; return json.loads(self.content.decode(encoding), **kwargs)<br />UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe6 in position 62: invalid<br /> continuation byte<br />


One more, counterpartyd balances works well:


c:\\counterpartyd_build>counterpartyd balances 16dN8h1kvniQ719Q1tCoD2GwcUX1M2an6a<br /><br /><br /><br /><br />c:\\counterpartyd_build>echo off<br />Balances<br />+-------+---------------+<br />| Asset |&nbsp; &nbsp; Amount&nbsp; &nbsp; |<br />+-------+---------------+<br />|&nbsp; BTC&nbsp; |&nbsp; 0.51434404&nbsp; |<br />|&nbsp; XCP&nbsp; | 1210.54545455 |<br />+-------+---------------+<br /><br /><br />c:\\counterpartyd_build>


Bitcoin.conf:


rpcuser=rpc<br />rpcpassword=rpcpw1234<br />server=1<br />daemon=1<br />txindex=1


counterpartyd.conf:


[Default]<br />bitcoind-rpc-connect=localhost<br />bitcoind-rpc-port=8332<br />bitcoind-rpc-user=rpc<br />bitcoind-rpc-password=rpcpw1234<br />rpc-host=localhost<br />rpc-port=4000<br />rpc-user=rpcuser<br />rpc-password=rpcpw1234


How to fix it?

[quote author=520Bit link=topic=13.msg828#msg828 date=1393247393]

Bug report:


version v6.1


[tt]counterpartyd server[/tt] works well.


[tt]counterpartyd wallet[/tt] doesn’t work:


c:\\counterpartyd_build>counterpartyd wallet<br /><br /><br />c:\\counterpartyd_build>echo off<br /><br /><br />Traceback (most recent call last):<br />&nbsp; File &quot;c:\\counterpartyd_build\\dist\\counterpartyd\\counterpartyd.py&quot;, line 554, i<br />n <module><br />&nbsp; &nbsp; for group in bitcoin.rpc('listaddressgroupings', []):<br />&nbsp; File &quot;c:\\counterpartyd_build\\dist\\counterpartyd\\lib\\bitcoin.py&quot;, line 105, in<br />rpc<br />&nbsp; &nbsp; response_json = response.json()<br />&nbsp; File &quot;c:\\counterpartyd_build\\env\\lib\\site-packages\\requests\\models.py&quot;, line 7<br />32, in json<br />&nbsp; &nbsp; return json.loads(self.content.decode(encoding), **kwargs)<br />UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe6 in position 62: invalid<br /> continuation byte<br />

How to fix it?
[/quote]


Is this still an issue? If so, I’ll put it on my list to fix tomorrow (hopefully).

had the system running - is there any way to update without setting it up all new? or do I need to delete all and install it all new?

[quote author=hodl link=topic=13.msg944#msg944 date=1393599643]
had the system running - is there any way to update without setting it up all new? or do I need to delete all and install it all new?
[/quote]


Nope, see http://counterpartyd-build.readthedocs.org/en/latest/BuildingFromSource.html#updating-to-the-newest-source

Installing bitcoind --reindex

How do I know its working?  Isn’t supposed to open Bitcoin-qt?  Nothing is happening, should I leave it?

[size=2]hi[/size]

[size=2]i installed countrpartyd on ubuntu 13.10 running bitcoind on testnet (only, no main-net).[/size]
[size=2]bitcoin.conf:[/size]


[size=2]rpcuser=rpc[/size]
[size=2]rpcpassword=rpcpw1234[/size]
[size=2]rpcport=5666[/size]
[size=2]server=1[/size]
[size=2]daemon=1[/size]
[size=2]txindex=1[/size]
[size=2]testnet=1[/size]

[size=2]counterpartyd.conf:[/size]

[size=2][default][/size]
[size=2]bitcoind-rpc-connect=localhost[/size]
[size=2]bitcoind-rpc-port=5666[/size]
[size=2]bitcoind-rpc-user=rpc[/size]
[size=2]bitcoind-rpc-password=rpcpw1234[/size]
[size=2]rpc-host=localhost[/size]
[size=2]rpc-port=1111[/size]
[size=2]rpc-user=rpcuser[/size]
[size=2]rpc-password=xcppw1234[/size]
[size=2]testnet=1[/size]

[size=2]i ran:[/size]
[font=Verdana][size=2]counterpartyd server[/size][/font]

[size=2]and got:[/size]
Traceback (most recent call last):<br />&nbsp; File &quot;/home/panda/counterpartyd_build/dist/counterpartyd/counterpartyd.py&quot;, line 556, in <module><br />&nbsp; &nbsp; database_file=args.database_file, testnet=args.testnet, testcoin=args.testcoin, unittest=False)<br />&nbsp; File &quot;/home/panda/counterpartyd_build/dist/counterpartyd/counterpartyd.py&quot;, line 232, in set_options<br />&nbsp; &nbsp; raise exceptions.ConfigurationError('bitcoind RPC password not set. (Use configuration file or --bitcoind-rpc-password=PASSWORD)')<br />lib.exceptions.ConfigurationError: bitcoind RPC password not set. (Use configuration file or --bitcoind-rpc-password=PASSWORD)<br />

[font=Verdana][size=2]user is panda.[/size][/font]
[font=Verdana][size=2]path to bitcoin.conf:[/size][/font]
[font=Verdana][size=2]/root/.bitcoin/bitcoin.conf[/size][/font]

[font=Verdana][size=2]path to counterpartyd.conf:[/size][/font]
[font=Verdana]
[size=2]/home/panda/.config/counterpartyd/counterpartyd.conf[/size]


[size=2]can you help me?[/size][/font]

Couple things here,


If you use countparty_build, install it, run it from installation path, don’t run it straight from GitHub checkout dir


Also might want to use testcoin=1 in counterpartyd.conf

i added testcoin=1 to .conf and ran again with the same output received.


i don’t understand what does “don’t run it straight from GitHub checkout dir” mean. how do i do that?


i installed it using the following command sequence:
[font=Incosolata][color=rgb(64, 64, 64)]sudo apt-get -y update sudo apt-get -y install git-core python3 git clone https://github.com/xnova/counterpartyd_build ~/counterpartyd_build cd ~/counterpartyd_build sudo python3 setup.py[/color][/font][font=Incosolata][/color][color=rgb(0, 0, 0)][font=Verdana]then cd to the user home, than ran:[/font][/color][/font][font=Incosolata][/color][color=rgb(0, 0, 0)][size=78%][font=Verdana] [/font][/size][/color][/font][/color][color=black][font=verdana, arial, helvetica, sans-serif]counterpartyd server[/font][/color][color=rgb(64, 64, 64)]

my bad, looks like what you did is right, except


[default]


should be


[Default]


if still not work, try supplying bitcoind-rpc-user and bitcoind-rpc-password on the counterpartyd command line ,


it probably could not parse your configuration or could not find it,

about this


[quote]

UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xe6 in position 62: invalid continuation byte
[/quote]


It’s probably python3 does not like POSIX locale on your linux, try


[quote]
LC_ALL=en_US.UTF-8 counterpartyd -h
[/quote]

if it works
put

[quote]
export [font=verdana]LC_ALL=en_US.UTF-8[/font]
[/quote]

[font=verdana]on ~/.bashrc[/font]


windows 8 64 bit bitcoinqt set to testnet


finished downloading the testnet blockchain and real blockchain.


i have downloaded all dependencies and preformed the installation process as specified here:
[color=rgb(17, 85, 204)]http://counterpartyd-build.readthedocs.org/en/latest/BuildingFromSource.html[/color] 


when i try to run i get:
"
‘counterpartyd’ is not recognized as an internal or external command,
operable program or batch file
"
there is no documentation for this error. i tried running: "  counterpartyd --testnet --testcoin --force server  " and got the same result.


does anyone know if i did anything wrong?

[quote author=bitcointrans link=topic=13.msg1601#msg1601 date=1395836124]

when i try to run i get:
"
‘counterpartyd’ is not recognized as an internal or external command,
operable program or batch file
"
there is no documentation for this error. i tried running: "  counterpartyd --testnet --testcoin --force server  " and got the same result.

does anyone know if i did anything wrong?
[/quote]


Of course there’s no documentation for that error because it’s nothing to do with counterpartyd. Try to type “woohoo” in the same folder and see what happens.

[quote author=Bountyful link=topic=13.msg673#msg673 date=1392755014]
What’s the graceful way to shutdown counterpartyd on Ubuntu?


counterpartyd stop throws an error as a disallowed command.
[/quote]


Does anyone know?
Any updates on this?

[quote author=something link=topic=13.msg2261#msg2261 date=1399523577]
[quote author=Bountyful link=topic=13.msg673#msg673 date=1392755014]
What’s the graceful way to shutdown counterpartyd on Ubuntu?

counterpartyd stop throws an error as a disallowed command.
[/quote]

Does anyone know?
Any updates on this?
[/quote]

I’ve been sending a sigint without trouble so far

kill -2 $PID