Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1UUEux-0002Tt-6x for bitcoin-development@lists.sourceforge.net; Mon, 22 Apr 2013 11:28:19 +0000 Received-SPF: pass (sog-mx-4.v43.ch3.sourceforge.com: domain of gmail.com designates 209.85.217.174 as permitted sender) client-ip=209.85.217.174; envelope-from=agsmorodin@gmail.com; helo=mail-lb0-f174.google.com; Received: from mail-lb0-f174.google.com ([209.85.217.174]) by sog-mx-4.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1UUEuv-0003nQ-VZ for bitcoin-development@lists.sourceforge.net; Mon, 22 Apr 2013 11:28:19 +0000 Received: by mail-lb0-f174.google.com with SMTP id s10so5542063lbi.19 for ; Mon, 22 Apr 2013 04:28:11 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.112.146.6 with SMTP id sy6mr10978981lbb.105.1366630091218; Mon, 22 Apr 2013 04:28:11 -0700 (PDT) Received: by 10.114.68.138 with HTTP; Mon, 22 Apr 2013 04:28:11 -0700 (PDT) Date: Mon, 22 Apr 2013 14:28:11 +0300 Message-ID: From: Alex Smorodin To: bitcoin-development@lists.sourceforge.net Content-Type: multipart/alternative; boundary=e89a8f3b9c2920671504daf15d01 X-Spam-Score: -0.6 (/) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (agsmorodin[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.0 NORMAL_HTTP_TO_IP URI: Uses a dotted-decimal IP address in URL 0.0 WEIRD_PORT URI: Uses non-standard port number for HTTP 1.0 HTML_MESSAGE BODY: HTML included in message -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-Headers-End: 1UUEuv-0003nQ-VZ Subject: [Bitcoin-development] bitcoind replies 500 error X-BeenThere: bitcoin-development@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Apr 2013 11:28:19 -0000 --e89a8f3b9c2920671504daf15d01 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Hello, All! I'm trying to setup pushpool + bitcoind. However, when I connect to pushpool with cpuminer I receive this error: [2013-04-21 12:47:47] json_rpc_call failed, retry after 30 seconds [2013-04-21 12:48:17] JSON-RPC call failed: { "code": -2, "message": "upstream RPC error" } [2013-04-21 12:48:17] json_rpc_call failed, retry after 30 seconds I see this error in the **pushpool server log**: root@ip-10-28-79-184:/usr/local/sbin# ./pushpoold --debug=3D2 --stderr = -- foreground --config=3D/usr/local/sbin/server.json [2013-04-21 13:26:28.319949] Debug output enabled [2013-04-21 13:26:28.333064] Forcing local hostname to localhost [2013-04-21 13:26:28.456350] Listening on host :: port 8336 [2013-04-21 13:26:28.456477] Listening on host 10.28.79.184 port 8334 [2013-04-21 13:26:28.485367] initialized JSON protocol request: {"method": "getwork", "params": [], "id":1} About to connect() to 127.0.0.1 port 8332 (#0) Trying 127.0.0.1... * TCP_NODELAY set connected Connected to 127.0.0.1 (127.0.0.1) port 8332 (#0) Server auth using Basic with user 'username' POST / HTTP/1.1 Authorization: Basic dXNlcm5hbWV2YXN5YTpwYXNzd29yZHZhc3lhMTQ=3D Host: 127.0.0.1:8332 Accept: */* Accept-Encoding: deflate, gzip Content-type: application/json Content-Length: 45 The requested URL returned error: 500 Closing connection #0 [2013-04-21 13:26:31.743119] HTTP request failed: The requested URL returned error: 500 **bitcoind config:** testnet=3D0 server=3D1 rpcuser=3Dusername rpcpassword=3Dpassword rpctimeout=3D30 rpcallowip=3D* rpcport=3D8332 rpcconnect=3D127.0.0.1 gen=3D0 keypool=3D256 paytxfee=3D0.00 **pushpool config:** { "listen": [ { "port": 8336 }, { "host" : "server_ip", "port" : 8334, "protocol" : "http-json" } ], "database": { "engine": "mysql", "host": "localhost", "port": 3306, "name": "bitcoin", "username": "mysql_username", "password": "mysql_password", "sharelog": true, "stmt.pwdb": "SELECT `password` FROM `pool_worker` WHERE `username` =3D ?", "stmt.sharelog" : "INSERT INTO shares (rem_host, username, our_result, upstream_result, reason, solution) VALUES (?, ?, ?, ?, ?, ?)" }, "pid": "/tmp/pushpool/pushpoold.pid", "forcehost": "localhost", "log.requests": "/tmp/pushpool/request.log", "log.shares": "/tmp/pushpool/shares.log", "auth.cred_cache.expire": 75, "rpc.url": "http:// 127.0.0.1:8332/", "rpc.user": "username", "rpc.pass": "password", "rpc.target.rewrite": true } I have tried to change ports, and even rebooted the server, nothing helps. If you need pore information, i will show. Thanks. --=20 =F3 =D5=D7=C1=D6=C5=CE=C9=C5=CD, =F3=CD=CF=D2=CF=C4=C9=CE =E1=CC=C5=CB=D3=C1=CE=C4=D2 mailto: agsmorodin@gmail.com --e89a8f3b9c2920671504daf15d01 Content-Type: text/html; charset=KOI8-R Content-Transfer-Encoding: quoted-printable
=9A Hello, All!

= I'm trying to setup pushpool + bitcoind. =9AHowever, when I connect to = pushpool with cpuminer I receive this error: =9A=9A

=9A =9A [2013-04-21 12:47:47] json_rpc_call failed, retry after 30 second= s =9A
=9A =9A [2013-04-21 12:48:17] JSON-RPC call failed: { =9A
= =9A =9A =9A =9A"code": -2, =9A
=9A =9A =9A =9A"mes= sage": "upstream RPC error" =9A
=9A =9A } =9A
=9A =9A [2013-04-21 12:48:17] json_rpc_call failed, retry after 30 se= conds =9A



I see this error in the *= *pushpool server log**: =9A =9A
=9A =9A root@ip-10-28-79-184:/usr= /local/sbin# ./pushpoold --debug=3D2 --stderr -- =9Aforeground --config=3D/= usr/local/sbin/server.json =9A
=9A =9A [2013-04-21 13:26:28.319949] Debug output enabled =9A
=9A =9A [2013-04-21 13:26:28.333064] Forcing local hostname to loca= lhost =9A
=9A =9A [2013-04-21 13:26:28.456350] Listening on host = :: port 8336 =9A
=9A =9A [2013-04-21 13:26:28.456477] Listening on host 10.28.79.184 po= rt 8334 =9A
=9A =9A [2013-04-21 13:26:28.485367] initialized =9A<= /div>
=9A =9A JSON protocol request: =9A
=9A =9A {"metho= d": "getwork", "params": [], "id":1} =9A=
=9A =9A =9A=9A
=9A =9A About to connect() to 127.0.0.1 port = 8332 (#0) =9A
=9A =9A =9A =9ATrying 127.0.0.1... * TCP_NODELAY se= t =9A
=9A =9A =9Aconnected =9A
=9A =9A =9AConnected to = 127.0.0.1 (127.0.0.1) port 8332 (#0) =9A
=9A =9A =9AServer auth using Basic with user 'username' =9A
=9A =9A =9APOST / HTTP/1.1 =9A
=9A =9A Authorization: Bas= ic dXNlcm5hbWV2YXN5YTpwYXNzd29yZHZhc3lhMTQ=3D =9A
=9A =9A Host: <= a href=3D"http://127.0.0.1:8332">127.0.0.1:8332 =9A
=9A =9A Accept: */* =9A
=9A =9A Accept-Encoding: deflate, gz= ip =9A
=9A =9A Content-type: application/json =9A
=9A = =9A Content-Length: 45 =9A
=9A =9A=9A
=9A =9A =9AThe re= quested URL returned error: 500 =9A
=9A =9A =9AClosing connection #0 =9A
=9A =9A [2013-04-21 13:= 26:31.743119] HTTP request failed: The requested URL returned error: 500 = =9A



**bitcoind confi= g:** =9A

=9A =9A testnet=3D0 =9A
=9A =9A server=3D1 = =9A
=9A =9A rpcuser=3Dusername =9A
=9A =9A rpcpassword= =3Dpassword =9A
=9A =9A rpctimeout=3D30 =9A
=9A =9A rpc= allowip=3D* =9A
=9A =9A rpcport=3D8332 =9A
=9A =9A rpcconnect=3D127.0.0.1 =9A
=9A =9A gen=3D0 =9A=9A
=9A =9A keypool=3D256 =9A
=9A =9A paytxfee=3D0.00=9A




**pushpoo= l config:** =9A=9A

=9A =9A { =9A
=9A =9A =9A =9A "listen": [ =9A
=9A =9A =9A =9A =9A =9A { =9A
=9A =9A =9A =9A =9A =9A =9A = =9A "port": 8336 =9A
=9A =9A =9A =9A =9A =9A }, =9A
=9A =9A =9A =9A =9A =9A { =9A
=9A =9A =9A =9A =9A =9A =9A = =9A "host" : "server_ip", =9A
=9A =9A =9A =9A =9A =9A =9A =9A "port" : 8334, =9A
=9A =9A =9A =9A =9A =9A =9A =9A "protocol" : "http-json&quo= t; =9A
=9A =9A =9A =9A =9A =9A } =9A
=9A =9A =9A =9A ],= =9A
=9A =9A =9A =9A "database": { =9A
=9A =9A =9A =9A =9A =9A "engine": "mysql", =9A
=9A =9A =9A =9A =9A =9A "host": "localhost", =9A
=9A =9A =9A =9A =9A =9A "port": 3306, =9A
=9A =9A= =9A =9A =9A =9A "name": "bitcoin", =9A =9A
=9A =9A =9A =9A =9A =9A "username": "mysql_username&quo= t;, =9A
=9A =9A =9A =9A =9A =9A "password": "mysql= _password", =9A
=9A =9A =9A =9A =9A =9A "sharelog"= : true, =9A
=9A =9A =9A =9A =9A =9A "stmt.pwdb": "= SELECT `password` FROM `pool_worker` WHERE `username` =3D ?", =9A
=9A =9A =9A =9A =9A =9A "stmt.sharelog" : =9A"INSERT IN= TO shares (rem_host, username, our_result, upstream_result, reason, solutio= n) VALUES (?, ?, ?, ?, ?, ?)" =9A
=9A =9A =9A =9A }, =9A
=9A =9A=9A
=9A =9A "pid": "/tmp/pushpool/pushpoold.pid", =9A
=
=9A =9A "forcehost": "localhost", =9A
= =9A =9A =9A =9A "log.requests": "/tmp/pushpool/request.log&q= uot;, =9A
=9A =9A =9A =9A "log.shares": "/tmp/pushpool/shares.log"= ;, =9A
=9A =9A =9A =9A "auth.cred_cache.expire": 75, = =9A
=9A =9A =9A =9A "rpc.url": "http:// 127.0.0.1:8332/", =9A
=9A =9A =9A =9A "rpc.user": "username", =9A
<= div>=9A =9A =9A =9A "rpc.pass": "password", =9A
=9A =9A =9A =9A "rpc.target.rewrite": true =9A
=9A = =9A } =9A



I have tried to change ports, and even reboot= ed the server, =9Anothing helps.=9A
If you need pore inform= ation, i will show. =9A
=9A =9AThanks.=9A

--
=F3 =D5=D7=C1=D6=C5=CE=C9=C5=CD,
=9A=F3=CD=CF=D2=CF=C4=C9=CE =E1=CC=C5= =CB=D3=C1=CE=C4=D2
=9A =9A =9A =9A =9A =9A =9A =9A
=9A =9A =9A =9A = =9A =9A mailto: agsmorodin@gmail.co= m
--e89a8f3b9c2920671504daf15d01--