Bitcoin Forum
December 05, 2016, 02:30:36 AM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: « 1 2 3 4 5 [6] 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 »
  Print  
Author Topic: Pushpool - Tech Support  (Read 126692 times)
netsky
Newbie
*
Offline Offline

Activity: 2


View Profile
June 08, 2011, 02:04:47 PM
 #101

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).
1480905036
Hero Member
*
Offline Offline

Posts: 1480905036

View Profile Personal Message (Offline)

Ignore
1480905036
Reply with quote  #2

1480905036
Report to moderator
It is a common myth that Bitcoin is ruled by a majority of miners. This is not true. Bitcoin miners "vote" on the ordering of transactions, but that's all they do. They can't vote to change the network rules.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
dikidera
Full Member
***
Offline Offline

Activity: 126


View Profile
June 08, 2011, 06:21:19 PM
 #102

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 Offline

Activity: 1358


1davout


View Profile WWW
June 08, 2011, 07:18:58 PM
 #103

You took the question seriously, i was replying to the user above.
Embarrassed

FreddyE
Newbie
*
Offline Offline

Activity: 27


View Profile
June 09, 2011, 05:48:05 AM
 #104

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
Jr. Member
*
Offline Offline

Activity: 49


View Profile
June 09, 2011, 07:22:03 AM
 #105

is there any manual on setting pushpool up on gentoo?
Xenland
Legendary
*
Offline Offline

Activity: 980


I'm not just any shaman, I'm a Sha256man


View Profile
June 09, 2011, 07:23:51 AM
 #106

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
Jr. Member
*
Offline Offline

Activity: 49


View Profile
June 09, 2011, 07:33:55 AM
 #107

okay. i`ll try it.
lorenzfx
Newbie
*
Offline Offline

Activity: 8


View Profile
June 09, 2011, 10:50:43 AM
 #108

Hi guys,
what kind of hardware are you using for your pools? Would a 512MB virtual server be sufficient?
cheers
Wuked
Member
**
Offline Offline

Activity: 112


View Profile WWW
June 09, 2011, 11:15:07 AM
 #109

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:

Code:
* 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 :

Code:
[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
Member
**
Offline Offline

Activity: 112


View Profile WWW
June 09, 2011, 11:47:19 AM
 #110

Ah, It looks like I was missing this code from the config file...

Code:
                "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 Offline

Activity: 27


View Profile
June 09, 2011, 05:15:34 PM
 #111

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
Full Member
***
Offline Offline

Activity: 126


View Profile
June 09, 2011, 08:13:45 PM
 #112

This is because when starting pushpool you need to specify the path to the config.
Quote
pushpoold --config=/mypath/to/config/somefile.json
FreddyE
Newbie
*
Offline Offline

Activity: 27


View Profile
June 09, 2011, 08:56:01 PM
 #113

This is because when starting pushpool you need to specify the path to the config.
Quote
pushpoold --config=/mypath/to/config/somefile.json

oh...I thought it was something simple as that. thanks ;-)
Xenland
Legendary
*
Offline Offline

Activity: 980


I'm not just any shaman, I'm a Sha256man


View Profile
June 10, 2011, 02:05:36 AM
 #114

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 Offline

Activity: 2


View Profile
June 10, 2011, 09:03:53 AM
 #115

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 Offline

Activity: 1358


1davout


View Profile WWW
June 10, 2011, 09:05:31 AM
 #116

upstream_result = 'Y' ===> you found a block, NULL ===> wait moar

Xenland
Legendary
*
Offline Offline

Activity: 980


I'm not just any shaman, I'm a Sha256man


View Profile
June 10, 2011, 09:11:09 AM
 #117

upstream_result = 'Y' ===> you found a block, NULL ===> wait moar
Shocked Learn something new every day
davout
Legendary
*
Offline Offline

Activity: 1358


1davout


View Profile WWW
June 10, 2011, 09:21:26 AM
 #118

upstream_result = 'Y' ===> you found a block, NULL ===> wait moar
Shocked Learn something new every day
Are you serious ?
You really didn't know that ?

If you were just being sarcastic then sorry Smiley
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 Offline

Activity: 2


View Profile
June 10, 2011, 09:28:02 AM
 #119

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 Offline

Activity: 28


View Profile
June 11, 2011, 05:11:13 AM
 #120

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:

Code:
{
        # 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
}
Pages: « 1 2 3 4 5 [6] 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 »
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!