Bitcoin Forum

Bitcoin => Armory => Topic started by: Looser by Choice on January 31, 2014, 01:59:14 PM



Title: How to change path to both .armory and .bitcoin (36GB needed for both atm)
Post by: Looser by Choice on January 31, 2014, 01:59:14 PM
I understand why .bitcoin is 17.6GB but why .armory is 18+ GB as well? Does it duplicate the blockchain?
Is that expected behaviour and what's the easiest way to move those folders to another partition and start armory with the new paths?

I read the troubleshooting, but it's a little confusing because i need to set the different paths for both dirs, right? and each of them used different syntax?

so if someone can give me an example would be great!


Title: Re: How to change path to both .armory and .bitcoin (36GB needed for both atm)
Post by: Holliday on January 31, 2014, 08:20:38 PM
Bitcoin

https://en.bitcoin.it/wiki/Data_directory

Armory

https://bitcoinarmory.com/download/troubleshooting/

(bottom of page)


Title: Re: How to change path to both .armory and .bitcoin (36GB needed for both atm)
Post by: cp1 on February 02, 2014, 10:16:46 PM
"C:\Program Files (x86)\Armory-testing\ArmoryQt.exe" --satoshi-datadir=I:\bitcoin --datadir=I:\armory


Title: Re: How to change path to both .armory and .bitcoin (36GB needed for both atm)
Post by: Looser by Choice on February 03, 2014, 05:24:52 PM
ok for everyone else that wants to run in under linux with custom data dirs and the shortcut doesn't work here is what you should paste in the terminal

python /usr/lib/armory/ArmoryQt.py  --satoshi-datadir=/storage/path/.bitcoin --datadir=/storage/path/.armory


now the question is how to make this into an working icon or starting script?


Title: Re: How to change path to both .armory and .bitcoin (36GB needed for both atm)
Post by: Looser by Choice on February 03, 2014, 05:29:39 PM
also is the .armory dir also supposed to be 18gb?


Title: Re: How to change path to both .armory and .bitcoin (36GB needed for both atm)
Post by: cp1 on February 03, 2014, 05:57:06 PM
Yes, it's basically a duplicate of the blockchain


Title: Re: How to change path to both .armory and .bitcoin (36GB needed for both atm)
Post by: goatpig on February 04, 2014, 05:46:55 AM
In your .desktop file (in usr/share/applications), on the "Exec=" line, add your command line arguments before the %u


Title: Re: How to change path to both .armory and .bitcoin (36GB needed for both atm)
Post by: Looser by Choice on February 05, 2014, 03:26:21 PM
Yes, it's basically a duplicate of the blockchain

But why it stores it twice?
using up to 40GB is kinda a lot


Title: Re: How to change path to both .armory and .bitcoin (36GB needed for both atm)
Post by: Looser by Choice on February 11, 2014, 11:42:06 AM
anyone about the double storing of the blockchain?


Title: Re: How to change path to both .armory and .bitcoin (36GB needed for both atm)
Post by: Rampion on February 11, 2014, 11:59:35 AM
anyone about the double storing of the blockchain?

Armory needs to have its own database based on the blockchain, so there's no currently no way for you to do not have the blockchain "stored twice".


Title: Re: How to change path to both .armory and .bitcoin (36GB needed for both atm)
Post by: goatpig on February 14, 2014, 08:09:15 AM
anyone about the double storing of the blockchain?

0.90 introduced a new implementation for blockchain scanning that relies on a dedicated DB. It was originally developed only with the "full blockchain" approach. Lighter versions are on their way, rest assured.


Title: Re: How to change path to both .armory and .bitcoin (36GB needed for both atm)
Post by: TWTFM on February 18, 2014, 06:16:26 PM
I have successfully installed and used a wallet under Windows 7. In addition to the 2 copies of the blockchain discussed previously I noticed that by default both the blockchain database files and the user's wallet data files are stored in the user's roaming profile C:\users\%USER%\AppData\Roaming\Armory\. The same is true for the underlying Bitcoin-qt client.

This causes a fairly big problem if you log onto a domain with a Windows profile server and roaming profiles enabled on your Windows account since Windows tries to sync 2 x 18Gb of the blockchain DB files between the PC and profile server when you log on / off.

To prevent this, I have used the datadir command line options to move both the blockchain DB files and the wallet data files for the watch-only installation to the local profile, C:\users\%USER%\AppData\Local\Armory\. Windows then still "protects" the data from being seen by any other users.

However, I think better practice would be for the wallet data files to be stored in the roaming profile, and hence backed up, and the blockchain DB files stored in the local profile since this data is re-creatable. Is there a way to do this? I.e. separately specify where the blockchain DB goes and also where the wallet data files go?

BTW Looking forward to the new light versions.


Title: Re: How to change path to both .armory and .bitcoin (36GB needed for both atm)
Post by: cp1 on February 18, 2014, 10:42:57 PM
There's a dbdir switch too.  But you probably don't want your wallet file broadcast across your network (if I read your explanation correctly).  I honestly hate that anything at all is stored in these hard to find folders.


Title: Re: How to change path to both .armory and .bitcoin (36GB needed for both atm)
Post by: User1397367406 on April 13, 2014, 06:12:02 AM
Quote
Bitcoin

https://en.bitcoin.it/wiki/Data_directory

Armory

https://bitcoinarmory.com/download/troubleshooting/

(bottom of page)

Quote
"C:\Program Files (x86)\Armory-testing\ArmoryQt.exe" --satoshi-datadir=I:\bitcoin --datadir=I:\armory

These aforementioned hints doesn't seem to apply anymore for the version 0.91 of Armory.
I tried it on Win7 but it always tries to create/update the folders under the roaming folder and download the entire files ...
Changing the Bitcoin dir in the settings or starting bitcoin-qt manually (with datadir set and disabling armory bitcoinqt/bitcoind control) doesn't help either.

Any chance to move these 2 directories to an other folder?
I can't let it run in the roaming folder as i have less than 5GB left on the drive.


Title: Re: How to change path to both .armory and .bitcoin (36GB needed for both atm)
Post by: etotheipi on April 13, 2014, 02:12:05 PM
Quote
Bitcoin

https://en.bitcoin.it/wiki/Data_directory

Armory

https://bitcoinarmory.com/download/troubleshooting/

(bottom of page)

Quote
"C:\Program Files (x86)\Armory-testing\ArmoryQt.exe" --satoshi-datadir=I:\bitcoin --datadir=I:\armory

These aforementioned hints doesn't seem to apply anymore for the version 0.91 of Armory.
I tried it on Win7 but it always tries to create/update the folders under the roaming folder and download the entire files ...
Changing the Bitcoin dir in the settings or starting bitcoin-qt manually (with datadir set and disabling armory bitcoinqt/bitcoind control) doesn't help either.

Any chance to move these 2 directories to an other folder?
I can't let it run in the roaming folder as i have less than 5GB left on the drive.

Make sure both target directories exist before running like that.


Title: Re: How to change path to both .armory and .bitcoin (36GB needed for both atm)
Post by: User1397367406 on April 13, 2014, 06:21:44 PM
What do you mean by "both target directories exist" ?

The "--satoshi-datadir=I:\bitcoin" folder exists and bitcoin-qt can run out of it and is synced to the network.
The "--datadir=I:\armory" exists but is empty, as it should be filled when running Armory.

Do i have to remove the bitcoin and Armory dirs from under roaming?
Does these dirs have to be fully working under roaming before i can copy them over to a new location?

Also the "--dbdir" args doesn't work as when specified armory doesn't start.


Title: Re: How to change path to both .armory and .bitcoin (36GB needed for both atm)
Post by: etotheipi on April 13, 2014, 06:30:35 PM
What do you mean by "both target directories exist" ?

The "--satoshi-datadir=I:\bitcoin" folder exists and bitcoin-qt can run out of it and is synced to the network.
The "--datadir=I:\armory" exists but is empty, as it should be filled when running Armory.

Do i have to remove the bitcoin and Armory dirs from under roaming?
Does these dirs have to be fully working under roaming before i can copy them over to a new location?

Also the "--dbdir" args doesn't work as when specified armory doesn't start.

I meant, Armory won't create them for you, they should exist already.  As you said, I:\armory should exist (and be empty) before using it. 

I'm not sure why it doesn't work unless you simply copied it wrong.  It always defaults to the roaming folder if the specified folder doesn't exist... I had been meaning to change that behavior, but that's how it is at the moment.  It does appear that you are correctly using --datadir instead of the single-dash version that Bitcoin core expects.

If it's starting in the roaming directory, it is also writing an armorylog.txt file there.   It may give you a hint (error) concerning the directories.  There's a list of directories it's using, near the top of the log.  Make sure the timestamps match what you're expecting (i.e. that you're looking at the correct log file).

We recently had some issues with CLI args like this, and I did some pretty rigorous testing before making the new release.  If those args are set correctly, it won't even see the roaming folders.

In the next version, we're going to find a way to make all these things adjustable from the preferences window.


Title: Re: How to change path to both .armory and .bitcoin (36GB needed for both atm)
Post by: User1397367406 on April 13, 2014, 06:42:53 PM
What do you mean by "both target directories exist" ?

The "--satoshi-datadir=I:\bitcoin" folder exists and bitcoin-qt can run out of it and is synced to the network.
The "--datadir=I:\armory" exists but is empty, as it should be filled when running Armory.

Do i have to remove the bitcoin and Armory dirs from under roaming?
Does these dirs have to be fully working under roaming before i can copy them over to a new location?

Also the "--dbdir" args doesn't work as when specified armory doesn't start.

I meant, Armory won't create them for you, they should exist already.  As you said, I:\armory should exist (and be empty) before using it. 

I'm not sure why it doesn't work unless you simply copied it wrong.  It always defaults to the roaming folder if the specified folder doesn't exist... I had been meaning to change that behavior, but that's how it is at the moment.  It does appear that you are correctly using --datadir instead of the single-dash version that Bitcoin core expects.

If it's starting in the roaming directory, it is also writing an armorylog.txt file there.   It may give you a hint (error) concerning the directories.  There's a list of directories it's using, near the top of the log.  Make sure the timestamps match what you're expecting (i.e. that you're looking at the correct log file).

We recently had some issues with CLI args like this, and I did some pretty rigorous testing before making the new release.  If those args are set correctly, it won't even see the roaming folders.

In the next version, we're going to find a way to make all these things adjustable from the preferences window.

Thanks for the clarification.
the armorylog.txt file is confusing me:

Code:
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1012 - ************************************************************
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1013 - Invoked: C:\Program Files (x86)\Armory_0-91\ArmoryQt.exe --satoshi-datadir=“L:\Data\bitcoin__0_9_1” --datadir=“L:\Data\Armory_0_91
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1014 - ************************************************************
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1015 - Loading Armory Engine:
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1016 -    Armory Version        : 0.91
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1017 -    PyBtcWallet  Version  : 1.35
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1018 - Detected Operating system: Windows
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1019 -    OS Variant            : 7-6.1.7601-SP1-Multiprocessor Free
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1020 -    User home-directory   : C:\Users\xxx\AppData\Roaming
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1021 -    Satoshi BTC directory : C:\Users\xxx\AppData\Roaming\Bitcoin\
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1022 -    Armory home dir       : C:\Users\xxx\AppData\Roaming\Armory\
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1023 - Detected System Specs    :
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1024 -    Total Available RAM   : 8.00 GB
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1025 -    CPU ID string         : Intel64 Family 6 Model 23 Stepping 6, GenuineIntel
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1026 -    Number of CPU cores   : 2 cores
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1027 -    System is 64-bit      : False
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1028 -    Preferred Encoding    : cp1252
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1029 -

and

Code:
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1032 - Named options/arguments to armoryengine.py:
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1034 -     maxOpenFiles    : 0
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1034 -     nettimeout      : 2
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1034 -     rescan          : False
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1034 -     leveldbDir      : DEFAULT
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1034 -     ignoreAllZC     : False
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1034 -     port            : None
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1034 -     interport       : 8223
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1034 -     coverageOutputDir: None
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1034 -     rebuild         : False
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1034 -     datadir         : “L:\Data\Armory_0_91
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1034 -     offline         : False
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1034 -     noWalletCheck   : False
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1034 -     satoshiPort     : DEFAULT
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1034 -     netlog          : False
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1034 -     keypool         : 100
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1034 -     coverageInclude : None
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1034 -     forceOnline     : False
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1034 -     skipAnnounceCheck: False
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1034 -     redownload      : False
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1034 -     disableTorrent  : False
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1034 -     testAnnounceCode: False
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1034 -     mtdebug         : False
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1034 -     skipVerCheck    : False
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1034 -     settingsPath    : C:\Users\xxx\AppData\Roaming\Armory\ArmorySettings.txt
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1034 -     verbosity       : None
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1034 -     doDebug         : False
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1034 -     testnet         : False
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1034 -     rpcport         : DEFAULT
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1034 -     satoshiHome     : “L:\Data\bitcoin__0_9_1”
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1034 -     satoshiRpcport  : DEFAULT
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1034 -     logDisable      : False
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1034 -     logFile         : C:\Users\xxx\AppData\Roaming\Armory\ArmoryQt.exe.log.txt
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1035 - Other arguments:
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:1038 - ************************************************************

datadir is set but seems to be missing an " at the end.

Code:
...
2014-04-13 20:06 (INFO) -- ArmoryUtils.pyc:3007 - Using settings file: C:\Users\xxx\AppData\Roaming\Armory\ArmorySettings.txt
...
2014-04-13 20:07 (ERROR) -- BDM.pyc:407 - setSatoshiDir: directory does not exist: C:\Users\xxx\AppData\Roaming\Bitcoin\
...

Any guess what's going wrong?


Title: Re: How to change path to both .armory and .bitcoin (36GB needed for both atm)
Post by: etotheipi on April 13, 2014, 06:46:05 PM
Notice you're missing a " at the end of the CLI args.  I bet that's the problem.

I know the log is confusing... the first set of paths are what are autodetected, before it processes the CLI args.  Then it processes the CLI args and overwrites them, including the settings file, etc.   Too much logging, I guess.

Check that target and try again.


Title: Re: How to change path to both .armory and .bitcoin (36GB needed for both atm)
Post by: User1397367406 on April 13, 2014, 07:03:27 PM
well, the target is
Code:
"C:\Program Files (x86)\Armory_0-91\ArmoryQt.exe" --satoshi-datadir=“L:\Data\bitcoin__0_9_1” --datadir=“L:\Data\Armory_0_91"

so that seems ok. Its 125 chars long, but should only give a problem with 255 and more.
It appears wrong in the logging.
The logging is alright, seems to have nicely all sort off information needed in order to resolve problems.
It's just confusing as it reports both path in roaming and the specified ones, without telling that it replaces some with other, or that the first folders are the default and it's looking for any override.
I know it's hard to make a good logging in order to trace problems, sometimes it's not enough information, sometimes it's hard to find the fault in too much info ... ;)


Title: Re: How to change path to both .armory and .bitcoin (36GB needed for both atm)
Post by: cp1 on April 14, 2014, 08:44:12 PM
well, the target is
Code:
"C:\Program Files (x86)\Armory_0-91\ArmoryQt.exe" --satoshi-datadir=“L:\Data\bitcoin__0_9_1” --datadir=“L:\Data\Armory_0_91"


Your quotes are all messed up.  The first two are straight, second ones are diagonal and the third has mixed.  Try with all normal quotes.


Title: Re: How to change path to both .armory and .bitcoin (36GB needed for both atm)
Post by: User1397367406 on April 15, 2014, 08:49:14 PM
well, the target is
Code:
"C:\Program Files (x86)\Armory_0-91\ArmoryQt.exe" --satoshi-datadir=“L:\Data\bitcoin__0_9_1” --datadir=“L:\Data\Armory_0_91"


Your quotes are all messed up.  The first two are straight, second ones are diagonal and the third has mixed.  Try with all normal quotes.

OMG, thanks, i didn't saw it before.
I just pasted it like that from the website and didn't check it.


Title: Re: How to change path to both .armory and .bitcoin (36GB needed for both atm)
Post by: etotheipi on April 15, 2014, 09:10:51 PM
I just pasted it like that from the website and didn't check it.

Argh!  The website is killing us.  It keeps compressing double-dashes into a single-long dash, and sometimes rendering html as plaintext which butchers the CLI descriptions, etc.  I guess now it's replacing quotation marks with lookalike characters.

We'll have to figure out a way to get it to behave itself.  I hope this issue is resolved now.


Title: Re: How to change path to both .armory and .bitcoin (36GB needed for both atm)
Post by: User1397367406 on April 16, 2014, 07:03:08 PM
I just pasted it like that from the website and didn't check it.

Argh!  The website is killing us.  It keeps compressing double-dashes into a single-long dash, and sometimes rendering html as plaintext which butchers the CLI descriptions, etc.  I guess now it's replacing quotation marks with lookalike characters.

We'll have to figure out a way to get it to behave itself.  I hope this issue is resolved now.

Once the quotes were changed it used the specified folders, seems all right, though still Building Databases ...