Pages:
Author

Topic: Pushpool - Tech Support - page 22. (Read 135213 times)

legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
June 22, 2011, 03:11:18 AM
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 ;-)

Finally I had time to try it. Still not working...but it seems it can at least find the file...because if I enter a WRONG path I get "config file: no such file or directory" instead of "JSON parse failed".
Download a fresh coppy of server.json I would say you have an error in JSON file.
newbie
Activity: 27
Merit: 0
June 22, 2011, 02:50:08 AM
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 ;-)

Finally I had time to try it. Still not working...but it seems it can at least find the file...because if I enter a WRONG path I get "config file: no such file or directory" instead of "JSON parse failed".
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
June 21, 2011, 02:20:23 AM
How do i send "listtransactions" to it? I am using Ubuntu Server 11.04 w/ bitcoind.  How do i send queries to the daemon? Im a linux n00b
https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list

Theres probubly a better way but for simplicity i use a php bitcoin library to query bicoind
legendary
Activity: 1596
Merit: 1099
June 21, 2011, 01:30:10 AM
How do i send "listtransactions" to it? I am using Ubuntu Server 11.04 w/ bitcoind.  How do i send queries to the daemon? Im a linux n00b

This has nothing to do with pushpoold.  pushpoold is just an HTTP proxy, sitting between mining clients and bitcoind.

All commands such as listtransactions go straight to bitcoind as usual.  'getwork' is the only JSON-RPC method supported by pushpool.

hero member
Activity: 630
Merit: 500
June 21, 2011, 01:29:51 AM
How do i send "listtransactions" to it? I am using Ubuntu Server 11.04 w/ bitcoind.  How do i send queries to the daemon? Im a linux n00b
https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list
newbie
Activity: 28
Merit: 0
June 21, 2011, 01:25:52 AM
How do i send "listtransactions" to it? I am using Ubuntu Server 11.04 w/ bitcoind.  How do i send queries to the daemon? Im a linux n00b
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
June 21, 2011, 12:47:30 AM
I have bitcoind installed and working along with pushpool updating the mysql database.  This might be an obvious question for some but how will I know if a block is found?  IS it upstream_result = Y?  If it is Y then where and how do the 50 BTC get generated and sent to which address?  I am guessing that i need to try all this on testnet but dont have the time right now.  Can anyone outline in pseudocode what i need to do next for checks?  Also, how do I poll bitcoind for info, if i try to send it commands i get:
Bitcoin: Cannot obtain a lock on data directory .Bitcoin.  Bitcoin is probably running?
Right if a share comes up Y you can be sure that a block has been found and you should look/query bitcoin wallet by sending "listtransactions" to it.
or just start up bitcoin with the same wallet file and it should be there. If its not there it is becuase it is probubly unconfirmed and/or maybe invalid?
newbie
Activity: 28
Merit: 0
June 20, 2011, 11:31:52 PM
I have bitcoind installed and working along with pushpool updating the mysql database.  This might be an obvious question for some but how will I know if a block is found?  IS it upstream_result = Y?  If it is Y then where and how do the 50 BTC get generated and sent to which address?  I am guessing that i need to try all this on testnet but dont have the time right now.  Can anyone outline in pseudocode what i need to do next for checks?  Also, how do I poll bitcoind for info, if i try to send it commands i get:
Bitcoin: Cannot obtain a lock on data directory .Bitcoin.  Bitcoin is probably running?
newbie
Activity: 21
Merit: 0
June 19, 2011, 11:09:17 PM
can the pushpool software be used to create a namecoin pool?
if yes, do I have to make some changes to the code or I just have to install and used namecoind instead of bitcoind ?
thanks !

Yes.  Pushpool seems to work just fine as a namecoin pool.  I tested this and successfully solved one block and now have an immature transaction for 50.01 Namecoins.  Smiley  In that the difficulty level is so much lower, it's a neat way to test the software without requiring tens or hundreds of gigahashes to successfully earn some coinage.  I ended up opting for an alternative to blkmond since I couldn't get that working properly: http://forum.bitcoin.org/index.php?topic=8797.0

I'm not highly experienced with it, but as far as I can tell thusfar, there's no real difference running pushpool as a namecoin pool than a bitcoin pool.  Good luck with it!
ius
newbie
Activity: 56
Merit: 0
June 19, 2011, 08:18:54 PM
Update:  A couple of hours ago the author jgarzik posted a slightly different fix: https://github.com/jgarzik/pushpool/commit/385e23fa3a149a650dbbeb5bff8d3a84f949e5bf

Use that, although my fix re-enabled output it introduced buggy behavior in case the system would run out of memory while attempting to format the output string (athough that's very unlikely)..
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
June 19, 2011, 05:36:04 PM
Make sure your mysql database has those credntials for login and that you can infact query the database with the queries inthe json file

Folks

I am trying to set up a bitcoind + pushpoold running on an Amazon EC2. No problems on bitcoind side, but I really don't know what's happening on the pushpoold side. Compilation was smooth, but I can't manage to run it.

My config file:

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.1, 192.168.1.100, or 192.168.254.254,etc,etc)
      # requests to us | "proxy" should be set to your ip address that people will connect through
      { "port" : 8344, "protocol" : "http-json",
        "proxy" : "127.0.0.1" },

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

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

      "host" : "localhost",

      "port" : 3306,

      #database name
      "name" : "pushpool",
      #database username
      "username" : "mysqlusername",
      #database password
      "password" : "mysqlpass",
      #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)
   "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" : "user",
   "rpc.pass" : "mypassword",

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

I'm trying to run pushpoold with this command:

Code:
# pushpoold -c /usr/local/etc/pushpool.json --debug=2 -F -E
[2011-06-19 15:49:1.684078] Debug output enabled
[2011-06-19 15:49:1.684530] Forcing local hostname to localhost.localdomain
[2011-06-19 15:49:1.698690] Listening on host :: port 8342
[2011-06-19 15:49:1.698765] Listening on host :: port 8347
[2011-06-19 15:49:1.698819] Listening on host :: port 8344
[2011-06-19 15:49:1.698870] Listening on host 127.0.0.1 port 8338

Pushpoold simply quits. No messages, no further notice. This is pushpoold-0.5. I have tried a number of different branches as well as from the latest Github official sources. Same results.

Any help is much much appreciated.

Thanks in advance.
newbie
Activity: 8
Merit: 0
June 19, 2011, 11:53:35 AM
Folks

I am trying to set up a bitcoind + pushpoold running on an Amazon EC2. No problems on bitcoind side, but I really don't know what's happening on the pushpoold side. Compilation was smooth, but I can't manage to run it.

My config file:

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.1, 192.168.1.100, or 192.168.254.254,etc,etc)
      # requests to us | "proxy" should be set to your ip address that people will connect through
      { "port" : 8344, "protocol" : "http-json",
        "proxy" : "127.0.0.1" },

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

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

      "host" : "localhost",

      "port" : 3306,

      #database name
      "name" : "pushpool",
      #database username
      "username" : "mysqlusername",
      #database password
      "password" : "mysqlpass",
      #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)
   "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" : "user",
   "rpc.pass" : "mypassword",

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

I'm trying to run pushpoold with this command:

Code:
# pushpoold -c /usr/local/etc/pushpool.json --debug=2 -F -E
[2011-06-19 15:49:1.684078] Debug output enabled
[2011-06-19 15:49:1.684530] Forcing local hostname to localhost.localdomain
[2011-06-19 15:49:1.698690] Listening on host :: port 8342
[2011-06-19 15:49:1.698765] Listening on host :: port 8347
[2011-06-19 15:49:1.698819] Listening on host :: port 8344
[2011-06-19 15:49:1.698870] Listening on host 127.0.0.1 port 8338

Pushpoold simply quits. No messages, no further notice. This is pushpoold-0.5. I have tried a number of different branches as well as from the latest Github official sources. Same results.

Any help is much much appreciated.

Thanks in advance.
newbie
Activity: 28
Merit: 0
June 19, 2011, 09:42:12 AM
I thought i had all the dependencies installed but i am getting this error when i start pushpoold:

error while loading shared libraries: libmemcached.so.7: cannot open shared object file: no such file or directory

Find / -name 'libmemcached*'

shows it in /usr/local/lib/libmemcached.so.7

I download libmemcached.49 from the web and ran
./configure
make
make install

who no errors, what am i missing?

EDIT:
I had to add to the dynamic library path /usr/local/lib



hero member
Activity: 630
Merit: 500
June 19, 2011, 03:00:26 AM
I compile and install pushpoold, but after running it exit and doesnot return any information about error or another. Try use -D and -E keys. Logs not creating.
How I can know why pushpoold not work?
In the latest version 0.5 there is a bug in "util.c" that prevents any output on the CLI when running pushpoold.  See here on how to fix it, then recompile - https://github.com/ius/pushpool/commit/85297905ddc150c46664bd9ad77df6f502d64be1 .  It will probably give you an error when you run it now, similar to "JSON parse failed" like mine was doing.
Update:  A couple of hours ago the author jgarzik posted a slightly different fix: https://github.com/jgarzik/pushpool/commit/385e23fa3a149a650dbbeb5bff8d3a84f949e5bf
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
June 18, 2011, 06:55:30 PM
I am trying to install without memcached because i am on a xen vps.
so i don't have memcached nor LibMemcached, I did
Code:
./configure --without-memcached
it complains:
Code:
configure: WARNING: unrecognized options: --without-memcached
what am i doing wrong here?
Xen or VM ware I'm not an expert but you should still be required to install libmemcached or memcached as its a pre-req to install the server.
If you don't need it don't run memcached. If your having memeory problems with your server with(or without) memcached you need more ram)
brand new
Activity: 0
Merit: 0
June 18, 2011, 01:00:39 AM
I am trying to install without memcached because i am on a xen vps.
so i don't have memcached nor LibMemcached, I did
Code:
 ./configure --without-memcached
it complains:
Code:
configure: WARNING: unrecognized options: --without-memcached
what am i doing wrong here?
hero member
Activity: 630
Merit: 500
June 18, 2011, 05:53:30 PM
I compile and install pushpoold, but after running it exit and doesnot return any information about error or another. Try use -D and -E keys. Logs not creating.
How I can know why pushpoold not work?
In the latest version 0.5 there is a bug in "util.c" that prevents any output on the CLI when running pushpoold.  See here on how to fix it, then recompile - https://github.com/ius/pushpool/commit/85297905ddc150c46664bd9ad77df6f502d64be1 .  It will probably give you an error when you run it now, similar to "JSON parse failed" like mine was doing.
legendary
Activity: 2324
Merit: 1125
June 16, 2011, 03:30:04 PM
This is going to sound extremely lazy:

Could someone please upload a Virtual Image of a system with PushPool installed? (I saw a Chuckstra was creating a virtual image). I really don't care if it's for VirtualBox, VMWare of Virtual PC Tongue
Crs
member
Activity: 107
Merit: 10
June 16, 2011, 09:09:32 AM
can the pushpool software be used to create a namecoin pool?
if yes, do I have to make some changes to the code or I just have to install and used namecoind instead of bitcoind ?
thanks !
sr. member
Activity: 245
Merit: 254
June 16, 2011, 08:36:50 AM
I compile and install pushpoold, but after running it exit and doesnot return any information about error or another. Try use -D and -E keys. Logs not creating.
How I can know why pushpoold not work?
Pages:
Jump to: