Hi,
I've just followed this tutorial:
http://forum.bitcoin.org/index.php?topic=10321.0But when I start pushpoold I get this:
username@server:~/pushpool$ pushpoold --config=./config.json --debug=2 --stderr --foreground
[2011-07-11 21:34:41.395048] Debug output enabled
[2011-07-11 21:34:41.413287] Listening on host :: port 8342
[2011-07-11 21:34:41.413414] Listening on host :: port 8341
[2011-07-11 21:34:41.413743] Listening on host :: port 8332
[2011-07-11 21:34:41.413832] Listening on host 127.0.0.1 port 8338
[2011-07-11 21:34:41.470741] initialized
[2011-07-11 21:35:36.569301] memcached store(/pushpoold/cred_cache/username) failed: WRITE FAILURE
[2011-07-11 21:35:36.591146] memcached store(/pushpoold/cred_cache/username) failed: WRITE FAILURE
JSON protocol request:
{"method": "getwork", "params": [], "id":1}
* About to connect() to 127.0.0.1 port 8333 (#0)
* Trying 127.0.0.1... * TCP_NODELAY set
* Connection refused
* couldn't connect to host
* Closing connection #0
[2011-07-11 21:35:36.606349] HTTP request failed: couldn't connect to host
I've searched the forums, but couldn't find a appropriated answer
There must be something wrong
Something I forgot, or something that's not described in the topic I mentioned above. Also, does bitcoin(d) have to be running, and if so, how should it be configured, because that's all not explained in the topic.
Anyway, this is my config.json:
{
# network ports
"listen" : [
# binary protocol (default), port 8342
{ "port" : 8342 },
# HTTP JSON-RPC protocol, port 8341
{ "port" : 8341, "protocol" : "http-json" },
# HTTP JSON-RPC protocol, port 8344,
# with trusted proxy appserver.example.com forwarding
# requests to us
{ "port" : 8332, "protocol" : "http-json",
"proxy" : "127.0.0.1" },
# binary protocol, localhost-only port 8338
{ "host" : "127.0.0.1", "port" : 8338, "protocol" : "binary" }
],
# database settings
"database" : {
"engine" : "mysql",
"host" : "localhost",
"port" : 3306,
"name" : "******************",
"username" : "***************",
"password" : "***************",
"sharelog" : true,
"stmt.pwdb":"SELECT `password` FROM `pool_worker` WHERE `username` = ?",
"stmt.sharelog":"INSERT INTO shares (rem_host, username, our_result, upstream_result, reason, solution) VALUES (?, ?, ?, ?, ?, ?)"
},
# cache settings
"memcached" : {
"servers" : [
{ "host" : "127.0.0.1", "port" : 11211 }
]
},
"pid" : "/tmp/pushpoold.pid",
# overrides local hostname detection
#"forcehost" : "localhost.localdomain",
"log.requests" : "/tmp/request.log",
"log.shares" : "/tmp/shares.log",
# the server assumes longpolling (w/ SIGUSR1 called for each blk)
"longpoll.disable" : false,
# length of time to cache username/password credentials, in seconds
"auth.cred_cache.expire" : 75,
# RPC settings | Notice how this ISN'T port number 8332 this is becuase the same port number should not becuase inconjunction with the JSON RPC port other wise you'll get 500 errors
"rpc.url" : "
http://127.0.0.1:8333/",
"rpc.user" : "username",
"rpc.pass" : "test123",
# rewrite returned 'target' to difficulty-1?
"rpc.target.rewrite" : true
}
Thanks alot for the help
-Alex