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-RPC call failed: [ 2147483647, "Unknown", null ] #262

Closed
joenhon opened this issue Apr 14, 2019 · 17 comments
Closed

JSON-RPC call failed: [ 2147483647, "Unknown", null ] #262

joenhon opened this issue Apr 14, 2019 · 17 comments

Comments

@joenhon
Copy link

joenhon commented Apr 14, 2019

JSON-RPC call failed: [
2147483647,
"Unknown",
null
]
各位大神 这是个什么情况

@SwimmingTiger
Copy link
Contributor

出现在哪里?

@joenhon
Copy link
Author

joenhon commented Apr 14, 2019

出现在哪里?

挖矿程序上

@joenhon
Copy link
Author

joenhon commented Apr 14, 2019

image

@joenhon
Copy link
Author

joenhon commented Apr 14, 2019

image

@joenhon
Copy link
Author

joenhon commented Apr 14, 2019

我都不知道 我是不是安装成功了 运行挖矿测试程序 直接报root@joen-virtual-machine:/work/btcpool/build/run_simulator# ./simulator -c simulator.cfg -l /tmp/log
F0415 01:18:50.985239 44000 SimulatorMain.cc:158] exception: basic_string::_M_create
*** Check failure stack trace: ***
@ 0x7fa0c82d60cd google::LogMessage::Fail()
@ 0x7fa0c82d7f33 google::LogMessage::SendToLog()
@ 0x7fa0c82d5c28 google::LogMessage::Flush()
@ 0x7fa0c82d8999 google::LogMessageFatal::~LogMessageFatal()
@ 0x5645d97134b9 (unknown)
@ 0x7fa0c658cb97 __libc_start_main
@ 0x5645d971268a (unknown)
已放弃 (核心已转储)

@joenhon
Copy link
Author

joenhon commented Apr 14, 2019

root@joen-virtual-machine:/tmp/log# tail -f simulator.INFO
Log file created at: 2019/04/15 01:18:50
Running on machine: joen-virtual-machine
Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg
I0415 01:18:50.983707 44000 SimulatorMain.cc:94] BTC simulator version 2.3.2-262-g0522458
I0415 01:18:50.984303 44000 StratumClient.cc:250] send(68): {"id":1,"method":"mining.subscribe","params":["simulator/0.1"]}
I0415 01:18:50.984838 44000 StratumClient.cc:145] recv(39): {"id":1,"jsonrpc":"2.0","result":true}
E0415 01:18:50.984874 44000 StratumClient.cc:191] json result is null, err:
I0415 01:18:50.985203 44000 StratumClient.cc:302] StratumClientWrapper::stop...
F0415 01:18:50.985239 44000 SimulatorMain.cc:158] exception: basic_string::_M_create

@joenhon
Copy link
Author

joenhon commented Apr 14, 2019

明明自己都说接收到result为true 到了191行就说为空

@SwimmingTiger
Copy link
Contributor

这很有问题。看起来你的模拟器发送了一个JSON-RPC1.0请求,但是收到了一个JSON-RPC2.0响应(缺少result字段)。你的sserver.cfg的type是什么?

@joenhon
Copy link
Author

joenhon commented Apr 14, 2019

这很有问题。看起来你的模拟器发送了一个JSON-RPC1.0请求,但是收到了一个JSON-RPC2.0响应(缺少result字段)。你的sserver.cfg的type是什么?

image

@SwimmingTiger
Copy link
Contributor

SwimmingTiger commented Apr 14, 2019

你想要挖掘Siacoin吗?
挖掘Siacoin的代码是不完整并且未经测试的,应该没有办法正常工作。‘
如果你想要挖掘Bitcoin,请设置type为BTC,并且把缺少的配置项补充完整。
建议使用这里的配置文件:
https://github.com/btccom/btcpool/tree/master/src/bitcoin/cfg
当然,type = "BCH"; 需要改为type = "BTC";

@joenhon
Copy link
Author

joenhon commented Apr 14, 2019

原来如此 谢谢大佬

@joenhon
Copy link
Author

joenhon commented Apr 14, 2019

你想要挖掘Siacoin吗?
挖掘Siacoin的代码是不完整并且未经测试的,应该没有办法正常工作。‘
如果你想要挖掘Bitcoin,请设置type为BTC,并且把缺少的配置项补充完整。
建议使用这里的配置文件:
https://github.com/btccom/btcpool/tree/master/src/bitcoin/cfg
当然,type = "BCH"; 需要改为type = "BTC";

{"id":5,"result":null,"error":[400,"Client is not a stratum switcher",null]}
大佬, 这个又是因为什么原因?

@de1acr0ix
Copy link
Contributor

你想要挖掘Siacoin吗?
挖掘Siacoin的代码是不完整并且未经测试的,应该没有办法正常工作。‘
如果你想要挖掘Bitcoin,请设置type为BTC,并且把缺少的配置项补充完整。
建议使用这里的配置文件:
https://github.com/btccom/btcpool/tree/master/src/bitcoin/cfg
当然,type = "BCH"; 需要改为type = "BTC";

{"id":5,"result":null,"error":[400,"Client is not a stratum switcher",null]}
大佬, 这个又是因为什么原因?

请在编译时使用 -DPOOL__WORK_WITH_STRATUM_SWITCHER=OFF CMake 选项,该选项控制 stratum switcher 的支持,详细的 CMake 选项说明可以在 https://github.com/btccom/btcpool/blob/master/docs/INSTALL-BTCPool.md#cmake-options 找到。

@joenhon
Copy link
Author

joenhon commented Apr 15, 2019

你想要挖掘Siacoin吗?
挖掘Siacoin的代码是不完整并且未经测试的,应该没有办法正常工作。”
如果你想要挖掘比特币,请设置类型为BTC,并且把缺少的配置项补充完整。
建议使用这里的配置文件:
https//github.com/btccom/btcpool/tree/master/src/bitcoin/cfg
当然,type = "BCH";需要改为type = "BTC";

{“id”:5,“result”:null,“error”:[400,“Client is not a stratum switcher”,null]}
大佬,这个又是因为什么原因?

请在编译时使用-DPOOL__WORK_WITH_STRATUM_SWITCHER=OFFCMake选项,该选项控制stratum switcher的支持,详细的CMake选项说明可以在https://github.com/btccom/btcpool/blob/master/docs/INSTALL-BTCPool.md#cmake-options找到。

非常的感谢

@joenhon
Copy link
Author

joenhon commented Apr 15, 2019

你想要挖掘Siacoin吗?
挖掘Siacoin的代码是不完整并且未经测试的,应该没有办法正常工作。”
如果你想要挖掘比特币,请设置类型为BTC,并且把缺少的配置项补充完整。
建议使用这里的配置文件:
https//github.com/btccom/btcpool/tree/master/src/bitcoin/cfg
当然,type = "BCH";需要改为type = "BTC";

{“id”:5,“result”:null,“error”:[400,“Client is not a stratum switcher”,null]}
大佬,这个又是因为什么原因?

请在编译时使用-DPOOL__WORK_WITH_STRATUM_SWITCHER=OFFCMake选项,该选项控制stratum switcher的支持,详细的CMake选项说明可以在https://github.com/btccom/btcpool/blob/master/docs/INSTALL-BTCPool.md#cmake-options找到。

重新CMake了一下 环境全崩😭

@YihaoPeng
Copy link

make clean,然后把build目录里面和cmake有关的(CMake* CPack* cmake*)删掉再重新运行cmake ......就可以了吧。

@YihaoPeng
Copy link

因为没有进一步反馈,该issue暂时关闭

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

No branches or pull requests

4 participants