netsky
Newbie
Offline
Activity: 2
Merit: 0
|
|
June 08, 2011, 02:04:47 PM |
|
I installed pushpool on a fresh ubuntu 11, but for some reason it seems the configuration files are not recognised. I tripple checked that the .conf and .json files are in the right folders, but bitcoind doesnt seem to see the file, it just keeps asking for it. If I set rpcpassword and rpcuser when starting bitcoind it seems to start. If I then try to start pushpool I get a "json parse error".
Any help would be greatly appreciated.
Are you creating your server.json from an iDevice or through another ssh client than putty? If so, try vim or pico instead of nano (if you're using that).
|
|
|
|
dikidera
|
|
June 08, 2011, 06:21:19 PM |
|
Hmm, i wonder what this is These are two example configuration files, one for pushpool, one for blkmond which is used to notify pushpool of new blocks when longpolling is used You took the question seriously, i was replying to the user above.
|
|
|
|
davout
Legendary
Offline
Activity: 1372
Merit: 1008
1davout
|
|
June 08, 2011, 07:18:58 PM |
|
You took the question seriously, i was replying to the user above.
|
|
|
|
FreddyE
Newbie
Offline
Activity: 27
Merit: 0
|
|
June 09, 2011, 05:48:05 AM |
|
I installed pushpool on a fresh ubuntu 11, but for some reason it seems the configuration files are not recognised. I tripple checked that the .conf and .json files are in the right folders, but bitcoind doesnt seem to see the file, it just keeps asking for it. If I set rpcpassword and rpcuser when starting bitcoind it seems to start. If I then try to start pushpool I get a "json parse error".
Any help would be greatly appreciated.
Are you creating your server.json from an iDevice or through another ssh client than putty? If so, try vim or pico instead of nano (if you're using that). I have physical access to the server itself, so I don't need to ssh. I use the gui to create the files, via right click and new file.
|
|
|
|
lexa500
Newbie
Offline
Activity: 46
Merit: 0
|
|
June 09, 2011, 07:22:03 AM |
|
is there any manual on setting pushpool up on gentoo?
|
|
|
|
Xenland (OP)
Legendary
Offline
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
|
|
June 09, 2011, 07:23:51 AM |
|
is there any manual on setting pushpool up on gentoo?
You can take my tutorial information and look up gentoo packages that are required to run pushpool then install push pool the same way i have in my tutorial
|
|
|
|
lexa500
Newbie
Offline
Activity: 46
Merit: 0
|
|
June 09, 2011, 07:33:55 AM |
|
okay. i`ll try it.
|
|
|
|
lorenzfx
Newbie
Offline
Activity: 8
Merit: 0
|
|
June 09, 2011, 10:50:43 AM |
|
Hi guys, what kind of hardware are you using for your pools? Would a 512MB virtual server be sufficient? cheers
|
|
|
|
Wuked
|
|
June 09, 2011, 11:15:07 AM |
|
Hello, Firstly - really nice to see people helping with pushpool here, as it's not all that simple to deploy. I have a quick question... I've installed bitcoind, and am running on the test network - I have installed pushpool and am running 2 clients on it. I'm using MYSQL and manually added my two workers. However, even though the test network seems to be ripping through the blocks pretty quickly - nothing is being added to the MySQL shares table. I am running pushpool on debug mode and am seeing blocks like this going out: * About to connect() to 127.0.0.1 port 8332 (#0) * Trying 127.0.0.1... * TCP_NODELAY set * connected * Connected to 127.0.0.1 (127.0.0.1) port 8332 (#0) * Server auth using Basic with user '*' > POST / HTTP/1.1 Authorization: Basic * Host: 127.0.0.1:8332 Accept: */* Accept-Encoding: deflate, gzip Content-type: application/json Content-Length: 47
< HTTP/1.1 200 OK < Date: Thu, 09 Jun 2011 11:07:14 +0000 < Connection: close < Content-Length: 594 < Content-Type: application/json < Server: bitcoin-json-rpc/0.3.21-beta < * Closing connection #0 JSON protocol response: { "error": null, "result": { "target": "0000000000000000000000000000000000000000000000000052960600000000", "midstate": "5d286c3fd0b6f17e37d939a648d06233b80bdd8b6439dc9fe7cc5048c362114c", "data": "00000001f1d6b9ef1adf5c2df2baa44f8b91741ac94e6a94a136279f05f3383900000000e341e7d48b06c162f935995e36df57f2216f62ba921e9cc3554184f70fedac294df0a96b1c06965200000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000080020000", "hash1": "00000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000010000" }, "id": 199 }
and if I look in the shares.log I can see entries : [2011-06-09 11:01:58.715939] ::ffff: tom Y - - 00000001f1d6b9ef1adf5c2df2baa44f8b91741ac94e6a94a136279f05f338390000000013886e519bb1c554324df971cef5a0e4a1c4add6bd1bfd50bb86bf2d3a7c7dce4df0a82e1c069652a314246c000000800000000000000000000000000000000000000000000000000000000000000000000000000000000080020000 [2011-06-09 11:04:36.074357] ::ffff: tom Y - - 00000001f1d6b9ef1adf5c2df2baa44f8b91741ac94e6a94a136279f05f3383900000000de350ef435e8c3c6c5505e89844783b399aa865166ff28db1b72f9eb885edaea4df0a8cb1c069652a6701593000000800000000000000000000000000000000000000000000000000000000000000000000000000000000080020000 [2011-06-09 11:06:21.410709] ::ffff: tom Y - - 00000001f1d6b9ef1adf5c2df2baa44f8b91741ac94e6a94a136279f05f3383900000000b2efe2e2c94d6f49c2cae0b67d7ddb452ee31f130e5998601fb634ca102bcd2f4df0a9351c069652d015c7a0000000800000000000000000000000000000000000000000000000000000000000000000000000000000000080020000 [2011-06-09 11:07:36.748321] ::ffff: tom Y - - 00000001f1d6b9ef1adf5c2df2baa44f8b91741ac94e6a94a136279f05f3383900000000066412ad78b278cf52c28c3c09b1eec03e532257b11dc247fd62e16b02a49e404df0a9801c06965247ca01e3000000800000000000000000000000000000000000000000000000000000000000000000000000000000000080020000
but nothing in the shares table... am I missing something ?
|
|
|
|
Wuked
|
|
June 09, 2011, 11:47:19 AM |
|
Ah, It looks like I was missing this code from the config file... "sharelog" : true, "stmt.sharelog": "INSERT INTO shares (rem_host, username, our_result, upstream_result, reason, solution) VALUES (?, ?, ?, ?, ?, ?)"
I've added that in, no shares in the table yet - but will wait on it!
|
|
|
|
FreddyE
Newbie
Offline
Activity: 27
Merit: 0
|
|
June 09, 2011, 05:15:34 PM |
|
I installed pushpool on a fresh ubuntu 11, but for some reason it seems the configuration files are not recognised. I tripple checked that the .conf and .json files are in the right folders, but bitcoind doesnt seem to see the file, it just keeps asking for it. If I set rpcpassword and rpcuser when starting bitcoind it seems to start. If I then try to start pushpool I get a "json parse error".
Any help would be greatly appreciated.
Are you creating your server.json from an iDevice or through another ssh client than putty? If so, try vim or pico instead of nano (if you're using that). I have physical access to the server itself, so I don't need to ssh. I use the gui to create the files, via right click and new file. I think I´m crazy...the files are where they are supposed to be but they don´t seem to be recognised. :-(
|
|
|
|
dikidera
|
|
June 09, 2011, 08:13:45 PM |
|
This is because when starting pushpool you need to specify the path to the config. pushpoold --config=/mypath/to/config/somefile.json
|
|
|
|
FreddyE
Newbie
Offline
Activity: 27
Merit: 0
|
|
June 09, 2011, 08:56:01 PM |
|
This is because when starting pushpool you need to specify the path to the config. pushpoold --config=/mypath/to/config/somefile.json oh...I thought it was something simple as that. thanks ;-)
|
|
|
|
Xenland (OP)
Legendary
Offline
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
|
|
June 10, 2011, 02:05:36 AM |
|
Hi guys, what kind of hardware are you using for your pools? Would a 512MB virtual server be sufficient? cheers
521 would be alright for a private pool maybe, The recommended is about 2gb at least, with good CPU in it.
|
|
|
|
gitcoin
Newbie
Offline
Activity: 2
Merit: 0
|
|
June 10, 2011, 09:03:53 AM |
|
Hi, I just set up pushpool and it seems to be working well. I've got like 6 people mining, and we are actually finding shares. However, none of the shares are actually recognized upstream. Should I just wait? We've been running since about an hour know and all upstream results in the database are NULL.
Thanks in advance,
|
|
|
|
davout
Legendary
Offline
Activity: 1372
Merit: 1008
1davout
|
|
June 10, 2011, 09:05:31 AM |
|
upstream_result = 'Y' ===> you found a block, NULL ===> wait moar
|
|
|
|
Xenland (OP)
Legendary
Offline
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
|
|
June 10, 2011, 09:11:09 AM |
|
upstream_result = 'Y' ===> you found a block, NULL ===> wait moar
Learn something new every day
|
|
|
|
davout
Legendary
Offline
Activity: 1372
Merit: 1008
1davout
|
|
June 10, 2011, 09:21:26 AM |
|
upstream_result = 'Y' ===> you found a block, NULL ===> wait moar
Learn something new every day Are you serious ? You really didn't know that ? If you were just being sarcastic then sorry If you weren't you should consider using it to properly monitor generated blocks. Are you just polling bitcoind to check for new blocks from time to time ?
|
|
|
|
gitcoin
Newbie
Offline
Activity: 2
Merit: 0
|
|
June 10, 2011, 09:28:02 AM |
|
I just read that somewhere in this thread, I guess I should have searched better. So, I'll just have to be patient then.
|
|
|
|
genewitch
Newbie
Offline
Activity: 28
Merit: 0
|
|
June 11, 2011, 05:11:13 AM |
|
this error: un 11 05:02:55 ip-10-124-17-59 pushpoold[18786]: Debug output enabled Jun 11 05:02:55 ip-10-124-17-59 pushpoold[18786]: Forcing local hostname to localhost.localdomain Jun 11 05:02:55 ip-10-124-17-59 pushpoold[18787]: tcp socket: Address family not supported by protocol Jun 11 05:02:59 ip-10-124-17-59 su[18765]: pam_unix(su:session): session closed for user bitcoin from this config json: { # network ports "listen" : [ # HTTP JSON-RPC protocol, port 8337 { "port" : 8337, "protocol" : "http-json" } ], # database settings "database" : { # ... or ...
"engine" : "mysql",
"host" : "localhost",
"port" : 3306,
"name" : "sc", "username" : "pushpool", "password" : "SWECRETS",
"stmt.pwdb" : "SELECT password FROM pool_worker WHERE username = ?"
},
# cache settings "memcached" : { "servers" : [ { "host" : "127.0.0.1", "port" : 11211 } ] },
"pid" : "/home/bitcoin/pushpoold.pid",
# overrides local hostname detection "forcehost" : "localhost.localdomain",
"log.requests" : "/home/bitcoin/request.log", "log.shares" : "/home/bitcoin/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 "rpc.url" : "http://127.0.0.1:8332/", "rpc.user" : "bitcoin", "rpc.pass" : "SWEEECRETS",
# rewrite returned 'target' to difficulty-1? "rpc.target.rewrite" : true }
|
|
|
|
|