When I connect Phoenix, it tells me 'failed to connect, retrying'. When I examine my apache error log, I see this:
[Fri May 06 01:30:05 2011] [error] [client xxx.113] PHP Notice: Undefined index: lpurl in /home/rrb/bitproxy/index.php on line 70
This notice is expected. PHP likes to whine if you access array keys that aren't defined, but it's impractical to always check if they're set first.
[Fri May 06 01:30:05 2011] [error] [client xxx.113] PHP Notice: Undefined variable: http_response_header in /home/rrb/bitproxy/common.inc.php on line 117
This is a bit troubling, as
$http_response_header is a reserved variable. Which version of PHP are you using? Did you make sure to enter "http://" at the beginning of each pool URL? (Something like "deepbit.net:8332" will not work; you need "
http://deepbit.net:8332".) You may also get this error if the HTTP host can't be reached at all, for example due to a DNS lookup failure.
[Fri May 06 01:30:05 2011] [error] [client xxx.113] PHP Warning: Invalid argument supplied for foreach() in /home/rrb/bitproxy/index.php on line 215
This is related to the previous issue; fixing it should make this one go away.
Additionally, you might find this of interest. When I hit the admin url, the admin interface seems to work fine but merely hitting /admin/ throws the following into the apache error log:
[Fri May 06 01:31:15 2011] [error] [client xxx.252] PHP Notice: Undefined index: format in /home/rrb/bitproxy/mvc.inc.php on line 38
[Fri May 06 01:31:15 2011] [error] [client xxx.252] PHP Notice: Undefined index: tempdata in /home/rrb/bitproxy/common.inc.php on line 177
[Fri May 06 01:31:15 2011] [error] [client xxx.252] PHP Notice: Undefined index: tempdata in /home/rrb/bitproxy/common.inc.php on line 177
Yes, this is PHP being picky again. You can ignore these.
1) In your database schema, in the worker_pool table, the type for the 'enabled' field is a tinyint and should be boolean it looks like, unless you have some special state info to store that's not 0 or 1?
MySQL does not have a real boolean type; BOOLEAN is an alias for TINYINT(1).
2) I discovered #1 while attempting to go back and edit the workers and pool info that I'd setup the first time, in an effort to debug what was happening with the behavior I reported above. While using the various "edit" dialogs, I'm hitting blank pages being returned, i.e. in the "edit pool" dialog at
http://xxx/admin/pool.php?id=1&action=edit - it returns nothing in View Source as well.
Hmm, this is almost certainly a bug. Can you edit other pools, or is it just this one? Does anything show up in the Apache logs when you hit this page?
Having said that, and after editing the databases by hand (because it looks like I had the port number to the pool AND my login credentials entered incorrectly), I got further with the miner now (I'm guessing before it would not connect because the credentials at the pool were incorrect. Here's what happens now:
[06/05/2011 03:18:17] Connected to server
[06/05/2011 03:18:23] Disconnected from server
[06/05/2011 03:18:23] Result: 5b433c62 rejected
[06/05/2011 03:18:24] Connected to server
[06/05/2011 03:18:26] Disconnected from server
[06/05/2011 03:18:26] Result: 9e17d0db rejected
[06/05/2011 03:18:27] Connected to server
[06/05/2011 03:18:31] Disconnected from server
My first instinct was to turn on keepalives in the webserver, I did so and set them to allow an unlimited number with a 30 second timeout, but it only prolonged the generation of the same errors by 10 or 20 seconds. In the end it still disconnected my client from the server. I tried m0mchil's miner with similar results:
06/05/2011 03:25:22, Unexpected error:
Traceback (most recent call last):
File "BitcoinMiner.pyo", line 141, in mine
File "BitcoinMiner.pyo", line 168, in sendResult
File "BitcoinMiner.pyo", line 177, in getwork
File "BitcoinMiner.pyo", line 204, in request
TypeError: string indices must be integers
248779 khash/s
This after running 10 to 20 seconds also. Not seeing anything in the logs that would give me any indication of the problem. Without cranking up a sniffer, I'm out of ideas; any suggestions?
This is definitely weird. I use poclbm without any issues, so you should be able to use it too. I'm mostly worried about the rejected shares in the first example. Were all shares rejected or just those two?
Using a sniffer might be a good idea, since it's hard to tell just from these logs exactly what's going wrong.