Pages:
Author

Topic: Pushpool - Tech Support - page 25. (Read 135232 times)

newbie
Activity: 46
Merit: 0
June 09, 2011, 02:22:03 AM
is there any manual on setting pushpool up on gentoo?
newbie
Activity: 27
Merit: 0
June 09, 2011, 12: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.
legendary
Activity: 1372
Merit: 1008
1davout
June 08, 2011, 02:18:58 PM
You took the question seriously, i was replying to the user above.
Embarrassed
full member
Activity: 126
Merit: 100
June 08, 2011, 01: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.
newbie
Activity: 2
Merit: 0
June 08, 2011, 09:04:47 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).
newbie
Activity: 27
Merit: 0
June 08, 2011, 08:31:14 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.
newbie
Activity: 2
Merit: 0
June 08, 2011, 07:54:10 AM
#99
Hey! I am running Ubuntu 10.10 and everything is setup correctly, as a client attempts to connect this error is produced
Code:
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
* connected
* Connected to 127.0.0.1 (127.0.0.1) port 8333 (#0)
* Server auth using Basic with user '---------'
> POST / HTTP/1.1
Authorization: Basic ---------------------
Host: 127.0.0.1:8333
Accept: */*
Accept-Encoding: deflate, gzip
Content-type: application/json
Content-Length: 45

After that, nothing happens. I run pushpoold using follow params: debug2 stderr and E.
newbie
Activity: 4
Merit: 0
June 08, 2011, 03:33:54 AM
#98

If your getting alot of connected ports and no connected miners then your most likely connecting on the wrong port. When i use poclbm I specifcly have to use the -p flag and write the port number and not type with the --host flag, other wise it just dosnet connect at all for some reason. Hope this helps!

i got connected now.

But i dont get any shares on my client?

And how should my cronjob line looks like in ubuntu?
hero member
Activity: 560
Merit: 517
June 07, 2011, 09:29:14 PM
#97
Quote
I think you mean it found shares, unless your running a mining farm with a bunch of computers, if you find 3 blocks in a few minutes that should be a problem. but then again a finding a few shares every couple of minutes isn't really a problem either. I run at about 85000Khash/s and i find a share on average 2-3 minutes.
Nope, I mean blocks. I threw ~3GH/s at it for a few minutes, and it was running against testnet (Difficulty == 38). Running against pushpool, I got tons of shares but very few blocks (2 blocks with >1000 shares). Running directly against bitcoind it found 3 blocks in a few minutes.
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
June 07, 2011, 08:43:40 PM
#96
newbie
Activity: 4
Merit: 0
June 07, 2011, 06:55:14 PM
#95
Hi i have some problems with my new mining pool.

OS= Ubuntu 10.04 LTS Terminal.

I got this in the client.
2011-06-08 01:44:43: Listener for "pengar": 08/06/2011 01:44:43, Problems communicating with bitcoin RPC

I got this in the pushpool.
[1307490305.141689] client host 78.73.80.189 port 50768 connected <--- mass spam.

But when i run the bitcoind service like this

./bitcoind -server

nothing happens, is it loaded or what?

my bitcoind.conf

Code:
rpcuser=hello
rpcpassword=hello2

My server.josn
Code:
{
   # network ports
   "listen" : [
      # binary protocol (default), port 8342
      { "port" : 8342 },

      # HTTP JSON-RPC protocol, port 8341
      { "port" : 8347, "protocol" : "http-json" },

      # HTTP JSON-RPC protocol, port 8344,
      #proxy is most likely your external ip address if your running a public pool | Public pools WON'T have the following ip addresses: (10.0.0.1, 127.0.0.$
      # requests to us | "proxy" should be set to your ip address that people will connect through
      { "port" : 8344, "protocol" : "http-json",
        "proxy" : "80.67.11.172" },

      # binary protocol, localhost-only port 8338
      # host is most likely your localhost address
      { "host" : "80.67.11.172", "port" : 8338, "protocol" : "binary" }
   ],

   # database settings
   "database" : {
      "engine" : "mysql",

      "host" : "localhost",

      "port" : 3306,

      #database name
      "name" : "pushpool",
      #database username
      "username" : "pushpool",
      #database password
      "password" : "g321",
      #enable sharelog | to insert share data or sometimes known as "work"
      "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 (?, ?, ?, ?, ?, ?)"

   },
  #uncoment this when you want to use memcached (Recommended for servers over 1.5gb of ram)
   # 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)
 # 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
   #Bitcoind Protocal settings
   #Host were bitcoind can be found on the network
   "rpc.url" : "http://127.0.0.1:8332/",
   #Username & password to connect to bitcoind
   "rpc.user" : "hello",
   "rpc.pass" : "hello2",

   # rewrite returned 'target' to difficulty-1?
   "rpc.target.rewrite" : true
}


Why wont it work for me?
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
June 07, 2011, 06:18:30 PM
#94
I experienced an odd problem with pushpool.

I got it setup, and accepting shares against a bitcoin --testnet client setup correctly with RPC. So, everything appeared to work. I even found a few blocks, and those submitted fine.

However, at a difficulty of 38, and >1000 shares, it had only found 2 blocks.  Huh That's either really bad luck, or something was broken.

So I tried pointing the miners at bitcoind directly, and they found 3 blocks in a few minutes (as expected for the hashrate).

I think you mean it found shares, unless your running a mining farm with a bunch of computers, if you find 3 blocks in a few minutes that should be a problem. but then again a finding a few shares every couple of minutes isn't really a problem either. I run at about 85000Khash/s and i find a share on average 2-3 minutes.
legendary
Activity: 1372
Merit: 1008
1davout
June 07, 2011, 11:54:18 AM
#93
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
full member
Activity: 126
Merit: 100
June 07, 2011, 11:27:48 AM
#92
Hmm, i wonder what this is

legendary
Activity: 1372
Merit: 1008
1davout
June 07, 2011, 09:23:20 AM
#91
So I downloaded the package and exacted it using tar... still no configuration file

ls -a:

Code:
.           blkmond       db-postgresql.c     hist.c       msg.c       ubbp.h
..          ChangeLog     db-sqlite.c         htab.c       NEWS        util.c
anet.c      config.c      elist.h             htab.h       protocol.h
anet.h      configure.ac  example-blkmon.cfg  LICENSE      README
AUTHORS     COPYING       example-cfg.json    m4           server.c
autogen.sh  db-mysql.c    .gitignore          Makefile.am  server.h


Anyone know what is happening to this configuration file?
Use autogen
newbie
Activity: 18
Merit: 0
June 07, 2011, 09:09:24 AM
#90
So I downloaded the package and exacted it using tar... still no configuration file

ls -a:

Code:
.           blkmond       db-postgresql.c     hist.c       msg.c       ubbp.h
..          ChangeLog     db-sqlite.c         htab.c       NEWS        util.c
anet.c      config.c      elist.h             htab.h       protocol.h
anet.h      configure.ac  example-blkmon.cfg  LICENSE      README
AUTHORS     COPYING       example-cfg.json    m4           server.c
autogen.sh  db-mysql.c    .gitignore          Makefile.am  server.h


Anyone know what is happening to this configuration file?


hero member
Activity: 560
Merit: 517
June 07, 2011, 01:51:24 AM
#89
I experienced an odd problem with pushpool.

I got it setup, and accepting shares against a bitcoin --testnet client setup correctly with RPC. So, everything appeared to work. I even found a few blocks, and those submitted fine.

However, at a difficulty of 38, and >1000 shares, it had only found 2 blocks.  Huh That's either really bad luck, or something was broken.

So I tried pointing the miners at bitcoind directly, and they found 3 blocks in a few minutes (as expected for the hashrate).
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
June 07, 2011, 12:03:33 AM
#88
when I do an LS in that directory I get this.

Code:
.           blkmond       db-postgresql.c     hist.c       msg.c       ubbp.h
..          ChangeLog     db-sqlite.c         htab.c       NEWS        util.c
anet.c      config.c      elist.h             htab.h       protocol.h
anet.h      configure.ac  example-blkmon.cfg  LICENSE      README
AUTHORS     COPYING       example-cfg.json    m4           server.c
autogen.sh  db-mysql.c    .gitignore          Makefile.am  server.h
Yeah it looks like configure isn't there, I would try downloading pushpool tarball again,
Latest release: http://yyz.us/bitcoin/pushpool-0.4.1.tar.gz
(You may have downloaded the developer version of pushpool)
newbie
Activity: 18
Merit: 0
June 06, 2011, 11:24:07 PM
#87
when I do an LS in that directory I get this.

Code:
.           blkmond       db-postgresql.c     hist.c       msg.c       ubbp.h
..          ChangeLog     db-sqlite.c         htab.c       NEWS        util.c
anet.c      config.c      elist.h             htab.h       protocol.h
anet.h      configure.ac  example-blkmon.cfg  LICENSE      README
AUTHORS     COPYING       example-cfg.json    m4           server.c
autogen.sh  db-mysql.c    .gitignore          Makefile.am  server.h
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
June 06, 2011, 11:04:56 PM
#86
and did you change into the directory where the "./configure" file is?
Whats the exact output in the directory where you type in ./configure at when you type in
Code:
ls
Pages:
Jump to: