Bitcoin Forum
April 30, 2024, 11:03:25 AM *
News: Latest Bitcoin Core release: 27.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 135153 times)
Furyan
Full Member
***
Offline Offline

Activity: 175
Merit: 100



View Profile
August 31, 2011, 05:44:25 PM
 #461

I'm also stuck at pushpool configuration. I read through the whole thread and the only solution to get rid of the error messages when connecting a miner is to have the rpc port (pushpool) pointing to the rpcport configured in bitcoin.conf.

However when i connect my miner I get error 500.
Quote
root@bully:/home/pushpool/sbin# ./pushpoold -E -F
[2011-08-29 22:03:43.948838] Listening on host :: port 8342
[2011-08-29 22:03:43.949297] Listening on host :: port 8341
[2011-08-29 22:03:43.949385] Listening on host :: port 8334
[2011-08-29 22:03:43.949513] Listening on host 127.0.0.1 port 8338
[2011-08-29 22:03:43.976058] initialized
[2011-08-29 22:03:46.627102] HTTP request failed: The requested URL returned error: 500
[2011-08-29 22:03:47.673728] HTTP request failed: The requested URL returned error: 500
[2011-08-29 22:03:48.752518] HTTP request failed: The requested URL returned error: 500
[2011-08-29 22:03:49.827042] HTTP request failed: The requested URL returned error: 500
[2011-08-29 22:03:50.948836] HTTP request failed: The requested URL returned error: 500

When I connect to port 8333 I get "empty reply from server":

Quote
* Empty reply from server
* Connection #0 to host 127.0.0.1 left intact
[2011-08-31 13:04:1.015652] HTTP request failed: Empty reply from server
JSON protocol request:
{"method": "getwork", "params": [], "id":2}

* Connection #0 seems to be dead!
* Closing connection #0
* 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 'hidden'
> POST / HTTP/1.1
Authorization: Basic Zm9jazphbG90dA==
Host: 127.0.0.1:8333
Accept: */*
Accept-Encoding: deflate, gzip
Content-type: application/json
Content-Length: 45

these are my config files:

bitcoin.conf
Quote
server=1
rpcuser=hidden
rpcpassword=morehidden
rpcallowip=127.0.0.1
rpcport=8332
gen=0

server.json
Quote
{
        # network ports
        "listen" : [
                # binary protocol (default), port 8342
                { "port" : 8342 },

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

                # HTTP JSON-RPC protocol, port 8344,
                # with trusted proxy appserver.example.com forwarding
                # requests to us
                { "port" : 8334, "protocol" : "http-json",
                  "proxy" : "my.external.ip.addr" },

                # binary protocol, localhost-only port 8338
                { "host" : "127.0.0.1", "port" : 8338, "protocol" : "binary" }
        ],

        # database settings
        "database" : {
                "engine" : "mysql",
                "host" : "localhost",
                "port" : 3306,
                "name" : "bitcoin",
                "username" : "blablablasabsa",
                "password" : "blablablasabsa",
                "sharelog" : true,
                "stmt.pwdb":"SELECT `password` FROM `pool_worker` WHERE `username` = ?",
                "stmt.sharelog":"INSERT INTO shares (rem_host, username, our_result, upstream_result, reason, sol$

        },
        # 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 | Notice how this ISN'T port number 8332 this is becuase the same port number should not b$
        "rpc.url" : "http://127.0.0.1:8333/",
        "rpc.user" : "hidden",
        "rpc.pass" : "morehidden",

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

some lines are cut by "$" because i copied/paste it from a text editor, but those shouldn't be interesting...

bitcoind runs as normal user, and I'm able to connect my miner directly to bitcoind (using rpcuser and rpcpass).
pushpool and bitcoind run on the same machine.

--snip--

the password is stored unencrypted in the table.

any help is appreciated :-/

Your ports are all messed up.  Try this:

bitcoin.conf:
rpcport=8335 (just choosing something that isn't already taken and isn't 8332 or 8333)


server.json:
(at the bottom):
"rpc.url" : "http://127.0.0.1:8335/",

(at the top):
                # HTTP JSON-RPC protocol, port 8332
                #{ "port" : 8341, "protocol" : "http-json" },
                { "port" : 8332, "protocol" : "http-json" },

Now you'll expose 8332 to the internet via pushpool, and bitcoin/pushpool will communicate over 8335 on localhost.

That configuration should work for you.

Your miner is getting an empty reply from the server because it's trying to connect to bitcoin directly (rpcport=8332, remember?) Bitcoin only allows connections from localhost by default so it simply slams the connection shut.
1714475005
Hero Member
*
Offline Offline

Posts: 1714475005

View Profile Personal Message (Offline)

Ignore
1714475005
Reply with quote  #2

1714475005
Report to moderator
If you see garbage posts (off-topic, trolling, spam, no point, etc.), use the "report to moderator" links. All reports are investigated, though you will rarely be contacted about your reports.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714475005
Hero Member
*
Offline Offline

Posts: 1714475005

View Profile Personal Message (Offline)

Ignore
1714475005
Reply with quote  #2

1714475005
Report to moderator
1714475005
Hero Member
*
Offline Offline

Posts: 1714475005

View Profile Personal Message (Offline)

Ignore
1714475005
Reply with quote  #2

1714475005
Report to moderator
1714475005
Hero Member
*
Offline Offline

Posts: 1714475005

View Profile Personal Message (Offline)

Ignore
1714475005
Reply with quote  #2

1714475005
Report to moderator
bully
Newbie
*
Offline Offline

Activity: 14
Merit: 0


View Profile
August 31, 2011, 06:06:58 PM
 #462

Your ports are all messed up.  Try this:

bitcoin.conf:
rpcport=8335 (just choosing something that isn't already taken and isn't 8332 or 8333)


server.json:
(at the bottom):
"rpc.url" : "http://127.0.0.1:8335/",

(at the top):
                # HTTP JSON-RPC protocol, port 8332
                #{ "port" : 8341, "protocol" : "http-json" },
                { "port" : 8332, "protocol" : "http-json" },

Now you'll expose 8332 to the internet via pushpool, and bitcoin/pushpool will communicate over 8335 on localhost.

That configuration should work for you.

Your miner is getting an empty reply from the server because it's trying to connect to bitcoin directly (rpcport=8332, remember?) Bitcoin only allows connections from localhost by default so it simply slams the connection shut.

I configured the ports as you told me, but i get error 500 nonetheless.
8335 in bitcoin.conf, 8335 rpc.url and connect the miner to the port i configured in HTTP JSON-RPC section

Quote
root@bully:/home/pushpool/sbin# ./pushpoold -E -F -D 2
[2011-08-31 18:04:18.021763] Debug output enabled
[2011-08-31 18:04:18.332918] Forcing local hostname to localhost.localdomain
[2011-08-31 18:04:18.754137] Listening on host :: port 8342
[2011-08-31 18:04:18.754284] Listening on host :: port 8341
[2011-08-31 18:04:18.754427] Listening on host :: port 8332
[2011-08-31 18:04:18.754526] Listening on host 127.0.0.1 port 8338
[2011-08-31 18:04:19.022037] initialized
JSON protocol request:
{"method": "getwork", "params": [], "id":1}

* About to connect() to 127.0.0.1 port 8335 (#0)
*   Trying 127.0.0.1... * TCP_NODELAY set
* connected
* Connected to 127.0.0.1 (127.0.0.1) port 8335 (#0)
* Server auth using Basic with user 'rpcuser'
> POST / HTTP/1.1
Authorization: Basic Zm9jazphbG90dA==
Host: 127.0.0.1:8335
Accept: */*
Accept-Encoding: deflate, gzip
Content-type: application/json
Content-Length: 45

* The requested URL returned error: 500
* Closing connection #0
[2011-08-31 18:04:19.801483] HTTP request failed: The requested URL returned error: 500
Xenland (OP)
Legendary
*
Offline Offline

Activity: 980
Merit: 1003


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


View Profile
August 31, 2011, 11:19:23 PM
 #463

Just thought I'd like everyone to know that I got my first donation for 0.0005 BTC fromt this page thanks everyone for your contribution you've been a real help.
I mean yeah you all made your own pool and made tons of BTC and I'm really happy that I was even given this amount you guys are sooo giving

Tongue

Seriously tho, i got some lolz out of that donation.... that was donation enough!
bully
Newbie
*
Offline Offline

Activity: 14
Merit: 0


View Profile
September 01, 2011, 10:21:43 PM
 #464

Just thought I'd like everyone to know that I got my first donation for 0.0005 BTC fromt this page thanks everyone for your contribution you've been a real help.
I mean yeah you all made your own pool and made tons of BTC and I'm really happy that I was even given this amount you guys are sooo giving

Tongue

Seriously tho, i got some lolz out of that donation.... that was donation enough!

isn't the satisfaction to have helped someone not donation enough?
Xenland (OP)
Legendary
*
Offline Offline

Activity: 980
Merit: 1003


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


View Profile
September 01, 2011, 11:14:31 PM
 #465

Honestly it doesn't matter at this point, before It would have helped to have a couple of Bitcents here and there at the time of writing the tutorials
bully
Newbie
*
Offline Offline

Activity: 14
Merit: 0


View Profile
September 02, 2011, 09:09:57 AM
 #466

btw i was able to get it to work, with the configuration which gave me error 500 before.
maybe it doesn't work when the keychain isn't completley downloaded?
Furyan
Full Member
***
Offline Offline

Activity: 175
Merit: 100



View Profile
September 02, 2011, 12:11:44 PM
 #467

btw i was able to get it to work, with the configuration which gave me error 500 before.
maybe it doesn't work when the keychain isn't completley downloaded?
Ah, no it doesn't.  FYI during that period, if you submit any RPC requests to bitcoin directly via the command line it will respond with an error message saying the blockchain is currently downloading.
bully
Newbie
*
Offline Offline

Activity: 14
Merit: 0


View Profile
September 02, 2011, 12:40:26 PM
 #468

btw i was able to get it to work, with the configuration which gave me error 500 before.
maybe it doesn't work when the keychain isn't completley downloaded?
Ah, no it doesn't.  FYI during that period, if you submit any RPC requests to bitcoin directly via the command line it will respond with an error message saying the blockchain is currently downloading.

when i connected directly to bitcoin while the keychain was downloaded it gave me that message, while connecting to it through pushpoold gave me an error.
well, just to know...
Keninishna
Hero Member
*****
Offline Offline

Activity: 556
Merit: 500



View Profile
September 07, 2011, 10:18:06 AM
 #469

any fix to pushpoold not responding after a day or so?
Furyan
Full Member
***
Offline Offline

Activity: 175
Merit: 100



View Profile
September 07, 2011, 01:19:56 PM
 #470

any fix to pushpoold not responding after a day or so?

Have you made any changes to the stock code?

What do you see as the output of "netstat -anp"?  If you're hitting your ulimit with too many TIME_WAIT's that can cause it.
vernik
Newbie
*
Offline Offline

Activity: 40
Merit: 0


View Profile WWW
September 08, 2011, 05:51:55 PM
 #471

hi, after command  "netstat -anp" i had to much "CLOSE_WAIT", not "TIME_WAIT".
How to close this connections? i think this is why pushpoold does not work after some time.
DavinciJ15
Hero Member
*****
Offline Offline

Activity: 780
Merit: 510


Bitcoin - helping to end bankster enslavement.


View Profile WWW
September 17, 2011, 09:03:53 PM
 #472

Does anyone know what these parts of the pushpool server.json file are for...

Code:
        "listen" : [
                # binary protocol (default), port 8336
                { "port" : 8336 },

and

Code:
        "listen" : [
                # binary protocol, localhost-only port 8338
                { "host" : "127.0.0.1", "port" : 8338, "protocol" : "binary" }
        ],

Do the miner clients need to connect to those ports?
jgarzik
Legendary
*
Offline Offline

Activity: 1596
Merit: 1091


View Profile
September 18, 2011, 01:02:44 AM
 #473

Does anyone know what these parts of the pushpool server.json file are for...

Code:
        "listen" : [
                # binary protocol (default), port 8336
                { "port" : 8336 },

and

Code:
        "listen" : [
                # binary protocol, localhost-only port 8338
                { "host" : "127.0.0.1", "port" : 8338, "protocol" : "binary" }
        ],

Do the miner clients need to connect to those ports?

The binary protocol is documented here:  https://bitcointalk.org/index.php?topic=3493.0

No mainstream miners support it, so most people will not need it.


Jeff Garzik, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
DavinciJ15
Hero Member
*****
Offline Offline

Activity: 780
Merit: 510


Bitcoin - helping to end bankster enslavement.


View Profile WWW
September 18, 2011, 11:20:50 PM
 #474

Does anyone know what these parts of the pushpool server.json file are for...

Code:
        "listen" : [
                # binary protocol (default), port 8336
                { "port" : 8336 },

and

Code:
        "listen" : [
                # binary protocol, localhost-only port 8338
                { "host" : "127.0.0.1", "port" : 8338, "protocol" : "binary" }
        ],

Do the miner clients need to connect to those ports?

The binary protocol is documented here:  https://bitcointalk.org/index.php?topic=3493.0

No mainstream miners support it, so most people will not need it.



Thanks.
DavinciJ15
Hero Member
*****
Offline Offline

Activity: 780
Merit: 510


Bitcoin - helping to end bankster enslavement.


View Profile WWW
September 18, 2011, 11:23:13 PM
 #475

I have fixed my problem where puspool stopped working with error too many files opened now it collapses with...

"HTTP request failed: couldn't connect to host"

A restart of pushpool gets it going again.

As anyone seen this before?
jackie
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
October 10, 2011, 07:51:30 PM
 #476

I'm running pushpool0.5.1 and have a problem with it. The problem is that my pushpool is working for about 15min-3hours and everything looks normal, but after some time when I try to mine and I get this error: Problems communicating with bitcoin RPC . Pushpoold process seems like working as allways. But after killing and running pushpoold again everything works normally...
My VPS is with ubuntu-11.04-x86 and 768 Mb of RAM. Bitcoin client is in another server (windows vps).
Maybe someone knows how to fix this problem?
DavinciJ15
Hero Member
*****
Offline Offline

Activity: 780
Merit: 510


Bitcoin - helping to end bankster enslavement.


View Profile WWW
October 10, 2011, 10:39:51 PM
 #477

I'm running pushpool0.5.1 and have a problem with it. The problem is that my pushpool is working for about 15min-3hours and everything looks normal, but after some time when I try to mine and I get this error: Problems communicating with bitcoin RPC . Pushpoold process seems like working as allways. But after killing and running pushpoold again everything works normally...
My VPS is with ubuntu-11.04-x86 and 768 Mb of RAM. Bitcoin client is in another server (windows vps).
Maybe someone knows how to fix this problem?
Yeah switch to PSJ it was the only way I was able to resolve that issue.  The people here know how but they will not tell you they need to keep an upper hand.

I plan to put an end to this, I'm going to publish everything I find and there is a lot I have learned they are hiding. 

But if I where to guess at the problem you need the 4diff patch for bitcoind that should clear it up for you.  Also you should not even bother trying to mine with out that patch as it cleans up duplicate work.

Finally, here is another tip pushpool is not production ready code it's example code that just functional enough for you to rewrite it for your pool.

Good luck dude this space is cut throat centralization of mining and it has to to stop because the next phase will be... Consolidation of pools after the next bitcoin bubble or when bitcoin hit supper lows as all bubbles go from WAY over valued to WAY undervalued.

ThiagoCMC
Legendary
*
Offline Offline

Activity: 1204
Merit: 1000

฿itcoin: Currency of Resistance!


View Profile
November 07, 2011, 05:31:32 AM
Last edit: November 07, 2011, 05:45:56 AM by ThiagoCMC
 #478

Hi!

 After days trying this... I'm sure that I'm close to start my first pool!

 I'm running: pushpool-0.5.1, mysql, memcached and Litecoin (with LongPool patch applied).

 I run pushpool with: "pushpoold -c /home/administrativo/server.json -D 2 -E -F"

 Every time litecoin found a new block, I see at pushpool: "USR1 signal received, flushing LP waiters"

 All appear to be working okay but, when I connect my minerd at my pool, I don't get any "PROOF OF WORK RESULT: true (yay!!!)", even after minutes!

 But why?!

EDIT: AND... I don't see the message "Long-polling activated for http://mypool:9334/LP"... Any tips!? I disable it for tests... lol

 I'm planning to use the mmcFE web interface, it is pretty awesome and clean!

Best!
Thiago
ThiagoCMC
Legendary
*
Offline Offline

Activity: 1204
Merit: 1000

฿itcoin: Currency of Resistance!


View Profile
November 07, 2011, 06:36:28 AM
 #479


 All appear to be working okay but, when I connect my minerd at my pool, I don't get any "PROOF OF WORK RESULT: true (yay!!!)", even after minutes!

 But why?!

Best!
Thiago

Mmmm... Maybe because original pushpool does not support Scrypt!? lol

I'm trying this on now: https://github.com/ArtForz/pushpool

Tks
Thiago
ThiagoCMC
Legendary
*
Offline Offline

Activity: 1204
Merit: 1000

฿itcoin: Currency of Resistance!


View Profile
November 07, 2011, 06:51:36 AM
Last edit: November 07, 2011, 07:07:21 AM by ThiagoCMC
 #480


 All appear to be working okay but, when I connect my minerd at my pool, I don't get any "PROOF OF WORK RESULT: true (yay!!!)", even after minutes!

 But why?!

Best!
Thiago

Mmmm... Maybe because original pushpool does not support Scrypt!? lol

I'm trying this on now: https://github.com/ArtForz/pushpool

Tks
Thiago

Anyway, I'm still unable to find a valid share at my pool...    Cry
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!