Author

Topic: setSatoshiDir: Directory does not exist (Read 445 times)

ToF
newbie
Activity: 30
Merit: 0
August 01, 2023, 11:11:04 AM
#20
Just an update - seems to have worked, thanks! I had to delete the custom path set in the app itself in order for it to recognize the one set in the config files, even if the custom path set in the app was actually the same.

When both the config file and path in settings is set to a non-default one, it reverts back to the default one for some reason.
ToF
newbie
Activity: 30
Merit: 0
PhoenixFire: Thanks for the tip, will try that! Still strange though as in the Settings tab the correct custom path is also set. So technically it should override it with the same path, yet it defaults to the standard one?

Armory used to work on my PC, using the E:/Bitcoin (set under Settings) path and I run Bitcoin Core manually when I need to update the node DB. The E:/Bitcoin size is over 500GB now.

There was also a smaller node DB in the standard location (under Appdata) from an old Bitcoin Core installation. It was not being updated and had around 70GB of DB data there, several years old.

I manually deleted it and (I believed) I did not need it. But for some reason it seems Armory still needed something to be in there (though an empty folder will not do), even if it was otherwise reading the correct data from E:/Bitcoin. Weird.
member
Activity: 270
Merit: 36
OK, a bit late to the party but I have the same issue. Error from the log:

(ERROR) -- BDM.pyc:197 - DB error: C:\Users\Tom\AppData\Roaming/Bitcoin/blocks is not a valid path

That path is indeed not valid. But I created armoryqt.conf in the correct Armory directory (the same where the log is) with this content:

satoshi-datadir="E:\Bitcoin\blocks"

Yet it seems to ignore it. I have the latest version available - 0.96.5. Perhaps the info has not been updated and the config file is different now? It definitely seems to be ignoring it.

Even when I tried running ArmoryQT via CLI with the satoshi-datadir="E:\Bitcoin\blocks" switch, it ignored it too.

Thanks for any ideas!

You may need to also blank out the paths in the settings > general tab. I think they override your armoryqt.conf settings.
ToF
newbie
Activity: 30
Merit: 0
OK, a bit late to the party but I have the same issue. Error from the log:

(ERROR) -- BDM.pyc:197 - DB error: C:\Users\Tom\AppData\Roaming/Bitcoin/blocks is not a valid path

That path is indeed not valid. But I created armoryqt.conf in the correct Armory directory (the same where the log is) with this content:

satoshi-datadir="E:\Bitcoin\blocks"

Yet it seems to ignore it. I have the latest version available - 0.96.5. Perhaps the info has not been updated and the config file is different now? It definitely seems to be ignoring it.

Even when I tried running ArmoryQT via CLI with the satoshi-datadir="E:\Bitcoin\blocks" switch, it ignored it too.

Thanks for any ideas!
legendary
Activity: 3794
Merit: 1375
Armory Developer
November 24, 2017, 05:38:10 PM
#16
What top block is Armory showing?
newbie
Activity: 12
Merit: 0
November 24, 2017, 04:51:03 PM
#15
Ummm, maybe they haven't been deposited yet.
My account may not be able to withdraw yet and hence, I believe, they wouldn't show up in my wallet yet.
I will see on the unlock day.
Sorry.
Thanks for help.
 Smiley
newbie
Activity: 12
Merit: 0
November 24, 2017, 04:04:11 PM
#14
OK
I let it build database and updated to 0.96.3.99

Looking Good.
ARMORY IS ONLINE! (connected).

Now:
Balances show 0 (Zero)
Have one (offline watching) wallet getting coins. (Shows a balance at its location)
Armory shows all 0 (zero).
The wallet does show up in my ADDRESS BOOK, but still says 0 (Zero).
Huh??

newbie
Activity: 12
Merit: 0
November 24, 2017, 12:25:25 PM
#13
Ahhh.
Thanks.

Gonna let it finish scanning TX History before I do that.
Will let u know.

Thanks again.
legendary
Activity: 3794
Merit: 1375
Armory Developer
November 24, 2017, 12:09:52 PM
#12
Top sticky thread.
newbie
Activity: 12
Merit: 0
November 24, 2017, 12:04:10 PM
#11
Still don't understand the RC1 comment.

BUT, we are partially running...
Build Databases is GREEN. (yay)
Scanning Transaction History is running GREEN... gonna take awhile. (6 hours)
Guess I am gonna have to move it all to a SSD.

HOWEVER:
Node offline (0 blocks)
Huh

I'll get some info from the log when it's done.
Thanks.
newbie
Activity: 12
Merit: 0
November 24, 2017, 11:03:23 AM
#10
RC1 ?
https://btcarmory.com
Latest Release
Armory 0.96.3 Released
I am using 0.96.3
legendary
Activity: 3794
Merit: 1375
Armory Developer
November 24, 2017, 10:32:29 AM
#9
Ah, I misread, I thought you were using a shortcut. Now I just realized you are using 0.96.3. Update to RC1.
newbie
Activity: 12
Merit: 0
November 24, 2017, 10:21:46 AM
#8
Config files
CLI args do not persists the process. If you want to run Armory with custom paths, you need to spawn it with the same CLI args every run. A way around this using the config files.
There are 2 Armory config files:
armoryqt.conf (for the GUI) armorydb.conf (for the db)
Both reside in Armory’s datadir. Any CLI args you can feed to either the GUI or the db, you can put in the respective config file for it to persist.
Taking the previous example, you could pass the same path arguments in armoryqt.conf. The content of the file would look like this:
satoshi-datadir="/custom/blockchain/path"
dbdir="custom/database/path"
The config file rules are as follow:
config files can take any valid CLI args for their respective process
CLI args provided to the process override args in the config file
***You do not need to prepend args in the config file with double dashes (–), but their use is legal**
one argument per line
legendary
Activity: 3794
Merit: 1375
Armory Developer
November 24, 2017, 10:01:43 AM
#7
it's --satoshi-datadir. You're missing the dashes.
newbie
Activity: 12
Merit: 0
November 24, 2017, 09:01:50 AM
#6
OK - Made file armoryqt.conf and armorydb.conf (satoshi-datadir="D:\Bitcoin\blocks")
Doesn't seem to change anything.
From LOG:

2017-11-12 08:17:15 (INFO) -- ArmoryUtils.pyc:3559 - Using settings file: C:\Users\Joe Ned\AppData\Roaming\Armory\ArmorySettings.txt

From ArmorySettings.txt:This is where I set it in Armory (FILE - SETTINGS)
SatoshiDatadir                       | D:\Bitcoin

BUT it is still looking in the wrong place.

2017-11-12 08:17:44 (INFO) -- ArmoryQt.py:1836 - startBitcoindIfNecessary
2017-11-12 08:17:44 (INFO) -- ArmoryQt.py:1872 - setSatoshiPaths
2017-11-12 08:17:44 (ERROR) -- BDM.pyc:270 - setSatoshiDir: directory does not exist: C:\Users\Joe Ned\AppData\Roaming\Bitcoin
2017-11-12 08:17:44 (ERROR) -- ArmoryQt.py:1862 - Failed to setup SDM
Traceback (most recent call last):
  File "ArmoryQt.py", line 1857, in startBitcoindIfNecessary
  File "SDM.pyc", line 188, in setupSDM
BitcoindError: bitcoind not found
2017-11-12 08:17:44 (INFO) -- ArmoryQt.py:1924 - Setting netmode: 0
2017-11-12 08:17:46 (INFO) -- ArmoryQt.py:1872 - setSatoshiPaths
2017-11-12 08:17:46 (ERROR) -- BDM.pyc:270 - setSatoshiDir: directory does not exist: C:\Users\*USERNAME*\AppData\Roaming\Bitcoin

This is in the first 20 lines of log:
2017-11-12 08:17:13 (INFO) -- ArmoryUtils.pyc:1268 - Invoked: C:\Program Files (x86)\Armory\ArmoryQt.exe
2017-11-12 08:17:13 (INFO) -- ArmoryUtils.pyc:1269 - ************************************************************
2017-11-12 08:17:13 (INFO) -- ArmoryUtils.pyc:1270 - Loading Armory Engine:
2017-11-12 08:17:13 (INFO) -- ArmoryUtils.pyc:1271 -    Armory Version        : 0.96.3
2017-11-12 08:17:13 (INFO) -- ArmoryUtils.pyc:1272 -    Armory Build:         : 2b65ac0648
2017-11-12 08:17:13 (INFO) -- ArmoryUtils.pyc:1273 -    PyBtcWallet  Version  : 1.35
2017-11-12 08:17:13 (INFO) -- ArmoryUtils.pyc:1274 - Detected Operating system: Windows
2017-11-12 08:17:13 (INFO) -- ArmoryUtils.pyc:1275 -    OS Variant            : 8-6.2.9200--Multiprocessor Free
2017-11-12 08:17:13 (INFO) -- ArmoryUtils.pyc:1276 -    User home-directory   : C:\Users\*USERNAME*\AppData\Roaming
2017-11-12 08:17:13 (INFO) -- ArmoryUtils.pyc:1277 -    Satoshi BTC directory : C:\Users\*USERNAME*\AppData\Roaming\Bitcoin
2017-11-12 08:17:13 (INFO) -- ArmoryUtils.pyc:1278 -    Armory home dir       : C:\Users\*USERNAME*\AppData\Roaming\Armory\
HCP
legendary
Activity: 2086
Merit: 4363
November 24, 2017, 07:04:48 AM
#5
You'll probably want to take a look here: https://btcarmory.com/docs/pathing

And then create an ArmoryQT.conf and/or an armorydb.conf file containing the custom paths

The ArmoryQT.conf file should live in your "Armory home Dir"... aka C:\Users\YOURUSERNAME\AppData\Roaming\Armory
newbie
Activity: 12
Merit: 0
November 24, 2017, 06:51:34 AM
#4
Looking over the windows installation guide, I see the default Data directory is -- C:\Users\*USERNAME*\AppData\Roaming\Bitcoin.
I did not use this directory as I wanted Bitcore on a secondary drive.
So, I guess the question is - How do I get Armory to look in the correct folder?
In Armory - FILE - SETTINGS - I have set the path to look to the correct file location, but it does not seem to have changed anything as you can see from the ERROR.
AND from the first part of the LOG:

Detected Operating system: Windows
2017-11-12 08:17:13 (INFO) -- ArmoryUtils.pyc:1275 -    OS Variant            : 8-6.2.9200--Multiprocessor Free
2017-11-12 08:17:13 (INFO) -- ArmoryUtils.pyc:1276 -    User home-directory   : C:\Users\*USERNAME*\AppData\Roaming
2017-11-12 08:17:13 (INFO) -- ArmoryUtils.pyc:1277 -    Satoshi BTC directory : C:\Users\*USERNAME*\AppData\Roaming\Bitcoin
2017-11-12 08:17:13 (INFO) -- ArmoryUtils.pyc:1278 -    Armory home dir       : C:\Users\*USERNAME*\AppData\Roaming\Armory\

Need it to look in :
C:\Program Files\Bitcoin - for Bitcoin-qt.exe
C:\Program Files\Bitcoin\daemon - for bitcoind.exe
D:\Bitcoin - for \blocks - \chainstate - \database, ETC...

newbie
Activity: 12
Merit: 0
November 24, 2017, 06:13:32 AM
#3
Yes, Bitcoin Core - Wallet.
8 active connections.
Status - up to date.
legendary
Activity: 3794
Merit: 1375
Armory Developer
November 23, 2017, 06:35:51 PM
#2
Do you have a Core installation and the blockchain synced?
newbie
Activity: 12
Merit: 0
November 23, 2017, 04:40:57 PM
#1
(ERROR) ArmoryUtils.pyc:3716 - Unsupported language  specified. Defaulting to English (en)
(ERROR) BDM.pyc:270 - setSatoshiDir: directory does not exist: C:\Users\*USERNAME*\AppData\Roaming\Bitcoin
(ERROR) ArmoryQt.py:1862 - Failed to setup SDM
Traceback (most recent call last):
  File "ArmoryQt.py", line 1857, in startBitcoindIfNecessary
  File "SDM.pyc", line 188, in setupSDM
BitcoindError: bitcoind not found
(ERROR) BDM.pyc:270 - setSatoshiDir: directory does not exist: C:\Users\*USERNAME*\AppData\Roaming\Bitcoin
(WARNING) SDM.pyc:396 - Spawning DB with command: ./ArmoryDB.exe --db-type="DB_FULL" --cookie --datadir="C:\Users\*USERNAME*\AppData\Roaming\Armory\" --dbdir="C:\Users\*USERNAME*\AppData\Roaming\Armory\databases"
(ERROR) BDM.pyc:199 - DB error: C:\Users\*USERNAME*\AppData\Roaming/Bitcoin/blocks is not a valid path
Jump to: