Bitcoin Forum
November 09, 2024, 09:16:33 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Armory and Windows 10 and port 9001  (Read 166 times)
On_Off (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
February 14, 2020, 07:58:39 AM
 #1

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"
and i see how db work in dbLog.txt

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?

goatpig
Moderator
Legendary
*
Offline Offline

Activity: 3752
Merit: 1364

Armory Developer


View Profile
February 14, 2020, 09:03:49 AM
 #2

Are you sure the DB is actually running?

On_Off (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
February 14, 2020, 12:02:34 PM
 #3

Are you sure the DB is actually running?
yes, i see process and how this process write log to dbLog.txt

if 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
goatpig
Moderator
Legendary
*
Offline Offline

Activity: 3752
Merit: 1364

Armory Developer


View Profile
February 14, 2020, 02:49:41 PM
 #4

This is telling you there's a zombie instance of ArmoryDB, you need to shut that down.

On_Off (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
February 14, 2020, 04:06:29 PM
Last edit: February 14, 2020, 07:06:02 PM by On_Off
 #5

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?
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4361

<insert witty quote here>


View Profile
February 17, 2020, 07:56:03 AM
 #6

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.
He is saying that this is a "stuck" version of ArmoryDB that is already running (hidden in the background) and that stuck version is blocking port 9001. You need to kill all ArmoryDB process that are showing in Task Manager... or simply just shut everything down (close Armory and Bitcoin Core) and then restart your computer (that will definitely kill the zombie!)

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! Wink

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
On_Off (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
February 17, 2020, 06:06:25 PM
 #7

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.
He is saying that this is a "stuck" version of ArmoryDB that is already running (hidden in the background) and that stuck version is blocking port 9001. You need to kill all ArmoryDB process that are showing in Task Manager... or simply just shut everything down (close Armory and Bitcoin Core) and then restart your computer (that will definitely kill the zombie!)

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! Wink

Thx for advice Smiley

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 Sad

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.
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4361

<insert witty quote here>


View Profile
February 17, 2020, 07:50:09 PM
 #8

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
...
-INFO  - 15:06:36.015: (e:\users\goat\code\armory3\cppforswig\bdm_server.h:263) Listening on port 58301
...
-INFO  - 19:59:14.109: (e:\users\goat\code\armory3\cppforswig\bdm_server.h:263) Listening on port 52336
...
-INFO  - 11:24:47.109: (e:\users\goat\code\armory3\cppforswig\bdm_server.h:263) Listening on port 54843
...
-INFO  - 08:34:07.125: (e:\users\goat\code\armory3\cppforswig\bdm_server.h:263) Listening on port 52128
etc... as you can see, the latest run is listening on port 52128

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']
2020-02-18 08:33:58 (INFO) -- SDM.pyc:451 - PID of bitcoind: 1016
2020-02-18 08:33:58 (INFO) -- SDM.pyc:452 - PID of armory:   5964
2020-02-18 08:33:58 (INFO) -- ArmoryUtils.pyc:689 - Executing popen: ['C:\\Program Files (x86)\\Armory\\guardian.exe', '5964', '1016']
2020-02-18 08:34:05 (INFO) -- ArmoryQt.py:1872 - setSatoshiPaths
2020-02-18 08:34:05 (INFO) -- ArmoryQt.py:1891 - Setting satoshi datadir = E:\Bitcoin
2020-02-18 08:34:05 (WARNING) -- SDM.pyc:402 - Spawning DB with command: C:\Program Files (x86)\Armory\ArmoryDB.exe --db-type="DB_FULL" --cookie --satoshi-datadir="E:\Bitcoin\blocks" --satoshi-port=8333 --datadir="C:\Users\HCP\AppData\Roaming\Armory\" --dbdir="C:\Users\HCP\AppData\Roaming\Armory\databases"
2020-02-18 08:34:05 (INFO) -- ArmoryUtils.pyc:689 - Executing popen: ['C:\\Program Files (x86)\\Armory\\ArmoryDB.exe', '--db-type="DB_FULL"', '--cookie', '--satoshi-datadir="E:\\Bitcoin\\blocks"', '--satoshi-port=8333', '--datadir="C:\\Users\\HCP\\AppData\\Roaming\\Armory\\"', u'--dbdir="C:\\Users\\HCP\\AppData\\Roaming\\Armory\\databases"']
2020-02-18 08:34:09 (INFO) -- ArmoryQt.py:1824 - Connecting on port 52128
2020-02-18 08:34:09 (INFO) -- ArmoryQt.py:1923 - Setting netmode: 1
2020-02-18 08:34:09 (INFO) -- ArmoryQt.py:1905 - loadBlockchainIfNecessary
2020-02-18 08:34:09 (INFO) -- ArmoryQt.py:1923 - Setting netmode: 1
2020-02-18 08:34:09 (INFO) -- ArmoryQt.py:4672 - Dashboard switched to "Scanning" mode

So, it's finding the "random" port number being used... Huh

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
goatpig
Moderator
Legendary
*
Offline Offline

Activity: 3752
Merit: 1364

Armory Developer


View Profile
February 17, 2020, 09:09:03 PM
Merited by HCP (1)
 #9

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.

Pages: [1]
  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!