Bitcoin Forum
December 08, 2016, 02:38:33 AM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 [46] 47 48 49 50 51 »
  Print  
Author Topic: [ANNOUNCE] Abe 0.7: Open Source Block Explorer Knockoff  (Read 175734 times)
K1773R
Legendary
*
Offline Offline

Activity: 1526


/dev/null


View Profile
August 16, 2014, 06:57:02 PM
 #901

Who can help me with the Abe Blockchain Explorer.

I want to install it for an scrypt coin. PLS send me a PM if you can help. THX

If I want to set up an Abe installation, which version should I use then? The last release v0.7.2 from 7 Dec 2012, or the current master branch from GitHub?

I tried the current master branch from GitHub without success.
README-* contains informations on how to setup abe.

i'd be using master since it contains fixes. as you saw there wasnt a version/rc since a long time.

[GPG Public Key]  [Devcoin Builds]  [BBQCoin Builds]  [Multichain Blockexplorer]  [Multichain Blockexplorer - PoS Coins]  [Ufasoft Miner Linux Builds]
BTC/DVC/TRC/FRC: 1K1773RbXRZVRQSSXe9N6N2MUFERvrdu6y ANC/XPM AK1773RTmRKtvbKBCrUu95UQg5iegrqyeA NMC: NK1773Rzv8b4ugmCgX789PbjewA9fL9Dy1 LTC: LKi773RBuPepQH8E6Zb1ponoCvgbU7hHmd EMC: EK1773RxUes1HX1YAGMZ1xVYBBRUCqfDoF BQC: bK1773R1APJz4yTgRkmdKQhjhiMyQpJgfN
1481164713
Hero Member
*
Offline Offline

Posts: 1481164713

View Profile Personal Message (Offline)

Ignore
1481164713
Reply with quote  #2

1481164713
Report to moderator
1481164713
Hero Member
*
Offline Offline

Posts: 1481164713

View Profile Personal Message (Offline)

Ignore
1481164713
Reply with quote  #2

1481164713
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481164713
Hero Member
*
Offline Offline

Posts: 1481164713

View Profile Personal Message (Offline)

Ignore
1481164713
Reply with quote  #2

1481164713
Report to moderator
xxTeDYxx
Jr. Member
*
Offline Offline

Activity: 58


View Profile
August 20, 2014, 01:29:48 PM
 #902

explorer.zaplnc.pl

What wrong and what now ?
Sumpfbiene
Hero Member
*****
Offline Offline

Activity: 527



View Profile WWW
August 26, 2014, 04:48:31 PM
 #903

explorer.zaplnc.pl

What wrong and what now ?

Thx. Everything works.

abn123
Jr. Member
*
Offline Offline

Activity: 33


View Profile
August 27, 2014, 04:27:20 PM
 #904

I give up....I have searched Google and this forum at length.  Attempted to implement the changes I found for items that were kinda close to my issue, but I cannot find this specific error anywhere else.

Trying to populate the db for the first time with my alt....  I just can't seem to figure out what it is trying to store, and how to make it smaller
Much thanks in advance....

Keep getting this error:


[INDENT][INDENT]Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/david/Projects/bitcoin-abe/Abe/abe.py", line 2206, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/home/david/Projects/bitcoin-abe/Abe/abe.py", line 2200, in main
    store = make_store(args)
  File "/home/david/Projects/bitcoin-abe/Abe/abe.py", line 119, in make_store
    store = DataStore.new(args)
  File "Abe/DataStore.py", line 2872, in new
    return DataStore(args)
  File "Abe/DataStore.py", line 148, in __init__
    store.initialize()
  File "Abe/DataStore.py", line 1139, in initialize
    conf["magic_name"]))
  File "Abe/DataStore.py", line 450, in sql
    store.cursor.execute(cached, params)
psycopg2.DataError: value too long for type character(Cool


[/INDENT][/INDENT]
Posted from Bitcointa.lk - #dDu0XS4nINCsuzHl
abn123
Jr. Member
*
Offline Offline

Activity: 33


View Profile
August 28, 2014, 07:55:34 PM
 #905

nevermind.....figured it out on my own

for any others with this issue -- this specific error appears to be directly related to a malformed magic number (in mine, i left out an 'x' from one of the hex bytes)




Quote from: abn123
I give up....I have searched Google and this forum at length.  Attempted to implement the changes I found for items that were kinda close to my issue, but I cannot find this specific error anywhere else.

Trying to populate the db for the first time with my alt....  I just can't seem to figure out what it is trying to store, and how to make it smaller
Much thanks in advance....

Keep getting this error:


[INDENT][INDENT]Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/david/Projects/bitcoin-abe/Abe/abe.py", line 2206, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/home/david/Projects/bitcoin-abe/Abe/abe.py", line 2200, in main
    store = make_store(args)
  File "/home/david/Projects/bitcoin-abe/Abe/abe.py", line 119, in make_store
    store = DataStore.new(args)
  File "Abe/DataStore.py", line 2872, in new
    return DataStore(args)
  File "Abe/DataStore.py", line 148, in __init__
    store.initialize()
  File "Abe/DataStore.py", line 1139, in initialize
    conf["magic_name"]))
  File "Abe/DataStore.py", line 450, in sql
    store.cursor.execute(cached, params)
psycopg2.DataError: value too long for type character(Cool


[/INDENT][/INDENT]
Posted from Bitcointa.lk - #GPMw8JdVXjFIcJs4
Hoshimaru
Sr. Member
****
Offline Offline

Activity: 411


View Profile
September 09, 2014, 07:50:17 PM
 #906

Good evening

I've prepared a VM with Ubuntu Server 14.04/1GB RAM/8GB VDI and had some fun setting it up to host ABE. It's very slow, but I that's due to the hardware it runs on (old 6 year old laptop with a 1.6ghz athlon neox2 and 4GB ram. Anyway, since my tests are successful, I was thinking to host it somewhere, but I have no clue about the hardware requirements needed. When I look at VPS solutions like Digital Ocean's 5$ and 10$ packages, they look similar to my VM, memory-wise, but I don't know about the other virtualized hardware.

I'd like to avoid getting Error 500's or time-outs as the daemon will be running in the background to keep it updating at any time.
On my VM, the wallet daemon takes up to 15% of the cpu load, python around 35% and postgresql is sometime at 80% while loading blocks in the database (in huge chunks) during the initial loading.

When no blocks are added as the come, it's around 10% for postgresql and python, daemon runs at <2% load.
If I query the block explorer for an address, it pyhon gets spikes as high as 45%, postgresql 50% and apache2 45%...

So, I'm wondering what the minimum hardware requirements (or VPS equivalent) are to host this kind of service.
Also, is there a way to filter out the staking transactions?

I also think there's a problem. When looking at transaction details, it show always the same kind of addresses for any sender and receiver, for any transaction... for the first one to the last one in the whole blockchain. But I can query a specific transaction and it shows all the transactions that I see in my wallet as well. Did I miss something during the setup. Is there an (d)e(n)coding error? The address receiving those 5000 coins should be the one in my sig. M.....eXe iso 6KZ...PW9


Thanks for insights Smiley
xxTeDYxx
Jr. Member
*
Offline Offline

Activity: 58


View Profile
September 10, 2014, 08:19:52 AM
 #907

Hi my abe work:
http://explorer.zaplnc.pl/

Abe work in fast cgi mode and adresses is unhashed

My server:
http://www.kimsufi.com/
KS-1

I have on this serwer:
pool.zaplnc.pl
explorer.zaplnc.pl
beta.zaplnc.pl - demo MPOS
Hoshimaru
Sr. Member
****
Offline Offline

Activity: 411


View Profile
September 10, 2014, 09:12:28 PM
 #908

Hi my abe work:
http://explorer.zaplnc.pl/

Abe work in fast cgi mode and adresses is unhashed

My server:
http://www.kimsufi.com/
KS-1

I have on this serwer:
pool.zaplnc.pl
explorer.zaplnc.pl
beta.zaplnc.pl - demo MPOS
Thank you for your reaction. I think something more performing is needed for a block explorer. I get and error when trying to query http://explorer.zaplnc.pl/address/A1PxdQEhJTAy5tVit6kKrPWv3Ggn8qABcm for example.

My VM does it correctly, but slowly, once blocks are synched as they trickle in by the wallet daemon and there are not too many transactions for the address. Some with over 20000 transactions ran for more than an hour with the 1000 rows limit removed and FcgidIOTimeout at 900 seconds iso 40 seconds in the apache vhost's config file.
roundrobin
Full Member
***
Offline Offline

Activity: 203


View Profile
September 13, 2014, 06:51:22 PM
 #909

Good evening

I've prepared a VM with Ubuntu Server 14.04/1GB RAM/8GB VDI and had some fun setting it up to host ABE. It's very slow, but I that's due to the hardware it runs on (old 6 year old laptop with a 1.6ghz athlon neox2 and 4GB ram. Anyway, since my tests are successful, I was thinking to host it somewhere, but I have no clue about the hardware requirements needed. When I look at VPS solutions like Digital Ocean's 5$ and 10$ packages, they look similar to my VM, memory-wise, but I don't know about the other virtualized hardware.

I'd like to avoid getting Error 500's or time-outs as the daemon will be running in the background to keep it updating at any time.
On my VM, the wallet daemon takes up to 15% of the cpu load, python around 35% and postgresql is sometime at 80% while loading blocks in the database (in huge chunks) during the initial loading.

When no blocks are added as the come, it's around 10% for postgresql and python, daemon runs at <2% load.
If I query the block explorer for an address, it pyhon gets spikes as high as 45%, postgresql 50% and apache2 45%...

So, I'm wondering what the minimum hardware requirements (or VPS equivalent) are to host this kind of service.
Also, is there a way to filter out the staking transactions?

I also think there's a problem. When looking at transaction details, it show always the same kind of addresses for any sender and receiver, for any transaction... for the first one to the last one in the whole blockchain. But I can query a specific transaction and it shows all the transactions that I see in my wallet as well. Did I miss something during the setup. Is there an (d)e(n)coding error? The address receiving those 5000 coins should be the one in my sig. M.....eXe iso 6KZ...PW9


Thanks for insights Smiley

Abe will run ok on Digital Ocean's 1GB RAM VPS ($10/month). It is possible to get it to work ok also on 512MB RAM if you set up swap memory, pick the right distro and disable some unnecessary things to conserve memory use. Don't worry about CPU usage because even if Abe is written in Python which is a shit slow performing language that is not where problem or bottleneck with Abe is, it will run good on some old Pentium 3 Tongue If you want smaller footprint blockexplorer (but with some limited feature) check out RPC Ace https://bitcointalk.org/index.php?topic=686177.0

   LTC: Lbha3tRmE75oHfF4SjSKpxVK2fY9PxrPUX         VTC: VguAuTdGRcQzihEgrJDYPYUuugGMMGFCNn
   FTC: 6fVWQ3eHhhgH1haqThQbxTFV8XjrqyuKY2          SOL: 8X6dLCY8MeZ6RNdBxzYQkd5kxWj8VVPJmL
DOGE: DMBQta9ME9cWnRPVXtEbi57CDk1uNpwzSh
dagi
Sr. Member
****
Offline Offline

Activity: 373



View Profile WWW
September 15, 2014, 08:11:10 AM
 #910

Hi,
 i had problem with the last bitcoin-abe release v0.7.2 and last bitcoin client.
The problem was with blkXXXX.dat files:
blk0001.dat (old btc client) VS blk00000.dat (new btc client)

my fix in 3 steps :-)  :
edit file DataStore.py

1. line nr 651

            store.datadirs.append({
                "id": store.new_id("datadir"),
                "dirname": dirname,
                "blkfile_number": 1,
                "blkfile_offset": 0,
                "chain_id": chain_id,
                })


to


            store.datadirs.append({
                "id": store.new_id("datadir"),
                "dirname": dirname,
                "blkfile_number": 0,
                "blkfile_offset": 0,
                "chain_id": chain_id,
                })


2. line nr 918

"""CREATE TABLE datadir (
    datadir_id  NUMERIC(10) NOT NULL PRIMARY KEY,
    dirname     VARCHAR(2000) NOT NULL,
    blkfile_number NUMERIC(4) NULL,
    blkfile_offset NUMERIC(20) NULL,
    chain_id    NUMERIC(10) NULL
)""",


to


"""CREATE TABLE datadir (
    datadir_id  NUMERIC(10) NOT NULL PRIMARY KEY,
    dirname     VARCHAR(2000) NOT NULL,
    blkfile_number NUMERIC(5) NULL,
    blkfile_offset NUMERIC(20) NULL,
    chain_id    NUMERIC(10) NULL
)""",


3. line nr 2597

    def blkfile_name(store, dircfg):
        return os.path.join(dircfg['dirname'], "blk%04d.dat"
                            % (dircfg['blkfile_number'],))


to


    def blkfile_name(store, dircfg):
        return os.path.join(dircfg['dirname'], "blk%05d.dat"
                            % (dircfg['blkfile_number'],))


 Wink
Hoshimaru
Sr. Member
****
Offline Offline

Activity: 411


View Profile
September 17, 2014, 01:23:08 PM
 #911

Abe will run ok on Digital Ocean's 1GB RAM VPS ($10/month). It is possible to get it to work ok also on 512MB RAM if you set up swap memory, pick the right distro and disable some unnecessary things to conserve memory use. Don't worry about CPU usage because even if Abe is written in Python which is a shit slow performing language that is not where problem or bottleneck with Abe is, it will run good on some old Pentium 3 Tongue If you want smaller footprint blockexplorer (but with some limited feature) check out RPC Ace https://bitcointalk.org/index.php?topic=686177.0
I managed to load the whole blockchain, but made a mistake with the hex value for processing addresses... So they all look weird.
Currently I'm also experimenting with Bitcore's Insight. I noticed it loads it DB extremely fast compared to ABE, but also ran into some little bumps along the road, but will hopefully flatten them soon Smiley
coinflow
Hero Member
*****
Offline Offline

Activity: 658


View Profile
September 20, 2014, 03:47:29 PM
 #912

Hi my abe work:
http://explorer.zaplnc.pl/

Abe work in fast cgi mode and adresses is unhashed

My server:
http://www.kimsufi.com/
KS-1

I have on this serwer:
pool.zaplnc.pl
explorer.zaplnc.pl
beta.zaplnc.pl - demo MPOS
Thank you for your reaction. I think something more performing is needed for a block explorer. I get and error when trying to query http://explorer.zaplnc.pl/address/A1PxdQEhJTAy5tVit6kKrPWv3Ggn8qABcm for example.

My VM does it correctly, but slowly, once blocks are synched as they trickle in by the wallet daemon and there are not too many transactions for the address. Some with over 20000 transactions ran for more than an hour with the 1000 rows limit removed and FcgidIOTimeout at 900 seconds iso 40 seconds in the apache vhost's config file.

To add to the discussion:

If the explorer is not used for a few hours/days and then has to fetch all the latest block-data from the blockchain to store it into the database with the fcgi-call by the visitor, you'll most probably get an timeout-error. I'd recommend the following, to keep the database up-to-date automatically in the background through a cronjob:

In /etc/crontab add:

*/2 * * * * USER cd /home/USER/bitcoin-abe; python -m Abe.abe --config abe.conf --no-serve >/dev/null 2>&1

Replace USER with the actual username, which runs Abe on your machine.

Maybe this helps some people on a slower machine. It makes Abe check the blockchain every 2 minutes by the cronjob and add new transactions to the database, even if no website-visitor runs an Abe-call by opening the page. So normally by this the database should be mostly current and only the latest few transactions are added by the call of the real user on the website, hence he does not get an error-message. Just make sure, that the paths and names of the files in the above command are set correctly, according to your installation.

Edit:
Regarding the 1000 rows-limit, just remove the outcommenting hash mark in the config-file and set to -1 to check, whether your system can cope with unlimited tx-numbers for an address: https://github.com/bitcoin-abe/bitcoin-abe/blob/54ee67eafff81ec9cd1f5ef5cebea3514c267ae5/abe.conf#L267

Hoshimaru
Sr. Member
****
Offline Offline

Activity: 411


View Profile
September 30, 2014, 09:44:24 AM
 #913

To add to the discussion:

If the explorer is not used for a few hours/days and then has to fetch all the latest block-data from the blockchain to store it into the database with the fcgi-call by the visitor, you'll most probably get an timeout-error. I'd recommend the following, to keep the database up-to-date automatically in the background through a cronjob:

In /etc/crontab add:

*/2 * * * * USER cd /home/USER/bitcoin-abe; python -m Abe.abe --config abe.conf --no-serve >/dev/null 2>&1

Replace USER with the actual username, which runs Abe on your machine.

Maybe this helps some people on a slower machine. It makes Abe check the blockchain every 2 minutes by the cronjob and add new transactions to the database, even if no website-visitor runs an Abe-call by opening the page. So normally by this the database should be mostly current and only the latest few transactions are added by the call of the real user on the website, hence he does not get an error-message. Just make sure, that the paths and names of the files in the above command are set correctly, according to your installation.

Edit:
Regarding the 1000 rows-limit, just remove the outcommenting hash mark in the config-file and set to -1 to check, whether your system can cope with unlimited tx-numbers for an address: https://github.com/bitcoin-abe/bitcoin-abe/blob/54ee67eafff81ec9cd1f5ef5cebea3514c267ae5/abe.conf#L267
Thank you for your tips.

I've forgot to chekc this thread lately as I've been trying to get Insight up & running with X11 POW/POS coins, but this requires more changes to the different components than I can handle within my limited time. For now, I'll be putting my attention back to ABE Smiley
Hoshimaru
Sr. Member
****
Offline Offline

Activity: 411


View Profile
October 02, 2014, 01:19:11 PM
 #914

Call me stupid, but I managed to get it up & running not so long ago and now I can't even remember if I did something special except RTFM to get it up & running.
Bitcoin-abe works perfectly with its built-in web server and the block chain got loaded:
Code:
akira@NGC4826:~/minerals-abe$ python -m Abe.abe --config abe.conf --host 192.168.241.128 --port 2750
RPC failed: [Errno socket error] [Errno 111] Connection refused
catch_up_rpc: abort
Opened /home/akira/.Minerals/blk0001.dat
Abe initialized.
Listening on http://192.168.241.128:2750
RPC failed: [Errno socket error] [Errno 111] Connection refused
catch_up_rpc: abort
Opened /home/akira/.Minerals/blk0001.dat
192.168.241.1 - - [02/Oct/2014 15:14:46] "GET / HTTP/1.1" 200 1545
192.168.241.1 - - [02/Oct/2014 15:14:47] "GET /abe.css HTTP/1.1" 200 1064
192.168.241.1 - - [02/Oct/2014 15:14:47] "GET /logo32.png HTTP/1.1" 200 568

However, when I launch it for use with apache2/fastcgi I get into trouble with it... Or at least launching bitcoin-abe doesn't want to launch.
Code:
akira@NGC4826:~/minerals-abe$ python -m Abe.abe --config abe.conf
RPC failed: [Errno socket error] [Errno 111] Connection refused
catch_up_rpc: abort
Opened /home/akira/.Minerals/blk0001.dat
Abe initialized.
WSGIServer: missing FastCGI param REQUEST_METHOD required by WSGI!
WSGIServer: missing FastCGI param SERVER_NAME required by WSGI!
WSGIServer: missing FastCGI param SERVER_PORT required by WSGI!
WSGIServer: missing FastCGI param SERVER_PROTOCOL required by WSGI!
fixed path_info
Status: 301 Moved Permanently
Location: http://localhost/
Content-Type: text/html

<html><head><title>Moved</title></head>
<body><h1>Moved</h1><p>This page has moved to <a href="http://localhost/">http://localhost/</a></body></html>
akira@NGC4826:~/minerals-abe$

What kind of directory or file or symlink could be 'permantently moved'?
I don't remember what I did to get it up & running at two weeks ago. Unfortunately, while reverting to another snapshot of my Virtualbox VM, that software killed the whole tree and there's no way to recover the working bitcoin-abe snapshot I saved back then Sad
Currently using other virtualization software, but yeah... I must be doing something wrong this time :s

PS: the wallet daemon is not running atm, but that shouldn't be a problem?

The Virtual Host is configured like this:
Code:
<VirtualHost *:80>
        ServerName nightminerals.com
        #ServerAdmin webmaster@localhost
        #ServerAlias www.nightminerals.com
        #DocumentRoot /var/www/nightminerals.com/public_html
        Alias /static/ /home/akira/minerals-abe/Abe/htdocs/
        Alias /robots.txt /home/akira/minerals-abe/Abe/htdocs/robots.txt
        Alias /favicon.ico /home/akira/minerals-abe/Abe/htdocs/favicon.ico
        Alias / /usr/lib/cgi-bin/abe.fcgi/
        ErrorLog ${APACHE_LOG_DIR}/abe-error.log
        CustomLog ${APACHE_LOG_DIR}/abe-access.log combined
        #FcgidIOTimeout 40
</VirtualHost>

And abe.conf like this:
Code:
datadir += [{
 "dirname":"/home/akira/.Minerals",
 "chain":"Minerals"
}]

dbtype MySQLdb
connect-args {"user":"***","db":"abe","passwd":"***"}

Basically, according to the instructions for fastcgi/mysql.
coinflow
Hero Member
*****
Offline Offline

Activity: 658


View Profile
October 02, 2014, 01:35:17 PM
 #915

However, when I launch it for use with apache2/fastcgi I get into trouble with it... Or at least launching bitcoin-abe doesn't want to launch.

Have you checked out, if you have everything installed for Apache and Python regarding FastCGI?
http://www.electricmonk.nl/docs/apache_fastcgi_python/apache_fastcgi_python.html
https://docs.python.org/2/howto/webservers.html

Don't know, which distro you are using, but this could be helpful, too, for you to have a start:
https://packages.debian.org/squeeze/python-flup (here for Debian Squeeze, should install via apt-get or aptitude)

Hoshimaru
Sr. Member
****
Offline Offline

Activity: 411


View Profile
October 02, 2014, 02:08:19 PM
 #916

However, when I launch it for use with apache2/fastcgi I get into trouble with it... Or at least launching bitcoin-abe doesn't want to launch.

Have you checked out, if you have everything installed for Apache and Python regarding FastCGI?
http://www.electricmonk.nl/docs/apache_fastcgi_python/apache_fastcgi_python.html
https://docs.python.org/2/howto/webservers.html

Don't know, which distro you are using, but this could be helpful, too, for you to have a start:
https://packages.debian.org/squeeze/python-flup (here for Debian Squeeze, should install via apt-get or aptitude)

I'm running this on Ubuntu Server 14.04 LTS and vaguely remember something about +ExecCGI with /usr/lib/cgi-bin, but can't say if that was the solution or not. I don't remember bumping into this 301 status before. It's so annoying that all the snapshot tree got destroyed Sad I just could have doublecheck the configuration with it ;_;
Anyhow, I've been checking and double checking what I did with the instructions and there's no difference at all. Except last time, with Virtualbox, I ran postgresql iso mysql, but that doesn't matter.

I might just revert this to the previous "clean" snapshot and try again.
coinflow
Hero Member
*****
Offline Offline

Activity: 658


View Profile
October 02, 2014, 02:12:33 PM
 #917

However, when I launch it for use with apache2/fastcgi I get into trouble with it... Or at least launching bitcoin-abe doesn't want to launch.

Have you checked out, if you have everything installed for Apache and Python regarding FastCGI?
http://www.electricmonk.nl/docs/apache_fastcgi_python/apache_fastcgi_python.html
https://docs.python.org/2/howto/webservers.html

Don't know, which distro you are using, but this could be helpful, too, for you to have a start:
https://packages.debian.org/squeeze/python-flup (here for Debian Squeeze, should install via apt-get or aptitude)

I'm running this on Ubuntu Server 14.04 LTS and vaguely remember something about +ExecCGI with /usr/lib/cgi-bin, but can't say if that was the solution or not. I don't remember bumping into this 301 status before. It's so annoying that all the snapshot tree got destroyed Sad I just could have doublecheck the configuration with it ;_;
Anyhow, I've been checking and double checking what I did with the instructions and there's no difference at all. Except last time, with Virtualbox, I ran postgresql iso mysql, but that doesn't matter.

I might just revert this to the previous "clean" snapshot and try again.


Check this one out:
https://github.com/bitcoin-abe/bitcoin-abe/issues/140

Might contain helpful information for you.
Only at the very end of this lengthy thread it turned out, that he copied code that contained spaces, which led to the system not working ...  Wink
What does your frontend show, if you try to access it?

If you're using Ubuntu, be sure to check this one out:
https://www.digitalocean.com/community/tutorials/installing-mod_wsgi-on-ubuntu-12-04

Hoshimaru
Sr. Member
****
Offline Offline

Activity: 411


View Profile
October 03, 2014, 09:04:03 PM
 #918

Check this one out:
https://github.com/bitcoin-abe/bitcoin-abe/issues/140

Might contain helpful information for you.
Only at the very end of this lengthy thread it turned out, that he copied code that contained spaces, which led to the system not working ...  Wink
What does your frontend show, if you try to access it?

If you're using Ubuntu, be sure to check this one out:
https://www.digitalocean.com/community/tutorials/installing-mod_wsgi-on-ubuntu-12-04
It works \(^_^)/

Looks like the problem was not my abe configuration, but rather Apache's virtualhost (the domain is a fictive one I added to the OS' hosts file for testing).

Code:
<VirtualHost *:80>
        ServerName explorer.minerals.com
        DocumentRoot /home/akira/minerals-abe/Abe/htdocs
        Alias /static/ /home/akira/minerals-abe/Abe/htdocs/
        Alias /robots.txt /home/akira/minerals-abe/Abe/htdocs/robots.txt
        Alias /favicon.ico /home/akira/minerals-abe/Abe/htdocs/favicon.ico
        Alias / /usr/lib/cgi-bin/min-abe.fcgi/

        # Raise this if you get server errors mentioning "mod_fcgid:
        # read data timeout in 40 seconds"
        #FcgidIOTimeout 40

        # Uncomment to log Abe requests.
        ErrorLog /var/log/apache2/abe_error.log
        LogLevel info
        CustomLog /var/log/apache2/abe_access.log combined
        <Directory /usr/lib/cgi-bin>
                Options ExecCGI Indexes FollowSymLinks MultiViews
                AllowOverride all
                Allow from all
                Require all granted
        </Directory>
        <Directory /home/akira/minerals-abe/Abe/htdocs>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride all
                Allow from all
                Require all granted
        </Directory>
</Virtualhost>

When you execute "python -m Abe.abe", it supposes bitcoin-abe is installed in /usr/lib/python/dist-files/ ... or something like that.
Is it possible to run it too when not installing it and instead do "python /home/akira/minerals/abe/Abe/abe.py" in that /home/USER/cgi-bin/abe file?

If so, how do you cleanly uninstall such python module? $ python setup.py uninstall won't do it Wink
Vizakenjack
Jr. Member
*
Offline Offline

Activity: 37


View Profile
October 05, 2014, 04:42:07 PM
 #919

I'm trying to run abe-blockexplorer. I have found "magic number" and "address_version", modified DataStore.py and abe.conf.

If I use this version - https://github.com/bitcoin-abe/bitcoin-abe
it can't find litecoin module:
Quote
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/root/bitcoin-abe/Abe/abe.py", line 2096, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/root/bitcoin-abe/Abe/abe.py", line 2090, in main
    store = make_store(args)
  File "/root/bitcoin-abe/Abe/abe.py", line 156, in make_store
    store = DataStore.new(args)
  File "Abe/DataStore.py", line 3275, in new
    return DataStore(args)
  File "Abe/DataStore.py", line 185, in __init__
    store.initialize()
  File "Abe/DataStore.py", line 839, in initialize
    chain = Chain.create(policy, **conf)
  File "Abe/Chain/__init__.py", line 21, in create
    mod = __import__(__name__ + '.' + policy, fromlist=[policy])
ImportError: No module named Litecoin


If I use version with litecoin module: https://github.com/CryptoManiac/bitcoin-abe

It starts to scan but then it crashes:

Quote
Exception at 762842
Failed to catch up {'blkfile_number': 100000, 'dirname': '/root/.litecoin', 'chain_id': 8, 'id': Decimal('4'), 'blkfile_offset': 762707}
Traceback (most recent call last):
  File "Abe/DataStore.py", line 2422, in catch_up
    store.catch_up_dir(dircfg)
  File "Abe/DataStore.py", line 2475, in catch_up_dir
    store.import_blkdat(dircfg, ds, filename[0])
  File "Abe/DataStore.py", line 2596, in import_blkdat
    b = store.parse_block(ds, chain_id, magic, length)
  File "Abe/DataStore.py", line 2630, in parse_block
    d['transactions'].append(deserialize.parse_Transaction(ds))
  File "Abe/deserialize.py", line 90, in parse_Transaction
    for i in xrange(n_vout):
OverflowError: Python int too large to convert to C long


What's the problem? Which version should I use?
xxTeDYxx
Jr. Member
*
Offline Offline

Activity: 58


View Profile
October 05, 2014, 08:15:34 PM
 #920

"/root/.litecoin"


Add new user !!!!
DON'T USE ROOT !

adduser abe

/home/abe/.litecoin !
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 [46] 47 48 49 50 51 »
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!