jgarzik
Legendary
Offline
Activity: 1596
Merit: 1100
|
|
June 21, 2011, 05: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.
|
Jeff Garzik, Bloq CEO, former bitcoin core dev team; opinions are my own. Visit bloq.com / metronome.io Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
|
|
|
Xenland (OP)
Legendary
Offline
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
|
|
June 21, 2011, 06:20:23 AM |
|
Theres probubly a better way but for simplicity i use a php bitcoin library to query bicoind
|
|
|
|
FreddyE
Newbie
Offline
Activity: 27
Merit: 0
|
|
June 22, 2011, 06:50:08 AM |
|
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 ;-) 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".
|
|
|
|
Xenland (OP)
Legendary
Offline
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
|
|
June 22, 2011, 07:11:18 AM |
|
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 ;-) 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.
|
|
|
|
FreddyE
Newbie
Offline
Activity: 27
Merit: 0
|
|
June 22, 2011, 07:17:36 AM |
|
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 ;-) 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. I copy and pasted the code for server.json thats posted at the start of this thread. Then I added my data. Where can I download a working server.json?
|
|
|
|
Xenland (OP)
Legendary
Offline
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
|
|
June 22, 2011, 07:25:34 AM |
|
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 ;-) 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. I copy and pasted the code for server.json thats posted at the start of this thread. Then I added my data. Where can I download a working server.json? I would try copying and pasting again, and make sure you include both { } when copying and pasting one missing semi-colon, hyphenation, etc, etc json dosn't like this
|
|
|
|
FreddyE
Newbie
Offline
Activity: 27
Merit: 0
|
|
June 22, 2011, 07:31:59 AM |
|
Thanks Xenland! I found the problem. When I entered my ip-adress I accidentally deleted the closing ". Its working now :-)
|
|
|
|
Xenland (OP)
Legendary
Offline
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
|
|
June 22, 2011, 07:37:12 AM |
|
Thanks Xenland! I found the problem. When I entered my ip-adress I accidentally deleted the closing ". Its working now :-)
Yep yep, Do you have any spare change for my programming addiction... I have to pay electricity costs too ya know !@! lol
|
|
|
|
FreddyE
Newbie
Offline
Activity: 27
Merit: 0
|
|
June 22, 2011, 09:32:57 AM |
|
All my BTC are at mtgox right now :-(
|
|
|
|
redshark1802
Newbie
Offline
Activity: 44
Merit: 0
|
|
June 22, 2011, 09:50:15 AM |
|
Hello,
could someone please give me the share(solution) hash for an actual block that was found. And one other question: why is pushpoold quiting/not starting without any errors? I have the latest pushpool version.
regards, redshark1802
|
|
|
|
Xenland (OP)
Legendary
Offline
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
|
|
June 22, 2011, 10:17:10 AM |
|
Hello,
could someone please give me the share(solution) hash for an actual block that was found. And one other question: why is pushpoold quiting/not starting without any errors? I have the latest pushpool version.
regards, redshark1802
the newest pushpool has a bug where output dosen't display. There's a fix for it on the previous page and an easy delete greather than sign then replace it with a less then sign or somthing like that.
|
|
|
|
redshark1802
Newbie
Offline
Activity: 44
Merit: 0
|
|
June 22, 2011, 11:27:10 AM |
|
Thanks i already had that version, the problem was that the pid was not removed properly.
Do you have a valid for an actual block?
regards, redshark1802
|
|
|
|
FreddyE
Newbie
Offline
Activity: 27
Merit: 0
|
|
June 22, 2011, 01:05:18 PM |
|
It seems pushpool is not listening on any ports for me. I get this:
"[1308747727.006541] Listening on host :: port 8347 [1308747727.006620] Listening on host :: port 8344 [1308747727.007214] Listening on host 127.0.0.1 port 8338 "
Where it says "host ;;" I had actually entered an ip adress in the config file. According to nmap none of those ports is actually open and beeing listened on.
What am I doing wrong?
|
|
|
|
redshark1802
Newbie
Offline
Activity: 44
Merit: 0
|
|
June 22, 2011, 01:40:36 PM |
|
It seems pushpool is not listening on any ports for me. I get this:
"[1308747727.006541] Listening on host :: port 8347 [1308747727.006620] Listening on host :: port 8344 [1308747727.007214] Listening on host 127.0.0.1 port 8338 "
Where it says "host ;;" I had actually entered an ip adress in the config file. According to nmap none of those ports is actually open and beeing listened on.
What am I doing wrong?
You should only connect to *:8347 with your miner. Did you nmap on the localhost or the remote and what parameters did you use? Try "nmap -sS -p 1-6000 -v <targetip>" from an remote host.
|
|
|
|
FreddyE
Newbie
Offline
Activity: 27
Merit: 0
|
|
June 22, 2011, 01:58:36 PM |
|
It seems pushpool is not listening on any ports for me. I get this:
"[1308747727.006541] Listening on host :: port 8347 [1308747727.006620] Listening on host :: port 8344 [1308747727.007214] Listening on host 127.0.0.1 port 8338 "
Where it says "host ;;" I had actually entered an ip adress in the config file. According to nmap none of those ports is actually open and beeing listened on.
What am I doing wrong?
You should only connect to *:8347 with your miner. Did you nmap on the localhost or the remote and what parameters did you use? Try "nmap -sS -p 1-6000 -v <targetip>" from an remote host. I nmaped from the remote. I now get 8332 and 8333 as open ports, but none of the pushpool ports (if using -p 1-9000).
|
|
|
|
redshark1802
Newbie
Offline
Activity: 44
Merit: 0
|
|
June 22, 2011, 02:02:55 PM |
|
It seems pushpool is not listening on any ports for me. I get this:
"[1308747727.006541] Listening on host :: port 8347 [1308747727.006620] Listening on host :: port 8344 [1308747727.007214] Listening on host 127.0.0.1 port 8338 "
Where it says "host ;;" I had actually entered an ip adress in the config file. According to nmap none of those ports is actually open and beeing listened on.
What am I doing wrong?
You should only connect to *:8347 with your miner. Did you nmap on the localhost or the remote and what parameters did you use? Try "nmap -sS -p 1-6000 -v <targetip>" from an remote host. I nmaped from the remote. I now get 8332 and 8333 as open ports, but none of the pushpool ports (if using -p 1-9000). Please post your server.json config, preferable on pastebin.com and I recommend closing 8332 and 8333 via iptables. For an standard iptables installation type: iptables -A INPUT -p tcp --dport 8332 -j DROP iptables -A INPUT -p tcp --dport 8333 -j DROP regards, redshark1802
|
|
|
|
FreddyE
Newbie
Offline
Activity: 27
Merit: 0
|
|
June 22, 2011, 02:26:54 PM |
|
here is my server.json, I removed password data etc. I closed 8332 and 8333 as you suggested { # 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" : "myexternalstaticip" },
# 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" : "xxxxx", #database username "username" : "xxxx", #database password "password" : "xxxxxxxx", #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": "xxxxxx", "rpc.pass" : "xxxxxxxr",
# rewrite returned 'target' to difficulty-1? "rpc.target.rewrite" : true }
|
|
|
|
redshark1802
Newbie
Offline
Activity: 44
Merit: 0
|
|
June 22, 2011, 02:52:08 PM |
|
here is my server.json, I removed password data etc. I closed 8332 and 8333 as you suggested { # 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" : "myexternalstaticip" },
# 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" : "xxxxx", #database username "username" : "xxxx", #database password "password" : "xxxxxxxx", #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": "xxxxxx", "rpc.pass" : "xxxxxxxr",
# rewrite returned 'target' to difficulty-1? "rpc.target.rewrite" : true } everything looks good, are you sure pushpoold is still running? ps aux | grep pushpoold regards, redshark1802
|
|
|
|
grue
Legendary
Offline
Activity: 2058
Merit: 1452
|
|
June 22, 2011, 03:13:29 PM |
|
linux noob here. installed a fresh copy of ubuntu desktop on VMware. Jansson was installed successfully, but i can't get libmemcached to install. i got an error when using ./configure, and make does not work. configure: error: "could not find memcached binary" pool@pool-virtual-machine:~/libmemcached-0.50$ make make: *** No targets specified and no makefile found. Stop.
|
|
|
|
frizzl
Newbie
Offline
Activity: 28
Merit: 0
|
|
June 22, 2011, 07:13:16 PM |
|
A few requirements were missing from the original post try this:
sudo aptitude install libmemcached-dev
then try ./configure
again
|
|
|
|
|