summaryrefslogtreecommitdiff
path: root/c2/53bd3f05963902892e03537e9b72aed79eb9db
blob: f1f64316b3382367cb440a6d615446175ab4065e (plain)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
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 <agsmorodin@gmail.com>) 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 <bitcoin-development@lists.sourceforge.net>;
	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: <CAJqWYQO61UtpZkPB7zM0fY5+HkG72nJNQ56QkGdsUhWnOhc17g@mail.gmail.com>
From: Alex Smorodin <agsmorodin@gmail.com>
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: <bitcoin-development.lists.sourceforge.net>
List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/bitcoin-development>,
	<mailto:bitcoin-development-request@lists.sourceforge.net?subject=unsubscribe>
List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum_name=bitcoin-development>
List-Post: <mailto:bitcoin-development@lists.sourceforge.net>
List-Help: <mailto:bitcoin-development-request@lists.sourceforge.net?subject=help>
List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/bitcoin-development>,
	<mailto:bitcoin-development-request@lists.sourceforge.net?subject=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

<div dir=3D"ltr"><div style>=9A Hello, All!</div><div style><br></div><div>=
I&#39;m trying to setup pushpool + bitcoind. =9AHowever, when I connect to =
pushpool with cpuminer I receive this error: =9A=9A</div><div><br></div><di=
v>=9A =9A [2013-04-21 12:47:47] json_rpc_call failed, retry after 30 second=
s =9A</div>
<div>=9A =9A [2013-04-21 12:48:17] JSON-RPC call failed: { =9A</div><div>=
=9A =9A =9A =9A&quot;code&quot;: -2, =9A</div><div>=9A =9A =9A =9A&quot;mes=
sage&quot;: &quot;upstream RPC error&quot; =9A</div><div>=9A =9A } =9A</div=
><div>=9A =9A [2013-04-21 12:48:17] json_rpc_call failed, retry after 30 se=
conds =9A</div>
<div><br></div><div><br></div><div><br></div><div>I see this error in the *=
*pushpool server log**: =9A =9A</div><div>=9A =9A root@ip-10-28-79-184:/usr=
/local/sbin# ./pushpoold --debug=3D2 --stderr -- =9Aforeground --config=3D/=
usr/local/sbin/server.json =9A<br>
</div><div>=9A =9A [2013-04-21 13:26:28.319949] Debug output enabled =9A</d=
iv><div>=9A =9A [2013-04-21 13:26:28.333064] Forcing local hostname to loca=
lhost =9A</div><div>=9A =9A [2013-04-21 13:26:28.456350] Listening on host =
:: port 8336 =9A</div>
<div>=9A =9A [2013-04-21 13:26:28.456477] Listening on host 10.28.79.184 po=
rt 8334 =9A</div><div>=9A =9A [2013-04-21 13:26:28.485367] initialized =9A<=
/div><div>=9A =9A JSON protocol request: =9A</div><div>=9A =9A {&quot;metho=
d&quot;: &quot;getwork&quot;, &quot;params&quot;: [], &quot;id&quot;:1} =9A=
</div>
<div>=9A =9A =9A=9A</div><div>=9A =9A About to connect() to 127.0.0.1 port =
8332 (#0) =9A</div><div>=9A =9A =9A =9ATrying 127.0.0.1... * TCP_NODELAY se=
t =9A</div><div>=9A =9A =9Aconnected =9A</div><div>=9A =9A =9AConnected to =
127.0.0.1 (127.0.0.1) port 8332 (#0) =9A</div>
<div>=9A =9A =9AServer auth using Basic with user &#39;username&#39; =9A</d=
iv><div>=9A =9A =9APOST / HTTP/1.1 =9A</div><div>=9A =9A Authorization: Bas=
ic dXNlcm5hbWV2YXN5YTpwYXNzd29yZHZhc3lhMTQ=3D =9A</div><div>=9A =9A Host: <=
a href=3D"http://127.0.0.1:8332">127.0.0.1:8332</a> =9A</div>
<div>=9A =9A Accept: */* =9A</div><div>=9A =9A Accept-Encoding: deflate, gz=
ip =9A</div><div>=9A =9A Content-type: application/json =9A</div><div>=9A =
=9A Content-Length: 45 =9A</div><div>=9A =9A=9A</div><div>=9A =9A =9AThe re=
quested URL returned error: 500 =9A</div>
<div>=9A =9A =9AClosing connection #0 =9A</div><div>=9A =9A [2013-04-21 13:=
26:31.743119] HTTP request failed: The requested URL returned error: 500 =
=9A</div><div><br></div><div><br></div><div><br></div><div>**bitcoind confi=
g:** =9A</div>
<div><br></div><div>=9A =9A testnet=3D0 =9A</div><div>=9A =9A server=3D1 =
=9A</div><div>=9A =9A rpcuser=3Dusername =9A</div><div>=9A =9A rpcpassword=
=3Dpassword =9A</div><div>=9A =9A rpctimeout=3D30 =9A</div><div>=9A =9A rpc=
allowip=3D* =9A</div><div>=9A =9A rpcport=3D8332 =9A</div>
<div>=9A =9A rpcconnect=3D127.0.0.1 =9A</div><div>=9A =9A gen=3D0 =9A=9A</d=
iv><div>=9A =9A keypool=3D256 =9A</div><div>=9A =9A paytxfee=3D0.00=9A</div=
><div><br></div><div><br></div><div><br></div><div><br></div><div>**pushpoo=
l config:** =9A=9A</div><div><br></div>
<div>=9A =9A { =9A</div><div>=9A =9A =9A =9A &quot;listen&quot;: [ =9A</div=
><div>=9A =9A =9A =9A =9A =9A { =9A</div><div>=9A =9A =9A =9A =9A =9A =9A =
=9A &quot;port&quot;: 8336 =9A</div><div>=9A =9A =9A =9A =9A =9A }, =9A</di=
v><div>=9A =9A =9A =9A =9A =9A { =9A</div><div>=9A =9A =9A =9A =9A =9A =9A =
=9A &quot;host&quot; : &quot;server_ip&quot;, =9A</div>
<div>=9A =9A =9A =9A =9A =9A =9A =9A &quot;port&quot; : 8334, =9A</div><div=
>=9A =9A =9A =9A =9A =9A =9A =9A &quot;protocol&quot; : &quot;http-json&quo=
t; =9A</div><div>=9A =9A =9A =9A =9A =9A } =9A</div><div>=9A =9A =9A =9A ],=
 =9A</div><div>=9A =9A =9A =9A &quot;database&quot;: { =9A</div><div>
=9A =9A =9A =9A =9A =9A &quot;engine&quot;: &quot;mysql&quot;, =9A</div><di=
v>=9A =9A =9A =9A =9A =9A &quot;host&quot;: &quot;localhost&quot;, =9A</div=
><div>=9A =9A =9A =9A =9A =9A &quot;port&quot;: 3306, =9A</div><div>=9A =9A=
 =9A =9A =9A =9A &quot;name&quot;: &quot;bitcoin&quot;, =9A =9A</div>
<div>=9A =9A =9A =9A =9A =9A &quot;username&quot;: &quot;mysql_username&quo=
t;, =9A</div><div>=9A =9A =9A =9A =9A =9A &quot;password&quot;: &quot;mysql=
_password&quot;, =9A</div><div>=9A =9A =9A =9A =9A =9A &quot;sharelog&quot;=
: true, =9A</div><div>=9A =9A =9A =9A =9A =9A &quot;stmt.pwdb&quot;: &quot;=
SELECT `password` FROM `pool_worker` WHERE `username` =3D ?&quot;, =9A</div=
>
<div>=9A =9A =9A =9A =9A =9A &quot;stmt.sharelog&quot; : =9A&quot;INSERT IN=
TO shares (rem_host, username, our_result, upstream_result, reason, solutio=
n) VALUES (?, ?, ?, ?, ?, ?)&quot; =9A</div><div>=9A =9A =9A =9A }, =9A</di=
v><div>=9A =9A=9A</div><div>
=9A =9A &quot;pid&quot;: &quot;/tmp/pushpool/pushpoold.pid&quot;, =9A</div>=
<div>=9A =9A &quot;forcehost&quot;: &quot;localhost&quot;, =9A</div><div>=
=9A =9A =9A =9A &quot;log.requests&quot;: &quot;/tmp/pushpool/request.log&q=
uot;, =9A</div><div>
=9A =9A =9A =9A &quot;log.shares&quot;: &quot;/tmp/pushpool/shares.log&quot=
;, =9A</div><div>=9A =9A =9A =9A &quot;auth.cred_cache.expire&quot;: 75, =
=9A</div><div>=9A =9A =9A =9A &quot;rpc.url&quot;: &quot;http:// <a href=3D=
"http://127.0.0.1:8332/">127.0.0.1:8332/</a>&quot;, =9A</div>
<div>=9A =9A =9A =9A &quot;rpc.user&quot;: &quot;username&quot;, =9A</div><=
div>=9A =9A =9A =9A &quot;rpc.pass&quot;: &quot;password&quot;, =9A</div><d=
iv>=9A =9A =9A =9A &quot;rpc.target.rewrite&quot;: true =9A</div><div>=9A =
=9A } =9A</div><div><br></div><div>
<br></div><div><br></div><div>I have tried to change ports, and even reboot=
ed the server, =9Anothing helps.=9A</div><div style>If you need pore inform=
ation, i will show. =9A</div><div style>=9A =9AThanks.=9A</div><div><br></d=
iv>-- <br>
=F3 =D5=D7=C1=D6=C5=CE=C9=C5=CD,<br>=9A=F3=CD=CF=D2=CF=C4=C9=CE =E1=CC=C5=
=CB=D3=C1=CE=C4=D2 <br>=9A =9A =9A =9A =9A =9A =9A =9A <br>=9A =9A =9A =9A =
=9A =9A mailto: <a href=3D"mailto:agsmorodin@gmail.com">agsmorodin@gmail.co=
m</a>
</div>

--e89a8f3b9c2920671504daf15d01--