Looks like a problem with longpoll, try --no-longpoll.
edit: also try cpuminer-multi, if it works I can compare.
i have executed it with the --no-longpoll option, same error it seems, also tested with cpuminer-multi with and without --no-longpoll, same result:
felix@mobile:~/local projects/cpuminer-multi$ ./cpuminer -a cryptonight -t 3 -o http://10.1.1.173:41264 -DP --no-longpoll
** cpuminer-multi 1.3.1 by tpruvot@github **
BTC donation address: 1FhDPLPpw18X4srecguG3MxJYe4a1JsZnd (tpruvot)
[2017-03-18 22:06:50] Using JSON-RPC 2.0
[2017-03-18 22:06:50] CPU Supports AES-NI: YES
[2017-03-18 22:06:50] JSON protocol request:
{"method": "login", "params": {"login": "", "pass": "", "agent": "cpuminer-multi/1.3.1"}, "id": 1}
* Rebuilt URL to: http://10.1.1.173:41264/
* Trying 10.1.1.173...
* TCP_NODELAY set
[2017-03-18 22:06:50] Binding thread 0 to cpu 0 (mask 1)
[2017-03-18 22:06:50] Binding thread 1 to cpu 1 (mask 2)
[2017-03-18 22:06:50] 3 miner threads started, using 'cryptonight' algorithm.
[2017-03-18 22:06:50] Binding thread 2 to cpu 2 (mask 4)
* Connected to 10.1.1.173 (10.1.1.173) port 41264 (#0)
* Server auth using Basic with user ''
> POST / HTTP/1.1
Host: 10.1.1.173:41264
Authorization: Basic Og==
Accept: */*
Accept-Encoding: deflate, gzip
Content-Type: application/json
Content-Length: 98
User-Agent: cpuminer-multi/1.3.1
X-Mining-Extensions: longpoll reject-reason
Expect: 100-continue
* Done waiting for 100-continue
< HTTP/1.1 200 OK
< Content-Length: 77
< Server: CryptoNote-based HTTP server
<
* Connection #0 to host 10.1.1.173 left intact
[2017-03-18 22:06:51] JSON protocol response:
{
"error": {
"code": -32601,
"message": "Method not found"
},
"id": 1,
"jsonrpc": "2.0"
}
[2017-03-18 22:06:51] JSON-RPC call failed: Method not found
[2017-03-18 22:06:51] ...retry after 10 seconds
^C[2017-03-18 22:06:54] SIGINT received, exiting
i have tested this with the wallet rpc port, with the daemon rpc port i get:
felix@mobile:~/local projects/cpuminer-multi$ ./cpuminer -a cryptonight -t 3 -o http://10.1.1.173:41263 -DP --no-longpoll
** cpuminer-multi 1.3.1 by tpruvot@github **
BTC donation address: 1FhDPLPpw18X4srecguG3MxJYe4a1JsZnd (tpruvot)
[2017-03-18 22:20:39] Using JSON-RPC 2.0
[2017-03-18 22:20:39] CPU Supports AES-NI: YES
[2017-03-18 22:20:39] JSON protocol request:
{"method": "login", "params": {"login": "", "pass": "", "agent": "cpuminer-multi/1.3.1"}, "id": 1}
* Rebuilt URL to: http://10.1.1.173:41263/
* Trying 10.1.1.173...
* TCP_NODELAY set
[2017-03-18 22:20:39] Binding thread 0 to cpu 0 (mask 1)
[2017-03-18 22:20:39] 3 miner threads started, using 'cryptonight' algorithm.
[2017-03-18 22:20:39] Binding thread 1 to cpu 1 (mask 2)
[2017-03-18 22:20:39] Binding thread 2 to cpu 2 (mask 4)
* Connected to 10.1.1.173 (10.1.1.173) port 41263 (#0)
* Server auth using Basic with user ''
> POST / HTTP/1.1
Host: 10.1.1.173:41263
Authorization: Basic Og==
Accept: */*
Accept-Encoding: deflate, gzip
Content-Type: application/json
Content-Length: 98
User-Agent: cpuminer-multi/1.3.1
X-Mining-Extensions: longpoll reject-reason
Expect: 100-continue
* Done waiting for 100-continue
< HTTP/1.1 404 Not Found
< Content-Length: 27
< Server: CryptoNote-based HTTP server
* HTTP error before end of send, stop sending
<
* Closing connection 0
[2017-03-18 22:20:40] JSON decode failed(1): '[' or '{' expected near 'Requested'
[2017-03-18 22:20:40] ...retry after 10 seconds
^C[2017-03-18 22:20:41] SIGINT received, exiting
to me it seems the rpc request method is "login" but this only works for pools
afaik one needs to connect to the daemon and use getblocktemplate?
atleast for the wallet there is no mining related method (
https://getmonero.org/knowledge-base/developer-guides/wallet-rpc)
whereas the daemon rpc has a getblocktemplate method (
https://getmonero.org/knowledge-base/developer-guides/daemon-rpc)
no matter which features is disable it always uses "login" method it seems (no-stratum, no-getwork, etc)
edit: after taking a look at this (
https://github.com/sammy007/monero-stratum/blob/master/go-pool/rpc/rpc.go), im pretty sure for solo mining to work cpuminer(-opt) needs the getblocktemplate support for cryptonight coins integrated first