public inbox for bitcoindev@googlegroups.com
 help / color / mirror / Atom feed
From: Alex Smorodin <agsmorodin@gmail.com>
To: bitcoin-development@lists.sourceforge.net
Subject: [Bitcoin-development] bitcoind replies 500 error
Date: Mon, 22 Apr 2013 14:28:11 +0300	[thread overview]
Message-ID: <CAJqWYQO61UtpZkPB7zM0fY5+HkG72nJNQ56QkGdsUhWnOhc17g@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3212 bytes --]

  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=2 --stderr --
 foreground --config=/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=
    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=0
    server=1
    rpcuser=username
    rpcpassword=password
    rpctimeout=30
    rpcallowip=*
    rpcport=8332
    rpcconnect=127.0.0.1
    gen=0
    keypool=256
    paytxfee=0.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` = ?",
            "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.

-- 
С уважением,
 Смородин Александр

            mailto: agsmorodin@gmail.com

[-- Attachment #2: Type: text/html, Size: 5077 bytes --]

                 reply	other threads:[~2013-04-22 11:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJqWYQO61UtpZkPB7zM0fY5+HkG72nJNQ56QkGdsUhWnOhc17g@mail.gmail.com \
    --to=agsmorodin@gmail.com \
    --cc=bitcoin-development@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox