Bitcoin Forum
May 04, 2024, 05:58:56 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: How to start Armory json rpc  (Read 351 times)
manjunath2334 (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
December 18, 2018, 07:32:00 AM
 #1

I have done setup of BitcoinArmory and Armoryd.py, txjsonrpc folder inside the BitcoinArmory. How to start daemon server? Please help me in knowing starting daemon server, because lack of Armory documentation quality not able to find it
1714845536
Hero Member
*
Offline Offline

Posts: 1714845536

View Profile Personal Message (Offline)

Ignore
1714845536
Reply with quote  #2

1714845536
Report to moderator
1714845536
Hero Member
*
Offline Offline

Posts: 1714845536

View Profile Personal Message (Offline)

Ignore
1714845536
Reply with quote  #2

1714845536
Report to moderator
1714845536
Hero Member
*
Offline Offline

Posts: 1714845536

View Profile Personal Message (Offline)

Ignore
1714845536
Reply with quote  #2

1714845536
Report to moderator
You can see the statistics of your reports to moderators on the "Report to moderator" pages.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714845536
Hero Member
*
Offline Offline

Posts: 1714845536

View Profile Personal Message (Offline)

Ignore
1714845536
Reply with quote  #2

1714845536
Report to moderator
1714845536
Hero Member
*
Offline Offline

Posts: 1714845536

View Profile Personal Message (Offline)

Ignore
1714845536
Reply with quote  #2

1714845536
Report to moderator
1714845536
Hero Member
*
Offline Offline

Posts: 1714845536

View Profile Personal Message (Offline)

Ignore
1714845536
Reply with quote  #2

1714845536
Report to moderator
droark
Sr. Member
****
Offline Offline

Activity: 525
Merit: 282


View Profile WWW
December 18, 2018, 08:20:53 AM
 #2

I created a PR here that should have the info you need. If not, let me know, and I'll update the PR when I can.
manjunath2334 (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
December 18, 2018, 09:38:33 AM
 #3

Thanks, i am looking into it,
But got this error running python armoryd.py

Traceback (most recent call last):
  File "update_version.py", line 14, in <module>
    f = open(hash_loc, "r")
IOError: [Errno 2] No such file or directory: '.git/aa72293f82c3ef3f1d29f93c83ad70099f4'
/home/techjini
(ERROR) ArmoryUtils.py:3747 - Unsupported language  specified. Defaulting to English (en)
(ERROR) Traceback (most recent call last):
  File "armoryd.py", line 3629, in <module>
    rpc_server = Armory_Daemon()
  File "armoryd.py", line 3129, in __init__
    if Cpp.BlockDataManagerConfig_testConnection(\
AttributeError: 'module' object has no attribute 'BlockDataManagerConfig_testConnection'

Traceback (most recent call last):
  File "armoryd.py", line 3629, in <module>
    rpc_server = Armory_Daemon()
  File "armoryd.py", line 3129, in __init__
    if Cpp.BlockDataManagerConfig_testConnection(\
AttributeError: 'module' object has no attribute 'BlockDataManagerConfig_testConnection'
droark
Sr. Member
****
Offline Offline

Activity: 525
Merit: 282


View Profile WWW
December 18, 2018, 06:39:05 PM
 #4

Which version of Armory are you running? Also, is this the latest armoryd?
manjunath2334 (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
December 19, 2018, 05:58:02 PM
 #5

Yes, we are using the latest version v0.96, as per the documentation mentioned. Let me know, if you get free to get connect personally through team viewer atleast for max 15min to resolve the issue.
droark
Sr. Member
****
Offline Offline

Activity: 525
Merit: 282


View Profile WWW
December 19, 2018, 08:50:55 PM
 #6

Yes, we are using the latest version v0.96, as per the documentation mentioned.

Do you mean 0.96 or 0.96.4? I ask because there are still people getting Armory from an old web site that has 0.96 as the latest version. Nobody should be running 0.96.
manjunath2334 (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
December 21, 2018, 12:40:06 AM
 #7

Oh!!! we are using v0.96 let me checkout to v0.96.4 and compile to source, will get back to you if we have any queries.
goatpig
Moderator
Legendary
*
Offline Offline

Activity: 3668
Merit: 1345

Armory Developer


View Profile
December 21, 2018, 01:10:35 AM
Merited by bones261 (1)
 #8

1) Make sure you are using the right version of Armory. armoryd as found in the repo (https://github.com/goatpig/armoryd) is meant to be paired with Armory as found in the master branch of the BitcoinArmory repo (https://github.com/goatpig/BitcoinArmory)

2) Start your Bitcoin node.

3) Start ArmoryDB. This is the blockchain processing service that interfaces between the Bitcoin network (your node) and clients (ArmoryQt/armoryd). ArmoryQt automates the node and db for you, but armoryd does not, as it expects you are savvy enough to manage the software stack yourself.

4) At this point you should be able to run armoryd (python armoryd.py)

manjunath2334 (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
December 21, 2018, 01:12:05 AM
 #9

will do.
manjunath2334 (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
December 21, 2018, 08:03:22 AM
 #10

Hi @droark/@goatpig
Now we are getting below error on running python armoryd.py

Quote
Traceback (most recent call last):
  File "update_version.py", line 14, in <module>
    f = open(hash_loc, "r")
IOError: [Errno 2] No such file or directory: '.git/91a3137ef1056e15cc606a186b0e508f84c'
/home/techjini
(ERROR) ArmoryUtils.py:3723 - Unsupported language  specified. Defaulting to English (en)
(ERROR) armoryd.py:3256 - could not find instance of armorydb at 127.0.0.1:9001

Below are the port getting utilized for the Armory
Quote
python    13984 techjini   24u  IPv4 178516      0t0  TCP 127.0.0.1:8223 (LISTEN)
ArmoryDB  14016 techjini   24u  IPv4 178516      0t0  TCP 127.0.0.1:8223 (LISTEN)
ArmoryDB  14016 techjini   41u  IPv4 171977      0t0  TCP 127.0.0.1:55771 (LISTEN)
droark
Sr. Member
****
Offline Offline

Activity: 525
Merit: 282


View Profile WWW
December 21, 2018, 08:18:19 AM
 #11

When you invoked ArmoryDB, did you set fcgi-port to 9001? (I know listen-port is in the doc I referenced. That's for Armory 0.97.)
goatpig
Moderator
Legendary
*
Offline Offline

Activity: 3668
Merit: 1345

Armory Developer


View Profile
December 21, 2018, 02:08:57 PM
 #12

Is there a file named .cookie_ in your Armory datadir (where the wallets and .conf are)? If so, delete it.

manjunath2334 (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
December 21, 2018, 03:45:23 PM
 #13

I have deleted the file .cookie_ and below is the latest file list, But issue is still existing (ERROR) armoryd.py:3256 - could not find instance of armorydb at 127.0.0.1:9001

Quote
total 1308
drwxrwxr-x  5 techjini techjini    4096 Dec 21 20:36 ./
drwxr-xr-x 70 techjini techjini    4096 Dec 21 10:42 ../
-rw-------  1 techjini techjini   61440 Dec 21 06:54 armory_2suEyUSWK_wallet.lmdb
-rw-------  1 techjini techjini    8192 Dec 21 20:25 armory_2suEyUSWK_wallet.lmdb-lock
-rw-rw-r--  1 techjini techjini    9450 Dec 21 20:36 armorycpplog.txt
-rw-rw-r--  1 techjini techjini      12 Dec 18 18:38 armoryd.py
-rw-rw-r--  1 techjini techjini   27907 Dec 21 07:01 armory_GGxjtHsu_backup.wallet
-rw-rw-r--  1 techjini techjini   27907 Dec 21 07:01 armory_GGxjtHsu_.wallet
-rw-rw-r--  1 techjini techjini 1051761 Dec 21 20:36 armorylog.txt
-rw-rw-r--  1 techjini techjini    1674 Dec 21 20:31 ArmorySettings.txt
drwxrwxr-x  2 techjini techjini    4096 Dec 18 09:08 atisignedannounce/
drwxrwxr-x  2 techjini techjini    4096 Dec 21 06:52 databases/
-rw-rw-r--  1 techjini techjini   89068 Dec 21 20:31 dbLog.txt
-rw-rw-r--  1 techjini techjini   13056 Dec 21 06:59 multipliers.txt
drwxrwxr-x  3 techjini techjini    4096 Dec 18 16:28 testnet3/
goatpig
Moderator
Legendary
*
Offline Offline

Activity: 3668
Merit: 1345

Armory Developer


View Profile
December 22, 2018, 03:44:11 AM
 #14

Is ArmoryDB running? Can you post dbLog.txt?

manjunath2334 (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
December 27, 2018, 06:14:19 AM
 #15

Below is the log of dbLog.txt please look into it
Quote
tail -f dbLog.txt
-INFO  - 11:40:52: (nodeRPC.cpp:57) RPC connection established
-INFO  - 11:40:52: (BlockDataManagerConfig.cpp:895) waiting on node sync: 99.9997%
-INFO  - 11:40:52: (nodeRPC.cpp:425) Node is ready
-INFO  - 11:40:52: (BlockUtils.cpp:1108) Executing: doInitialSyncOnLoad
-INFO  - 11:40:52: (DatabaseBuilder.cpp:199) Reading headers from db
-INFO  - 11:40:52: (BDM_Server.cpp:1121) registered bdv: b955798b1dfc5c6b8a8f
-INFO  - 11:41:12: (DatabaseBuilder.cpp:238) Found 554788 headers in db
-INFO  - 11:41:15: (DatabaseBuilder.cpp:64) Rewinding 100 blocks
-INFO  - 11:41:15: (DatabaseBuilder.cpp:71) updating HEADERS db
-INFO  - 11:41:15: (DatabaseBuilder.cpp:493) Found next block after skipping 1625150bytes






-INFO  - 11:41:30: (DatabaseBuilder.cpp:281) parsed block file #1469
-INFO  - 11:41:30: (DatabaseBuilder.cpp:281) parsed block file #1470
-INFO  - 11:41:30: (DatabaseBuilder.cpp:281) parsed block file #1471
-INFO  - 11:41:32: (DatabaseBuilder.cpp:281) parsed block file #1472
-INFO  - 11:41:36: (DatabaseBuilder.cpp:281) parsed block file #1475
-INFO  - 11:41:38: (Blockchain.cpp:248) Organizing chain
-INFO  - 11:41:38: (Blockchain.cpp:370) Organized chain in 0s
-INFO  - 11:41:38: (DatabaseBuilder.cpp:76) updated HEADERS db in 23s
-INFO  - 11:41:38: (lmdb_wrapper.cpp:388) Opening databases...
-INFO  - 11:41:38: (DatabaseBuilder.cpp:1231) verifying txfilters integrity
-INFO  - 11:42:08: (DatabaseBuilder.cpp:1314) done checking txfilters
-INFO  - 11:42:08: (DatabaseBuilder.cpp:134) scanning new blocks from #554788 to #555688
-INFO  - 11:42:11: (BlockchainScanner.cpp:852) scanned from block #554788 to #555429
-INFO  - 11:42:11: (BlockchainScanner.cpp:852) scanned from block #555430 to #555688
-INFO  - 11:42:11: (BlockchainScanner.cpp:214) scanned transaction history in 3s
-INFO  - 11:42:11: (lmdb_wrapper.cpp:388) Opening databases...
-INFO  - 11:42:11: (DatabaseBuilder.cpp:186) scanned new blocks in 3s
-INFO  - 11:42:11: (DatabaseBuilder.cpp:190) init db in 79s
-INFO  - 11:42:11: (BDM_supportClasses.cpp:1891) Enabling zero-conf tracking
-WARN  - 11:42:25: (BDM_supportClasses.cpp:1944) running 5 zc parser threads
-WARN  - 11:42:25: (BDM_supportClasses.cpp:1944) running 10 zc parser threads
-WARN  - 11:42:25: (BDM_supportClasses.cpp:1944) running 15 zc parser threads
-WARN  - 11:42:25: (BDM_supportClasses.cpp:1944) running 20 zc parser threads
-WARN  - 11:42:25: (BDM_supportClasses.cpp:1944) running 25 zc parser threads
-WARN  - 11:42:25: (BDM_supportClasses.cpp:1944) running 30 zc parser threads
-WARN  - 11:42:25: (BDM_supportClasses.cpp:1944) running 35 zc parser threads
goatpig
Moderator
Legendary
*
Offline Offline

Activity: 3668
Merit: 1345

Armory Developer


View Profile
December 27, 2018, 08:27:02 AM
 #16

This log shows the DB running fine. What issues are you experiencing?

manjunath2334 (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
December 27, 2018, 08:57:20 AM
 #17

Below are the steps executed for installing Armory, let me know if any issue in these steps.
1. Clone the repository from https://github.com/goatpig/BitcoinArmory and checkout into v0.96.4, after this did rest of the steps as per the documentation https://github.com/goatpig/BitcoinArmory/blob/master/linuxbuild/Linux_build_notes.md
2. Clone the repository from https://github.com/goatpig/armoryd
3. Copied the armoryd.py and txjsonrpc from armoryd folder into BitcoinArmory folder
4. Executed the python ArmoryQt.py command and this opens the Armory wallet GUI and node will started to sync
5. Try to execute the python armoryd.py to start the armoryd rpc inside the BitcoinArmory , but this is giving below error
Quote
python armoryd.py
Traceback (most recent call last):
  File "update_version.py", line 14, in <module>
    f = open(hash_loc, "r")
IOError: [Errno 2] No such file or directory: '.git/91a3137ef1056e15cc606a186b0e508f84c'
/home/techjini
(ERROR) ArmoryUtils.py:3723 - Unsupported language  specified. Defaulting to English (en)
(ERROR) armoryd.py:3256 - could not find instance of armorydb at 127.0.0.1:9001
goatpig
Moderator
Legendary
*
Offline Offline

Activity: 3668
Merit: 1345

Armory Developer


View Profile
December 27, 2018, 02:51:44 PM
 #18

Yeah that's not gonna work because the client randomizes the DB port when it automates it. Just run ArmoryDB on its own then armoryd.

manjunath2334 (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
December 27, 2018, 02:53:36 PM
 #19

what is command to run ArmoryDB? and also by running this, i don't need to run python ArmoryQt.py
goatpig
Moderator
Legendary
*
Offline Offline

Activity: 3668
Merit: 1345

Armory Developer


View Profile
December 27, 2018, 02:54:51 PM
 #20

Quote
what is command to run ArmoryDB?

./ArmoryDB


Quote
also by running this, i don't need to run python ArmoryQt.py

No.

Pages: [1] 2 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!