Bitcoin Forum
July 02, 2024, 07:56:25 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Armory / Re: Armory trying to create directories when apache invokes python script on: April 05, 2015, 06:35:16 AM
Thanks for the reply. I'll give it a shot. To continue on I've set my perms to 777 but obviously this isn't ideal.
2  Bitcoin / Armory / Armory trying to create directories when apache invokes python script on: April 04, 2015, 07:38:46 PM
I'm having an issue. Currently using a watch-only wallet on my Mac for localhost web development. Once ready I'm moving to digitalocean. I do not need the blockchain, just generating addresses. Following both Armory's github and this post:

https://bitcointalk.org/index.php?topic=56424.msg1492140#msg1492140

I can, via command line, retrieve an address (albeit with warnings, but nothing 2> /dev/null doesn't fix):

Code:
$ python /Users/me/repos/site/api/backend/armory/getNextAddress.py /Users/me/repos/site/api/backend/armory/armory_Z52GbQJB_.watchonly.wallet
(ERROR) ArmoryUtils.py:1172 - Error getting system details:
Traceback (most recent call last):
  File "/Users/me/repos/site/api/backend/armory/armoryengine/ArmoryUtils.py", line 1170, in <module>
    SystemSpecs = GetSystemDetails()
  File "/Users/me/repos/site/api/backend/armory/armoryengine/ArmoryUtils.py", line 1165, in GetSystemDetails
    out.HddAvailB = getHddSize(BTC_HOME_DIR)    / (1024**3)
  File "/Users/me/repos/site/api/backend/armory/armoryengine/ArmoryUtils.py", line 1162, in getHddSize
    s = os.statvfs(adir)
OSError: [Errno 2] No such file or directory: '/Users/me/Library/Application Support/Bitcoin/'
(ERROR) ArmoryUtils.py:1173 - Skipping.
13QPCfgarnbup9T5oUfMT8bTReRjSb7vJV

However, when allowing apache to execute the same python script via:

Code:
$output = shell_exec('/usr/local/bin/python ../backend/armory/getNextAddress.py ../backend/armory/armory_Z52GbQJB_.watchonly.wallet');

I receive the following error in apache's error log:

Code:
==> /var/log/apache2/error_log <==
Traceback (most recent call last):
  File "../backend/armory/getNextAddress.py", line 5, in <module>
    from armoryengine.ALL import *
  File "/Users/me/repos/site/api/backend/armory/armoryengine/ALL.py", line 8, in <module>
    from armoryengine.ArmoryUtils import *
  File "/Users/me/repos/site/api/backend/armory/armoryengine/ArmoryUtils.py", line 457, in <module>
    os.makedirs(ARMORY_HOME_DIR)
  File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 150, in makedirs
    makedirs(head, mode)
  File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 150, in makedirs
    makedirs(head, mode)
  File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/Library/WebServer/Library'


I have tried:

  • adding '--datadir=pathtoarmory' to my getNextAddress.py script
  • absolute paths in my shell_exec call
  • symlinks in /var/www/html to avoid _www user from possibly needing permissions

I understand a "solution" would be to grant 777 access to /Library/WebServer, but why should I? It doesn't sound like a great answer. Why is Armory trying to make this directory? I see it does not create it when I run the same python script from command line. I set a watch for 0.1s on /Library/WebServer in case it was trying to be sneaky and create/delete like a ninja when run via command line, but no. No directory is ever created.

What's going on? How can I avoid this? All I need is the next deterministic address.

Thanks in advance.
3  Other / Beginners & Help / BFGMiner 3.6.0 buffer overflow on: November 22, 2013, 07:27:24 AM
Hey.  As a newb I can't actually post in the relevant thread so I'm posting here in hopes to get some visibility.

BFGMiner used to run rather nicely for me with no hiccups. Recently however I've been seeing my miner fail after a couple hours of running. I have debug on but the error always just barfs to the screen. I've put the output in pastebin to not clutter up the post:

http://pastebin.com/rVN2vZLP

Here is my cmd line run less username/passwords:

Code:
sudo /home/muh/repos/bfgminer/bfgminer --debuglog --log-file /home/muh/btc.log -o http://api.bitcoin.cz:8332 -u 1.worker1 -p x -o http://us1.eclipsemc.com:8337 -u 1 -p x -o http://us2.eclipsemc.com:8337 -u 1 -p x -o http://us3.eclipsemc.com:8337 -u 1 -p x

The last 10 lines in btc.log:

Code:
[2013-11-21 21:58:13] initiate_stratum with sockbuf=0x7f3034015d30
 [2013-11-21 21:58:13] Testing pool http://us1.eclipsemc.com:8337
 [2013-11-21 21:58:13] BFL 0a: Flushed 8 jobs from device and 0 from driver (queued<=8)
 [2013-11-21 21:58:13] BFL 0a: Received 0 queue results on poll (max=16)
 [2013-11-21 21:58:13] BFL 0a: Popping work from get queue to get work
 [2013-11-21 21:58:15] 5s:30.14 avg:32.66 u:31.59 Gh/s | A:1129 R:16+4(1.4%) HW:289/1.5%
 [2013-11-21 21:58:19] Pool 0 stratum session id: ae6812eb4cd7735a302a8a9dd95cf71f
 [2013-11-21 21:58:19] Pool 0 stratum bdifficulty set to 3.000000
 [2013-11-21 21:58:19] Received stratum notify from pool 0 with job_id=16cde
 [2013-11-21 21:58:20] Stratum authorisation success for pool 0

This is seriously disheartening. I've tried using cgminer but that doesn't even seem to recognize my BFL miner. I'd appreciate some input. Thanks in advance.
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!