Author

Topic: Moving Armory Database for Mac (Read 1118 times)

newbie
Activity: 2
Merit: 0
May 09, 2015, 10:02:45 PM
#4
The easiest way to move the database it to replace it with a softlink pointing to the directory where you have moved it.

Move the folder Library/Application Support/Armory/databases to your extra drive.  I will assume you place it in /Volumes/Extra/Armory/databases
Now open a Terminal, and make the softlink like this (the bold is what you type, the non-bold is responses)

Quote
cd
cd 'Library/Application Support/Armory'
ls databases

ls: databases: No such file or directory
ln -s /Volumes/Extra/Armory/databases
ls databases

blocks      blocks-lock   headers      headers-lock   history      history-lock   txhints      txhints-lock

Note how the first time you do ls databases you get an error.  That is because you have moved the folder away.  If you do not get an error you have not moved it (did you perhaps copy it instead) and need to move/remove it first.

The second time you see the contents of the databases folder on the other drive, you have just placed a "softlink" to the folder where Armory expect the folder itself.  Unlike Mac OS aliases and Windows shortcuts, the application does not need to be programmed to follow a softlink, it just happens automatically (by the operating system).

You can of course do the similar thing for the Bitcoin Core database.  Or you can softlink the entire Library/Application Support/Armory folder instead of just Library/Application Support/Armory/databases, as I have done.



This seemed to do the trick. Thanks!
hero member
Activity: 547
Merit: 500
Decor in numeris
May 06, 2015, 04:45:21 AM
#3
The easiest way to move the database it to replace it with a softlink pointing to the directory where you have moved it.

Move the folder Library/Application Support/Armory/databases to your extra drive.  I will assume you place it in /Volumes/Extra/Armory/databases
Now open a Terminal, and make the softlink like this (the bold is what you type, the non-bold is responses)

Quote
cd
cd 'Library/Application Support/Armory'
ls databases

ls: databases: No such file or directory
ln -s /Volumes/Extra/Armory/databases
ls databases

blocks      blocks-lock   headers      headers-lock   history      history-lock   txhints      txhints-lock

Note how the first time you do ls databases you get an error.  That is because you have moved the folder away.  If you do not get an error you have not moved it (did you perhaps copy it instead) and need to move/remove it first.

The second time you see the contents of the databases folder on the other drive, you have just placed a "softlink" to the folder where Armory expect the folder itself.  Unlike Mac OS aliases and Windows shortcuts, the application does not need to be programmed to follow a softlink, it just happens automatically (by the operating system).

You can of course do the similar thing for the Bitcoin Core database.  Or you can softlink the entire Library/Application Support/Armory folder instead of just Library/Application Support/Armory/databases, as I have done.

sr. member
Activity: 255
Merit: 250
Senior Developer - Armory
May 05, 2015, 04:54:10 PM
#2
The directions from the FAQ are applicable. You'll just need to run Armory from the terminal.
newbie
Activity: 2
Merit: 0
May 05, 2015, 02:46:21 PM
#1
I recently added an SSD to my Mac Laptop and moved my HDD to the optical drive bay. I had been and would like to continue running Armory & Bitcoin-Qt, but I am having trouble moving the Armory database location. Bitcoin-Qt (whose application file is on my HDD) didn't have any trouble recognizing the blockchain located on my HDD in the default location (/volume//Users//Library/Application Support/Bitcoin), but Armory isn't recognizing (1) when Bitcoin-Qt is running, and thus (2) where the armory database is currently located.

Does anyone know to do the change described in https://bitcoinarmory.com/troubleshooting/#q5, except on Mac? (The directions aren't really applicable.)

Edit: I've exported the log and it see that it isn't looking where I want it to look for:


2015-05-05 14:55 (INFO) -- ArmoryUtils.py:1196 -    User home-directory   : /Users//Library/Application Support
2015-05-05 14:55 (INFO) -- ArmoryUtils.py:1197 -    Satoshi BTC directory : /Users//Library/Application Support/Bitcoin/
2015-05-05 14:55 (INFO) -- ArmoryUtils.py:1198 -    Armory home dir       : /Users//Library/Application Support/Armory/


and returning an error for: OSError: [Errno 2] No such file or directory: '/Users//Library/Application Support/Bitcoin/'


Edit: I've submitted a bug report w/ the log file, if that helps.
Jump to: