Pages:
Author

Topic: Installing Armory on Ubuntu (Read 1109 times)

legendary
Activity: 1146
Merit: 1000
August 01, 2017, 12:39:42 PM
#23
So it seems I was able to get Core to sync as well as Armory. Even had armory display my watch only account balances.

However now, I get this error in terminal:

Quote
-ERROR - : (StringSockets.cpp:351) FcgiSocket::writeAndRead FcgiError: unexpected fcgi header version

EDIT:

Deleted /.bitcoin/database folder and now everything seems to be working fine.


Terminal displays the following however.

Quote
(python2:23573): Gtk-CRITICAL **: IA__gtk_progress_configure: assertion 'value >= min && value <= max' failed
BDM is ready!

legendary
Activity: 1146
Merit: 1000
July 31, 2017, 09:34:25 AM
#22
You should most certainly not run anything as root, unless you absolutely have to!

Start Bitcoin Core as a normal user.  Then once it has updated the blockchain, start Armory as a normal user.


How do I move the blockchain from /root into non root?
full member
Activity: 159
Merit: 100
July 31, 2017, 08:04:48 AM
#21
You should most certainly not run anything as root, unless you absolutely have to!

Start Bitcoin Core as a normal user.  Then once it has updated the blockchain, start Armory as a normal user.
legendary
Activity: 1146
Merit: 1000
July 30, 2017, 05:43:52 PM
#20
Ok,

So Armory has been installed successfully.

Bitcoin Core installed successfully.

Now I get this error in terminal:

Quote
(ERROR) ArmoryUtils.py:3747 - Unsupported language  specified. Defaulting to English (en)
"sni-qt/17617" WARN  13:24:55.387 void StatusNotifierItemFactory::connectToSnw() Invalid interface to SNW_SERVICE
(ERROR) ArmoryQt.py:1851 - Failed to setup SDM
Traceback (most recent call last):
  File "/usr/bin/../lib/armory/ArmoryQt.py", line 1846, in startBitcoindIfNecessary
    TheSDM.setupSDM(extraExeSearch=self.satoshiExeSearchPath)
  File "/usr/lib/armory/SDM.py", line 188, in setupSDM
    if self.failedFindExe:  raise self.BitcoindError, 'bitcoind not found'
BitcoindError: bitcoind not found
(WARNING) SDM.py:403 - Spawning DB with command:ArmoryDB --db-type="DB_FULL" --cookie --satoshi-datadir="/root/.bitcoin/" --datadir="/root/.armory/" --dbdir="/root/.armory/databases"
-ERROR - : (StringSockets.cpp:351) FcgiSocket::writeAndRead FcgiError: unexpected fcgi header version

In the Armory client 'Scanning Transaction History' gets stuck at 99%
Go to File > Settings and uncheck the box for "Let Armory run Bitcoin Core in the background". Now stop Armory and Bitcoin Core. Start Bitcoin Core, wait for it to be fully up. Then start Armory. What this does is that it makes it so that you have to start Bitcoin Core manually instead of letting Armory start it for you. I recommend that you do this as it does fix several potential problems.

Quote
(ERROR) ArmoryUtils.py:3747 - Unsupported language  specified. Defaulting to English (en)
"sni-qt/2517" WARN  18:28:14.461 void StatusNotifierItemFactory::connectToSnw() Invalid interface to SNW_SERVICE
(WARNING) SDM.py:403 - Spawning DB with command:ArmoryDB --db-type="DB_FULL" --cookie --satoshi-datadir="/root/.bitcoin/" --datadir="/root/.armory/" --dbdir="/root/.armory/databases"
(ERROR) ArmoryQt.py:1194 - 3 attempts to load blockchain failed.  Remove mempool.bin.
(ERROR) ArmoryQt.py:1199 - File mempool.bin does not exist. Nothing deleted.


Both Armory and Core are run in Root. I have ran Core not in Root and it started to download the blockchain again which I closed. Could this be causing problems? I think there are installed 2 bitcoin core directory's.
staff
Activity: 3458
Merit: 6793
Just writing some code
July 30, 2017, 02:47:56 PM
#19
Ok,

So Armory has been installed successfully.

Bitcoin Core installed successfully.

Now I get this error in terminal:

Quote
(ERROR) ArmoryUtils.py:3747 - Unsupported language  specified. Defaulting to English (en)
"sni-qt/17617" WARN  13:24:55.387 void StatusNotifierItemFactory::connectToSnw() Invalid interface to SNW_SERVICE
(ERROR) ArmoryQt.py:1851 - Failed to setup SDM
Traceback (most recent call last):
  File "/usr/bin/../lib/armory/ArmoryQt.py", line 1846, in startBitcoindIfNecessary
    TheSDM.setupSDM(extraExeSearch=self.satoshiExeSearchPath)
  File "/usr/lib/armory/SDM.py", line 188, in setupSDM
    if self.failedFindExe:  raise self.BitcoindError, 'bitcoind not found'
BitcoindError: bitcoind not found
(WARNING) SDM.py:403 - Spawning DB with command:ArmoryDB --db-type="DB_FULL" --cookie --satoshi-datadir="/root/.bitcoin/" --datadir="/root/.armory/" --dbdir="/root/.armory/databases"
-ERROR - : (StringSockets.cpp:351) FcgiSocket::writeAndRead FcgiError: unexpected fcgi header version

In the Armory client 'Scanning Transaction History' gets stuck at 99%
Go to File > Settings and uncheck the box for "Let Armory run Bitcoin Core in the background". Now stop Armory and Bitcoin Core. Start Bitcoin Core, wait for it to be fully up. Then start Armory. What this does is that it makes it so that you have to start Bitcoin Core manually instead of letting Armory start it for you. I recommend that you do this as it does fix several potential problems.
legendary
Activity: 1146
Merit: 1000
July 30, 2017, 01:18:48 PM
#18
Oh, must had been a misclick or something.

Anyways.

Armory is now installed but it is stuck at "Preparing Databases". I am in the process of downloading the blockchain via Bitcoin Core. Once downloaded will this fix things?
Possibly. Wait for Bitcoin Core to sync before trying to run Armory.

Ok,

So Armory has been installed successfully.

Bitcoin Core installed successfully.

Now I get this error in terminal:

Quote
(ERROR) ArmoryUtils.py:3747 - Unsupported language  specified. Defaulting to English (en)
"sni-qt/17617" WARN  13:24:55.387 void StatusNotifierItemFactory::connectToSnw() Invalid interface to SNW_SERVICE
(ERROR) ArmoryQt.py:1851 - Failed to setup SDM
Traceback (most recent call last):
  File "/usr/bin/../lib/armory/ArmoryQt.py", line 1846, in startBitcoindIfNecessary
    TheSDM.setupSDM(extraExeSearch=self.satoshiExeSearchPath)
  File "/usr/lib/armory/SDM.py", line 188, in setupSDM
    if self.failedFindExe:  raise self.BitcoindError, 'bitcoind not found'
BitcoindError: bitcoind not found
(WARNING) SDM.py:403 - Spawning DB with command:ArmoryDB --db-type="DB_FULL" --cookie --satoshi-datadir="/root/.bitcoin/" --datadir="/root/.armory/" --dbdir="/root/.armory/databases"
-ERROR - : (StringSockets.cpp:351) FcgiSocket::writeAndRead FcgiError: unexpected fcgi header version

In the Armory client 'Scanning Transaction History' gets stuck at 99%
staff
Activity: 3458
Merit: 6793
Just writing some code
July 27, 2017, 06:42:34 PM
#17
Oh, must had been a misclick or something.

Anyways.

Armory is now installed but it is stuck at "Preparing Databases". I am in the process of downloading the blockchain via Bitcoin Core. Once downloaded will this fix things?
Possibly. Wait for Bitcoin Core to sync before trying to run Armory.
legendary
Activity: 1146
Merit: 1000
July 27, 2017, 06:41:19 PM
#16
Only copying the output to paste it here and show you. No intention of running the output.
The output you pasted shows you running the output.

Oh, must had been a misclick or something.

Anyways.

Armory is now installed but it is stuck at "Preparing Databases". I am in the process of downloading the blockchain via Bitcoin Core. Once downloaded will this fix things?
staff
Activity: 3458
Merit: 6793
Just writing some code
July 27, 2017, 06:36:56 PM
#15
Only copying the output to paste it here and show you. No intention of running the output.
The output you pasted shows you running the output.
legendary
Activity: 1146
Merit: 1000
July 27, 2017, 06:32:22 PM
#14
Quote
!!! Armory installed successfully !!!

  Armory can be removed at any time, either through your package
  manager, or through the following command:
      sudo dpkg -r armory
Processing triggers for libc-bin (2.24-9ubuntu2) ...
root@ophidion-ThinkPad-T430:~# (Reading database ... 237367 files and directories currently installed.)
Reading: command not found
root@ophidion-ThinkPad-T430:~# Preparing to unpack .../armory_0.96-gcc5.4_amd64.deb ...
Preparing: command not found
root@ophidion-ThinkPad-T430:~# Unpacking armory (0.96-1) over (0.96-1) ...
-bash: syntax error near unexpected token `('
root@ophidion-ThinkPad-T430:~# dpkg: dependency problems prevent configuration of armory:
No command 'dpkg:' found, did you mean:
 Command 'dpkg' from package 'dpkg' (main)
dpkg:: command not found
root@ophidion-ThinkPad-T430:~#  armory depends on python-qt4; however:
/root
Log file doesn't exist [yet]
(ERROR) ArmoryUtils.py:1236 - Error getting system details:
Traceback (most recent call last):
  File "/usr/local/lib/armory/armoryengine/ArmoryUtils.py", line 1234, in
    SystemSpecs = GetSystemDetails()
  File "/usr/local/lib/armory/armoryengine/ArmoryUtils.py", line 1229, in GetSystemDetails
    out.HddAvailB = getHddSize(BTC_HOME_DIR)    / (1024**3)
  File "/usr/local/lib/armory/armoryengine/ArmoryUtils.py", line 1226, in getHddSize
    s = os.statvfs(adir)
OSError: [Errno 2] No such file or directory: '/root/.bitcoin/'
(ERROR) ArmoryUtils.py:1237 - Skipping.
(ERROR) ArmoryUtils.py:3747 - Unsupported language  specified. Defaulting to English (en)
/usr/local/lib/armory/armoryengine/Transaction.py:2790: SyntaxWarning: import * only allowed at module level
  def PyCreateAndSignTx_old(srcTxOuts, dstAddrsVals):
"sni-qt/4833" WARN  18:48:22.295 void StatusNotifierItemFactory::connectToSnw() Invalid interface to SNW_SERVICE
(ERROR) BDM.py:275 - setSatoshiDir: directory does not exist: /root/.bitcoin/
(ERROR) ArmoryQt.py:1840 - Failed to setup SDM
Traceback (most recent call last):
  File "/usr/local/bin/../lib/armory/ArmoryQt.py", line 1835, in startBitcoindIfNecessary
    TheSDM.setupSDM(extraExeSearch=self.satoshiExeSearchPath)
  File "/usr/local/lib/armory/SDM.py", line 188, in setupSDM
    if self.failedFindExe:  raise self.BitcoindError, 'bitcoind not found'
BitcoindError: bitcoind not found
(ERROR) BDM.py:275 - setSatoshiDir: directory does not exist: /root/.bitcoin/
(ERROR) ArmoryQt.py:1808 - Failed to start Armory database: Invalid blockdata path
Traceback (most recent call last):
  File "/usr/local/bin/../lib/armory/ArmoryQt.py", line 1793, in startArmoryDBIfNecessary
    TheSDM.spawnDB(ARMORY_HOME_DIR, TheBDM.armoryDBDir)
  File "/usr/local/lib/armory/SDM.py", line 368, in spawnDB
    raise self.BadPath, "Invalid blockdata path"
BadPath: Invalid blockdata path
Why are you copying output of the terminal into commands and running them? Of course that will get you errors, those aren't actually commands.

Armory should be installed now anyways and you should be able to run it with just
Code:
armory

How do you even log as root on Ubuntu? I thought that was disabled entirely.
Code:
sudo su

Only copying the output to paste it here and show you. No intention of running the output.
staff
Activity: 3458
Merit: 6793
Just writing some code
July 27, 2017, 06:29:45 PM
#13
Quote
!!! Armory installed successfully !!!

  Armory can be removed at any time, either through your package
  manager, or through the following command:
      sudo dpkg -r armory
Processing triggers for libc-bin (2.24-9ubuntu2) ...
root@ophidion-ThinkPad-T430:~# (Reading database ... 237367 files and directories currently installed.)
Reading: command not found
root@ophidion-ThinkPad-T430:~# Preparing to unpack .../armory_0.96-gcc5.4_amd64.deb ...
Preparing: command not found
root@ophidion-ThinkPad-T430:~# Unpacking armory (0.96-1) over (0.96-1) ...
-bash: syntax error near unexpected token `('
root@ophidion-ThinkPad-T430:~# dpkg: dependency problems prevent configuration of armory:
No command 'dpkg:' found, did you mean:
 Command 'dpkg' from package 'dpkg' (main)
dpkg:: command not found
root@ophidion-ThinkPad-T430:~#  armory depends on python-qt4; however:
/root
Log file doesn't exist [yet]
(ERROR) ArmoryUtils.py:1236 - Error getting system details:
Traceback (most recent call last):
  File "/usr/local/lib/armory/armoryengine/ArmoryUtils.py", line 1234, in
    SystemSpecs = GetSystemDetails()
  File "/usr/local/lib/armory/armoryengine/ArmoryUtils.py", line 1229, in GetSystemDetails
    out.HddAvailB = getHddSize(BTC_HOME_DIR)    / (1024**3)
  File "/usr/local/lib/armory/armoryengine/ArmoryUtils.py", line 1226, in getHddSize
    s = os.statvfs(adir)
OSError: [Errno 2] No such file or directory: '/root/.bitcoin/'
(ERROR) ArmoryUtils.py:1237 - Skipping.
(ERROR) ArmoryUtils.py:3747 - Unsupported language  specified. Defaulting to English (en)
/usr/local/lib/armory/armoryengine/Transaction.py:2790: SyntaxWarning: import * only allowed at module level
  def PyCreateAndSignTx_old(srcTxOuts, dstAddrsVals):
"sni-qt/4833" WARN  18:48:22.295 void StatusNotifierItemFactory::connectToSnw() Invalid interface to SNW_SERVICE
(ERROR) BDM.py:275 - setSatoshiDir: directory does not exist: /root/.bitcoin/
(ERROR) ArmoryQt.py:1840 - Failed to setup SDM
Traceback (most recent call last):
  File "/usr/local/bin/../lib/armory/ArmoryQt.py", line 1835, in startBitcoindIfNecessary
    TheSDM.setupSDM(extraExeSearch=self.satoshiExeSearchPath)
  File "/usr/local/lib/armory/SDM.py", line 188, in setupSDM
    if self.failedFindExe:  raise self.BitcoindError, 'bitcoind not found'
BitcoindError: bitcoind not found
(ERROR) BDM.py:275 - setSatoshiDir: directory does not exist: /root/.bitcoin/
(ERROR) ArmoryQt.py:1808 - Failed to start Armory database: Invalid blockdata path
Traceback (most recent call last):
  File "/usr/local/bin/../lib/armory/ArmoryQt.py", line 1793, in startArmoryDBIfNecessary
    TheSDM.spawnDB(ARMORY_HOME_DIR, TheBDM.armoryDBDir)
  File "/usr/local/lib/armory/SDM.py", line 368, in spawnDB
    raise self.BadPath, "Invalid blockdata path"
BadPath: Invalid blockdata path
Why are you copying output of the terminal into commands and running them? Of course that will get you errors, those aren't actually commands.

Armory should be installed now anyways and you should be able to run it with just
Code:
armory

How do you even log as root on Ubuntu? I thought that was disabled entirely.
Code:
sudo su
legendary
Activity: 3766
Merit: 1364
Armory Developer
July 27, 2017, 06:25:26 PM
#12
It's like Mordor man. You don't simply walk in there, and you don't simply log in a root, do a bunch of stuff, and expect your system to still be sane. If you don't trust me, at least trust in Sean Bean. He dies for your sin like every other year.

How do you even log as root on Ubuntu? I thought that was disabled entirely.
legendary
Activity: 1146
Merit: 1000
July 27, 2017, 06:18:17 PM
#11
Yeah don't. You might as well reinstall your OS at this point.

Why?
legendary
Activity: 3766
Merit: 1364
Armory Developer
July 27, 2017, 06:17:30 PM
#10
Yeah don't. You might as well reinstall your OS at this point.
legendary
Activity: 1146
Merit: 1000
July 27, 2017, 06:09:57 PM
#9
Oh boy, are you actually logged in as root, or did you just su?

Yes, root.
legendary
Activity: 3766
Merit: 1364
Armory Developer
July 27, 2017, 05:57:34 PM
#8
Oh boy, are you actually logged in as root, or did you just su?
legendary
Activity: 1146
Merit: 1000
July 27, 2017, 05:50:59 PM
#7
Open the terminal and go to the folder where the .deb file is downlaoded. Then run
Code:
sudo dpkg -i
where is the filename of the Armory .deb file.

Hi, attempting this again now.

I get the following errors.

Quote
Unpacking armory:i386 (0.93.3-1) over (0.93.3-1) ...
dpkg: dependency problems prevent configuration of armory:i386:
 armory:i386 depends on python (>= 2.6).
 armory:i386 depends on python-qt4.
 armory:i386 depends on python-twisted.
 armory:i386 depends on python-psutil.
 armory:i386 depends on libc6 (>= 2.11).

dpkg: error processing package armory:i386 (--install):
 dependency problems - leaving unconfigured
Processing triggers for bamfdaemon (0.5.3+17.04.20170406-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for gnome-menus (3.13.3-6ubuntu5) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Errors were encountered while processing:
 armory:i386
Run
Code:
sudo apt-get install -f

Quote
!!! Armory installed successfully !!!

  Armory can be removed at any time, either through your package
  manager, or through the following command:
      sudo dpkg -r armory
Processing triggers for libc-bin (2.24-9ubuntu2) ...
root@ophidion-ThinkPad-T430:~# (Reading database ... 237367 files and directories currently installed.)
Reading: command not found
root@ophidion-ThinkPad-T430:~# Preparing to unpack .../armory_0.96-gcc5.4_amd64.deb ...
Preparing: command not found
root@ophidion-ThinkPad-T430:~# Unpacking armory (0.96-1) over (0.96-1) ...
-bash: syntax error near unexpected token `('
root@ophidion-ThinkPad-T430:~# dpkg: dependency problems prevent configuration of armory:
No command 'dpkg:' found, did you mean:
 Command 'dpkg' from package 'dpkg' (main)
dpkg:: command not found
root@ophidion-ThinkPad-T430:~#  armory depends on python-qt4; however:
/root
Log file doesn't exist [yet]
(ERROR) ArmoryUtils.py:1236 - Error getting system details:
Traceback (most recent call last):
  File "/usr/local/lib/armory/armoryengine/ArmoryUtils.py", line 1234, in
    SystemSpecs = GetSystemDetails()
  File "/usr/local/lib/armory/armoryengine/ArmoryUtils.py", line 1229, in GetSystemDetails
    out.HddAvailB = getHddSize(BTC_HOME_DIR)    / (1024**3)
  File "/usr/local/lib/armory/armoryengine/ArmoryUtils.py", line 1226, in getHddSize
    s = os.statvfs(adir)
OSError: [Errno 2] No such file or directory: '/root/.bitcoin/'
(ERROR) ArmoryUtils.py:1237 - Skipping.
(ERROR) ArmoryUtils.py:3747 - Unsupported language  specified. Defaulting to English (en)
/usr/local/lib/armory/armoryengine/Transaction.py:2790: SyntaxWarning: import * only allowed at module level
  def PyCreateAndSignTx_old(srcTxOuts, dstAddrsVals):
"sni-qt/4833" WARN  18:48:22.295 void StatusNotifierItemFactory::connectToSnw() Invalid interface to SNW_SERVICE
(ERROR) BDM.py:275 - setSatoshiDir: directory does not exist: /root/.bitcoin/
(ERROR) ArmoryQt.py:1840 - Failed to setup SDM
Traceback (most recent call last):
  File "/usr/local/bin/../lib/armory/ArmoryQt.py", line 1835, in startBitcoindIfNecessary
    TheSDM.setupSDM(extraExeSearch=self.satoshiExeSearchPath)
  File "/usr/local/lib/armory/SDM.py", line 188, in setupSDM
    if self.failedFindExe:  raise self.BitcoindError, 'bitcoind not found'
BitcoindError: bitcoind not found
(ERROR) BDM.py:275 - setSatoshiDir: directory does not exist: /root/.bitcoin/
(ERROR) ArmoryQt.py:1808 - Failed to start Armory database: Invalid blockdata path
Traceback (most recent call last):
  File "/usr/local/bin/../lib/armory/ArmoryQt.py", line 1793, in startArmoryDBIfNecessary
    TheSDM.spawnDB(ARMORY_HOME_DIR, TheBDM.armoryDBDir)
  File "/usr/local/lib/armory/SDM.py", line 368, in spawnDB
    raise self.BadPath, "Invalid blockdata path"
BadPath: Invalid blockdata path
legendary
Activity: 1146
Merit: 1000
July 27, 2017, 05:47:56 PM
#6
Are you trying to install the 32bit package on a 64bit machine? Linux isn't like Windows, you can't mix and match architectures like that.

You're right I should be using the 64bit package.
legendary
Activity: 3766
Merit: 1364
Armory Developer
July 27, 2017, 04:54:32 PM
#5
Are you trying to install the 32bit package on a 64bit machine? Linux isn't like Windows, you can't mix and match architectures like that.
staff
Activity: 3458
Merit: 6793
Just writing some code
July 27, 2017, 04:22:21 PM
#4
Open the terminal and go to the folder where the .deb file is downlaoded. Then run
Code:
sudo dpkg -i
where is the filename of the Armory .deb file.

Hi, attempting this again now.

I get the following errors.

Quote
Unpacking armory:i386 (0.93.3-1) over (0.93.3-1) ...
dpkg: dependency problems prevent configuration of armory:i386:
 armory:i386 depends on python (>= 2.6).
 armory:i386 depends on python-qt4.
 armory:i386 depends on python-twisted.
 armory:i386 depends on python-psutil.
 armory:i386 depends on libc6 (>= 2.11).

dpkg: error processing package armory:i386 (--install):
 dependency problems - leaving unconfigured
Processing triggers for bamfdaemon (0.5.3+17.04.20170406-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for gnome-menus (3.13.3-6ubuntu5) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Errors were encountered while processing:
 armory:i386
Run
Code:
sudo apt-get install -f
Pages:
Jump to: