Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON decode failed: "The document root must not be followed by other values." #123

Closed
kimats opened this issue Mar 4, 2018 · 14 comments
Closed
Assignees
Labels
Milestone

Comments

@kimats
Copy link

kimats commented Mar 4, 2018

I try to use proxy now...

I monitor the miner,it from time to time to show something like below:

[MY PROXY IPADDRESS: MY PROXY OUTSITE PORT] JSON decode failed: "The document root must not be followed by other values."

and other miner give:

[MY PROXY IPADDRESS: MY PROXY OUTSITE PORT] JSON decode failed: "Invalid value."

what does this mean?

config is:
{
"algo": "cryptonight",
"background": false,
"colors": true,
"retries": 5,
"retry-pause": 5,
"donate-level": 1,
"syslog": false,
"log-file": null,
"print-time": 60,
"av": 0,
"safe": false,
"max-cpu-usage": 100,
"cpu-priority": 5,
"threads": null,
"threads": 12,
"pools": [
{
"url": "MY PROXY IPADDRESS: MY PROXY OUTSITE PORT",
"user": "HELLO MONEY",
"pass": "MONEY",
"keepalive": true,
"nicehash": false
}
],
"api": {
"port": 0,
"access-token": null,
"worker-id": null
}
}

@kimats
Copy link
Author

kimats commented Mar 4, 2018

@xmrig
Please help have a look...

@xmrig
Copy link
Owner

xmrig commented Mar 4, 2018

Can you recompile miner with one small change? Uncomment this line https://github.com/xmrig/xmrig/blob/master/CMakeLists.txt#L154
After this change you will get verbose JSON output, it helps fugue out what exactly wrong.
Thank you.

@kimats
Copy link
Author

kimats commented Mar 4, 2018

@xmrig
hello man,
I have enabled it! But we have time zone issue, so I may give you feedback several hours later.

for another question I want to ask is from what Iunderstand when I use proxy, the hash rate will be not accurate, but in a long time, it is the same...So I just need set the difficulty in the proxy like xxxx.xxxx.xxxx.xxxx:port(the port i use is high difficulty to make sure the share is sent beyond 30 seconds to pool),

then let all the miner connect to it and that's all...

However, I noticed that "rejected (222/16) diff 14178 "Low difficulty share" (26 ms)", what could be the issue for this?

@kimats
Copy link
Author

kimats commented Mar 4, 2018

Hi again,
The problem occur fast, I can paste it here nwo!

two errors:
JSON decode failed: "The document root must not be followed by other values."
JSON decode failed: "Invalid value."

[2018-03-05 07:32:13] new job from orayddns.iok.la:12145 diff 165483
[2018-03-05 07:32:25] speed 2.5s/60s/15m 528.7 528.9 n/a H/s max: 530.6 H/s
[2018-03-05 07:33:13] [MY PROXY IPADDRESS: MY PROXY OUTSITE PORT] send (102 bytes): "{"id":8,"jsonrpc":"2.0","method":"keepalived","para ms":{"id":"211ccb13-4eaa-4631-a2d9-5ecacea7c1ba"}}
"
[2018-03-05 07:33:13] [MY PROXY IPADDRESS: MY PROXY OUTSITE PORT] received (71 bytes): "{"id":8,"jsonrpc":"2.0","error":null,"result":{" status":"KEEPALIVED"}}"
[2018-03-05 07:33:14] [MY PROXY IPADDRESS: MY PROXY OUTSITE PORT] received (129 bytes): "d0000000d2694ea526ecc039784d3421e8d26156814464d 5f6381244c522f6eced59049db0d","job_id":"2987238931935280d0","target":"c5ca0000"}}"
[2018-03-05 07:33:14] [MY PROXY IPADDRESS: MY PROXY OUTSITE PORT] JSON decode failed: "Invalid value."
[2018-03-05 07:33:25] speed 2.5s/60s/15m 529.2 529.2 n/a H/s max: 530.6 H/s
[2018-03-05 07:34:13] [MY PROXY IPADDRESS: MY PROXY OUTSITE PORT] received (256 bytes): "{"jsonrpc":"2.0","method":"job","params":{"blob ":"0606d481f2d4055106408ff32b9b8e7d779493c3d671f1b39777ef6d0996e21b169e7d33b0402d0000000d42ba430fb36fb9abb1d8910fd97 5b0f91960467e28431e305ef4874f1e9a6d8d0d","job_id":"8349545646226030d0","target":"8a950100"}}"
[2018-03-05 07:34:13] new job from orayddns.iok.la:12145 diff 41370
[2018-03-05 07:34:25] speed 2.5s/60s/15m 529.6 528.2 n/a H/s max: 530.6 H/s
[2018-03-05 07:34:35] [MY PROXY IPADDRESS: MY PROXY OUTSITE PORT] send (223 bytes): "{"id":9,"jsonrpc":"2.0","method":"submit","params": {"id":"211ccb13-4eaa-4631-a2d9-5ecacea7c1ba","job_id":"8349545646226030d0","nonce":"0559550d","result":"1d83aac17ae9 6a15c35a12ad63228d364bfb8c66033a134a01986cb818110100"}}
"
[2018-03-05 07:34:35] [MY PROXY IPADDRESS: MY PROXY OUTSITE PORT] received (63 bytes): "{"id":9,"jsonrpc":"2.0","error":null,"result":{" status":"OK"}}"

[2018-03-05 07:35:16] [MY PROXY IPADDRESS: MY PROXY OUTSITE PORT] received (64 bytes): "{"id":11,"jsonrpc":"2.0","error":null,"result":{"status":"OK"}}"
[2018-03-05 07:35:16] accepted (6/0) diff 88651 (358 ms)
[2018-03-05 07:35:25] speed 2.5s/60s/15m 529.8 529.2 n/a H/s max: 530.6 H/s
[2018-03-05 07:35:44] [MY PROXY IPADDRESS: MY PROXY OUTSITE PORT] received (64 bytes): "f3ee97d80d","job_id":"9490942067466670d0","target":"282c0000"}}"
[2018-03-05 07:35:44] [MY PROXY IPADDRESS: MY PROXY OUTSITE PORT] JSON decode failed: "Invalid value."
[2018-03-05 07:36:13] [MY PROXY IPADDRESS: MY PROXY OUTSITE PORT] received (256 bytes): "{"jsonrpc":"2.0","method":"job","params":{"blob":"0606d481f2d4055106408ff32b9b8e7d779493c3d671f1b39777ef6d0996e21b169e7d33b0402d0000000d5b d6cd9c2f73c5fd303f73832448606614e8db82d2969393f33bebfe8832c9480d","job_id":"8495189132634550d0","target":"4b3f0000"}}"
[2018-03-05 07:36:13] new job from orayddns.iok.la:12145 diff 265072
[2018-03-05 07:36:25] speed 2.5s/60s/15m 530.0 529.3 n/a H/s max: 530.6 H/s
[2018-03-05 07:37:13] [MY PROXY IPADDRESS: MY PROXY OUTSITE PORT] send (103 bytes): "{"id":12,"jsonrpc":"2.0","method":"keepalived","params":{"id":"211ccb13-4eaa-4631-a2d9-5ecacea7c1ba"}}
"
[2018-03-05 07:38:43] new job from orayddns.iok.la:12145 diff 76462
[2018-03-05 07:39:25] speed 2.5s/60s/15m 529.8 529.2 n/a H/s max: 530.6 H/s
[2018-03-05 07:39:43] [MY PROXY IPADDRESS: MY PROXY OUTSITE PORT] send (103 bytes): "{"id":15,"jsonrpc":"2.0","method":"keepalived","params":{"id":"b24cad4c-078e-4722-ac9f-26c08083ec40"}}
"
[2018-03-05 07:39:43] [MY PROXY IPADDRESS: MY PROXY OUTSITE PORT] received (130 bytes): "2d000000139416bce25ba960055e1688d1294e9a5318748a7a850365dccb0dd5535e983ec30d","job_id":"469032409600913130","target":"d6b60100"}}"
[2018-03-05 07:39:43] [MY PROXY IPADDRESS: MY PROXY OUTSITE PORT] JSON decode failed: "The document root must not be followed by other values."
[2018-03-05 07:39:43] [MY PROXY IPADDRESS: MY PROXY OUTSITE PORT] received (72 bytes): "{"id":15,"jsonrpc":"2.0","error":null,"result":{"status":"KEEPALIVED"}}"

@kimats
Copy link
Author

kimats commented Mar 5, 2018

@xmrig

@kimats
Copy link
Author

kimats commented Mar 5, 2018

I observer my windows PC, and I see two more error:

JSON decode failed: "Miss exponent in number."
JSON decode failed: "Missing a closing quotation mark in string."

hmmm, will it affect the mining work? looks like it is something like config file need to be more accurate or clean?

@xmrig
Copy link
Owner

xmrig commented Mar 5, 2018

Low difficulty share is generic pool error message, means something wrong with share.

About JSON errors, something wrong, you received only partial data, for TCP it's one packet can split to multiple parts or multiple packets glue together, but parser should make whole packet anyway and I was test any possible combination. I point one miner to your proxy and see same errors, need check it closer. What is internet connection on your proxy?
Thank you.

@xmrig xmrig added the bug label Mar 5, 2018
@xmrig
Copy link
Owner

xmrig commented Mar 5, 2018

I confirm it's a bug (regression) on miner side. Working on fix now.
Thank you.

@xmrig
Copy link
Owner

xmrig commented Mar 5, 2018

Fixed, all versions since 2.4.0 was affected, usually responses from pool/proxy fit to one TCP packet and this issue not appear.
Thank you.

@kimats
Copy link
Author

kimats commented Mar 5, 2018

@xmrig
OK, so I don't need to give my proxy address to you I guess.

How can I fix it? maybe I need rebuild it from the fixed source?

By the way, how can I solve the "Low difficulty share is generic pool error message, means something wrong with share."?

@xmrig
Copy link
Owner

xmrig commented Mar 5, 2018

How can I fix it? maybe I need rebuild it from the fixed source?

You need rebuild miners, I pushed changes to each repo also it affect proxy too, but I update only dev branch.

Low difficulty

Can be many reasons, something wrong with share, with pool or pool not accept expired shares (most of pool accept it).

@kimats
Copy link
Author

kimats commented Mar 5, 2018

@xmrig
"also it affect proxy ", does it mean the I also need to rebuild the proxy?
how to build the dev branch....? want to have a test to see what happened...
git clone https://github.com/xmrig/xmrig.git -->?

by the way, will it affect the mining ? if so, it's better to patch it I think..

@xmrig xmrig added this to the v2.5 milestone Mar 6, 2018
@xmrig xmrig self-assigned this Mar 6, 2018
@kimats
Copy link
Author

kimats commented Mar 6, 2018

@xmrig
I try to build a windows miner... and I get lost to install libduv, so not able to compile a windows version..when will you release the widows which will fix the issue...

@ORGaniZMo
Copy link

ORGaniZMo commented Mar 12, 2018

@kimats

"threads": null,
"threads": 12,

what?!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants