Bitcoin Forum
May 09, 2024, 02:35:18 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: upstream RPC error  (Read 664 times)
serg771 (OP)
Newbie
*
Offline Offline

Activity: 13
Merit: 0


View Profile
April 21, 2013, 09:53:39 AM
Last edit: April 21, 2013, 01:21:11 PM by serg771
 #1

Hi there.
i try to setup pushpool + bitcoind.  but when i connect to pushpool with cpuminer i receive the 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 such error in pushpool server log:
root@:/usr/local/sbin# ./pushpoold -E -F  --config=/usr/local/sbin/server.json
[2013-04-21 09:44:41.680413] Listening on host :: port 8336
[2013-04-21 09:44:41.680620] Listening on host :: port 8332
[2013-04-21 09:44:41.696668] initialized
[2013-04-21 09:44:46.196455] HTTP request failed: The requested URL returned error: 500
[2013-04-21 09:45:16.342902] HTTP request failed: The requested URL returned error: 500
[2013-04-21 09:45:46.503039] HTTP request failed: The requested URL returned error: 500
[2013-04-21 09:46:16.654475] HTTP request failed: The requested URL returned error: 500

bitcoind config:
testnet=0
server=1
rpcuser=username
rpcpassword=password
rpctimeout=30
rpcport=8335
rpcconnect=127.0.0.1
rpcsslciphers=TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH
rpcsslcertificatechainfile=server.cert
rpcsslprivatekeyfile=server.pem
gen=0
keypool=256
paytxfee=0.00



pushpool config:
{
    "listen": [
        {
            "port": 8336
        },
        {
            "port": 8332,
            "protocol": "http-json"
        }
    ],
    "database": {
        "engine": "mysql",
        "host": "localhost",
        "port": 3306,
        "name": "bitcoin",
        "username": "***",
        "password": "***",
        "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 (?, ?, ?, ?, ?, ?)"
    },
    "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:8335",
    "rpc.user": "username",
    "rpc.pass": "password",
    "rpc.target.rewrite": true
}


i have tried to change ports, reboot server.   i found some posts here about such issue but they did not help me.
i can give you any logs. if necessary i can give ssh access to server.  
  Thanks in advance.
1715222118
Hero Member
*
Offline Offline

Posts: 1715222118

View Profile Personal Message (Offline)

Ignore
1715222118
Reply with quote  #2

1715222118
Report to moderator
1715222118
Hero Member
*
Offline Offline

Posts: 1715222118

View Profile Personal Message (Offline)

Ignore
1715222118
Reply with quote  #2

1715222118
Report to moderator
1715222118
Hero Member
*
Offline Offline

Posts: 1715222118

View Profile Personal Message (Offline)

Ignore
1715222118
Reply with quote  #2

1715222118
Report to moderator
"With e-currency based on cryptographic proof, without the need to trust a third party middleman, money can be secure and transactions effortless." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715222118
Hero Member
*
Offline Offline

Posts: 1715222118

View Profile Personal Message (Offline)

Ignore
1715222118
Reply with quote  #2

1715222118
Report to moderator
1715222118
Hero Member
*
Offline Offline

Posts: 1715222118

View Profile Personal Message (Offline)

Ignore
1715222118
Reply with quote  #2

1715222118
Report to moderator
1715222118
Hero Member
*
Offline Offline

Posts: 1715222118

View Profile Personal Message (Offline)

Ignore
1715222118
Reply with quote  #2

1715222118
Report to moderator
serg771 (OP)
Newbie
*
Offline Offline

Activity: 13
Merit: 0


View Profile
April 23, 2013, 06:29:25 AM
 #2

resolved. you should  wait until your bitcoind will download the database.
everything works fine now. Smiley
Pages: [1]
  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!