Pages:
Author

Topic: [ANNOUNCE] RPC Ace - a simple cut-down block explorer alternative - page 3. (Read 15664 times)

sr. member
Activity: 264
Merit: 250
I would love an option to allow the output to be in JSON form, so people can use as a makeshift API :O

It's already in my TO-DO list Smiley Can't quite say when I'll get around to release it, though, but it's coming.
hero member
Activity: 924
Merit: 511
I would love an option to allow the output to be in JSON form, so people can use as a makeshift API :O
sr. member
Activity: 264
Merit: 250
I'm out of clues, too. When you run tally.php on OS X, do you get the same erratic and random behavior I noticed on your VPS, where the daemon sometimes respond to RPC calls and sometimes not?
Yes

With both the default 5.4 and homebrew's 5.6

Mhm... I'm all dried up on ideas. I can't manage to reproduce this problem on OS X or any version of Mint, Arch or Debian no matter what I try, not with Fedoracoin or any other cryptocurrency.
hero member
Activity: 597
Merit: 500
Fedoracoin tallies perfectly for me on OS X 10.9 with PHP 5.4 and 5.6, and on Linux Mint with PHP 5.5. The extensions required are JSON and CURL, no more. Are you using the latest version of easybitcoin.php, from the link I provide on my RPC Ace github repository?

I'm starting to think your computer equipment is cursed with bad luck Undecided
Yes to both. JSON support is enabled and version 1.2.1. I compiled --with-curl as well. I'm using the easybitcoin.php version which you linked to. I'm sorry man, I don't want to make it look like everyone is having this issue but it's strange that I'm having the problem on a VPS and my personal mac. I really must be missing something else.

Are you using homebrew? If so can you give me a list of stuff you installed? I've got php56 --with-curl, php56-pcntl and curl.
I'm out of clues, too. When you run tally.php on OS X, do you get the same erratic and random behavior I noticed on your VPS, where the daemon sometimes respond to RPC calls and sometimes not?
Yes

With both the default 5.4 and homebrew's 5.6
sr. member
Activity: 264
Merit: 250
Fedoracoin tallies perfectly for me on OS X 10.9 with PHP 5.4 and 5.6, and on Linux Mint with PHP 5.5. The extensions required are JSON and CURL, no more. Are you using the latest version of easybitcoin.php, from the link I provide on my RPC Ace github repository?

I'm starting to think your computer equipment is cursed with bad luck Undecided
Yes to both. JSON support is enabled and version 1.2.1. I compiled --with-curl as well. I'm using the easybitcoin.php version which you linked to. I'm sorry man, I don't want to make it look like everyone is having this issue but it's strange that I'm having the problem on a VPS and my personal mac. I really must be missing something else.

Are you using homebrew? If so can you give me a list of stuff you installed? I've got php56 --with-curl, php56-pcntl and curl.

No, not using homebrew. On OS X I am using both the PHP 5.4 build that is part of the OS X developer suite, and my own PHP 5.6 build. Both work identically and both run tally.php for Fedoracoin and all other coins I test just fine - just as when I test RPC Ace/tally on Linux Mint.

The modules and configuration options PHP is built with are irrelevant in this case as nothing in RPC Ace or tally.php depends on that. The only thing that matters is that JSON and CURL support is available (required by easybitcoin.php), and that you're running PHP 5.4 at minimum.

I'm out of clues, too. When you run tally.php on OS X, do you get the same erratic and random behavior I noticed on your VPS, where the daemon sometimes respond to RPC calls and sometimes not?
hero member
Activity: 597
Merit: 500
Same exact problem on my Mac.

PHP 5.6.0 (cli) (built: Sep 24 2014 18:20:14)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2014 Zend Technologies


Can I get one of you guys who isn't having the issue to tell me what php version and modules they have installed?

Fedoracoin tallies perfectly for me on OS X 10.9 with PHP 5.4 and 5.6, and on Linux Mint with PHP 5.5. The extensions required are JSON and CURL, no more. Are you using the latest version of easybitcoin.php, from the link I provide on my RPC Ace github repository?

I'm starting to think your computer equipment is cursed with bad luck Undecided
Yes to both. JSON support is enabled and version 1.2.1. I compiled --with-curl as well. I'm using the easybitcoin.php version which you linked to. I'm sorry man, I don't want to make it look like everyone is having this issue but it's strange that I'm having the problem on a VPS and my personal mac. I really must be missing something else.


Are you using homebrew? If so can you give me a list of stuff you installed? I've got php56 --with-curl, php56-pcntl and curl.
sr. member
Activity: 264
Merit: 250
Same exact problem on my Mac.

PHP 5.6.0 (cli) (built: Sep 24 2014 18:20:14)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2014 Zend Technologies


Can I get one of you guys who isn't having the issue to tell me what php version and modules they have installed?

Fedoracoin tallies perfectly for me on OS X 10.9 with PHP 5.4 and 5.6, and on Linux Mint with PHP 5.5. The extensions required are JSON and CURL, no more. Are you using the latest version of easybitcoin.php, from the link I provide on my RPC Ace github repository?

I'm starting to think your computer equipment is cursed with bad luck Undecided
hero member
Activity: 548
Merit: 501
Same exact problem on my Mac.

PHP 5.6.0 (cli) (built: Sep 24 2014 18:20:14)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2014 Zend Technologies


Can I get one of you guys who isn't having the issue to tell me what php version and modules they have installed?

Here is mine:

Code:
penambang@host:~/rpc-ace/extras$ php -v
PHP 5.5.9-1ubuntu4.4 (cli) (built: Sep  4 2014 06:57:30)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
    with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies

penambang@host:~/rpc-ace/extras$ php -m
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dba
dom
ereg
exif
fileinfo
filter
ftp
gettext
hash
iconv
json
libxml
mbstring
mhash
openssl
pcntl
pcre
PDO
Phar
posix
readline
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache

Working fine generating TIPS richlist wallet.
hero member
Activity: 597
Merit: 500
Same exact problem on my Mac.

PHP 5.6.0 (cli) (built: Sep 24 2014 18:20:14)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2014 Zend Technologies


Can I get one of you guys who isn't having the issue to tell me what php version and modules they have installed?
hero member
Activity: 597
Merit: 500
http://pastebin.com/mQhBeWf5

I rebooted the system (no wallet daemons running), deleted all blocks and chainstate, ran the daemon for Deepcoin and confirmed it was redownloading blocks, ran tally.php and still got the same error.

Current Deepcoin.conf:

Quote
rpcuser=deepcoinrpc
rpcpassword=CjpsPgaiduokE6wWmYkA9iTPnS2FFp5aTbxKEgEFaTZz
daemon=1
rpcallowip=127.0.0.1
txindex=1
listen=1

I'll try updating to php 5.6 next.

Could try adding server=1
Didn't make a difference, thanks though.

Deleted all blockchain info and started over, same .conf same error. I have php5-cli php5-common php5-curl php5-fpm php5-mysql installed. Am I missing anything? I'll give you root access to my vps if I can get you to troubleshoot.

BTW RPC-Ace runs beautifully, I don't have any problems with it.

If you set up a user who is a "sudoer" I can take a look. Just message me with the details.

Sweet, let me set that up.
sr. member
Activity: 264
Merit: 250
Deleted all blockchain info and started over, same .conf same error. I have php5-cli php5-common php5-curl php5-fpm php5-mysql installed. Am I missing anything? I'll give you root access to my vps if I can get you to troubleshoot.

BTW RPC-Ace runs beautifully, I don't have any problems with it.

If you set up a user who is a "sudoer" I can take a look. Just message me with the details.
hero member
Activity: 806
Merit: 1000
COINMIXER.NET
http://pastebin.com/mQhBeWf5

I rebooted the system (no wallet daemons running), deleted all blocks and chainstate, ran the daemon for Deepcoin and confirmed it was redownloading blocks, ran tally.php and still got the same error.

Current Deepcoin.conf:

Quote
rpcuser=deepcoinrpc
rpcpassword=CjpsPgaiduokE6wWmYkA9iTPnS2FFp5aTbxKEgEFaTZz
daemon=1
rpcallowip=127.0.0.1
txindex=1
listen=1

I'll try updating to php 5.6 next.

Could try adding server=1
hero member
Activity: 597
Merit: 500
I'll try updating to php 5.6 next.

Or even updating that old 5.4.4 to the latest 5.4 might do the trick. 5.4.30 or so is the latest build, so I suspect some old bug in 5.4.4 is getting in your way.
Okay I installed php 5.5:

PHP 5.5.17-1~dotdeb.1 (cli) (built: Sep 19 2014 01:56:56)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
    with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies


Deleted all blockchain info and started over, same .conf same error. I have php5-cli php5-common php5-curl php5-fpm php5-mysql installed. Am I missing anything? I'll give you root access to my vps if I can get you to troubleshoot.

BTW RPC-Ace runs beautifully, I don't have any problems with it.
sr. member
Activity: 264
Merit: 250
I'll try updating to php 5.6 next.

Or even updating that old 5.4.4 to the latest 5.4 might do the trick. 5.4.30 or so is the latest build, so I suspect some old bug in 5.4.4 is getting in your way.
hero member
Activity: 597
Merit: 500
http://pastebin.com/mQhBeWf5

I rebooted the system (no wallet daemons running), deleted all blocks and chainstate, ran the daemon for Deepcoin and confirmed it was redownloading blocks, ran tally.php and still got the same error.

Current Deepcoin.conf:

Quote
rpcuser=deepcoinrpc
rpcpassword=CjpsPgaiduokE6wWmYkA9iTPnS2FFp5aTbxKEgEFaTZz
daemon=1
rpcallowip=127.0.0.1
txindex=1
listen=1

I'll try updating to php 5.6 next.
hero member
Activity: 597
Merit: 500
Then I basically run the command again, it runs again for a couple thousand blocks and then stops. Cue repeating till it tells me there are no more blocks.

It definitely looks like your block chain still isn't built with full transaction indexing. Are you sure you set "txindex=1" in the .conf (and saved the file), daemon/wallet shut down, all block chain files and databases deleted, then starting daemon up again?

See what happens if you update that old PHP 5.4 to something new like 5.6.

Add.: yep, you're not doing full transaction indexing. I just synced the Fedoracoin chain again and tallied up to block 31k - it gives me tx# 409538 at 31k blocks, but your log shows tx# 409187.
Okay let me try that again.
sr. member
Activity: 264
Merit: 250
Then I basically run the command again, it runs again for a couple thousand blocks and then stops. Cue repeating till it tells me there are no more blocks.

It definitely looks like your block chain still isn't built with full transaction indexing. Are you sure you set "txindex=1" in the .conf (and saved the file), daemon/wallet shut down, all block chain files and databases deleted, then starting daemon up again?

See what happens if you update that old PHP 5.4 to something new like 5.6.

Add.: yep, you're not doing full transaction indexing. I just synced the Fedoracoin chain again and tallied up to block 31k - it gives me tx# 409538 at 31k blocks, but your log shows tx# 409187.
hero member
Activity: 597
Merit: 500
Are you running PHP 5.4 or newer? I tried syncing 75k blocks on Fedoracoin and then tallying all addresses found and it worked just fine with no errors.
PHP 5.4.4-14+deb7u14 (cli) (built: Aug 21 2014 08:36:44)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies

What am I doing wrong? :/

What error are you getting now with full transaction indexing? You didn't change anything in tally.php apart from configuring port/user/pass?

Here is my current tally.php: http://pastebin.com/Ctn4hgYQ

It runs for a couple thousand blocks and then just stops.

Quote
php tally.php output.txt
resuming from block 30286 - 371043 blocks ... PHP Notice:  Undefined index: ELGq9GF2BbaF8XqhMipf1nnaCUQELNSU4j in /usr/share/nginx/www/tally/tallytips.php on line 82
PHP Notice:  Undefined index: EdQy8hvZDFDyoo9twwxxkoEyY9Q8vMQJqn in /usr/share/nginx/www/tally/tallytips.php on line 82
PHP Notice:  Undefined index: ELRiUWnnfYwUcWJySdbtbP83YSRLf6V5mH in /usr/share/nginx/www/tally/tallytips.php on line 82
PHP Notice:  Undefined index: EaXMJdGA7ne7sLayH7vV7t7cM3x6pDxx6w in /usr/share/nginx/www/tally/tallytips.php on line 82
PHP Notice:  Undefined index: ERwtvqxmK36VSP34Pw6TidkYjgeH4TT2AV in /usr/share/nginx/www/tally/tallytips.php on line 82
PHP Notice:  Undefined index: Ee8Zeb7amTDMRpR5Y6EyscCTRMbuBif97k in /usr/share/nginx/www/tally/tallytips.php on line 82
PHP Notice:  Undefined index: EZJ2SMsJpnAFXrHpSDEsmeHyNQmw2Dfi22 in /usr/share/nginx/www/tally/tallytips.php on line 82
PHP Notice:  Undefined index: EXp2TEnZcYKSMGgVb3jWZsQS6sWM3X6Por in /usr/share/nginx/www/tally/tallytips.php on line 82
PHP Notice:  Undefined index: EVaqNaWdUJeru8eRJ5Y1QuH2pirvV4Bc31 in /usr/share/nginx/www/tally/tallytips.php on line 82
PHP Notice:  Undefined index: EeirvLuiQoddCJazniWMXuyNoNYV3euGAD in /usr/share/nginx/www/tally/tallytips.php on line 82
PHP Notice:  Undefined index: EYcqCnPqYWEspVNbNMrnoDchF8SVrc9jJV in /usr/share/nginx/www/tally/tallytips.php on line 82
PHP Notice:  Undefined index: EVdcajnBBAQWGow83knbZ6sgfWApLUNvEX in /usr/share/nginx/www/tally/tallytips.php on line 82
PHP Notice:  Undefined index: ER5MoXnrvowL5c6D2HjHMHgLBzMv259swL in /usr/share/nginx/www/tally/tallytips.php on line 82
PHP Notice:  Undefined index: EQVD7cPE3P4YHisARmnfYUbjU3QoGNJXKk in /usr/share/nginx/www/tally/tallytips.php on line 82
PHP Notice:  Undefined index: EZAiTpcMpqr4qKWtr1uPrRvv12XQHK1PMy in /usr/share/nginx/www/tally/tallytips.php on line 82
PHP Notice:  Undefined index: EPqbSsaaemsPrp2d389CiyURA7z7gcg1hs in /usr/share/nginx/www/tally/tallytips.php on line 82
PHP Notice:  Undefined index: ERR72owfrMDnLMXtM82eW7AkhfwtrJ9PdX in /usr/share/nginx/www/tally/tallytips.php on line 82
PHP Notice:  Undefined index: EcoRSc386PgzGutQFQ2HtxB19i8mU4LZGr in /usr/share/nginx/www/tally/tallytips.php on line 82
31000 (tx# 409187)   32000 (tx# 417046)   PHP Warning:  Invalid argument supplied for foreach() in /usr/share/nginx/www/tally/tallytips.php on line 71
PHP Warning:  Invalid argument supplied for foreach() in /usr/share/nginx/www/tally/tallytips.php on line 75
PHP Warning:  Invalid argument supplied for foreach() in /usr/share/nginx/www/tally/tallytips.php on line 71
PHP Warning:  Invalid argument supplied for foreach() in /usr/share/nginx/www/tally/tallytips.php on line 75
PHP Warning:  Invalid argument supplied for foreach() in /usr/share/nginx/www/tally/tallytips.php on line 71
PHP Warning:  Invalid argument supplied for foreach() in /usr/share/nginx/www/tally/tallytips.php on line 75
PHP Warning:  Invalid argument supplied for foreach() in /usr/share/nginx/www/tally/tallytips.php on line 71
PHP Warning:  Invalid argument supplied for foreach() in /usr/share/nginx/www/tally/tallytips.php on line 75
PHP Warning:  Invalid argument supplied for foreach() in /usr/share/nginx/www/tally/tallytips.php on line 71
PHP Warning:  Invalid argument supplied for foreach() in /usr/share/nginx/www/tally/tallytips.php on line 75
PHP Warning:  Invalid argument supplied for foreach() in /usr/share/nginx/www/tally/tallytips.php on line 71
PHP Warning:  Invalid argument supplied for foreach() in /usr/share/nginx/www/tally/tallytips.php on line 75
PHP Warning:  Invalid argument supplied for foreach() in /usr/share/nginx/www/tally/tallytips.php on line 71
PHP Warning:  Invalid argument supplied for foreach() in /usr/share/nginx/www/tally/tallytips.php on line 75
PHP Warning:  Invalid argument supplied for foreach() in /usr/share/nginx/www/tally/tallytips.php on line 71
PHP Warning:  Invalid argument supplied for foreach() in /usr/share/nginx/www/tally/tallytips.php on line 75
PHP Warning:  Invalid argument supplied for foreach() in /usr/share/nginx/www/tally/tallytips.php on line 66
aborted - 421905 transactions through 398644 unique addresses counted

Then I basically run the command again, it runs again for a couple thousand blocks and then stops. Cue repeating till it tells me there are no more blocks.
sr. member
Activity: 264
Merit: 250
Are you running PHP 5.4 or newer? I tried syncing 75k blocks on Fedoracoin and then tallying all addresses found and it worked just fine with no errors.
PHP 5.4.4-14+deb7u14 (cli) (built: Aug 21 2014 08:36:44)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies

What am I doing wrong? :/

What error are you getting now with full transaction indexing? You didn't change anything in tally.php apart from configuring port/user/pass?
hero member
Activity: 597
Merit: 500
Deleted all block data and made sure the .conf with txindex=1 was in place before starting the daemon again. Downloaded all the blocks and tried again, same issue.

Are you running PHP 5.4 or newer? I tried syncing 75k blocks on Fedoracoin and then tallying all addresses found and it worked just fine with no errors.
PHP 5.4.4-14+deb7u14 (cli) (built: Aug 21 2014 08:36:44)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies

What am I doing wrong? :/
Pages:
Jump to: