My eyes are crossing after reading all 50+ pages of the main lease rigs thread hunting for a solution to my dilemma. i use SMOS 1.3 and am struggling to keep my renter's rigs on their pools and not switching back to my pools.
I'm offering a tip to anyone who can walk me through it LIKE I'M A CHILD. i mean, i'm not an idiot, but as we're talking about linux here, assume i am an idiot. a complete idiot when it comes to linux.
that said, here's what i've got so far:
-IP and port forwarding working fine.
-permission to my cgminer API working fine, i think, using these entries in my cgconfig:
"api-allow" : "L:89.212.242.33,W:127.0.0.1",
"api-groups" : "L:switchpool:addpool:removepool:restart:save:*"
-when i run the new TEST recently added to the HOW-TO guide, Verify your work (if all is properly configured) by visiting following URL from rig PC (must be same PC!):
http://leaserig.net/rigtest.jsp?port=7777
(replace 7777 with port of your choice)i get this response...
Testing command "summary"... result:
STATUS=S,When=1391714647,Code=11,Msg=Summary,Description=cgminer 3.7.2|SUMMARY,Elapsed=47225,MHS av=2.60,MHS 5s=2.63,Found Blocks=12,Getworks=3158,Accepted=1783,Rejected=43,Hardware Errors=0,Utility=2.27,Discarded=3124,Stale=0,Get Failures=0,Local Work=26467,Remote Failures=0,Network Blocks=2136,Total MH=122711.1793,Work Utility=2369.14,Difficulty Accepted=1825792.00000000,Difficulty Rejected=44032.00000000,Difficulty Stale=0.00000000,Best Share=743051,Device Hardware%=0.0000,Device Rejected%=2.3614,Pool Rejected%=2.3549,Pool Stale%=0.0000|
Testing command "save"... result:
STATUS=S,When=1391714647,Code=44,Msg=Configuration saved to file '//.cgminer/cgminer.conf',Description=cgminer 3.7.2|Notice the path where the file is saved... this represents a problem described elsewhere in the HOW-TO... so i SSH'ed into the machine and added this as a CRON job...
*/5 * * * * cp -u /.cgminer/cgminer.conf /etc/bamt/cgminer.conf >/dev/null 2>&1my cgconfig file contains my primary and backup pools. if i remove them, i can't start cgminer as it complains that there are no pools defined. i find it odd that i also can define my primary and backup pools on the leaserig.net administration page. i don't understand why i have to repeat the same steps in both places. if leaserig can force a renter's pool onto my rig via the API, why can't it force my own pool to my rig when a rental is not taking place?
anyways....
From all of these steps, i THINK my rigs should successfully save the pool info into my local cgconfig when a rental starts, and remove it when it ends. It might actually be working, but i'm reluctant to test much because all my rigs are rented for 72 hours. i made most of these changes during the current rental, so i may have done so too late. regardless, my rigs are currently NOT remaining on my renter's pools. If they reboot or if the renters pool is momentarily inaccessible, my rigs will flip to my pools and never return. Ive resorted to manually specifying my renter's pools in my local cgconfig. i'll have to manually remove them at the end of the rental.
I'm looking for someone to work directly with me to ensure that i've set this up correctly. you have to be running SMOS 1.3 for this to apply to you - if you have windows or another build of linux, the path to CGMINER.conf may be different.
my rigs are rented until late tonight, so i won't be making any changes until tomorrow morning, say 10am Eastern Standard Time. ideally, i'd like to work with someone at about that time.
i can share my screen with you via join.me, where you can then ssh into my rig with my cooperation. i need to learn how to resolve this for myself to repeat on my other rigs.