Greedi
|
|
September 15, 2012, 08:54:59 PM |
|
no matter what i set in abe.conf i get /home/bitcoin-abe# python -m Abe.abe --config abe.conf Abe initialized. Listening on http://localhost:2750and i've set the port to 5000 and ip to the local lan ip, since it only me that should access it Have you removed the '#' from those lines? #port 2750 #host localhost
should become port 5000 host XX.XX.XX.XX
Which version or Git commit do you use? yes, i did remoce those the newest one
|
|
|
|
John Tobey (OP)
|
|
September 16, 2012, 02:56:30 AM |
|
the newest one
Well, with this abe.conf... port 5000 host 127.0.0.1 dbtype = psycopg2 connect-args = { "database": "abe" } datadir = /no/such/directory
I get this output as expected: $ python -m Abe.abe --config abe.conf Skipping datadir /no/such/directory: [Errno 2] No such file or directory: '/no/such/directory/blk0001.dat' Abe initialized. Listening on http://127.0.0.1:5000
What do you get when you put in your dbtype and connect-args? What are your Python and OS versions?
|
|
|
|
Greedi
|
|
September 16, 2012, 04:50:57 PM |
|
the newest one
Well, with this abe.conf... port 5000 host 127.0.0.1 dbtype = psycopg2 connect-args = { "database": "abe" } datadir = /no/such/directory
I get this output as expected: $ python -m Abe.abe --config abe.conf Skipping datadir /no/such/directory: [Errno 2] No such file or directory: '/no/such/directory/blk0001.dat' Abe initialized. Listening on http://127.0.0.1:5000
What do you get when you put in your dbtype and connect-args? What are your Python and OS versions? oh i'm sorry, i just saw i've edited on the wrong server, i have 2 server running and testing abe on, and i've edited the conf on wrong serv as i tested on, all works fine is there a way to edit the limit on how many records there can be shown? "I'm sorry, this address has too many records to display."
|
|
|
|
John Tobey (OP)
|
|
September 16, 2012, 06:45:21 PM |
|
is there a way to edit the limit on how many records there can be shown?
"I'm sorry, this address has too many records to display."
# History pages of addresses with more than this many receipts will be # not be shown. This protects against denial of service. Use -1 for # no limit. #address-history-rows-max 1000
|
|
|
|
Greedi
|
|
September 16, 2012, 07:06:29 PM |
|
is there a way to edit the limit on how many records there can be shown?
"I'm sorry, this address has too many records to display."
# History pages of addresses with more than this many receipts will be # not be shown. This protects against denial of service. Use -1 for # no limit. #address-history-rows-max 1000 thank you very much if you have a LTC donation addy, i'll like to donate in LTC; since i do not use BTC
|
|
|
|
John Tobey (OP)
|
|
September 17, 2012, 03:02:57 AM |
|
thank you very much if you have a LTC donation addy, i'll like to donate in LTC; since i do not use BTC Much appreciated. Assuming one can transfer keys from BTC/NMC to LTC clients, you could plug either of my donation addrs into /q/translate_address, and I can get the coins when I need them. I'll see the donation on any LTC-enabled Abe server automatically when I look up my other donations. Or if you want to donate a *lot* of LTC, I'd better go download it...
|
|
|
|
|
grimd34th
Member
Offline
Activity: 89
Merit: 10
|
|
October 18, 2012, 10:05:49 PM |
|
fresh clone, getting this block_tx 1 307 block_tx 1 308 Failed to catch up {'blkfile_number': 1, 'dirname': '/home/REDACTED/.bitcoin', 'chain_id': None, 'id': 1L, 'blkfile_offset': 0} Traceback (most recent call last): File "Abe/DataStore.py", line 2281, in catch_up store.catch_up_dir(dircfg) File "Abe/DataStore.py", line 2315, in catch_up_dir store.import_blkdat(dircfg, ds) File "Abe/DataStore.py", line 2437, in import_blkdat store.import_block(b, chain_ids = chain_ids) File "Abe/DataStore.py", line 1712, in import_block if store.is_descended_from(block_id, int(oblock_id)): File "Abe/DataStore.py", line 1557, in is_descended_from block = store._load_block(block_id) File "Abe/DataStore.py", line 1537, in _load_block block_id, int(height), TypeError: int() argument must be a string or a number, not 'NoneType'
|
|
|
|
John Tobey (OP)
|
|
October 19, 2012, 05:34:44 PM |
|
File "Abe/DataStore.py", line 1537, in _load_block block_id, int(height), TypeError: int() argument must be a string or a number, not 'NoneType'
Good, good bug report. It made me find lots of bugs related to loading blocks out of order. With a fresh copy of the block chain, I don't think this will happen, because bitcoind writes the blocks in order and omits orphan blocks. Anyway, my fixes committed today may get you past the error.
|
|
|
|
grimd34th
Member
Offline
Activity: 89
Merit: 10
|
|
October 19, 2012, 08:53:25 PM |
|
MOAR BOAR HAS MOAR block_tx 1 308 commit Failed to catch up {'blkfile_number': 1, 'dirname': '/home/REDACTED/.bitcoin', 'chain_id': None, 'id': 1L, 'blkfile_offset': 110603} Traceback (most recent call last): File "Abe/DataStore.py", line 2329, in catch_up store.catch_up_dir(dircfg) File "Abe/DataStore.py", line 2363, in catch_up_dir store.import_blkdat(dircfg, ds) File "Abe/DataStore.py", line 2485, in import_blkdat store.import_block(b, chain_ids = chain_ids) File "Abe/DataStore.py", line 1646, in import_block store.find_prev(hashPrev)) File "Abe/DataStore.py", line 1600, in find_prev store.binout_int(chain_work), File "Abe/DataStore.py", line 429, in <lambda> store.binout_int = lambda x: int(binout_hex(x), 16) TypeError: int() can't convert non-string with explicit base
|
|
|
|
mwally
Newbie
Offline
Activity: 21
Merit: 0
|
|
October 22, 2012, 07:57:56 AM Last edit: October 22, 2012, 12:45:03 PM by mwally |
|
I'm going to make a high-quality video series on installing and using Abe in a VM. I can't guarantee how soon I can get it all done, but I'm going to make an effort. I will update this post with links as the individual videos are complete. Part 1: http://www.youtube.com/watch?v=UImXoukuF5YPart 2: http://www.youtube.com/watch?v=c6V70BdM7Sw
|
|
|
|
John Tobey (OP)
|
|
October 23, 2012, 01:59:28 AM |
|
Nice! Now I've added "privacy" to the top of the feature list.
|
|
|
|
John Tobey (OP)
|
|
October 23, 2012, 07:27:15 AM |
|
MOAR BOAR HAS MOAR block_tx 1 308 commit Failed to catch up {'blkfile_number': 1, 'dirname': '/home/REDACTED/.bitcoin', 'chain_id': None, 'id': 1L, 'blkfile_offset': 110603} Traceback (most recent call last): File "Abe/DataStore.py", line 2329, in catch_up store.catch_up_dir(dircfg) File "Abe/DataStore.py", line 2363, in catch_up_dir store.import_blkdat(dircfg, ds) File "Abe/DataStore.py", line 2485, in import_blkdat store.import_block(b, chain_ids = chain_ids) File "Abe/DataStore.py", line 1646, in import_block store.find_prev(hashPrev)) File "Abe/DataStore.py", line 1600, in find_prev store.binout_int(chain_work), File "Abe/DataStore.py", line 429, in <lambda> store.binout_int = lambda x: int(binout_hex(x), 16) TypeError: int() can't convert non-string with explicit base Thanks. I have fixed this error and many others related to out-of-sequence blockfiles. I find it strange that the first block in your blockfile has 308 transactions. That is the meaning of the "block_tx 1 308" message. Perhaps bitcoind has become creative in the order in which it saves blocks to disk. This may slow down Abe's initial load too much. Please report the version of bitcoind that created your block file (and the currency if not BTC) so I can check.
|
|
|
|
becoin
Legendary
Offline
Activity: 3431
Merit: 1233
|
|
October 23, 2012, 08:10:08 AM |
|
I'm going to make a high-quality video series on installing and using Abe in a VM. It is much appreciated.
|
|
|
|
John Tobey (OP)
|
|
October 23, 2012, 09:14:03 AM |
|
I've released 0.7 to PyPI and GitHub. Changes since 0.6: - Tell search engines not to crawl the whole chain.
- Raw transaction output in JSON format.
- Prevent denial of service via huge address history.
- Optional short addresses resembling Firstbits.
- Option to omit signature scripts for 20% space reduction.
- HTTP API function: getdifficulty.
- Work around failure to quit on Ctrl-C with SQLite.
- Report line number of errors in config file.
- Fixed bugs that cause wrong statistics when blocks arrive out of order.
- Minor fixes and updates.
|
|
|
|
finway
|
|
October 23, 2012, 11:48:19 AM |
|
Nice! Thanks for your work.
|
|
|
|
grimd34th
Member
Offline
Activity: 89
Merit: 10
|
|
October 24, 2012, 07:09:39 PM |
|
MOAR BOAR HAS MOAR block_tx 1 308 commit Failed to catch up {'blkfile_number': 1, 'dirname': '/home/REDACTED/.bitcoin', 'chain_id': None, 'id': 1L, 'blkfile_offset': 110603} Traceback (most recent call last): File "Abe/DataStore.py", line 2329, in catch_up store.catch_up_dir(dircfg) File "Abe/DataStore.py", line 2363, in catch_up_dir store.import_blkdat(dircfg, ds) File "Abe/DataStore.py", line 2485, in import_blkdat store.import_block(b, chain_ids = chain_ids) File "Abe/DataStore.py", line 1646, in import_block store.find_prev(hashPrev)) File "Abe/DataStore.py", line 1600, in find_prev store.binout_int(chain_work), File "Abe/DataStore.py", line 429, in <lambda> store.binout_int = lambda x: int(binout_hex(x), 16) TypeError: int() can't convert non-string with explicit base Thanks. I have fixed this error and many others related to out-of-sequence blockfiles. I find it strange that the first block in your blockfile has 308 transactions. That is the meaning of the "block_tx 1 308" message. Perhaps bitcoind has become creative in the order in which it saves blocks to disk. This may slow down Abe's initial load too much. Please report the version of bitcoind that created your block file (and the currency if not BTC) so I can check. any time there is a new commit im on it
|
|
|
|
John Tobey (OP)
|
|
October 29, 2012, 07:33:55 PM |
|
A maintenance release for upgraders: 0.7.1* Fixed bug affecting database upgrade. Credit: bitfoo
|
|
|
|
K1773R
Legendary
Offline
Activity: 1792
Merit: 1008
/dev/null
|
|
November 28, 2012, 08:39:35 AM Last edit: November 28, 2012, 02:52:29 PM by K1773R |
|
if i try to use it with i0coin or namecoin i get the following output: Traceback (most recent call last): File "/usr/lib/python2.6/wsgiref/handlers.py", line 93, in run self.result = application(self.environ, self.start_response) File "/usr/local/lib/python2.6/dist-packages/Abe/abe.py", line 205, in __call__ handler(page) File "/usr/local/lib/python2.6/dist-packages/Abe/abe.py", line 459, in handle_chain ss = int(ss) TypeError: int() argument must be a string or a number, not 'NoneType'
abe.conf: datadir = [{ "dirname": "/home/k1773r/.i0coin", "chain": "I0Coin", "code3": "I0C", "address_version": "\u0069" }]
datadir += [{ "dirname": "/home/k1773r/.namecoin", "chain": "NameCoin", "code3": "NMC", "address_version": "\u0034" }]
|
[GPG Public Key]BTC/DVC/TRC/FRC: 1 K1773RbXRZVRQSSXe9N6N2MUFERvrdu6y ANC/XPM A K1773RTmRKtvbKBCrUu95UQg5iegrqyeA NMC: N K1773Rzv8b4ugmCgX789PbjewA9fL9Dy1 LTC: L Ki773RBuPepQH8E6Zb1ponoCvgbU7hHmd EMC: E K1773RxUes1HX1YAGMZ1xVYBBRUCqfDoF BQC: b K1773R1APJz4yTgRkmdKQhjhiMyQpJgfN
|
|
|
John Tobey (OP)
|
|
November 28, 2012, 06:09:01 PM |
|
Traceback (most recent call last): File "/usr/lib/python2.6/wsgiref/handlers.py", line 93, in run self.result = application(self.environ, self.start_response) File "/usr/local/lib/python2.6/dist-packages/Abe/abe.py", line 205, in __call__ handler(page) File "/usr/local/lib/python2.6/dist-packages/Abe/abe.py", line 459, in handle_chain ss = int(ss) TypeError: int() argument must be a string or a number, not 'NoneType'
Thanks for the report. I've replied on GitHub. Unfortunately, I don't think it will be easy to debug, since it appears to depend on the order the blocks were loaded, and that in turn depends on network timings. I will post when I have time to address this. Meanwhile, I suggest using an older version of Abe, either v0.6 or the Sept. 15 commit ( fc10484).
|
|
|
|
|