Title: Armory and Windows 10 and port 9001 Post by: On_Off on February 14, 2020, 07:58:39 AM Hi!
I Have some problem. windows 10 (version 2004, build 19041.84) armory 0.96.5-beta-8730390989 bitcoind 0.19.0.1, i have full database blockchain Port 9001 user by default windows 10 If i run armory with option ArmoryQt.exe --armorydb-port="9002" (i try also this option write to armoryqt.conf, analog result) i receive error "Database error, Armory failed to spawn the DB!" log https://pastebin.com/3z9GtEae And i try run db and armory separate Code: ArmoryDB.exe --fcgi-port=9002 --db-type="DB_FULL" --cookie --satoshi-datadir="C:\Users\onoff\AppData\Roaming\Bitcoin\blocks" --datadir="C:\Users\onoff\AppData\Roaming\Armory\" --dbdir="C:\Users\onoff\AppData\Roaming\Armory\databases" But armory have offline mode and error repeat https://pastebin.com/DFuAvw6Y. May be option with port not interpretate as string? And may be i need recompile armory with another default port in file ArmoryUtils.py ARMORYDB_DEFAULT_PORT = "9001"? or may be anybody compile for me armory with another 9001 default port? Title: Re: Armory and Windows 10 and port 9001 Post by: goatpig on February 14, 2020, 09:03:49 AM Are you sure the DB is actually running?
Title: Re: Armory and Windows 10 and port 9001 Post by: On_Off on February 14, 2020, 12:02:34 PM Are you sure the DB is actually running? yes, i see process and how this process write log to dbLog.txtif i run without option '--fcgi-port' i see in console: Quote PS C:\Program Files (x86)\Armory> .\ArmoryDB.exe logging in C:\Users\onoff\AppData\Roaming/Armory/dbLog.txt -INFO - 15:01:33.000: (e:\users\goat\code\armory3\cppforswig\main.cpp:32) Running on 8 threads -INFO - 15:01:33.000: (e:\users\goat\code\armory3\cppforswig\main.cpp:33) Ram usage level: 50 -INFO - 15:01:33.000: (e:\users\goat\code\armory3\cppforswig\blockutils.cpp:915) blkfile dir: C:\Users\onoff\AppData\Roaming/Bitcoin/blocks -INFO - 15:01:33.000: (e:\users\goat\code\armory3\cppforswig\blockutils.cpp:916) lmdb dir: C:\Users\onoff\AppData\Roaming/Armory/databases -INFO - 15:01:33.000: (e:\users\goat\code\armory3\cppforswig\lmdb_wrapper.cpp:388) Opening databases... -INFO - 15:01:33.047: (e:\users\goat\code\armory3\cppforswig\bdm_server.h:263) Listening on port 9001 -ERROR - 15:01:33.047: (e:\users\goat\code\armory3\cppforswig\bdm_server.cpp:1277) There is already a process listening on 127.0.0.1:9001 -ERROR - 15:01:33.047: (e:\users\goat\code\armory3\cppforswig\bdm_server.cpp:1279) ArmoryDB cannot start under these conditions. Shutting down! -ERROR - 15:01:33.047: (e:\users\goat\code\armory3\cppforswig\bdm_server.cpp:1280) Make sure to shutdown the conflicting processbefore trying again (most likely another ArmoryDB instance). i record the video https://yadi.sk/i/4w8WJlWGq1cjiA may be it help Title: Re: Armory and Windows 10 and port 9001 Post by: goatpig on February 14, 2020, 02:49:41 PM This is telling you there's a zombie instance of ArmoryDB, you need to shut that down.
Title: Re: Armory and Windows 10 and port 9001 Post by: On_Off on February 14, 2020, 04:06:29 PM This is telling you there's a zombie instance of ArmoryDB, you need to shut that down. Last listened error throw then i not used custom port for db, its mean that i cant use port 9001.I receive error then try using ArmoryQt.exe --armorydb-port=9002 Quote 2020-02-14 14:51:45 (ERROR) -- ArmoryQt.py:1830 - Failed to start Armory database: in method 'BlockDataManagerConfig_hasLocalDB', argument 2 of type 'string const &' Traceback (most recent call last): File "ArmoryQt.py", line 1796, in startArmoryDBIfNecessary TypeError: in method 'BlockDataManagerConfig_hasLocalDB', argument 2 of type 'string const &' Can u write smart tutorial how run armory without 9001 port? Title: Re: Armory and Windows 10 and port 9001 Post by: HCP on February 17, 2020, 07:56:03 AM This is telling you there's a zombie instance of ArmoryDB, you need to shut that down. Last listened error throw then i not used custom port for db, its mean that i cant use port 9001.Once you have restarted, simply start Bitcoin Core, wait until it is fully synced, then try opening Armory WITHOUT using custom ports! For the record, Armory runs fine on Windows 10 with default port (9001)... that's what I'm doing right now! ;) Title: Re: Armory and Windows 10 and port 9001 Post by: On_Off on February 17, 2020, 06:06:25 PM This is telling you there's a zombie instance of ArmoryDB, you need to shut that down. Last listened error throw then i not used custom port for db, its mean that i cant use port 9001.Once you have restarted, simply start Bitcoin Core, wait until it is fully synced, then try opening Armory WITHOUT using custom ports! For the record, Armory runs fine on Windows 10 with default port (9001)... that's what I'm doing right now! ;) Thx for advice :) But above I showed a video of what happens when I just run Bitcoin Core + Armory (and after restart of course). Armory freezes and writes non-stop to a file "C:\Users\onoff\AppData\Roaming\Armory\armorycpplog.txt" and it becomes very large (10Mb, 100Mb and etc) Quote 20:52:54.375: (e:\users\goat\code\armory3\cppforswig\stringsockets.cpp:351) FcgiSocket::writeAndRead FcgiError: unexpected fcgi header version In my system the process "System" with pid 4 is really uses port 9001 :( https://yadi.sk/i/do-JOCzfO6VqWA I can try used Armory in virtual machine with windows, but it's so slow, because Bitcoin data mounted in guest machine and read spead 30Mb/s... And i have not any pc. Title: Re: Armory and Windows 10 and port 9001 Post by: HCP on February 17, 2020, 07:50:09 PM Actually... I take it back... my setup seems to be picking "random" ports:
Code: (dbLog.txt) -INFO - 15:00:52.031: (e:\users\goat\code\armory3\cppforswig\bdm_server.h:263) Listening on port 57177 I don't have armoryqt.conf or armorydb.conf. I've simply set the settings for custom Block directory in the GUI. The output I see is armorylog.txt is: Code: 2020-02-18 08:33:58 (INFO) -- ArmoryUtils.pyc:689 - Executing popen: ['C:\\Program Files\\Bitcoin\\daemon\\bitcoind.exe', '-datadir=E:\\Bitcoin'] So, it's finding the "random" port number being used... ??? Title: Re: Armory and Windows 10 and port 9001 Post by: goatpig on February 17, 2020, 09:09:03 PM When you let ArmoryQt spawn the DB, it randomizes the port for the DB and passes it to a cookie file that the DB reads from.
|