TheMiningDwarf
Jr. Member
Offline
Activity: 71
Merit: 1
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 16, 2018, 10:35:48 PM Last edit: June 16, 2018, 11:48:49 PM by TheMiningDwarf |
|
Hi Again,
I have quite a few L3+ I installed a linux VM Now if I understand corerectly, I first set the clock of the miner. let say 452mh then I run the script and it will find the best voltage for it yes ?
Thanks
|
|
|
|
TheMiningDwarf
Jr. Member
Offline
Activity: 71
Merit: 1
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 17, 2018, 12:28:33 AM |
|
I get command not found
|
|
|
|
psycodad (OP)
Legendary
Offline
Activity: 1631
Merit: 1721
精神分析的爸
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 17, 2018, 10:31:50 AM |
|
I have quite a few L3+ I installed a linux VM Now if I understand corerectly, I first set the clock of the miner. let say 452mh then I run the script and it will find the best voltage for it yes ?
Yes, that's right. You first set your desired freq and then let the script find the best voltage setting for each of the four chains in your L3+. Could you post what you did exactly posting the exact commands you entered? The "command not found" normally hints that you are missing the path to the command. I.e. if you are in the directory where l3plus_autotune.py is located, you need to add "./" in front of it to tell the shell that you want to execute the command in the same folder. HTH
|
|
|
|
TheMiningDwarf
Jr. Member
Offline
Activity: 71
Merit: 1
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 17, 2018, 12:38:51 PM Last edit: June 17, 2018, 12:56:13 PM by TheMiningDwarf |
|
I am in the directory where the files were downloaded, as per your intruction BTW their is a typo on your instructions, you spelled bitmian instead of bitmain ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) I tried with and without the ./ in and out of the installation dir ![Sad](https://bitcointalk.org/Smileys/default/sad.gif) @Master-VRTJMB:~/bitmain-tools/scripts$ ./l3plus_autotune.py -i 10.0.100.141 /usr/bin/env: ‘python’: No such file or directory @Master-VRTJMB:~/bitmain-tools/scripts$
|
|
|
|
psycodad (OP)
Legendary
Offline
Activity: 1631
Merit: 1721
精神分析的爸
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 17, 2018, 12:56:04 PM |
|
I am in the directory where the files were downloaded, as per your intruction BTW their is a typo on your instructions, you spelled bitmian instead of bitmain ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) I tried with and without the ./ in and out of the installation dir ![Sad](https://bitcointalk.org/Smileys/default/sad.gif) Thanks for spotting that, I fixed the typo. I am a bit unsure where you could be stuck or what could be missing. Could you change into the bitmain-tools/scripts directory and try the following two commands and paste the output here: ls -la ./l3plus_autotune.py Generally, the more info you post, the easier is it to guide you through the procedure.
|
|
|
|
TheMiningDwarf
Jr. Member
Offline
Activity: 71
Merit: 1
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 17, 2018, 12:57:51 PM |
|
drwxr-xr-x 1 root root 4096 Jun 17 08:50 . drwxr-xr-x 1 root root 4096 Jun 17 08:50 .. -rwxr-xr-x 1 root root 27269 Jun 17 08:50 l3plus_autotune.py -rw-r--r-- 1 root root 2137 Jun 17 08:50 README.md -rw-r--r-- 1 root root 29976 Jun 17 08:50 sv.txt @Master-VRTJMB:~/bitmain-tools/scripts$ ./l3plus_autotune.py /usr/bin/env: ‘python’: No such file or directory @Master-VRTJMB:~/bitmain-tools/scripts$
|
|
|
|
psycodad (OP)
Legendary
Offline
Activity: 1631
Merit: 1721
精神分析的爸
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 17, 2018, 01:20:03 PM |
|
drwxr-xr-x 1 root root 4096 Jun 17 08:50 . drwxr-xr-x 1 root root 4096 Jun 17 08:50 .. -rwxr-xr-x 1 root root 27269 Jun 17 08:50 l3plus_autotune.py -rw-r--r-- 1 root root 2137 Jun 17 08:50 README.md -rw-r--r-- 1 root root 29976 Jun 17 08:50 sv.txt @Master-VRTJMB:~/bitmain-tools/scripts$ ./l3plus_autotune.py /usr/bin/env: ‘python’: No such file or directory @Master-VRTJMB:~/bitmain-tools/scripts$
Ah, good I asked. You seem to have installed a rather minimal Ubuntu VM with no python, but no problem. Do the following: sudo apt-get install python2.7 While at it you might also want to install the required paramiko module: sudo apt-get install python-paramiko But already after your first step the error should look different (reporting that you need paramiko too).
|
|
|
|
TheMiningDwarf
Jr. Member
Offline
Activity: 71
Merit: 1
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 17, 2018, 01:36:16 PM |
|
ok now I get this
jhgosselin@Master-VRTJMB:~/bitmain-tools/scripts$ ./l3plus_autotune.py -i 10.0.100.141 /usr/lib/python2.7/dist-packages/Crypto/Cipher/blockalgo.py:141: FutureWarning: CTR mode needs counter parameter, not IV self._cipher = factory.new(key, *args, **kwargs) /config/sv binary not found on target miner, installing it first: MD5sum [113ad2c06daac293386e28807ea35671] matches, good. Binary /config/sv successfully installed. Failed to decode json reply: Expecting , delimiter: line 1 column 222 (char 221)
{"STATUS":[{"STATUS":"S","When":1529242535,"Code":70,"Msg":"CGMiner stats","Description":"cgminer 4.9.0"}],"STATS":[{"CGMiner":"4.9.0","Miner":"1.0.1.3","CompileTime":"Thu Apr 12 15:55:21 CST 2018","Type":"Antminer L3++"}{"STATS":0,"ID":"L30","Elapsed":68458,"Calls":0,"Wait":0.000000,"Max":0.000000,"Min":99999999.000000,"GHS 5s":"582.46","GHS av":588.22,"miner_count":4,"frequency":"456","fan_num":2,"fan1":3660,"fan2":3690,"temp_num":4,"temp1":56,"temp2":54,"temp3":53,"temp4":50,"temp2_1":65,"temp2_2":62,"temp2_3":61,"temp2_4":56,"temp31":0,"temp32":0,"temp33":0,"temp34":0,"temp4_1":0,"temp4_2":0,"temp4_3":0,"temp4_4":0,"temp_max":56,"Device Hardware%":0.0000,"no_matching_work":23283,"chain_acn1":72,"chain_acn2":72,"chain_acn3":72,"chain_acn4":72,"chain_acs1":" oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo","chain_acs2":" oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo","chain_acs3":" oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo","chain_acs4":" oooooooo oooooooo oooooooo oooooooo oooxoooo oooooooo oooooooo oooooooo oooooooo","chain_hw1":4670,"chain_hw2":167,"chain_hw3":697,"chain_hw4":17749,"chain_rate1":"139.24","chain_rate2":"155.34","chain_rate3":"146.29","chain_rate4":"141.59"}],"id":1} jhgosselin@Master-VRTJMB:~/bitmain-tools/scripts$
|
|
|
|
psycodad (OP)
Legendary
Offline
Activity: 1631
Merit: 1721
精神分析的爸
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 17, 2018, 02:27:53 PM |
|
Oh well, another new cgminer output with json glitches, this time it's the L3++. Don't know why every version of cgminer I have met has invalid json output that has to be fixed first. Anyway, thanks to your pasted output I could (hopefully) fix that as I have no L3++ to test against. Please change into your bitmain-tools directory and do: git pull cd scripts ./l3plus_autotune.py
Let's see if that gets us any further.
|
|
|
|
TheMiningDwarf
Jr. Member
Offline
Activity: 71
Merit: 1
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 17, 2018, 02:29:32 PM |
|
I can give you access to my L3++ just pm me
|
|
|
|
TheMiningDwarf
Jr. Member
Offline
Activity: 71
Merit: 1
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 17, 2018, 02:32:31 PM |
|
Oh well, another new cgminer output with json glitches, this time it's the L3++. Don't know why every version of cgminer I have met has invalid json output that has to be fixed first. Anyway, thanks to your pasted output I could (hopefully) fix that as I have no L3++ to test against. Please change into your bitmain-tools directory and do: git pull cd scripts ./l3plus_autotune.py
Let's see if that gets us any further. jhgosselin@Master-VRTJMB:~/bitmain-tools/scripts$ git pull error: cannot open .git/FETCH_HEAD: Permission denied jhgosselin@Master-VRTJMB:~/bitmain-tools/scripts$
|
|
|
|
psycodad (OP)
Legendary
Offline
Activity: 1631
Merit: 1721
精神分析的爸
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 17, 2018, 02:41:23 PM |
|
I can give you access to my L3++ just pm me
I feel honoured by your trust, but you really should never let others access any of your gear (even if they have more comfy sounding pseudonyms than 'psycodad' ![Grin](https://bitcointalk.org/Smileys/default/grin.gif) ) We'll get you there soon, have some patience and enjoy your first steps into the linux platform. Oh well, another new cgminer output with json glitches, this time it's the L3++. Don't know why every version of cgminer I have met has invalid json output that has to be fixed first. Anyway, thanks to your pasted output I could (hopefully) fix that as I have no L3++ to test against. Please change into your bitmain-tools directory and do: git pull cd scripts ./l3plus_autotune.py
Let's see if that gets us any further. jhgosselin@Master-VRTJMB:~/bitmain-tools/scripts$ git pull error: cannot open .git/FETCH_HEAD: Permission denied jhgosselin@Master-VRTJMB:~/bitmain-tools/scripts$ Ah, should have seen this in your output in a previous post: You did checkout as user root and your user is now denied to modify these files, no problem just use sudo: sudo git pull cd scripts ./l3plus_autotune.py
|
|
|
|
TheMiningDwarf
Jr. Member
Offline
Activity: 71
Merit: 1
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 17, 2018, 02:45:04 PM |
|
I can give you access to my L3++ just pm me
I feel honoured by your trust, but you really should never let others access any of your gear (even if they have more comfy sounding pseudonyms than 'psycodad' ![Grin](https://bitcointalk.org/Smileys/default/grin.gif) ) We'll get you there soon, have some patience and enjoy your first steps into the linux platform. Oh well, another new cgminer output with json glitches, this time it's the L3++. Don't know why every version of cgminer I have met has invalid json output that has to be fixed first. Anyway, thanks to your pasted output I could (hopefully) fix that as I have no L3++ to test against. Please change into your bitmain-tools directory and do: git pull cd scripts ./l3plus_autotune.py
Let's see if that gets us any further. jhgosselin@Master-VRTJMB:~/bitmain-tools/scripts$ git pull error: cannot open .git/FETCH_HEAD: Permission denied jhgosselin@Master-VRTJMB:~/bitmain-tools/scripts$ Ah, should have seen this in your output in a previous post: You did checkout as user root and your user is now denied to modify these files, no problem just use sudo: sudo git pull cd scripts ./l3plus_autotune.py ./l3plus_autotune.py no ip no -i ?
|
|
|
|
TheMiningDwarf
Jr. Member
Offline
Activity: 71
Merit: 1
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 17, 2018, 02:57:12 PM |
|
jhgosselin@Master-VRTJMB:~/bitmain-tools/scripts$ ./l3plus_autotune.py -i 10.0.100.141 /usr/lib/python2.7/dist-packages/Crypto/Cipher/blockalgo.py:141: FutureWarning: CTR mode needs counter parameter, not IV self._cipher = factory.new(key, *args, **kwargs) Failed to decode json reply: Extra data: line 1 column 1308 - line 1 column 1309 (char 1307 - 1308)
{"STATUS":[{"STATUS":"S","When":1529247355,"Code":70,"Msg":"CGMiner stats","Description":"cgminer 4.9.0"}],"STATS":[{"CGMiner":"4.9.0","Miner":"1.0.1.3","CompileTime":"Thu Apr 12 15:55:21 CST 2018","Type":"Antminer L3++"},{"STATS":0,"ID":"L30","Elapsed":4401,"Calls":0,"Wait":0.000000,"Max":0.000000,"Min":99999999.000000,"GHS 5s":"600.56","GHS av":589.55,"miner_count":4,"frequency":"456","fan_num":2,"fan1":3690,"fan2":3750,"temp_num":4,"temp1":58,"temp2":57,"temp3":55,"temp4":52,"temp2_1":67,"temp2_2":65,"temp2_3":63,"temp2_4":60,"temp31":0,"temp32":0,"temp33":0,"temp34":0,"temp4_1":0,"temp4_2":0,"temp4_3":0,"temp4_4":0,"temp_max":58,"Device Hardware%":0.0000,"no_matching_work":1457,"chain_acn1":72,"chain_acn2":72,"chain_acn3":72,"chain_acn4":72,"chain_acs1":" oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo","chain_acs2":" oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo","chain_acs3":" oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo","chain_acs4":" oooooooo oooooooo oooooooo oooooooo oooxoooo oooooooo oooooooo oooooooo oooooooo","chain_hw1":313,"chain_hw2":10,"chain_hw3":36,"chain_hw4":1098,"chain_rate1":"155.34","chain_rate2":"157.02","chain_rate3":"141.25","chain_rate4":"146.95"}],"id":1} jhgosselin@Master-VRTJMB:~/bitmain-tools/scripts$
|
|
|
|
psycodad (OP)
Legendary
Offline
Activity: 1631
Merit: 1721
精神分析的爸
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 17, 2018, 03:47:43 PM |
|
Interesting, the json output you posted gets parsed ok here and obviously it complains about an error at char 1309, though the string you posted is only 1308 chars long. It sounds like the json output from cgminer has some extra whitespace or linefeed but then again the json module should be able to work with that just fine. I am a bit lost here, could you please pm me or post the complete output of the following command(s): sudo apt-get install netcat-openbsd echo "{\"command\":\"stats\"}"| nc 10.0.100.141 4028 The above installs the networking swiss army knife 'netcat' and uses netcat to fetch the json output directly from cgminer api port of your miner so that I can see what could failing here when reading it from my script.
|
|
|
|
TheMiningDwarf
Jr. Member
Offline
Activity: 71
Merit: 1
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 17, 2018, 04:13:10 PM |
|
Interesting, the json output you posted gets parsed ok here and obviously it complains about an error at char 1309, though the string you posted is only 1308 chars long. It sounds like the json output from cgminer has some extra whitespace or linefeed but then again the json module should be able to work with that just fine. I am a bit lost here, could you please pm me or post the complete output of the following command(s): sudo apt-get install netcat-openbsd echo "{\"command\":\"stats\"}"| nc 10.0.100.141 4028 The above installs the networking swiss army knife 'netcat' and uses netcat to fetch the json output directly from cgminer api port of your miner so that I can see what could failing here when reading it from my script.will do as soon as its done running on the L3+ ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) How long does it run its test before stopping ?
|
|
|
|
TheMiningDwarf
Jr. Member
Offline
Activity: 71
Merit: 1
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 17, 2018, 04:54:56 PM |
|
jhgosselin@Master-VRTJMB:~$ sudo apt-get install netcat-openbsd [sudo] password for jhgosselin: Reading package lists... Done Building dependency tree Reading state information... Done netcat-openbsd is already the newest version (1.105-7ubuntu1). The following package was automatically installed and is no longer required: libfreetype6 Use 'sudo apt autoremove' to remove it. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. jhgosselin@Master-VRTJMB:~$
jhgosselin@Master-VRTJMB:~$ echo "{\"command\":\"stats\"}"| nc 10.0.100.141 4028 {"STATUS":[{"STATUS":"S","When":1529254514,"Code":70,"Msg":"CGMiner stats","Description":"cgminer 4.9.0"}],"STATS":[{"CGMiner":"4.9.0","Miner":"1.0.1.3","CompileTime":"Thu Apr 12 15:55:21 CST 2018","Type":"Antminer L3++"}{"STATS":0,"ID":"L30","Elapsed":11560,"Calls":0,"Wait":0.000000,"Max":0.000000,"Min":99999999.000000,"GHS 5s":"612.27","GHS av":589.15,"miner_count":4,"frequency":"456","fan_num":2,"fan1":3690,"fan2":3750,"temp_num":4,"temp1":61,"temp2":59,"temp3":58,"temp4":55,"temp2_1":70,"temp2_2":68,"temp2_3":66,"temp2_4":62,"temp31":0,"temp32":0,"temp33":0,"temp34":0,"temp4_1":0,"temp4_2":0,"temp4_3":0,"temp4_4":0,"temp_max":61,"Device Hardware%":0.0000,"no_matching_work":3972,"chain_acn1":72,"chain_acn2":72,"chain_acn3":72,"chain_acn4":72,"chain_acs1":" oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo","chain_acs2":" oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo","chain_acs3":" oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo","chain_acs4":" oooooooo oooooooo oooooooo oooooooo oooxoooo oooooooo oooooooo oooooooo oooooooo","chain_hw1":866,"chain_hw2":28,"chain_hw3":108,"chain_hw4":2970,"chain_rate1":"152.65","chain_rate2":"146.27","chain_rate3":"163.72","chain_rate4":"149.63"}],"id":1} jhgosselin@Master-VRTJMB:~$
|
|
|
|
psycodad (OP)
Legendary
Offline
Activity: 1631
Merit: 1721
精神分析的爸
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 21, 2018, 08:36:51 AM |
|
Sorry for not getting back earlier, RL got some tasks for me lately.
I can only speculate that there are extraneous whitespace characters at the end of the json output, though actually the json module should be able to deal with that. I've made an attempt at fixing this by striping all whitespace chars outside the json response before parsing it, though I have some doubts it will fix it. But it's the best I could come up with from remote.
Please try to git pull and see if it improves it for you.
|
|
|
|
TheMiningDwarf
Jr. Member
Offline
Activity: 71
Merit: 1
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 21, 2018, 09:47:51 AM |
|
Sorry for not getting back earlier, RL got some tasks for me lately.
I can only speculate that there are extraneous whitespace characters at the end of the json output, though actually the json module should be able to deal with that. I've made an attempt at fixing this by striping all whitespace chars outside the json response before parsing it, though I have some doubts it will fix it. But it's the best I could come up with from remote.
Please try to git pull and see if it improves it for you.
What, you have a Real Life !!!!! Doesnt work This is the msg I get What's next ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) jhgosselin@Master-VRTJMB:~/bitmain-tools/scripts$ sudo git pull [sudo] password for jhgosselin: remote: Counting objects: 4, done. remote: Compressing objects: 100% (3/3), done. remote: Total 4 (delta 1), reused 4 (delta 1), pack-reused 0 Unpacking objects: 100% (4/4), done. From https://github.com/psycodad-bct/bitmain-tools 6349d9d..34f00a4 master -> origin/master Updating 6349d9d..34f00a4 Fast-forward scripts/l3plus_autotune.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) jhgosselin@Master-VRTJMB:~/bitmain-tools/scripts$ ./l3plus_autotune.py -i 10.0.100.118 /usr/lib/python2.7/dist-packages/Crypto/Cipher/blockalgo.py:141: FutureWarning: CTR mode needs counter parameter, not IV self._cipher = factory.new(key, *args, **kwargs) Failed to decode json reply: Extra data: line 1 column 1305 - line 1 column 1306 (char 1304 - 1305) {"STATUS":[{"STATUS":"S","When":1529574372,"Code":70,"Msg":"CGMiner stats","Description":"cgminer 4.9.0"}],"STATS":[{"CGMiner":"4.9.0","Miner":"1.0.1.3","CompileTime":"Thu Apr 12 15:55:21 CST 2018","Type":"Antminer L3++"},{"STATS":0,"ID":"L30","Elapsed":38043,"Calls":0,"Wait":0.000000,"Max":0.000000,"Min":99999999.000000,"GHS 5s":"594.83","GHS av":585.57,"miner_count":4,"frequency":"450","fan_num":2,"fan1":2640,"fan2":2670,"temp_num":4,"temp1":55,"temp2":52,"temp3":50,"temp4":48,"temp2_1":63,"temp2_2":61,"temp2_3":59,"temp2_4":56,"temp31":0,"temp32":0,"temp33":0,"temp34":0,"temp4_1":0,"temp4_2":0,"temp4_3":0,"temp4_4":0,"temp_max":55,"Device Hardware%":0.0000,"no_matching_work":2137,"chain_acn1":72,"chain_acn2":72,"chain_acn3":72,"chain_acn4":72,"chain_acs1":" oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo","chain_acs2":" oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo","chain_acs3":" oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo","chain_acs4":" oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo","chain_hw1":0,"chain_hw2":0,"chain_hw3":1,"chain_hw4":2136,"chain_rate1":"144.93","chain_rate2":"151.31","chain_rate3":"153.99","chain_rate4":"144.60"}],"id":1}
|
|
|
|
psycodad (OP)
Legendary
Offline
Activity: 1631
Merit: 1721
精神分析的爸
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 21, 2018, 07:39:26 PM |
|
I feared this wouldn't fix it, would have surprised me somehow anyways but everybody gets a lucky shot at times ![Cool](https://bitcointalk.org/Smileys/default/cool.gif) I just don't seem to see the problem yet, I even have setup a "fake/simulated" L3++ for my script that hands out the json reply from you and guess what: works nicely. Need some sleep first and will look over it tomorrow again, right now I am out of ideas and its hard to fix a problem I don't see and can't reproduce. Though thanks for your support and input so far, that's motivating.
|
|
|
|
|