Bitcoin Forum
May 07, 2024, 02:17:26 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 [4] 5 6 »  All
  Print  
Author Topic: [ANNOUNCE] Abe 0.7: Open Source Block Explorer Knockoff  (Read 28891 times)
diwskwmx
Newbie
*
Offline Offline

Activity: 39
Merit: 0


View Profile
February 08, 2014, 12:48:38 AM
 #61

datastore.py----------------------
    {"chain":"CinnamonCoin",
     "code3":"CIN", "address_version":"\x1c", "magic":"\xcd\xf2\xc0\xef"},

cin.conf--------------
default-loader = blkfile
dbtype MySQLdb
connect-args {"user":"abe","db":"abe_cin","passwd":"<xxx>"}
datadir = /home/xxx/.CinnamonCoin
upgrade
port 2755
host 12.10.2.222

shell------------
python -m Abe.abe --config config/cin.conf --commit-bytes 100000 --no-serve

error:
Opened /home/xxx/.CinnamonCoin/blk0001.dat
Chain not found for magic number dbc0dbf2 in block file /home/xxx/.CinnamonCoin/blk0001.dat at offset 0.

why?????????
Should not find cdf2c0ef thing?
Why instead to search dbc0dbf2?

I'm seeing the same thing with Coino.  I think its pulling dbc0dbf2 from the block file, not the Chain definition in Datasource.py.  It appears not to be reading the Datasource.py file at all.  Did you figure this out?
1715091446
Hero Member
*
Offline Offline

Posts: 1715091446

View Profile Personal Message (Offline)

Ignore
1715091446
Reply with quote  #2

1715091446
Report to moderator
In order to get the maximum amount of activity points possible, you just need to post once per day on average. Skipping days is OK as long as you maintain the average.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715091446
Hero Member
*
Offline Offline

Posts: 1715091446

View Profile Personal Message (Offline)

Ignore
1715091446
Reply with quote  #2

1715091446
Report to moderator
1715091446
Hero Member
*
Offline Offline

Posts: 1715091446

View Profile Personal Message (Offline)

Ignore
1715091446
Reply with quote  #2

1715091446
Report to moderator
diwskwmx
Newbie
*
Offline Offline

Activity: 39
Merit: 0


View Profile
February 08, 2014, 01:04:57 AM
 #62

Ahh, I seem to have solved my problem, instead of using Datasource.py I put a section like this in to my abe.conf file.

datadir += [{
 "dirname" : "/root/.feathercoin",
 "chain" : "FeatherCoin",
 "code3" : "FTC",
 "address_version" : "u000e",
 "magic" : "u00fbu00c0u00b6u00db"
}]


It is now building the DB.
John Tobey (OP)
Hero Member
*****
Offline Offline

Activity: 481
Merit: 529



View Profile WWW
February 20, 2014, 07:13:15 PM
 #63

I've been failing to receive topic reply notifications since mid-August.  Apologies for not noticing sooner.  If you posted a question since then and would like me to read it, please repost it or send me a link to it via PM.

Can a change to the best-chain criteria protect against 51% to 90+% attacks without a hard fork?
mitchellmint
Legendary
*
Offline Offline

Activity: 1139
Merit: 1000


TRUSTplus Dev


View Profile WWW
February 25, 2014, 03:48:45 AM
 #64

Hi there,
and thanks for making this.

I'm currently trying to set up bitcoin-abe for Netcoin (https://github.com/netcoinproject/netcoin) and I'm having a bit of problems.
I'm running the latest from github and have added the following to Datastore.py:

  {"chain":"Netcoin",
     "code3":"NET", "address_version":"\x70", "magic":"\xfd\xb6\xa5\xdb"}

...
....
block_tx 4071 3398
Skipped 1 bytes at block end
Exception at 7099887448213790924

Failed to catch up {'blkfile_offset': 39107, 'blkfile_number': 1, 'chain_id': 9, 'loader': None, 'dirname': '/home/myuser/.netcoin', 'id': Decimal('32')}
Traceback (most recent call last):
  File "Abe/DataStore.py", line 2637, in catch_up
    store.catch_up_dir(dircfg)
  File "Abe/DataStore.py", line 2901, in catch_up_dir
    store.import_blkdat(dircfg, ds, blkfile['name'])
  File "Abe/DataStore.py", line 3028, in import_blkdat
    b = store.parse_block(ds, chain_id, magic, length)
  File "Abe/DataStore.py", line 3059, in parse_block
    d['transactions'].append(deserialize.parse_Transaction(ds))
  File "Abe/deserialize.py", line 92, in parse_Transaction
    d['txOut'].append(parse_TxOut(vds))
  File "Abe/deserialize.py", line 67, in parse_TxOut
    d['value'] = vds.read_int64()
  File "Abe/BCDataStream.py", line 72, in read_int64
    def read_int64  (self): return self._read_num('<q')
  File "Abe/BCDataStream.py", line 110, in _read_num
    (i,) = struct.unpack_from(format, self.input, self.read_cursor)
error: unpack_from requires a buffer of at least 8 bytes

Any ideas on what I'm doing wrong ?

I am having the same problem.

Buy TRUSTplus.  We are building a Financial Platform.
tuxie01
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
February 25, 2014, 05:20:29 PM
 #65

Hi there,

few days ago i setup a explorer for the Altcoin TheCypherfunk, i used the last git clone from abe.

Today i changed the design and also the css stylesheet with some new designfeatures. Actually i am working on a design useable on mobil devices like iPhone or iPad. If anybody is interessed i can send the changed files.

Cheers tuxie
Joori
Full Member
***
Offline Offline

Activity: 192
Merit: 100


Just an average guy with an average job!


View Profile
March 02, 2014, 02:38:50 AM
 #66

Hi there,

few days ago i setup a explorer for the Altcoin TheCypherfunk, i used the last git clone from abe.

Today i changed the design and also the css stylesheet with some new designfeatures. Actually i am working on a design useable on mobil devices like iPhone or iPad. If anybody is interessed i can send the changed files.

Cheers tuxie

I'd be keen on checking those changes out. Been toying with the idea of adding some flare to the original design but have been bogged down with too many other things at work which has taken away what little time i've had free over the last few weeks.
comedygold
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile WWW
April 02, 2014, 11:58:33 PM
 #67

I've been trying for hours to fix this...this is the error I get.
Code:
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!

If I start Abe using its own server, it is fine. However, this is no good for me as I want to run it as a website.

I have googled for literally hours. I have tried everything I can find and anything I can think of. Sure I'm probably missing something stupid...any ideas?
John Tobey (OP)
Hero Member
*****
Offline Offline

Activity: 481
Merit: 529



View Profile WWW
April 03, 2014, 05:52:46 AM
 #68

I've been trying for hours to fix this...this is the error I get.
Code:
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!

If I start Abe using its own server, it is fine. However, this is no good for me as I want to run it as a website.

I have googled for literally hours. I have tried everything I can find and anything I can think of. Sure I'm probably missing something stupid...any ideas?

Assuming you have read the directions in README-FASTCGI.txt, can you get this sample FastCGI app to run?  https://docs.python.org/2/howto/webservers.html#setting-up-fastcgi

Abe runs the same way, using flup.server.fcgi.WSGIServer.

Can a change to the best-chain criteria protect against 51% to 90+% attacks without a hard fork?
salfter
Hero Member
*****
Offline Offline

Activity: 651
Merit: 501


My PGP Key: 92C7689C


View Profile WWW
April 17, 2014, 11:45:45 PM
 #69

I've let the current version grind away for a week or two, only to get stuck on importing the Bitcoin blockchain.  On block 234062, it fails pretty spectacularly.  I probably shouldn't have been running this branch anyway as it doesn't handle scrypt coins, but that still doesn't explain what's going horribly wrong.  I'm running bitcoind 0.9.1 and told it to verify the entire blockchain; it came back with nothing wrong.  All this is on a freshly setup Ubuntu Server LTS 14.04 box (had been running late betas or release candidates); I'm using PostgreSQL for the database.

What follows is what Abe.py spits out when I try to have it resume.  Take particular note of the line that starts with "InvalidOperation: Invalid literal for Decimal:"

Code:
Opened /home/bitcoind/.bitcoin/blocks/blk00057.dat
Exception at 74222644
Failed to catch up {'blkfile_offset': 73974221, 'blkfile_number': 100057, 'chain_id': 1, 'loader': u'blkfile', 'conf': None, 'dirname': '/home/bitcoind/.bitcoin', 'id': Decimal('1')}
Traceback (most recent call last):
  File "/home/bitcoin-abe/bitcoin-abe/Abe/DataStore.py", line 2503, in catch_up
    store.catch_up_dir(dircfg)
  File "/home/bitcoin-abe/bitcoin-abe/Abe/DataStore.py", line 2767, in catch_up_dir
    store.import_blkdat(dircfg, ds, blkfile['name'])
  File "/home/bitcoin-abe/bitcoin-abe/Abe/DataStore.py", line 2899, in import_blkdat
    store.import_block(b, chain = chain)
  File "/home/bitcoin-abe/bitcoin-abe/Abe/DataStore.py", line 1043, in import_block
    tx['tx_id'] = store.import_and_commit_tx(tx, pos == 0, chain)
  File "/home/bitcoin-abe/bitcoin-abe/Abe/DataStore.py", line 1852, in import_and_commit_tx
    tx_id = store.import_tx(tx, is_coinbase, chain)
  File "/home/bitcoin-abe/bitcoin-abe/Abe/DataStore.py", line 1819, in import_tx
    txin['prevout_hash'], txin['prevout_n'])
  File "/home/bitcoin-abe/bitcoin-abe/Abe/DataStore.py", line 2431, in lookup_txout
    (store.hashin(tx_hash), txout_pos))
  File "/home/bitcoin-abe/bitcoin-abe/Abe/DataStore.py", line 251, in selectrow
    return store._sql.selectrow(stmt, params)
  File "/home/bitcoin-abe/bitcoin-abe/Abe/SqlAbstraction.py", line 479, in selectrow
    ret = sql.cursor().fetchone()
  File "/usr/lib/python2.7/decimal.py", line 548, in __new__
    "Invalid literal for Decimal: %r" % value)
  File "/usr/lib/python2.7/decimal.py", line 3872, in _raise_error
    raise error(explanation)
InvalidOperation: Invalid literal for Decimal: 'N2615289K699B044\x1d()0O830L724.),)J893?96140657553\x1b-*(0271-\'*(B1800029000000000000\x1f\'+0000000000000198300000007O55200300006230600240271\x1e-0,\x14\'/.3857\x10)*)15840729001103843840\x10)*)44160752N2615289\'\'/+0)*.=76200*/2740B635\x19.,)*\'0-!/),;273\x1b-*(0271I984\x1a)(.002900000000\x1f\'+0000000000000198100000007O55200290006230600240271\x1e-0,\x13/*(3857\x10)*)1584072900072944\x10)*)0001N2615289\x1a-//3500\x1a*.*3855\x150,-C022K1570692\'0(-@632\x1b-*(0271,\'\'.?6200033\x1f\'+0000000000000197000000007O55200280006230600240271\x1e-0,\x13,.,3857\x10)*)15840728001103843840\x10)*)77227581N2615289++/,5124"/+-M3660(.+\x1f//-\x1a0/,2905J809L387\x1b-*(0271I984\x1d)/0002900000000\x1f\'+0000000000000196800000007O55200270006230600240271\x1e-0,\x13*(03857\x10)*)1584072800073968\x10)*)01235060N2615289\x1a+)(&+/(F6273830M762-\')/6303M616\x1e(.*H253\x1b-*(0271-\'*(15400019000000000000\x1f\'+0000000000000195700000007O55200260006230600240271\x1e-0,\x13\'-*3857\x10)*)15840727001103843840\x10)*)79552183N2615289\x10,(-N225;350\x14.(*!/\'\'\x1c*0)\x1e0))B096\x15-))0,++\x1b-*(0271I984\x12)/(002900000000\x1f\'+0000000000000195500000007O55200250006230600240271\x1e-0,\x12/\'.3857\x10)*)1584072700072944\x10)*)0010N2615289O735L399(\'..\x1d((+\x19\'/0F121\x15.\'(30330401=564\x1b-*(0271-\'*(15400027\x1f\'+0000000000000194400000007O55200240006230600240271\x1e-0,\x12,,(3857\x10)*)15840726001103843840\x10)*)64110414N2615289C936)\'0.8244\x14\').\x1a(\'("/(.\x1b+))8955\x17/(\'-)--\x1b-*(0271I984!-+(002800000000\x1f\'+0000000000000194200000007O55200230006230600240271\x1e-0,\x12)0,3857\x10)*)1584072600073968\x10)*)31240528N2615289H720#.*(\x16.+*//*/\x12)0.&0((D994\x120(+4527O578\x1b-*(0271-\'*(>0840030000000000000\x1f\'+0000000000000193100000007O55200220006230600240271\x1e-0,\x12\'*03857\x10)*)15840725001103844864\x10)**000110342000N2615289\x1c+\'*6181\x1f,/\'9522G25708662417\x14\',-;647;058\x1b-*(0271I984\x190-(00290000\x1f\'+0000000000000192900000007O55200210006230600240271\x1e-0,\x11./*3857\x10)*)1584072500072944\x10)*)0002N261528900)+;804B477@7914424*\'()/\')07315@653\x1a,0+\x1b-*(0271-\'*(O7480020\x1f\'+0000000000000191800000007O55200200006230600240271\x1e-0,\x11,).3857\x10)*)15840724001103842816\x10)*)1353N26152897715F954-)-0O006J217\x1000-D6270+,*P3482012\x1b-*(0271I984\x14*)00029000000000000\x1f\'+0000000000000191600000007O55200190006230600240271\x1e-0,\x11).(3857\x10)*)1584072400072944\x10)*)0005N2615289\x1b*./E6027019C927((+/))+,E252\x11-++P121@353\x1b-*(0271-\'*(17960027\x1f\'+0000000000000190500000007O55200180006230600240271\x1e-0,\x11\'(,3857\x10)*)15840723001103842816\x10)*)4139N2615289.*-*\x1a0\'/4581@285998700,,\x18..0\x1a0\'*!.--\'\',\'\x1b-*(0271I984\x180*.0029000000000000\x1f\'+0000000000000190300000007O55200170006230600240271\x1e-0,\x10.,03857\x10)*)1584072300072944\x10)*)0015N26152891718?622*+\'-C461G4892280\x17*0\'I843\x110.+#(++\x1b-*(0271,..,92200028\x1f\'+0000000000000189200000007O55200160006230600240271\x1e-0,\x10,\'*3857\x10)*)15840722001103844864\x10)**000105526935N2615289O22408047378,*\'*8260H851\x16/,.<398\x1e0\'/;362\x1b-*(0271I984\x1d\'**00290000\x1f\'+0000000000000189000000007O55200150006230600240271\x1e-0,\x10)+.3857\x10)*)1584072200073968\x10)*)00425000N2615289\x10.,+5075B074.-)-"-).\x12,(,\x17(.-\x1a+.03100\x1a(*/\x1b-*(0271%*,(P2590016000000000000\x1f\'+0000000000000187900000007O55200140006230600240271\x1e-0,P5283857\x10)*)15840721001103843840\x10)*)57608500N2615289\x1b+-)5701A740L6417682?624\x10+\'/\x16)(($/.-\x12/-.\x1b-*(0271I9845890003000000000\x1f\'+0000000000000187700000007O55200130006205000240271\x1e-0,P2723857\x10)*)1584072100072944\x10)*(5000N2615289\x11*)*O734\x1d,**\x1f,\'+K890L4130*\'(6478J3450(/\'\x1b-*(0271-\'*(=3160029\x1f\'+0000000000000186600000007O55200120006230600240271\x1e-0,P0163857\x10)*)15840720001103843840\x10)*)78957435N26152897715F954-)-0O006J217\x1000-D6270+,*P3482012\x1b-*(0271I984\x14*)0002900000000\x1f\'+0000000000000186400000007O55200110006230600240271\x1e-0,O7603857\x10)*)1584072000072944\x10)*)0005N2615289?487),*\'\x12)*.%)//L546\x17*\'-;282D896\')\'/.-0\'\x1b-*(0271#,,0%+/*0028\x1f\'+0000000000000185300000007O55200100006230600240271\x1e-0,O5043857\x10)*)15840719001103844864\x10)**000102971291N2615289:547\x15\'-*%(.(;651;302E072K942\x14/)\'H572I257\x1b-*(0271I984/.)(00280000\x1f\'+0000000000000185100000007O55200090006230600240271\x1e-0,O2483857\x10)*)1584071900072944\x10)*)0005N26152893591-),*H434-/-0:3080837L4699006!,\'*(+,*\x1b-*(0271-\'*(@1320029\x1f\'+0000000000000184000000007O55200080006230600240271\x1e-0,N9923857\x10)*)15840718001103843840\x10)*)10047500N2615289#,(.I994F752/*((E565\x19...\x18+\'0#.*\'3450!/+-\x1b-*(0271I9848450002400000000\x1f\'+0000000000000183800000007O55200070006230600240271\x1e-0,N7363857\x10)*)1584071800072944\x10)*(5000N26152897838H044\x15)-(<022\x1f/(/J540<982"..(\'0)0;905\x1b-*(0271)0,0\'\'(00018\x1f\'+0000000000000182700000007O55200060006230600240271\x1e-0,N4803857\x10)*)15840717001103843840\x10)*)32034000N2615289?035\x190)0$(),+(.(I210L796G865!0*/J922F237\x1b-*(0271I984/0..002800000000\x1f\'+0000000000000182500000007O55200050006230600240271\x1e-0,N2243857\x10)*)1584071700073968\x10)*)00016000N26152891697\x12(\'(*.(\'F519$/\'\'%)(+>96438804531D382\x1b-*(0271-\'*(E7640005000000000000\x1f\'+0000000000000181800000007O55200040006230600240271\x1e-0,M9683857\x10)*)15840716001103843840\x10)*)08087999N2615289\x18.,/F076>3295301&./,\x1e(/--.+0/)))3656\x10/*-\x1b-*(0271-\'*(#-0(000800000000\x1f\'+0000000000000181600000007O55200030006230600240271\x1e-0,M7123857\x10)*)1584071600073968\x10)*)08104001N2615289N57332932756M3416154C887A189\x15+*.O292G173\x1b-*(0271:112#(./0025000000000000\x1f\'+0000000000000180900000007O55200020006230600240271\x1e-0,M4563857\x10)*)15840715001103843840\x10)*)00377000N26152894092E546=3440.**2011 --/C385#\')/A910\x17.(,\x1b-*(0271-\'*(-+(0003000000000\x1f\'+0000000000000180600000007O55200010006205000240271\x1e-0,M2003857\x10)*)1584071500072944\x10)*)0800N26152891679H0210./)F632\x13(-($))+,/-0$+-(6311O963\x1b-*(02717808\x13,-)003500760000\x16)-*742200000000052022648176819600000000\x18*,00096\x18*,(0016\x13,000096\x18*\'*0096\x18),,0096\x18)\'.0096\x18(,00096\x18(((0096\x130/*0096\x18\'-*0096\x14\'.00096\x18\'(,0096\x14))*0096\x170-.0096\x170(00096\x17/.(0096\x13+\'.0096\x17/)*0096\x17..,0096\x17.).0096\x17-.00096\x17-*(0096\x17,/*0096\x17,*,0096\x12,0(0096\x17+/.0096\x13*,00096\x17+*00096\x13//.0096\x17*0(0096\x17*+*0096\x17)0,0096\x12,+*0096\x17)+.0096\x12-*00096\x17(000096\x12.*,0096\x17(,(0096\x13)-*0096\x17(\'*0096\x12-/.0096\x17\',,0096\x17\'\'.0096\x160,00096\x13*((0096\x160((0096\x14).(0096\x16/-*0096\x14(.,0096\x16/(,0096\x16.-.0096\x16.(00096\x16-.(0096\x16-)*0096\x12+0,0096\x16,.,0096\x120.,0096\x16,).0096\x16+.00096\x12./*0096\x16+*(0096\x13-+.0096\x16*/*0096\x16**,0096\x16)/.0096\x13)(,0096\x16)*00096\x13-0,0096\x16(0(0096\x14*(00096\x16(+*0096\x16\'0,0096\x16\'+.0096\x12/*(0096\x150000096\x13.0(0096\x150,(0096\x150\'*0096\x15/,,0096\x15/\'.0096\x15.,00096\x14().0096\x15.((0096\x15--*0096\x15-(,0096\x13\')*0096\x15,-.0096\x13,,(0096\x15,(00096\x12/.00096\x15+.(0096\x13.+*0096\x15+)*0096\x13\'.(0096\x15*.,0096\x13,\'*0096\x15*).0096\x15).00096\x15)*(0096\x120).0096\x15(/*0096\x13((00096\x15(*,0096\x13(-.0096\x15\'/.0096\x130*,0096\x15\'*00096\x14\'*(0096\x1400(0096\x140+*0096\x14/0,0096\x14/+.0096\x14.000096\x13+,,0096\x14.,(0096\x13/*00096\x14.\'*0096\x14-,,0096\x14-\'.0096\x14*-.0096\x14,,00096\x14,((0096\x14+-*0096\x14+(,009600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000037640001@432(/.+P598\'.,0B211G698N740B226\x18/-+?119I741=7973024\x18-(\'?6644675?0240005000000000000000037620001@432\'/,\'K837E360<639\x11,0--**)\x1d+,*\x1b,*//*()\x1d/\',:412"*)-\x18.*)3319\x1c*/(\x16*//0117000000000000000037550001@432\',0+A233\x11-*+$\'+(F179\x18/*\'\x110.+0\'.(8893&(()7077\x1d+0,E894<382E135\x14-*\'0147000000000000000036970001@432\'/,\'@127\x1c\',/\x1a-0(=772F653;155J800N870K477"/.+%+/\'D091L9654191C8260174000000000000000036790001@432((\'-\x180(,#*./G305A124=131\x1e0*0*)*)9958\x1a(*-\x1f-.0K96354991282%.,*\x1f\'-00203000000000000000036620001@432((\'-?698\x13-(()\'-)(.+.<895,+*.>560=237\x1d+0-,-.*/*00B741$.,.),)./(0-0160000000000000000036550001@432)(*\'@696L565(,\'+2504E587"\',())-,8184&-\'*\x1d,-,<800@507@056\'../&(0(0092000000000000000036200001@432)-+)\x17/+\'",/.@859I724\x13--/2500\x1b)-.L092\x1e,-+\x15,/)@322\x1e,(+0++,D862\x1d)*)0104000000000000000036180001@432*+(\'\x1d(/\'\x13+)/;6748730@812O890N908)+*,\x1b,\'-\x1f-0-B784\x12-,0L488*0+.H4780029000000000000000036120001@432*0))")*,\x1e\'--0*.*/))\'G0935535O2220874\x13(*-0(\'*>426M681?318B913%**.0121000000000000000035950001@432(/.+\x16)/+F301M768I426\x12,.\'2122\x18/,0$0(\'O383\x1b),,#*.\'\x1e\'-/*0++-()\'74470251000000000000000035870001@432*(,+,//)\x12-).\x1a),.E674-.)\'7646\x11\'(,0.\',=103@604\x16++* )..0850\x13-/)#--,0243000000000000000035720001@432*---$,(+%-*,0235%0+(\x15-*)>261\x16--/38149352\x12-(,\x15)\'(%0//\x1d)-*E769$.0-0030000000000000000035680001@432*0))()\'(\x11/)\'),*.+,0+6786%\',-1264\x16/-* *0,\x1e00\'\'*.\'J550<038 ((.\x11/(*0188000000000000000035580001@432*0)),((+\x11.\'+%)*,\x15(.\'3538@435\x1f.*-?0481799N923/0.+\x11.+\'D138,-*,,*-*0078000000000000000035560001@432)*/-3380C4100087"/0\'\x160,/0)-(\x1f\'..H479\x14.-*E308 \'*.0871*(0(\x1d,,.C0280044000000000000000035510001@432((\'-5791I77759250)-+")/0\x1d(-.!.(0\x1e*++O9790+00O169E523H445\x1b)+(57460025000000000000000035260001@432(*-)-*\'.>196\x13/0(\x18.\'*E693=250\x17+-+7918O314J641-+(*+/)-7848.0.+/\'/,0139000000000000000035230001@432\',0+,\'*)G855\x18.\'0\x19+./\x12*)*F564A642\x1b))(@599H203!0)0H399+.((E694H1730241000000000000000035080001@432\'\'/)N140H317?2800*(+4618987297142534\x1a,*(\x14(+\'L008#*,/\x1a0(01948\x130/*0249000000000000000034960001@432++*+H7570537C8925058O141,.00\x12+,\'B594$*0(\x1500/\x1e\'/-0167E307\x17))\'#)+\'0225000000000000000034820001@432*---\x17,**>477@459(\'\'+L517\x14))-%+).D819 -.-\x1a)\'\'7896*.*0/\'+*:353?2710233000000000000000034590001@432*+(\' +))+)+((/,-2799\x1b,*(G715I665E160\x1c0\'\'\'-\'/\x1e.0,-\'/*O129\x12/,-82480113000000000000000034570001@432&,.\':283&+)* -\')(/+)N968O7756747$+,,N336\x15/,\'C8221518\x16()/\x140\'+D9370026000000000000000034490001@432)(*\'\x15+/.\x1000.<1135190B258\x12),,\x11+\'-\'00+"0*-/+0//*/-=335\x1a/*+&)\'\'+0(,0133000000000000000034430001@432)*/-O875G725F545(+,))\'..\x1f0(0,.-0*(/)&*,\':964\x12/-,;9500916\x10+00G0530243000000000000000034390001@432*+(\'I575&0-(\x1e.//N8984840D727J695=148:519(-).0061?577H069\x19.-,N1430146000000000000000034170001@432)/0/4623\x11)\')*-+,E6929981:431:250"*./%/,)>399B672\x1b,\'\'2423\x14.(-B7130251000000000000000034130001@432+-0\'F787"\')(B652\x13,0-,,*/+),+N893&\'0)>271\x15+\'( +/\'\x1b-\'.\x11+/*\x1f*\'/\x10+\'.0011000000000000000033930001@432\',0+35717717\')(+>368H2933002\x1c++0O7920(+)0*..:800O407N247(*)().,*0191000000000000000033790001@432+(./0.0*3410>116G828\x1b0.-..-/4517!*,+\x1e*.\'\'\'*,M217L254\x17)-(L921C5150197000000000000000033630001@432&/)-*-.-+(\')E959\x10-0(\x12/)((\'(0A426K519\x16((,\x14,,(N246F0217720F954\x14++*0205000000000000000033420001@432+(./P3982823:430N2910980<418\x19.\')7239;755J461E553E946\x14.//),\')83370208000000000000000033410001@432&/)-<9694489\x19*--\x13+\'\'&).\'A8605228=148O657\x13-0)\x1b)++0030\x17/))\x13(0*N2720097000000000000000033280001@432*(,+D7859683J6208773\x1e-.) \'*0\x18+*(&(-/#0-(\x16-/)M817\x17)\'0\x1a0*\'\x18(0.=0980068000000000000000033230001@432(-(/<364\x11\'*.\x1f,-(\x19.-,@353F1172114\x14,+0<081\x12*0.E893J115\',/*\'.,-85070056000000000000000033190001@432\'\'/)K915D621\x1c+-/N342!,,\'\x16)+.\x13+0\'L258=955K734L466#/\'.=221)/-.G8510249000000000000000033180001@432(*-)3823<481E025I516C392=631J125\x1c++\'3845#.*,?218@147"(*(#),/B0550061000000000000000033140001@432)*/-\x1d.--)(/*@427\x12*,0&(+01976@7407021P1464639A399>065B916H654$\',(0097000000000000000033110001@432+-0\'!,.-N453J9473725\x12+/.A797\x15.)/3359L659\x17\'(*\'+/)O794\x10+\'/A033K8320189000000000000000031680001@432+0+-L074\x1b(*0%.+(?492F528\'/.(N139<586=881C087\x1c))/.-0-<8046882\x14-,.0221000000000000000025250001@432+0+-#,*/\x18+/-E138\x1e\'()\x150\'*\x1b(,*#../%+/(3464&.0,8195J63669855909<2860218000000000000000032290001@432+0+-0\')*\'),(1336*/*+%)*/\x19(\'(=93834263846\x1b+((@087\x13/0\'*\'+/O652\x1e\'-*0015000000000000000028430001@432+-0\'#-.*/,(-/00\'P091C510\x14)-,H321<808J547\x15)(0\x130)- \')-P585\x1d(,(C9400122000000000000000023350001@432+-0\'6801B951G096D234\x1d\')*\x17\'*-E708:947>931\x13)\'-+,,,\x10-/, )*+F574;1550113000000000000000032110001@432+-0\'>938,)-)4008\x1f-\'0\x160(-\x1c,.)>749/.0*E422\x1b+/0,++,8648\x1c--/6112\x13\'\'00019000000000000000028030001@432+-0\'A713\x1b.((+,.,1003\'.-*$+(.G554?318%\'**A427I9920352!),.%\',/\x1d**,0065000000000000000025660001@432++*+ *(0P736\x17\',(F698K075",/0**\'0\x1b+/(\x1a((/\x1c)\'+\x17(.,\x15-+-P251$,/,06920088000000000000000028700001@432++*+I983\x17\'/,\x10/+(J927%-(-9811O33324852892\x1d/*,\x14),/\x1d-0\'F245,\'\'+!.+,0198000000000000000032580001@432++*+\x11*).#,\'(4975!)0+O399\x1c*-\'H53125477213(\'//L919I4077615#),+ *.+0057000000000000000024490001@432++*+4891\x13+/.\x160\')3293L028B942>818P268/*,-F4608511(/,* \',(A194#,.,0064000000000000000032960001@432+(./.+(-\x16)//A356J147G774C1010.0-%/,/$.0)O6543618-*\'0\x19(*\'\x18))),-,)0104000000000000000028090001@432+(./$*0()*0,)\'/\'*),+L241,\'*+\x1c,,/K9350)++7449B535A529,,0*1699L7420020000000000000000025700001@432+(./#,*)I378 0,.\x1d\'0+E376\x12).(**(-\x13-/+L3656799B792,,)\'=792)...C9790121000000000000000028890001@432+(./\x13/*.6120L954>855:41006619301G819\x1d\'+*\x16(*)O0370+\'+J603\x1c+)(19460207000000000000000023930001@432*0)),\'.*)++.6773(,-\'(00)\x1c-..D176\x11-0*827894191229\x16)*)"))-,-(.\x12,,*0230000000000000000029250001@432*0))6271E195G549\x1e*+,1171\x11.-0%/0--\'\'-\x1e/\')C128/,.\'3173@798\x1e+\'-0*,(0129000000000000000026630001@432*0))\x180.+D1376093C366%,,)+*0)P193I0500105"*,)6544\x1f-*/>959\x1b(),:6660108000000000000000030840001@432*---\x17-)0\x16\',-E364\x150).\x1f./(\x1e00/63921332\x18*-*M5383121$\')-\'\'/)>759+.-\'01060000000000000000.24720001@432*---\x16)0*@174A047&\'0.\x17+0(\x1f+*)\x1d,+-\x14\'.\'K8616613O717H795L898J775;6460166000000000000000028900001@432*---@482\x18))-;382L0580301=4639736\x19//,>403\x11,,/5490N024\x11)(/4058\x10,-(0130000000000000000026160001'
Opened /home/namecoind/.namecoin/blk0001.dat
Opened /home/bitgemd/.bitgem/blk0001.dat
Exception at 72056513098678410
Failed to catch up {'blkfile_offset': 0, 'blkfile_number': 1, 'chain_id': 12, 'loader': u'blkfile', 'conf': None, 'dirname': u'/home/bitgemd/.bitgem', 'id': 446L}
Traceback (most recent call last):
  File "/home/bitcoin-abe/bitcoin-abe/Abe/DataStore.py", line 2503, in catch_up
    store.catch_up_dir(dircfg)
  File "/home/bitcoin-abe/bitcoin-abe/Abe/DataStore.py", line 2767, in catch_up_dir
    store.import_blkdat(dircfg, ds, blkfile['name'])
  File "/home/bitcoin-abe/bitcoin-abe/Abe/DataStore.py", line 2889, in import_blkdat
    b = chain.ds_parse_block(ds)
  File "/home/bitcoin-abe/bitcoin-abe/Abe/Chain.py", line 90, in ds_parse_block
    d['transactions'].append(chain.ds_parse_transaction(ds))
  File "/home/bitcoin-abe/bitcoin-abe/Abe/Chain.py", line 83, in ds_parse_transaction
    return deserialize.parse_Transaction(ds)
  File "/home/bitcoin-abe/bitcoin-abe/Abe/deserialize.py", line 90, in parse_Transaction
    d['txIn'].append(parse_TxIn(vds))
  File "/home/bitcoin-abe/bitcoin-abe/Abe/deserialize.py", line 46, in parse_TxIn
    d['sequence'] = vds.read_uint32()
  File "/home/bitcoin-abe/bitcoin-abe/Abe/BCDataStream.py", line 71, in read_uint32
    def read_uint32 (self): return self._read_num('<I')
  File "/home/bitcoin-abe/bitcoin-abe/Abe/BCDataStream.py", line 110, in _read_num
    (i,) = struct.unpack_from(format, self.input, self.read_cursor)
error: unpack_from requires a buffer of at least 4 bytes

Tipjars: BTC 1TipsGocnz2N5qgAm9f7JLrsMqkb3oXe2 LTC LTipsVC7XaFy9M6Zaf1aGGe8w8xVUeWFvR | My Bitcoin Note Generator | Pool Auto-Switchers: zpool MiningPoolHub NiceHash
Bitgem Resources: Pool Explorer Paper Wallet
John Tobey (OP)
Hero Member
*****
Offline Offline

Activity: 481
Merit: 529



View Profile WWW
April 18, 2014, 01:07:55 PM
 #70

I've let the current version grind away for a week or two, only to get stuck on importing the Bitcoin blockchain.  On block 234062, it fails pretty spectacularly.  I probably shouldn't have been running this branch anyway as it doesn't handle scrypt coins, but that still doesn't explain what's going horribly wrong.  I'm running bitcoind 0.9.1 and told it to verify the entire blockchain; it came back with nothing wrong.  All this is on a freshly setup Ubuntu Server LTS 14.04 box (had been running late betas or release candidates); I'm using PostgreSQL for the database.

What follows is what Abe.py spits out when I try to have it resume.  Take particular note of the line that starts with "InvalidOperation: Invalid literal for Decimal:"

Code:
Opened /home/bitcoind/.bitcoin/blocks/blk00057.dat
Exception at 74222644
Failed to catch up {'blkfile_offset': 73974221, 'blkfile_number': 100057, 'chain_id': 1, 'loader': u'blkfile', 'conf': None, 'dirname': '/home/bitcoind/.bitcoin', 'id': Decimal('1')}
Traceback (most recent call last):
  File "/home/bitcoin-abe/bitcoin-abe/Abe/DataStore.py", line 2503, in catch_up
    store.catch_up_dir(dircfg)
  File "/home/bitcoin-abe/bitcoin-abe/Abe/DataStore.py", line 2767, in catch_up_dir
    store.import_blkdat(dircfg, ds, blkfile['name'])
  File "/home/bitcoin-abe/bitcoin-abe/Abe/DataStore.py", line 2899, in import_blkdat
    store.import_block(b, chain = chain)
  File "/home/bitcoin-abe/bitcoin-abe/Abe/DataStore.py", line 1043, in import_block
    tx['tx_id'] = store.import_and_commit_tx(tx, pos == 0, chain)
  File "/home/bitcoin-abe/bitcoin-abe/Abe/DataStore.py", line 1852, in import_and_commit_tx
    tx_id = store.import_tx(tx, is_coinbase, chain)
  File "/home/bitcoin-abe/bitcoin-abe/Abe/DataStore.py", line 1819, in import_tx
    txin['prevout_hash'], txin['prevout_n'])
  File "/home/bitcoin-abe/bitcoin-abe/Abe/DataStore.py", line 2431, in lookup_txout
    (store.hashin(tx_hash), txout_pos))
  File "/home/bitcoin-abe/bitcoin-abe/Abe/DataStore.py", line 251, in selectrow
    return store._sql.selectrow(stmt, params)
  File "/home/bitcoin-abe/bitcoin-abe/Abe/SqlAbstraction.py", line 479, in selectrow
    ret = sql.cursor().fetchone()
  File "/usr/lib/python2.7/decimal.py", line 548, in __new__
    "Invalid literal for Decimal: %r" % value)
  File "/usr/lib/python2.7/decimal.py", line 3872, in _raise_error
    raise error(explanation)
InvalidOperation: Invalid literal for Decimal: 'N26...'

Yeah wow, it's a doozy!  As near as I can make out, lookup_txout is getting that 17kB string as its txout_pos argument, so import_tx must have got it in txin['prevout_n'], which it got from tx.  Since you are loading from blkfile, tx must have come from chain.ds_parse_block (DataStore.py Line 2889) and ultimately from deserialize.parse_Transaction.  That gets txin from parse_TxIn, which gets txin['prevout_n'] from BCDataStream's read_uint32 method, and ultimately from the standard struct.unpack_from function.  This whole code path is very common in Abe and must have run millions of times successfully during your load before the error.

I would really like to know whether struct.unpack_from returns a 17kB string and, if not, where my chain of reasoning fails.  If so, it seems like a serious Python bug, and I would like to create a minimal test case and report it.

Scrypt coin configuration could be patched in after the fact, so you are okay there.

Can a change to the best-chain criteria protect against 51% to 90+% attacks without a hard fork?
mile108
Member
**
Offline Offline

Activity: 107
Merit: 10


View Profile
April 29, 2014, 05:20:39 PM
 #71

If someone could make tutorial, it would be great  Roll Eyes

▶▶  BTCitcoin 2  ◀◀    ⚡ Scalable Bitcoin Fork with instant verified payments ⚡
░░░░▒▒▒▓▓▓████████████████████████████████████████████████▓▓▓▒▒▒░░░░
Low Fees ✲ ✲ Truly Anonymous TransactionsJoin the discussion thread
nxtar
Newbie
*
Offline Offline

Activity: 26
Merit: 0


View Profile WWW
May 21, 2014, 04:30:44 AM
 #72

I have tried all I know to get the fcgi module working under apache 2.4.7 Ubuntu 14.04

Here is my /etc/apache2/sites-available/abe.conf
Code:
<VirtualHost *:80>
        ServerName chain.distroblitz.co.in
        Alias /static/ /usr/local/lib/python2.7/dist-packages/Abe/htdocs
        Alias /robots.txt /usr/local/lib/python2.7/dist-packages/Abe/htdocs/robots.txt
        Alias /favicon.ico /usr/local/lib/python2.7/dist-packages/Abe/htdocs/favicon.ico
        Alias / /usr/lib/cgi-bin/abe.fcgi

        <Directory /usr/local/lib/python2.7/dist-packages/Abe/htdocs>
        Order allow,deny
        Allow from all
        Require all granted
        </Directory>

        <Directory /usr/lib/cgi-bin/>
        Order allow,deny
        Allow from all
        Require all granted
        </Directory>

        # 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/abe_error.log
        LogLevel info
        CustomLog /var/log/abe_access.log combined

</VirtualHost>

I have checked filesystem permissions and I am able to run the fcgi with
Code:
sudo -u www-data /usr/lib/cgi-bin/abe.fcgi
The output when run from the command line generates errors which I assume are caused by not running it with fcgi
Code:
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!
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/flup/server/fcgi_base.py", line 558, in run
    protocolStatus, appStatus = self.server.handler(self)
  File "/usr/lib/python2.7/dist-packages/flup/server/fcgi_base.py", line 1118, in handler
    result = self.application(environ, start_response)
  File "/usr/local/lib/python2.7/dist-packages/Abe/abe.py", line 191, in __call__
    if fix_path_info(env):
  File "/usr/local/lib/python2.7/dist-packages/Abe/abe.py", line 2059, in fix_path_info
    if pi[-1] != '/' and env['PATH_INFO'][-1] == '/':
IndexError: string index out of range
Content-Type: text/html

<body bgcolor="#f0f0f8">
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#6622aa">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>&lt;type 'exceptions.IndexError'&gt;</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial">Python 2.7.6: /usr/bin/python<br>Wed May 21 00:27:41 2014</font></td></tr></table>

<p>A problem occurred in a Python script.  Here is the sequence of
function calls leading up to the error, in the order they occurred.</p>
<table width="100%" cellspacing=0 cellpadding=0 border=0>
<tr><td bgcolor="#d8bbff"><big>&nbsp;</big><a href="file:///usr/lib/python2.7/dist-packages/flup/server/fcgi_base.py">/usr/lib/python2.7/dist-packages/flup/server/fcgi_base.py</a> in <strong>run</strong>(self=&lt;flup.server.fcgi_base.CGIRequest object&gt;)</td></tr>
<tr><td><font color="#909090"><tt>&nbsp;&nbsp;<small>&nbsp;&nbsp;556</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"""Runs&nbsp;the&nbsp;handler,&nbsp;flushes&nbsp;the&nbsp;streams,&nbsp;and&nbsp;ends&nbsp;the&nbsp;request."""<br>
</tt></font></td></tr>
<tr><td><font color="#909090"><tt>&nbsp;&nbsp;<small>&nbsp;&nbsp;557</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try:<br>
</tt></font></td></tr>
<tr><td bgcolor="#ffccee"><tt>=&gt;<small>&nbsp;&nbsp;558</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;protocolStatus,&nbsp;appStatus&nbsp;=&nbsp;self.server.handler(self)<br>
</tt></td></tr>
<tr><td><font color="#909090"><tt>&nbsp;&nbsp;<small>&nbsp;&nbsp;559</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;except:<br>
</tt></font></td></tr>
<tr><td><font color="#909090"><tt>&nbsp;&nbsp;<small>&nbsp;&nbsp;560</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;traceback.print_exc(file=self.stderr)<br>
</tt></font></td></tr>
<tr><td><small><font color="#909090">protocolStatus <em>undefined</em>, appStatus <em>undefined</em>, <strong>self</strong>&nbsp;= &lt;flup.server.fcgi_base.CGIRequest object&gt;, self.<strong>server</strong>&nbsp;= [Suspicious link removed]GIServer object&gt;, self.server.<strong>handler</strong>&nbsp;= &lt;bound method WSGIServer.handler of [Suspicious link removed]GIServer object&gt;&gt;</font></small></td></tr></table>
<table width="100%" cellspacing=0 cellpadding=0 border=0>
<tr><td bgcolor="#d8bbff"><big>&nbsp;</big><a href="file:///usr/lib/python2.7/dist-packages/flup/server/fcgi_base.py">/usr/lib/python2.7/dist-packages/flup/server/fcgi_base.py</a> in [Suspicious link removed]GIServer object&gt;, req=&lt;flup.server.fcgi_base.CGIRequest object&gt;)</td></tr>
<tr><td><font color="#909090"><tt>&nbsp;&nbsp;<small>&nbsp;1116</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try:<br>
</tt></font></td></tr>
<tr><td><font color="#909090"><tt>&nbsp;&nbsp;<small>&nbsp;1117</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try:<br>
</tt></font></td></tr>
<tr><td bgcolor="#ffccee"><tt>=&gt;<small>&nbsp;1118</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result&nbsp;=&nbsp;self.application(environ,&nbsp;start_response)<br>
</tt></td></tr>
<tr><td><font color="#909090"><tt>&nbsp;&nbsp;<small>&nbsp;1119</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try:<br>
</tt></font></td></tr>
<tr><td><font color="#909090"><tt>&nbsp;&nbsp;<small>&nbsp;1120</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for&nbsp;data&nbsp;in&nbsp;result:<br>
</tt></font></td></tr>
<tr><td><small><font color="#909090"><strong>result</strong>&nbsp;= None, <strong>self</strong>&nbsp;= [Suspicious link removed]GIServer object&gt;, self.<strong>application</strong>&nbsp;= &lt;__main__.Abe instance&gt;, <strong>environ</strong>&nbsp;= {'HOME': '/root', 'LANG': 'en_US.UTF-8', 'LOGNAME': 'distroblitz', 'LS_COLORS': 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:d...*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:', 'MAIL': '/var/mail/distroblitz', 'PATH': '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'PATH_INFO': '', 'PWD': '/home/distroblitz', 'PYTHONUNBUFFERED': '1', 'QUERY_STRING': '', ...}, <strong>start_response</strong>&nbsp;= &lt;function start_response&gt;</font></small></td></tr></table>
<table width="100%" cellspacing=0 cellpadding=0 border=0>
<tr><td bgcolor="#d8bbff"><big>&nbsp;</big><a href="file:///usr/local/lib/python2.7/dist-packages/Abe/abe.py">/usr/local/lib/python2.7/dist-packages/Abe/abe.py</a> in <strong>__call__</strong>(abe=&lt;__main__.Abe instance&gt;, env={'HOME': '/root', 'LANG': 'en_US.UTF-8', 'LOGNAME': 'distroblitz', 'LS_COLORS': 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:d...*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:', 'MAIL': '/var/mail/distroblitz', 'PATH': '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'PATH_INFO': '', 'PWD': '/home/distroblitz', 'PYTHONUNBUFFERED': '1', 'QUERY_STRING': '', ...}, start_response=&lt;function start_response&gt;)</td></tr>
<tr><td><font color="#909090"><tt>&nbsp;&nbsp;<small>&nbsp;&nbsp;189</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;page['params']&nbsp;=&nbsp;urlparse.parse_qs(env['QUERY_STRING'])<br>
</tt></font></td></tr>
<tr><td><font color="#909090"><tt>&nbsp;&nbsp;<small>&nbsp;&nbsp;190</small>&nbsp;<br>
</tt></font></td></tr>
<tr><td bgcolor="#ffccee"><tt>=&gt;<small>&nbsp;&nbsp;191</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;fix_path_info(env):<br>
</tt></td></tr>
<tr><td><font color="#909090"><tt>&nbsp;&nbsp;<small>&nbsp;&nbsp;192</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;abe.log.debug("fixed&nbsp;path_info")<br>
</tt></font></td></tr>
<tr><td><font color="#909090"><tt>&nbsp;&nbsp;<small>&nbsp;&nbsp;193</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;redirect(page)<br>
</tt></font></td></tr>
<tr><td><small><font color="#909090"><em>global</em> <strong>fix_path_info</strong>&nbsp;= &lt;function fix_path_info&gt;, <strong>env</strong>&nbsp;= {'HOME': '/root', 'LANG': 'en_US.UTF-8', 'LOGNAME': 'distroblitz', 'LS_COLORS': 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:d...*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:', 'MAIL': '/var/mail/distroblitz', 'PATH': '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'PATH_INFO': '', 'PWD': '/home/distroblitz', 'PYTHONUNBUFFERED': '1', 'QUERY_STRING': '', ...}</font></small></td></tr></table>
<table width="100%" cellspacing=0 cellpadding=0 border=0>
<tr><td bgcolor="#d8bbff"><big>&nbsp;</big><a href="file:///usr/local/lib/python2.7/dist-packages/Abe/abe.py">/usr/local/lib/python2.7/dist-packages/Abe/abe.py</a> in <strong>fix_path_info</strong>(env={'HOME': '/root', 'LANG': 'en_US.UTF-8', 'LOGNAME': 'distroblitz', 'LS_COLORS': 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:d...*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:', 'MAIL': '/var/mail/distroblitz', 'PATH': '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'PATH_INFO': '', 'PWD': '/home/distroblitz', 'PYTHONUNBUFFERED': '1', 'QUERY_STRING': '', ...})</td></tr>
<tr><td><font color="#909090"><tt>&nbsp;&nbsp;<small>&nbsp;2057</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pi&nbsp;=&nbsp;env['PATH_INFO']<br>
</tt></font></td></tr>
<tr><td><font color="#909090"><tt>&nbsp;&nbsp;<small>&nbsp;2058</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pi&nbsp;=&nbsp;posixpath.normpath(pi)<br>
</tt></font></td></tr>
<tr><td bgcolor="#ffccee"><tt>=&gt;<small>&nbsp;2059</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;pi[-1]&nbsp;!=&nbsp;'/'&nbsp;and&nbsp;env['PATH_INFO'][-1]&nbsp;==&nbsp;'/':<br>
</tt></td></tr>
<tr><td><font color="#909090"><tt>&nbsp;&nbsp;<small>&nbsp;2060</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pi&nbsp;+=&nbsp;'/'<br>
</tt></font></td></tr>
<tr><td><font color="#909090"><tt>&nbsp;&nbsp;<small>&nbsp;2061</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;pi&nbsp;==&nbsp;env['PATH_INFO']:<br>
</tt></font></td></tr>
<tr><td><small><font color="#909090"><strong>pi</strong>&nbsp;= '.', <strong>env</strong>&nbsp;= {'HOME': '/root', 'LANG': 'en_US.UTF-8', 'LOGNAME': 'distroblitz', 'LS_COLORS': 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:d...*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:', 'MAIL': '/var/mail/distroblitz', 'PATH': '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'PATH_INFO': '', 'PWD': '/home/distroblitz', 'PYTHONUNBUFFERED': '1', 'QUERY_STRING': '', ...}</font></small></td></tr></table><p><strong>&lt;type 'exceptions.IndexError'&gt;</strong>: string index out of range
<br><tt><small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</small>&nbsp;</tt>args&nbsp;=
('string index out of range',)
<br><tt><small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</small>&nbsp;</tt>message&nbsp;=
'string index out of range'


<!-- The above is a description of an error in a Python program, formatted
     for a Web browser because the 'cgitb' module was enabled.  In case you
     are not reading this in a Web browser, here is the original traceback:

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/flup/server/fcgi_base.py", line 558, in run
    protocolStatus, appStatus = self.server.handler(self)
  File "/usr/lib/python2.7/dist-packages/flup/server/fcgi_base.py", line 1118, in handler
    result = self.application(environ, start_response)
  File "/usr/local/lib/python2.7/dist-packages/Abe/abe.py", line 191, in __call__
    if fix_path_info(env):
  File "/usr/local/lib/python2.7/dist-packages/Abe/abe.py", line 2059, in fix_path_info
    if pi[-1] != '/' and env['PATH_INFO'][-1] == '/':
IndexError: string index out of range

-->

any advice is greatly appreciated
YarkoL
Legendary
*
Offline Offline

Activity: 996
Merit: 1013


View Profile
June 02, 2014, 06:15:14 PM
 #73

any advice is greatly appreciated

Add

Code:
Options +ExecCGI

to your cgi-bin directory configuration and restart apache.

Hope that helps

“God does not play dice"
BitCoinDream
Legendary
*
Offline Offline

Activity: 2324
Merit: 1204

The revolution will be digital


View Profile
June 03, 2014, 10:14:09 AM
 #74

Can someone please point to any demo that is running on Abe ?

xxTeDYxx
Member
**
Offline Offline

Activity: 69
Merit: 10


View Profile
June 21, 2014, 03:26:08 PM
 #75

Hi I have a big problem three days I try to put it

Code:
root@vps74571:/home/plnc/bitcoin-abe#     python -m Abe.abe --config abe.conf --commit-bytes 100000 --no-serve
ddl_implicit_commit=true
create_table_epilogue=''
Abe/SqlAbstraction.py:468: Warning: Converting column 'a' from VARCHAR to TEXT
  sql.cursor().execute(stmt)
Abe/SqlAbstraction.py:468: Warning: Converting column 'b' from VARCHAR to TEXT
  sql.cursor().execute(stmt)
max_varchar=4294967295
No native type found for CLOB.
binary_type=binary
int_type=int
sequence_type=mysql
limit_style=native
Abe/SqlAbstraction.py:468: Warning: Converting column 'txout_scriptPubKey' from VARBINARY to BLOB
  sql.cursor().execute(stmt)
Abe/SqlAbstraction.py:468: Warning: Converting column 'txin_scriptSig' from VARBINARY to BLOB
  sql.cursor().execute(stmt)
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/plnc/bitcoin-abe/Abe/abe.py", line 2093, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/home/plnc/bitcoin-abe/Abe/abe.py", line 2087, in main
    store = make_store(args)
  File "/home/plnc/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 187, in __init__
    store.initialize()
  File "Abe/DataStore.py", line 841, 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 PLNcoin

Please HELP :<
bitcoinforhelp
Full Member
***
Offline Offline

Activity: 154
Merit: 100


View Profile
June 21, 2014, 07:48:42 PM
 #76

nice project, thank you for doing it for bitcoin community
xxTeDYxx
Member
**
Offline Offline

Activity: 69
Merit: 10


View Profile
June 23, 2014, 10:43:13 PM
 #77

Hiho =]

Where i can change name currency ? worldcoin to PLNcoin ?

http://37.187.225.10/

Please help !
supercointeam
Full Member
***
Offline Offline

Activity: 196
Merit: 100


View Profile
June 27, 2014, 03:20:02 AM
 #78

We need block explorer or crawler for coming soon upgrade, we can donate some super. Can anyone help here?

https://bitcointalk.org/index.php?topic=618552.0 is our official topic.

The source updated for 1.3 and we need simple block crawler or explorer for v. 1.3
ratty
Sr. Member
****
Offline Offline

Activity: 261
Merit: 250


View Profile
July 08, 2014, 01:21:25 AM
Last edit: July 08, 2014, 01:39:38 AM by ratty
 #79

I'm setting up Abe for Gabencoin just for fun.
It is a scrypt coin, and I have the litecoin_scrypt module installed from https://github.com/CryptoManiac/bitcoin-abe.

When it tries to load the data it stops immediately with this error:

Code:
MerkleRootMismatch: Block header Merkle root does not match its transactions. block hash=c012dbbcf46d3fcf17e4d66292775c5e34e54df16c3c62d45af2917435080000

I don't even know what that means, does it think the data is corrupt? I tried deleting my copy of the blockchain and let it fully sync up again, then turned off the daemon, but I still get that error right away.

My config:

Code:
datadir = [{
        "dirname": "/home/gabencoin/.gabencoin",
        "chain":   "Gabencoin",
        "code3":   "GBN",
        "address_version": "\u0010" }]

In case the address_version is wrong, an example address is 7nAd9jmuvgxtzmSLJFirWCTyoYguf5mA9k and I believe that is version 10 in hex.

I'm not even sure what else to look at.
xxTeDYxx
Member
**
Offline Offline

Activity: 69
Merit: 10


View Profile
August 14, 2014, 06:53:33 PM
 #80

Who can install bitcoin-abe and fastcgi?
I must have it and I'll pay for the configuration!
Pages: « 1 2 3 [4] 5 6 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!