Bitcoin Forum
March 19, 2024, 07:26:08 AM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
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 »
  Print  
Author Topic: Pushpool - Tech Support  (Read 135137 times)
Xenland (OP)
Legendary
*
Offline Offline

Activity: 980
Merit: 1003


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


View Profile
June 13, 2011, 04:42:39 AM
 #141

I'm sorry but we are all victims of misinterpretation and it is best to realise that in order to have good tech support is to keep the support going. I'm not blaming anyone It just helps if we keep it this way in this thread. Thanks Cheesy
1710833168
Hero Member
*
Offline Offline

Posts: 1710833168

View Profile Personal Message (Offline)

Ignore
1710833168
Reply with quote  #2

1710833168
Report to moderator
1710833168
Hero Member
*
Offline Offline

Posts: 1710833168

View Profile Personal Message (Offline)

Ignore
1710833168
Reply with quote  #2

1710833168
Report to moderator
1710833168
Hero Member
*
Offline Offline

Posts: 1710833168

View Profile Personal Message (Offline)

Ignore
1710833168
Reply with quote  #2

1710833168
Report to moderator
The Bitcoin network protocol was designed to be extremely flexible. It can be used to create timed transactions, escrow transactions, multi-signature transactions, etc. The current features of the client only hint at what will be possible in the future.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
Xenland (OP)
Legendary
*
Offline Offline

Activity: 980
Merit: 1003


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


View Profile
June 13, 2011, 05:07:33 AM
 #142

the pin cannot start with 0. if you try it throws invalid pin. probably because whatever command php uses to determine the length cuts leading zeros.
bug just cost me a pool worker :-(

in register.php (onyl one i looked at) look for this section
Code:
$authPin        = (int) $_POST["authPin"];

change to:
Code:
$authPin        = (string) $_POST["authPin"];

look for:
Code:
//valid date authpin is valid

change the block under it to read:
Code:
//valid date authpin is valid
                        if(strlen($authPin) >= 4){
                                if(!is_numeric($authPin)){
                                        $validRegister = 0;
                                        $returnError .= " | Not a valid authpin";
                                }
                        }else{
                                $validRegister = 0;
                                $returnError .= " | Authorization pin number is not valid";
                        }


verified myself this time.  Roll Eyes


I think I just realised you are either using a really old version or you downloaded a custom version of my script. Please try the updated register.php file and get back to me Smiley
Laminator
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
June 13, 2011, 01:15:07 PM
Last edit: June 13, 2011, 02:22:28 PM by Laminator
 #143

can anyone tell me how to use blkmon? What port should I use? (i'm using server.json from 1st page) How can I sure that long polling is active and working properly? Coz I have abot 4% stale blocks
Xenland (OP)
Legendary
*
Offline Offline

Activity: 980
Merit: 1003


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


View Profile
June 13, 2011, 10:13:33 PM
 #144

can anyone tell me how to use blkmon? What port should I use? (i'm using server.json from 1st page) How can I sure that long polling is active and working properly? Coz I have abot 4% stale blocks

I know this doesn't really help now but I'll be posting up a blkmond part of the tutorial soon, I haven't looked it my self but from what i read they said you open it up and configure the variables to your needs and then you run it. it might have a help feature if you try running blkmond --help
Thanks Stay Tuned!
netxshare
Full Member
***
Offline Offline

Activity: 120
Merit: 100


View Profile
June 14, 2011, 06:20:27 AM
Last edit: June 14, 2011, 07:17:39 AM by netxshare
 #145

I have pushpool up and running a long with blkmond it finds a new block just fine

"New block noticed, sending SIGUSR1 signal to PID 13697"

but none of the miners on the pushpool server get a LP message, anyone else ever run into this issue?


Update:

Just had to restart all of my miners....made it much harder then it was.


anyways, here is a quick guide to blkmond


make a new file such blkmond.conf

put

host=127.0.0.1
port=8333
pid=/tmp/pushpoold.pid

*note*
port is not for RPC port.

now just do

./blkmond blkmond.conf


donations: 1CWddfhXagPoWgzUCs7oVHFjwBmqbAoJRr
aleksey
Sr. Member
****
Offline Offline

Activity: 245
Merit: 254


View Profile
June 16, 2011, 12:36:50 PM
 #146

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?
Crs
Member
**
Offline Offline

Activity: 107
Merit: 10



View Profile
June 16, 2011, 01:09:32 PM
 #147

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 !
wachtwoord
Legendary
*
Offline Offline

Activity: 2324
Merit: 1125


View Profile
June 16, 2011, 07:30:04 PM
 #148

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
phorensic
Hero Member
*****
Offline Offline

Activity: 630
Merit: 500



View Profile
June 18, 2011, 09:53:30 PM
 #149

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.
Xenland (OP)
Legendary
*
Offline Offline

Activity: 980
Merit: 1003


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


View Profile
June 18, 2011, 10:55:30 PM
 #150

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

Activity: 630
Merit: 500



View Profile
June 19, 2011, 07:00:26 AM
 #151

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
frizzl
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
June 19, 2011, 01:42:12 PM
Last edit: June 19, 2011, 01:55:19 PM by frizzl
 #152

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



Sellaro
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
June 19, 2011, 03:53:35 PM
 #153

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.
Xenland (OP)
Legendary
*
Offline Offline

Activity: 980
Merit: 1003


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


View Profile
June 19, 2011, 09:36:04 PM
 #154

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.
ius
Newbie
*
Offline Offline

Activity: 56
Merit: 0


View Profile
June 20, 2011, 12:18:54 AM
 #155

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)..
lemosax
Newbie
*
Offline Offline

Activity: 21
Merit: 0


View Profile
June 20, 2011, 03:09:17 AM
 #156

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!
frizzl
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
June 21, 2011, 03:31:52 AM
 #157

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?
Xenland (OP)
Legendary
*
Offline Offline

Activity: 980
Merit: 1003


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


View Profile
June 21, 2011, 04:47:30 AM
 #158

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?
frizzl
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
June 21, 2011, 05:25:52 AM
 #159

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
phorensic
Hero Member
*****
Offline Offline

Activity: 630
Merit: 500



View Profile
June 21, 2011, 05:29:51 AM
 #160

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
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 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!