Closed eX74 closed 6 years ago
I spoke with the cryptoknight.cc discord mods and they provided me with a list of APIs. Could you send me the results of the APIs? for the coming 6-7 days I am away from home so I can't setup my test server. You can PM me the results on telegram @rodneymo
Pool Stats: https://cryptoknight.cc/rpc/ipbc/stats Miner Stats: https://cryptoknight.cc/rpc/ipbc/stats_address?address= Miner Payments: https://cryptoknight.cc/rpc/ipbc/get_payments?time=&address= Miner Blocks: https://cryptoknight.cc/rpc/ipbc/get_userblocks?height=&address= Pool Payments: https://cryptoknight.cc/rpc/ipbc/get_payments?time= Pool Blocks: https://cryptoknight.cc/rpc/ipbc/get_blocks?height=
I just published version 2.3.d.7, which includes cryptoknight pool support. Bear in mind the API data is very limited, basically: hr, paid, balance and payments.
Thanks, you did fast !
Will test that as soon as I can, in a few hours I hope.
I've got this error in log :
ERROR: 2018/06/12 12:43:30 pool-monitor.go:31: Could not decode json response! ERROR: 2018/06/12 12:43:30 cryptonight.go:124: networkStats query failed! conv: "1069287276" conv: "817810425" conv: "335586476" conv: "723875843" conv: "1571916597" conv: "582824115" conv: "416661132" conv: "477002586" conv: "778924780" conv: "956965356" conv: "1063934445" conv: "981349282" conv: "882129326" conv: "711696901" conv: "891105979" conv: "1083498810" conv: "966963337" conv: "1039242266" conv: "1137710701" conv: "1098953826" conv: "1087882592" conv: "1042614481" conv: "1047247106" conv: "1224306002" conv: "1960684633" conv: "1100183549" conv: "1035027045" conv: "1202844395" conv: "1016510370" conv: "863690230"
Please attach full trace
INFO: 2018/06/12 16:15:08 rig-monitor.go:63: Connection to rig RIG1 OK. INFO: 2018/06/12 16:15:08 cryptonight.go:111: minerStats query succeeded! INFO: 2018/06/12 16:15:08 cryptonight.go:118: Querying CryptoKnight-POOL networkStats. INFO: 2018/06/12 16:15:08 cryptonight.go:111: minerStats query succeeded! INFO: 2018/06/12 16:15:08 cryptonight.go:118: Querying CryptoKnight-POOL networkStats. ERROR: 2018/06/12 16:15:08 pool-monitor.go:31: Could not decode json response! ERROR: 2018/06/12 16:15:08 cryptonight.go:124: networkStats query failed! INFO: 2018/06/12 16:15:08 cryptonight.go:126: networkStats query succeeded! conv: "723875843" conv: "1571916597" conv: "582824115" conv: "416661132" conv: "477002586" conv: "778924780" conv: "956965356" conv: "1063934445" conv: "981349282" conv: "882129326" conv: "711696901" conv: "891105979" conv: "1083498810" conv: "966963337" conv: "1039242266" conv: "1137710701" conv: "1098953826" conv: "1087882592" conv: "1042614481" conv: "1047247106" conv: "1224306002" conv: "1960684633" conv: "1100183549" conv: "1035027045" conv: "1202844395" conv: "1016510370" conv: "863690230" conv: "1312195812" conv: "1235270382" conv: "1037593482" conv: "337864249560" conv: "1753593003439" conv: "2023503961202" conv: "1030133250498" conv: "1245379427683" conv: "1091659062942" conv: "1044028898830" conv: "1018336109587" ERROR: 2018/06/12 16:15:09 influxdb.go:60: DBDaemon could not write record batch to influxDB... INFO: 2018/06/12 16:15:09 rig-monitor.go:21: New rig monitor job received: RIG3 INFO: 2018/06/12 16:15:09 rig-monitor.go:21: New rig monitor job received: RIG2
The followings error occur after an hour, it wasn't here at start when I sent you the first message :
ERROR: 2018/06/12 16:20:24 influxdb.go:60: DBDaemon could not write record batch to influxDB... ERROR: 2018/06/12 16:20:25 influxdb.go:60: DBDaemon could not write record batch to influxDB... ERROR: 2018/06/12 16:20:25 influxdb.go:60: DBDaemon could not write record batch to influxDB... ERROR: 2018/06/12 16:20:26 influxdb.go:60: DBDaemon could not write record batch to influxDB... ERROR: 2018/06/12 16:20:26 influxdb.go:60: DBDaemon could not write record batch to influxDB... ERROR: 2018/06/12 16:20:27 influxdb.go:60: DBDaemon could not write record batch to influxDB...
Another trace of the error that came back regularly :
INFO: 2018/06/12 16:25:08 pool-monitor.go:52: New pool monitor job received: label_cryptoknight_graft INFO: 2018/06/12 16:25:08 cryptonight.go:103: Querying CryptoKnight-POOL minerStats. INFO: 2018/06/12 16:25:08 pool-monitor.go:52: New pool monitor job received: label_fairpool INFO: 2018/06/12 16:25:08 fairpool.go:36: Querying FAIRPOOL minerStats. INFO: 2018/06/12 16:25:08 pool-monitor.go:52: New pool monitor job received: label_cryptoknight INFO: 2018/06/12 16:25:08 cryptonight.go:103: Querying CryptoKnight-POOL minerStats. INFO: 2018/06/12 16:25:08 rig-monitor.go:21: New rig monitor job received: RIG4 INFO: 2018/06/12 16:25:08 rig-monitor.go:21: New rig monitor job received: RIG2 INFO: 2018/06/12 16:25:08 rig-monitor.go:63: Connection to rig RIG1 OK. INFO: 2018/06/12 16:25:08 rig-monitor.go:63: Connection to rig RIG4 OK. INFO: 2018/06/12 16:25:08 rig-monitor.go:63: Connection to rig RIG2 OK. INFO: 2018/06/12 16:25:08 cryptonight.go:111: minerStats query succeeded! INFO: 2018/06/12 16:25:08 cryptonight.go:118: Querying CryptoKnight-POOL networkStats. INFO: 2018/06/12 16:25:08 cryptonight.go:111: minerStats query succeeded! INFO: 2018/06/12 16:25:08 cryptonight.go:118: Querying CryptoKnight-POOL networkStats. ERROR: 2018/06/12 16:25:08 pool-monitor.go:31: Could not decode json response! ERROR: 2018/06/12 16:25:08 cryptonight.go:124: networkStats query failed! ERROR: 2018/06/12 16:25:09 pool-monitor.go:31: Could not decode json response! conv: "337864249560" conv: "1753593003439" conv: "2023503961202" conv: "1030133250498" conv: "1245379427683" conv: "1091659062942" conv: "1044028898830" conv: "1018336109587" ERROR: 2018/06/12 16:25:09 cryptonight.go:124: networkStats query failed! conv: "723875843" conv: "1571916597" conv: "582824115" conv: "416661132" conv: "477002586" conv: "778924780" conv: "956965356" conv: "1063934445" conv: "981349282" conv: "882129326" conv: "711696901" conv: "891105979" conv: "1083498810" conv: "966963337" conv: "1039242266" conv: "1137710701" conv: "1098953826" conv: "1087882592" conv: "1042614481" conv: "1047247106" conv: "1224306002" conv: "1960684633" conv: "1100183549" conv: "1035027045" conv: "1202844395" conv: "1016510370" conv: "863690230" conv: "1312195812" conv: "1235270382" conv: "1037593482" ERROR: 2018/06/12 16:25:09 influxdb.go:60: DBDaemon could not write record batch to influxDB... INFO: 2018/06/12 16:25:09 market-monitor.go:199: Connection to https://api.coinmarketcap.com/v1/ticker?limit=0&convert=EUR OK. INFO: 2018/06/12 16:25:09 fairpool.go:44: minerStats query succeeded! INFO: 2018/06/12 16:25:09 fairpool.go:49: Querying FAIRPOOL networkStats. INFO: 2018/06/12 16:25:09 fairpool.go:57: networkStats query succeeded!
For a full trace until the error :
INFO: 2018/06/12 16:30:13 main.go:47: Starting rig-monitor version 2.3.d.7 ... INFO: 2018/06/12 16:30:13 main.go:63: Commmand line arguments: -config INFO: 2018/06/12 16:30:13 main.go:67: No config file specified. Using default config.toml file: config.toml INFO: 2018/06/12 16:30:13 config.go:61: Reading configuration file... INFO: 2018/06/12 16:30:13 main.go:87: Commmand line arguments: -m 0 INFO: 2018/06/12 16:30:13 main.go:101: Commmand line arguments: -p 0 INFO: 2018/06/12 16:30:13 main.go:112: Commmand line arguments: -r 0 INFO: 2018/06/12 16:30:13 influxdb.go:26: Starting DBDaemon routine... INFO: 2018/06/12 16:30:13 influxdb.go:94: Creating influxDB connection to http://localhost:8086 ... INFO: 2018/06/12 16:30:14 main.go:143: Launching pool monitor worker: 0 INFO: 2018/06/12 16:30:14 main.go:143: Launching pool monitor worker: 1 INFO: 2018/06/12 16:30:14 influxdb.go:94: Creating influxDB connection to http://localhost:8086 ... INFO: 2018/06/12 16:30:14 main.go:143: Launching pool monitor worker: 2 INFO: 2018/06/12 16:30:14 influxdb.go:94: Creating influxDB connection to http://localhost:8086 ... INFO: 2018/06/12 16:30:14 main.go:151: Launching rig monitor worker: 0 INFO: 2018/06/12 16:30:14 influxdb.go:94: Creating influxDB connection to http://localhost:8086 ... INFO: 2018/06/12 16:30:14 main.go:151: Launching rig monitor worker: 1 INFO: 2018/06/12 16:30:14 main.go:151: Launching rig monitor worker: 2 INFO: 2018/06/12 16:30:14 main.go:160: Launching power monitor worker: 0 INFO: 2018/06/12 16:30:14 main.go:162: Launching power rules manager worker: 0 INFO: 2018/06/12 16:30:14 main.go:160: Launching power monitor worker: 1 INFO: 2018/06/12 16:30:14 main.go:162: Launching power rules manager worker: 1 INFO: 2018/06/12 16:30:14 main.go:160: Launching power monitor worker: 2 INFO: 2018/06/12 16:30:14 main.go:162: Launching power rules manager worker: 2 INFO: 2018/06/12 16:30:14 main.go:170: Launching market monitor worker INFO: 2018/06/12 16:30:14 pool-monitor.go:52: New pool monitor job received: label_cryptoknight_graft INFO: 2018/06/12 16:30:14 power-monitor.go:25: New power monitor job received: RIG3 INFO: 2018/06/12 16:30:14 cryptonight.go:103: Querying CryptoKnight-POOL minerStats. INFO: 2018/06/12 16:30:14 influxdb.go:94: Creating influxDB connection to http://localhost:8086 ... INFO: 2018/06/12 16:30:14 power-monitor.go:25: New power monitor job received: RIG1 INFO: 2018/06/12 16:30:14 rig-monitor.go:21: New rig monitor job received: RIG3 INFO: 2018/06/12 16:30:14 influxdb.go:94: Creating influxDB connection to http://localhost:8086 ... INFO: 2018/06/12 16:30:14 pool-monitor.go:52: New pool monitor job received: label_cryptoknight INFO: 2018/06/12 16:30:14 influxdb.go:94: Creating influxDB connection to http://localhost:8086 ... INFO: 2018/06/12 16:30:14 cryptonight.go:103: Querying CryptoKnight-POOL minerStats. INFO: 2018/06/12 16:30:14 market-monitor.go:215: Connecting to to http://whattomine.com/calculators INFO: 2018/06/12 16:30:14 pool-monitor.go:52: New pool monitor job received: label_fairpool INFO: 2018/06/12 16:30:14 fairpool.go:36: Querying FAIRPOOL minerStats. INFO: 2018/06/12 16:30:14 rig-monitor.go:63: Connection to rig RIG3 OK. INFO: 2018/06/12 16:30:14 rig-monitor.go:63: Connection to rig RIG1 OK. INFO: 2018/06/12 16:30:14 market-monitor.go:226: Connection to http://whattomine.com/calculators OK. INFO: 2018/06/12 16:30:14 market-monitor.go:95: New market monitor job received INFO: 2018/06/12 16:30:15 rig-monitor.go:63: Connection to rig RIG1 OK. INFO: 2018/06/12 16:30:15 cryptonight.go:111: minerStats query succeeded! INFO: 2018/06/12 16:30:15 cryptonight.go:118: Querying CryptoKnight-POOL networkStats. INFO: 2018/06/12 16:30:15 cryptonight.go:111: minerStats query succeeded! INFO: 2018/06/12 16:30:15 cryptonight.go:118: Querying CryptoKnight-POOL networkStats. ERROR: 2018/06/12 16:30:15 pool-monitor.go:31: Could not decode json response! ERROR: 2018/06/12 16:30:15 cryptonight.go:124: networkStats query failed! conv: "337864249560" conv: "1753593003439" conv: "2023503961202" conv: "1030133250498" conv: "1245379427683" conv: "1091659062942" conv: "1044028898830" conv: "1018336109587" ERROR: 2018/06/12 16:30:15 pool-monitor.go:31: Could not decode json response! ERROR: 2018/06/12 16:30:15 cryptonight.go:124: networkStats query failed! conv: "723875843" conv: "1571916597" conv: "582824115" conv: "416661132" conv: "477002586" conv: "778924780" conv: "956965356" conv: "1063934445" conv: "981349282" conv: "882129326" conv: "711696901" conv: "891105979" conv: "1083498810" conv: "966963337" conv: "1039242266" conv: "1137710701" conv: "1098953826" conv: "1087882592" conv: "1042614481" conv: "1047247106" conv: "1224306002" conv: "1960684633" conv: "1100183549" conv: "1035027045" conv: "1202844395" conv: "1016510370" conv: "863690230" conv: "1312195812" conv: "1235270382" conv: "1037593482" INFO: 2018/06/12 16:30:16 market-monitor.go:199: Connection to https://api.coinmarketcap.com/v1/ticker?limit=0&convert=EUR OK. INFO: 2018/06/12 16:30:16 fairpool.go:44: minerStats query succeeded! INFO: 2018/06/12 16:30:16 fairpool.go:49: Querying FAIRPOOL networkStats. INFO: 2018/06/12 16:30:16 power-monitor.go:25: New power monitor job received: RIG1 INFO: 2018/06/12 16:30:16 power-monitor.go:25: New power monitor job received: RIG3 INFO: 2018/06/12 16:30:16 rig-monitor.go:21: New rig monitor job received: RIG1
Sorry I should have been more explicit. For the trace please use -t flag.
My bad, here is a (very) more explicit trace :
INFO: 2018/06/12 17:05:03 cryptonight.go:111: minerStats query succeeded!
INFO: 2018/06/12 17:05:03 cryptonight.go:118: Querying CryptoKnight-POOL networkStats.
TRACE: 2018/06/12 17:05:03 cryptonight.go:120: Pool query: https://cryptoknight.cc/rpc/ipbc/stats
ERROR: 2018/06/12 17:05:03 pool-monitor.go:31: Could not decode json response!
TRACE: 2018/06/12 17:05:03 pool-monitor.go:33: Failed with json: cannot unmarshal number 5024674011 into Go struct field .roundHashes of type int
ERROR: 2018/06/12 17:05:03 cryptonight.go:124: networkStats query failed!
TRACE: 2018/06/12 17:05:03 cryptonight.go:165: Write point to DB:
TRACE: 2018/06/12 17:05:03 cryptonight.go:166: Measurement: pool_stats
TRACE: 2018/06/12 17:05:03 cryptonight.go:167: Tags: map[pool_type:CRYPTOKNIGHT label:label_cryptoknight]
TRACE: 2018/06/12 17:05:03 cryptonight.go:168: Fields: map[paid:5.4952972657e+10 hr:27330 balance:0]
ERROR: 2018/06/12 17:05:03 pool-monitor.go:31: Could not decode json response!
TRACE: 2018/06/12 17:05:03 pool-monitor.go:33: Failed with json: cannot unmarshal number 10000000000 into Go struct field .coinUnits of type int
ERROR: 2018/06/12 17:05:03 cryptonight.go:124: networkStats query failed!
TRACE: 2018/06/12 17:05:03 cryptonight.go:165: Write point to DB:
TRACE: 2018/06/12 17:05:03 cryptonight.go:166: Measurement: pool_stats
TRACE: 2018/06/12 17:05:03 cryptonight.go:167: Tags: map[pool_type:CRYPTOKNIGHT label:label_cryptoknight_graft]
TRACE: 2018/06/12 17:05:03 cryptonight.go:168: Fields: map[hr:11320 balance:0 paid:1.0605120500534e+13]
TRACE: 2018/06/12 17:05:03 influxdb.go:54: New record received by DBDaemon: pool_stats map[pool_type:CRYPTOKNIGHT label:label_cryptoknight] map[balance:0 hr:27330 paid:5.4952972657e+10]
Here is the output you asked :
{"stats":{"hashes":"13791900000","lastShare":"1528836117","balance":"0","paid":"54952972657","hashrate":"22.33 KH"},"payments":["3c29c9f2e0586ba7b666f8c92210ad9d6313ed36397fde909e39aab972fe7fdd:1037593482:200000:0","1528819964","70ee0d9c846a98d63c2f749fc60f21d5fb40d599d65ca8c0f8a45e2414fa994b:1235270382:200000:0","1528818523","762e7089836cac6dcdf98671ef35991a25ae39ba8b0003b11b1253cb05f465b4:1312195812:200000:0","1528815402","a885366dab0be1afecefcf6134a5c6d1fdb98590fb72266d55e4cd9d8566894d:863690230:200000:0","1528802849","90beb764ebd8c9bf3b167c80e4a8a8228aedbf1ac18b8a9e85510626c21cff63:1016510370:200000:0","1528798406","6431ff2ebecab291be6cbd8631a84e7dda663dd17a97c06b058c4a120417c200:1202844395:200000:0","1528794623","343e633a507af1666ca94e0bf7adea0f705ca02e02bff983e378f7532079e05b:1035027045:200000:0","1528781227","6b4afef74a3242660ee14570f4e8f5d4a5ac2c5bf2dbde02e9cb9cc993e19b41:1100183549:200000:0","1528780626","1ee386c2f8cf5813b24d98cb9556ae15bc6bf764422e78a998df81560535827b:1960684633:200000:0","1528763991","d6d44f4392e645a82cba110d864e5acec06821441d1e7f5f8e1f587718e04ff2:1224306002:200000:0","1528760810","7eedd18e2ed41ddd95dd6ed876a4c241b2def669ff0be36016bed1c5166730f2:1047247106:200000:0","1528754141","25133a9c38bd0253958d56a21b7af0b0763b3f4b3069a3e896c7bb70cfbfb7d2:1042614481:200000:0","1528712825","0012c82994048cbab65153fba684668cd141285850dd3f7518cccbf7ebfb713d:1087882592:200000:0","1528712587","574d8db6d6a819a2caa095e8dfa100993ea1152aacf6bccec465a101d0ac923d:1098953826:200000:0","1528704476","8f4b5d089467492acd2320d5aeaa7903d68ae0832c6bddea22d2bcb888d06901:1137710701:200000:0","1528699010","728254cfaa91045b2bf80c345dd1c3b285eea8e175c8ee0c840bccae015f2d94:1039242266:200000:0","1528695589","2a5d11fe97bcf3510a18d96d16e11dbb0bdf22641f5fd820420cb1b0110c06ed:966963337:200000:0","1528660515","6a7e15d452cfe0741a4b87e9895e269f7a075ef2c28f83124a88caac3e99eac9:1083498810:200000:0","1528650245","5ea632574bf1d19a0642dea7b9d8370b56b139546a9a25c511ebaec9b4848b1f:891105979:200000:0","1528644660","15c470c16fbaf35e37fda068d83bc9dc3ac4218a0fa3fd641619ee01c2d66dd7:711696901:200000:0","1528638233","f8aa39af2831f866a2613acf91899394623e9bfec0d27198d75af5ed24c2ac41:882129326:200000:0","1528637392","bc6c91e42f0be14b848d74222c724cb19051e68c40aeb43f7dbea2c313d7561d:981349282:200000:0","1528621176","c930999546978eff33d3e0bc5b3e1c45b96201254f69cf10eeae6844e14ff160:1063934445:200000:0","1528609165","a7c27ad9094ae35e01a703fd6c26aef8556a9007c39f11539eefd05d05f85372:956965356:200000:0","1528606284","0ed750e01542dc15ff3913fb139a7e34876d3f500ed4faedb90489888a81143d:778924780:200000:0","1528592170","c7f9841ede8c3ea47fb511abf661574d10295c27618962b4b27684a2e47ff3ea:477002586:200000:0","1528583039","daf35ae7406da736d37848000eacf136764f17f82a2b1a76d04850106f82f971:416661132:200000:0","1528575591","06aabef577919e5d26132c86303601e881d1f727156e1bf85aa2ba3613b7b5a8:582824115:200000:0","1528571088","dc423c709928113c03dce9621a4cd874bb7f6d7a7e6348f994b2031c711b4b52:1571916597:200000:0","1528563040","99176f1597a7da4e70327bb8f731487f6f1f7bb46a1faf317dbf6d4afd771454:723875843:200000:0","1528548809"],"charts":{"payments":[[1528548809,"723875843"],[1528563040,"1571916597"],[1528571088,"582824115"],[1528575591,"416661132"],[1528583039,"477002586"],[1528592170,"778924780"],[1528606284,"956965356"],[1528609165,"1063934445"],[1528621176,"981349282"],[1528637392,"882129326"],[1528638233,"711696901"],[1528644660,"891105979"],[1528650245,"1083498810"],[1528660515,"966963337"],[1528695589,"1039242266"],[1528699010,"1137710701"],[1528704476,"1098953826"],[1528712587,"1087882592"],[1528712825,"1042614481"],[1528754141,"1047247106"],[1528760810,"1224306002"],[1528763991,"1960684633"],[1528780626,"1100183549"],[1528781227,"1035027045"],[1528794623,"1202844395"],[1528798406,"1016510370"],[1528802849,"863690230"],[1528815402,"1312195812"],[1528818523,"1235270382"],[1528819964,"1037593482"]],"hashrate":[[1528663247,26166,10],[1528663870,27741,9],[1528664494,25927,9],[1528665180,28766,10],[1528665803,28593,9],[1528666427,24633,10],[1528667113,26778,9],[1528667736,22767,10],[1528668360,25766,10],[1528668983,25867,10],[1528669607,23734,10],[1528670230,26038,9],[1528670854,30459,8],[1528671477,32167,10],[1528672101,32301,10],[1528672724,27629,9],[1528673348,29267,10],[1528673971,28101,10],[1528674657,26375,8],[1528675281,24469,9],[1528675904,26063,7],[1528676527,22292,8],[1528677151,25001,8],[1528677774,26466,10],[1528678398,26768,10],[1528679021,26234,10],[1528679645,32734,10],[1528680269,30001,9],[1528680892,27223,9],[1528681515,30333,10],[1528682139,25700,10],[1528682762,25722,6],[1528683385,25401,10],[1528684009,27767,10],[1528684633,28041,8],[1528685256,26074,9],[1528685880,26301,10],[1528686503,26148,9],[1528687126,31519,9],[1528687750,35630,9],[1528688374,30042,8],[1528688997,29133,10],[1528689620,29074,9],[1528690369,27149,9],[1528690992,27250,8],[1528691615,29037,9],[1528692301,28964,9],[1528692925,28001,10],[1528693548,28223,9],[1528694171,32534,10],[1528694795,31619,7],[1528695419,30926,9],[1528696042,28259,9],[1528696666,27734,10],[1528697290,26200,10],[1528697913,27750,8],[1528698537,31501,6],[1528699160,31917,8],[1528699784,29334,8],[1528700407,27542,8],[1528701093,28167,8],[1528701716,29293,8],[1528702340,24286,7],[1528702963,26149,9],[1528703587,30296,9],[1528704210,28096,7],[1528704833,27734,10],[1528705519,25110,9],[1528706143,22889,9],[1528706767,27390,6],[1528707390,26001,6],[1528708013,29191,7],[1528708699,31667,9],[1528709322,24185,9],[1528709940,25000,7],[1528710563,27667,8],[1528711186,33467,10],[1528711810,27875,8],[1528712496,26209,8],[1528713119,26166,8],[1528713805,25407,9],[1528714429,27370,9],[1528715115,30333,9],[1528715738,28407,9],[1528716362,22445,9],[1528716985,25666,10],[1528717609,24433,10],[1528718295,23889,9],[1528718918,23715,7],[1528719542,22149,9],[1528720165,26750,8],[1528720851,27926,9],[1528721475,28815,9],[1528722099,25792,8],[1528722722,25223,9],[1528723346,24112,9],[1528723969,19959,8],[1528724655,18286,7],[1528725403,18428,7],[1528726027,16556,6],[1528726650,18962,9],[1528727273,18593,9],[1528727897,18519,9],[1528728521,14777,9],[1528729145,13889,9],[1528729769,12768,10],[1528730393,10084,8],[1528731079,17001,9],[1528731702,18268,10],[1528732326,16297,9],[1528732949,23856,10],[1528733760,28853,9],[1528734383,27926,9],[1528735007,31166,8],[1528735630,30668,8],[1528736316,29371,9],[1528736940,26519,9],[1528737564,30600,10],[1528738187,27852,9],[1528738810,25209,8],[1528739434,26499,10],[1528740057,32185,9],[1528740743,32555,9],[1528741366,28704,9],[1528741990,32963,9],[1528742613,32201,10],[1528743237,29889,6],[1528743860,32299,10],[1528744483,34556,9],[1528745107,26223,9],[1528745730,29666,10],[1528746354,31500,10],[1528746977,29185,9],[1528747601,31482,9],[1528748286,31600,10],[1528748910,35238,7],[1528749533,29433,10],[1528750157,26519,9],[1528750780,29852,9],[1528751403,29260,9],[1528752027,26333,9],[1528752650,31468,10],[1528753274,33600,10],[1528753897,28834,10],[1528754521,29668,8],[1528755144,27267,10],[1528755768,28799,10],[1528756392,26767,10],[1528757015,28250,8],[1528757638,30966,10],[1528758262,27700,10],[1528758885,26741,9],[1528759508,31111,9],[1528760132,32251,8],[1528760755,27481,9],[1528761378,30835,10],[1528762002,36033,10],[1528762625,33401,10],[1528763249,26899,10],[1528763873,29999,10],[1528764496,31482,9],[1528765119,32667,10],[1528765805,28000,9],[1528766429,24500,8],[1528767052,22125,8],[1528767676,22708,8],[1528768299,27750,8],[1528768923,24853,9],[1528769546,27001,9],[1528770169,33741,9],[1528770793,32815,9],[1528771416,29000,8],[1528772040,18472,8],[1528772663,22389,8],[1528773286,23400,10],[1528773910,25541,8],[1528774533,26434,10],[1528775157,29074,9],[1528775780,32075,9],[1528776404,33778,9],[1528777027,33900,10],[1528777651,28556,9],[1528778274,24433,10],[1528778898,25167,10],[1528779521,26292,8],[1528780145,29334,10],[1528780768,29934,10],[1528781392,30519,9],[1528782077,28100,10],[1528782701,31200,10],[1528783325,29833,10],[1528783948,31700,10],[1528784634,29367,10],[1528785258,34583,8],[1528785881,27741,9],[1528786505,23934,10],[1528787191,28260,9],[1528787814,30566,10],[1528788437,31667,8],[1528789061,28296,9],[1528789684,29408,9],[1528790308,24297,9],[1528790931,29816,9],[1528791555,33518,9],[1528792240,30297,9],[1528792864,31083,8],[1528793487,29889,9],[1528794110,27408,9],[1528794734,25600,10],[1528795358,24524,7],[1528795981,29100,10],[1528796605,27048,7],[1528797228,28816,9],[1528797851,25286,7],[1528798474,27890,9],[1528799160,22666,9],[1528799783,14500,10],[1528800407,16366,10],[1528801030,17692,9],[1528801778,23286,7],[1528802402,25149,9],[1528803025,28267,10],[1528803649,30630,9],[1528804334,32167,8],[1528804958,26583,8],[1528805581,24112,9],[1528806205,29567,10],[1528806828,34078,10],[1528807514,28811,10],[1528808138,32745,10],[1528808761,33584,8],[1528809447,29619,7],[1528810070,30148,9],[1528810694,28482,9],[1528811317,26334,8],[1528811941,32933,10],[1528812564,28762,7],[1528813187,29763,7],[1528813811,30100,10],[1528814434,24834,8],[1528815058,28250,8],[1528815681,35767,10],[1528816305,32800,10],[1528816928,26777,9],[1528817552,26372,9],[1528818175,30815,9],[1528818799,32751,8],[1528819484,30833,10],[1528820108,27777,9],[1528820731,32572,7],[1528821355,26100,10],[1528821978,26833,8],[1528822602,27779,9],[1528823225,27223,9],[1528823849,28251,8],[1528824472,27074,9],[1528825095,26741,9],[1528825719,31858,7],[1528826343,35067,10],[1528826967,32766,9],[1528827590,27953,7],[1528828214,29852,9],[1528828900,31375,8],[1528829585,30926,9],[1528830209,28260,9],[1528830832,26333,7],[1528831456,28481,9],[1528832079,28209,8],[1528832702,26740,9],[1528833326,27292,8],[1528833949,27143,7],[1528834573,26778,9],[1528835196,22000,9],[1528835820,22334,3]]}}
A bonus, I think it can be useful. It's the same request but on graft :
{"stats":{"hashes":"2469643251","lastShare":"1528836291","balance":"650723440100","paid":"10605120500534","lastpayment":"1528822998","hashrate":"4.28 KH","hashrate_pplns":2687},"payments":["f7b26402606399bf4013ae5aa7f0a1d7478ba0ce918a9153533d7fa5013c65b3:1060622536793:f7b26402606399bf4013ae5aa7f0a1d7478ba0ce918a9153533d7fa5013c65b3:5","1528823002","e8b3b5aa1068489f4fdcee936184ed612c0b722ffc2a6144d9cd5c8d8714bb54:1018336109587:e8b3b5aa1068489f4fdcee936184ed612c0b722ffc2a6144d9cd5c8d8714bb54:5","1528800087","91f022a95e9ac10cd8a76b2b16e1b4c5772358a74aaefd7bfb0dcaca6e26332f:1044028898830:91f022a95e9ac10cd8a76b2b16e1b4c5772358a74aaefd7bfb0dcaca6e26332f:5","1528775987","749f5522d1aae8b904d0db2aa405d1d5a34cc5da49384ff80f2715cee3726b09:1091659062942:749f5522d1aae8b904d0db2aa405d1d5a34cc5da49384ff80f2715cee3726b09:5","1528764247","ad3c122b6a0f9e0e01e57244b3ac2b3e006f930432de40bf6ba7050808e2c01d:1245379427683:ad3c122b6a0f9e0e01e57244b3ac2b3e006f930432de40bf6ba7050808e2c01d:5","1528757000","a8baf0ad93a6182978f6a72dbe6595e4a792cef85256d7e041d9413dc94ad575:1030133250498:a8baf0ad93a6182978f6a72dbe6595e4a792cef85256d7e041d9413dc94ad575:5","1528732891","f22374767734607f7767a5485ec9f0e956f3ae52c3c093487bd3dc8d3e5c8fa5:2023503961202:f22374767734607f7767a5485ec9f0e956f3ae52c3c093487bd3dc8d3e5c8fa5:5","1528721087","30878f885e06a1be872c9b6d2f0e44edbd06df49e93a897c7fadbe95f1fa0598:1753593003439:30878f885e06a1be872c9b6d2f0e44edbd06df49e93a897c7fadbe95f1fa0598:5","1528670020","e5af1646002d55dc72ffac8353d2d0be26ec627a06d17df3f68e406eb8e73345:337864249560:e5af1646002d55dc72ffac8353d2d0be26ec627a06d17df3f68e406eb8e73345:5","1528633474"],"blocks":["1528828851:1528835679:15852259845295:2596561:2749900952:14964355300:4184300340:0:0:0:3379875575","104600","1528828321:1528835529:15861704517896:15578572:4119092869:59969211924:5388984220:0:0:0:3177187810","104598","1528826783:1528834029:15857149008618:6369978:2123076948:47577027494:0:0:0:0:3038269023","104583","1528826028:1528833428:15852130971555:1059593:1803311220:9307607516:11602518830:0:0:0:3123305519","104577","1528825836:1528832648:15859827850872:1518750:3999980817:6021807266:0:0:0:0:3011554955","104572","1528825384:1528832378:15852372857954:11206324:5603438946:31698233573:2472701530:0:0:0:2748530308","104569","1528824208:1528831238:15865293976041:8244267:3725399897:35100171410:4311434600:0:0:0:2991961856","104559","1528823384:1528830968:15852765930953:5725626:876292605:103540522803:6150303265:0:0:0:3444172609","104556","1528823082:1528830968:15859200710072:35691147:6240057791:90674409023:6150303265:0:0:0:3430998549","104555","1528820378:1528828237:15856982328116:8342854:2670504967:49522730552:5009140220:0:0:0:3579729568","104534"],"candidates":["1528834888:9411081797:52717266","104653","1528830851:2374553916:8401213","104613","1528829854:1324936103:1780012","104610","1528829310:1846526939:3139911","104606"],"workers":{"eA==":["5.73 KH",1528836291.313,224.1365,0]},"charts":{"payments":[[1528633474,"337864249560"],[1528670020,"1753593003439"],[1528721087,"2023503961202"],[1528732891,"1030133250498"],[1528757000,"1245379427683"],[1528764247,"1091659062942"],[1528775987,"1044028898830"],[1528800087,"1018336109587"],[1528823002,"1060622536793"]],"hashrate":[[1528663462,8970,11],[1528664122,6001,11],[1528664782,8593,11],[1528665442,6140,11],[1528666102,11636,9],[1528666705,9595,11],[1528667365,10033,11],[1528668025,9745,11],[1528668685,14181,11],[1528669345,9871,10],[1528670007,7828,11],[1528670667,4306,11],[1528671327,6778,11],[1528671987,10850,11],[1528672647,20954,11],[1528673307,7274,9],[1528673909,12718,11],[1528674569,7489,11],[1528675229,5012,11],[1528675889,8967,11],[1528676549,14975,10],[1528677211,13921,10],[1528677812,8639,11],[1528678472,16788,11],[1528679132,8429,11],[1528679792,7202,11],[1528680452,8135,9],[1528681054,12415,11],[1528681714,19607,11],[1528682374,4898,9],[1528683034,9981,11],[1528683694,6626,11],[1528684416,8322,11],[1528685076,8670,11],[1528685736,8195,11],[1528686396,15362,11],[1528687056,12539,11],[1528687716,16856,9],[1528688318,10429,11],[1528688978,10197,11],[1528689638,8791,10],[1528690239,5727,11],[1528690899,7070,11],[1528691621,7759,11],[1528692281,7116,11],[1528692941,14553,11],[1528693601,15110,11],[1528694261,13386,11],[1528694921,9082,9],[1528695523,11871,11],[1528696183,6577,11],[1528696843,5601,11],[1528697503,7313,11],[1528698163,10787,10],[1528698825,9405,11],[1528699485,13540,11],[1528700145,5605,10],[1528700746,9210,11],[1528701406,10085,11],[1528702066,10785,9],[1528702668,17475,11],[1528703328,12778,11],[1528703988,11130,11],[1528704648,12235,11],[1528705308,12333,11],[1528706030,12609,11],[1528706690,11071,11],[1528707350,12906,11],[1528708010,12672,11],[1528708670,11342,11],[1528709330,3377,9],[1528709932,10777,11],[1528710592,20690,10],[1528711193,18281,11],[1528711853,13226,11],[1528712513,24446,11],[1528713235,13535,11],[1528713895,14884,11],[1528714555,20625,11],[1528715215,24002,11],[1528715875,8656,11],[1528716535,18880,9],[1528717137,24470,11],[1528717797,21591,11],[1528718457,11208,11],[1528719117,6474,11],[1528719777,7392,10],[1528720439,16683,11],[1528721099,7446,11],[1528721759,9416,11],[1528722419,10410,11],[1528723079,17325,11],[1528723739,15863,9],[1528724342,7749,11],[1528725002,3301,11],[1528725662,8429,11],[1528726322,22255,11],[1528726982,15697,10],[1528727644,4606,11],[1528728304,10570,11],[1528728964,10680,11],[1528729624,14800,11],[1528730284,11054,11],[1528730944,18777,9],[1528731546,5052,11],[1528732206,6429,11],[1528732866,11425,11],[1528733526,8914,11],[1528734186,5924,10],[1528734849,6437,11],[1528735509,15156,11],[1528736169,11662,11],[1528736829,4261,11],[1528737489,9816,11],[1528738149,16018,9],[1528738751,9077,11],[1528739411,8417,11],[1528740071,17509,11],[1528740731,17228,11],[1528741391,8678,10],[1528742053,19026,11],[1528742713,10307,11],[1528743373,6579,11],[1528744033,10039,11],[1528744693,9136,11],[1528745353,10243,9],[1528745956,7683,11],[1528746616,17335,11],[1528747276,4753,11],[1528747936,10290,11],[1528748596,19654,10],[1528749258,4541,11],[1528749918,7548,11],[1528750578,8936,11],[1528751238,14595,11],[1528751898,13568,11],[1528752558,20180,9],[1528753160,21863,11],[1528753820,10844,11],[1528754480,21162,11],[1528755140,19799,11],[1528755800,9716,7],[1528756462,8628,11],[1528757122,10576,11],[1528757782,6717,10],[1528758383,14683,11],[1528759043,13184,11],[1528759703,21945,9],[1528760305,19936,11],[1528760965,13737,11],[1528761625,12843,11],[1528762285,9897,11],[1528762945,4970,11],[1528763667,10248,11],[1528764327,9951,11],[1528764987,9747,11],[1528765647,18751,11],[1528766307,21441,11],[1528766967,12639,9],[1528767569,12349,11],[1528768229,19912,11],[1528768889,9703,11],[1528769549,11695,11],[1528770209,9181,10],[1528770871,8122,11],[1528771531,5599,11],[1528772192,10782,11],[1528772852,15180,11],[1528773512,13066,11],[1528774172,15625,9],[1528774774,11917,11],[1528775434,11484,11],[1528776094,17993,11],[1528776754,19426,11],[1528777414,13453,10],[1528778076,20724,11],[1528778736,12243,11],[1528779396,16449,11],[1528780056,3845,11],[1528780716,10859,11],[1528781376,8157,9],[1528781978,11399,11],[1528782638,7160,11],[1528783298,9303,11],[1528783958,4717,11],[1528784618,7929,10],[1528785280,13959,11],[1528785940,8302,11],[1528786600,7498,10],[1528787201,9502,11],[1528787861,10607,11],[1528788521,13889,9],[1528789123,13826,11],[1528789783,9281,11],[1528790443,6988,11],[1528791103,6395,11],[1528791763,12994,11],[1528792485,8054,11],[1528793145,4307,11],[1528793805,11599,11],[1528794465,16788,11],[1528795125,15786,11],[1528795785,14700,9],[1528796387,7504,11],[1528797047,8206,11],[1528797707,6063,11],[1528798367,14432,11],[1528799027,19537,10],[1528799690,16031,11],[1528800350,14736,11],[1528801010,11250,11],[1528801670,7933,11],[1528802330,11489,11],[1528802990,15472,9],[1528803592,15269,11],[1528804252,14249,11],[1528804912,5892,11],[1528805572,8937,11],[1528806232,17111,10],[1528806894,14713,11],[1528807554,12264,11],[1528808214,8947,11],[1528808874,11286,11],[1528809534,4799,11],[1528810194,17830,9],[1528810796,9011,10],[1528811397,5819,11],[1528812057,12367,11],[1528812717,11204,11],[1528813377,14336,11],[1528814099,17756,11],[1528814759,9679,11],[1528815419,7168,11],[1528816079,8351,11],[1528816739,10220,11],[1528817399,12827,9],[1528818001,17562,11],[1528818661,11791,11],[1528819321,8585,11],[1528819981,7767,11],[1528820641,8020,10],[1528821303,8024,11],[1528821963,17825,11],[1528822623,18352,11],[1528823283,14369,11],[1528823943,8951,11],[1528824603,9040,9],[1528825206,9115,11],[1528825866,3968,11],[1528826526,10159,11],[1528827186,7428,11],[1528827846,11417,10],[1528828508,8477,11],[1528829168,6519,11],[1528829828,6704,11],[1528830488,6896,11],[1528831148,4418,11],[1528831808,8521,9],[1528832410,13325,11],[1528833070,11454,11],[1528833730,13565,11],[1528834390,21540,11],[1528835050,12123,10],[1528835713,10992,11]]}}
Which OS are you using?
After a few hours it crashed, when I launch again grm it crashed with this trace :
ERROR: 2018/06/13 06:09:51 pool-monitor.go:31: Could not decode json response!
TRACE: 2018/06/13 06:09:51 pool-monitor.go:33: Failed with json: cannot unmarshal number 5027646541 into Go struct field .roundHashes of type int
ERROR: 2018/06/13 06:09:51 cryptonight.go:124: networkStats query failed!
TRACE: 2018/06/13 06:09:51 cryptonight.go:165: Write point to DB:
TRACE: 2018/06/13 06:09:51 cryptonight.go:166: Measurement: pool_stats
TRACE: 2018/06/13 06:09:51 cryptonight.go:167: Tags: map[pool_type:CRYPTOKNIGHT label:label_cryptoknight]
TRACE: 2018/06/13 06:09:51 cryptonight.go:168: Fields: map[hr:13330 balance:0 paid:5.7039589161e+10]
TRACE: 2018/06/13 06:09:51 influxdb.go:54: New record received by DBDaemon: pool_stats map[label:label_cryptoknight pool_type:CRYPTOKNIGHT] map[balance:0 hr:13330 paid:5.7039589161e+10]
goroutine 9 [running]: go-rig-monitor/pool.(*PoolConfig).LoadCryptoKnightpoolData(0x12169bf0, 0x4915e0, 0x12354000, 0x1222ff80) /Users/ramf/go/src/go-rig-monitor/pool/cryptonight.go:138 +0x1794 go-rig-monitor/pool.Monitor(0x12114640, 0x15, 0x12112ee0, 0x7, 0x12112f80, 0x7, 0x12113030, 0x8, 0x1e, 0x0, ...) /Users/ramf/go/src/go-rig-monitor/pool/pool-monitor.go:69 +0x284 created by main.main /Users/ramf/go/src/go-rig-monitor/main.go:144 +0x8e4
Debian on a Pi3 and Raspian on a Pi1, the logs are from the Pi3
Try this one. At least the json decode errors should be fixed. grm-2.3.d.8-linux-arm7.tar.gz
OK I'll test very soon
I confirm that only the following errors stayed :
ERROR: 2018/06/13 07:09:34 pool-monitor.go:31: Could not decode json response! ERROR: 2018/06/13 07:09:34 cryptonight.go:124: networkStats query failed!
There is still lots of the following lines :
ERROR: 2018/06/13 07:14:02 influxdb.go:39: DBDaemon could not write record batch to influxDB...
And a new non-critical error occured :
ERROR: 2018/06/13 07:14:33 profit-monitor.go:202: Recovered from panic with runtime error: index out of range ERROR: 2018/06/13 07:14:33 profit-monitor.go:47: Failed to query label_fairpool pool revenue data ERROR: 2018/06/13 07:14:33 profit-monitor.go:94: Cannot add poll profitability data point to influxDB batch. Failed with error: NaN is an unsupported value for field profitability_24h ERROR: 2018/06/13 07:14:33 profit-monitor.go:94: Cannot add poll profitability data point to influxDB batch. Failed with error: NaN is an unsupported value for field profitability_24h ERROR: 2018/06/13 07:14:33 profit-monitor.go:94: Cannot add poll profitability data point to influxDB batch. Failed with error: NaN is an unsupported value for field profitability_24h ERROR: 2018/06/13 07:14:33 profit-monitor.go:94: Cannot add poll profitability data point to influxDB batch. Failed with error: NaN is an unsupported value for field profitability_24h ERROR: 2018/06/13 07:14:33 profit-monitor.go:94: Cannot add poll profitability data point to influxDB batch. Failed with error: NaN is an unsupported value for field profitability_24h
You can ignore the last ones. That's the profitability feature, which is not yet fully tested.
Could you PM you config file via bitcointalk or telegram? I need to run it locally otherwise it's going to take too much time
Done
This one should fix it, but before you run it log in to influx
use rig data drop measurement network_stats
BTW, you have duplicate pool entries on your config. Entries 1 and 3 are for the same pool. grm-2.3.d.9-linux-arm7.tar.gz
In my conf there is only 3 lines for pools, the line before these three is commented and, yes, it is the same as the second line. This was when I realised my address was already there ;)
Will try it now, thanks !
Nice job, it works well !
Still some error in logs : INFO: 2018/06/13 11:27:14 pool-monitor.go:52: New pool monitor job received: label_fairpool INFO: 2018/06/13 11:27:14 pool-monitor.go:52: New pool monitor job received: label_cryptoknight INFO: 2018/06/13 11:27:14 cryptonight.go:103: Querying CryptoKnight-POOL minerStats. INFO: 2018/06/13 11:27:14 cryptonight.go:111: minerStats query succeeded! INFO: 2018/06/13 11:27:14 cryptonight.go:118: Querying CryptoKnight-POOL networkStats. INFO: 2018/06/13 11:27:15 cryptonight.go:111: minerStats query succeeded! INFO: 2018/06/13 11:27:15 cryptonight.go:118: Querying CryptoKnight-POOL networkStats. INFO: 2018/06/13 11:27:15 cryptonight.go:126: networkStats query succeeded! ERROR: 2018/06/13 11:27:15 pool-monitor.go:31: Could not decode json response! ERROR: 2018/06/13 11:27:15 cryptonight.go:124: networkStats query failed! INFO: 2018/06/13 11:27:15 market-monitor.go:199: Connection to https://api.coinmarketcap.com/v1/ticker?limit=0&convert=EUR OK. INFO: 2018/06/13 11:27:15 fairpool.go:44: minerStats query succeeded! INFO: 2018/06/13 11:27:15 fairpool.go:49: Querying FAIRPOOL networkStats.
I precise that I did the influx commands before updating.
Thanks
Send me another trace please and just grep for ERROR
BTW, did you notice that I gave updated the binaries? Did you use version d.8 or d.9?
I downloaded the last link, didn't see the d.9. Will check that.
INFO: 2018/06/13 12:42:24 cryptonight.go:111: minerStats query succeeded! INFO: 2018/06/13 12:42:24 cryptonight.go:118: Querying CryptoKnight-POOL networkStats. INFO: 2018/06/13 12:42:24 cryptonight.go:111: minerStats query succeeded! INFO: 2018/06/13 12:42:24 cryptonight.go:118: Querying CryptoKnight-POOL networkStats. INFO: 2018/06/13 12:42:24 cryptonight.go:126: networkStats query succeeded! ERROR: 2018/06/13 12:42:24 pool-monitor.go:31: Could not decode json response! ERROR: 2018/06/13 12:42:24 cryptonight.go:124: networkStats query failed!
Same error, I suspect that the first pool (tube) was fine and that the graft one is faulty. I can provide more API output if needed.
I tested once more time with your config file and got no errors. Try this one just in case. If you still get an error then please dump the entire trace into a file ./grm -t > trace.txt and send it back grm-2.3.d.10-linux-arm7.tar.gz
Same error, cannot send full trace for now but there is this line that can explain something :
TRACE: 2018/06/13 14:08:00 pool-monitor.go:33: Failed with json: cannot unmarshal number 50000000000 into Go struct field .minPaymentThreshold of type int
I changed all the ints. So I hope this one fixes it now once and for all. grm-2.3.d.11-linux-arm7.tar.gz
Good job !
No more errors :)
Support added in version 2.3.0
The API is not well documented, exploring site sources give me the following address to get stats :
https://cryptoknight.cc/rpc/COIN/stats_address?address=COIN_ADDRESS&longpoll=false