Bitcoin Forum

Alternate cryptocurrencies => Mining (Altcoins) => Topic started by: djeZo on January 15, 2014, 01:48:32 PM



Title: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on January 15, 2014, 01:48:32 PM
LeaseRig.net has changed the owner.
New official thread:
https://bitcointalk.org/index.php?topic=544732.0

LeaseRig.net (http://leaserig.net) gives you better profit than multipools!
http://i60.tinypic.com/wiofep.png

Official thread: https://bitcointalk.org/index.php?topic=414009
WARNING: NEWBIE PROVIDERS WITH NO REPUTATION ON THIS FORUM WILL HAVE TO MAKE SECURITY DEPOSIT TO GET LISTED ON LEASERIG.NET. SECURITY DEPOSITS PREVENT SCAMMERS TO JOIN THIS SERVICE AND ARE RETURNED AFTER 1 WEEK OF OPERATING ON LEASERIG.NET.

A. Simple method
(only stratum protocol is supported! stratum+tcp://...)

1. STEP: Contact me (djeZo) - send me PM

If you are newbie with no reputation on this forum, send me a personal message (https://bitcointalk.org/index.php?action=pm;sa=send;u=186611) with request to get listed, but tell me total speed of the rigs you would like to put on.

I will return to you with deposit amount in BTC (generally, it is around 0.05 for rig of around 3-4 MH/s). After deposit is made, send me PM and include:
- mining rig names (choose on your own - alphanumeric characters)
- your trust/reputation thread (this is mandatory so customers can post feedback there) in here: https://bitcointalk.org/index.php?board=129.0

I will reply to you with access to admin panel on LeaseRig.net.

2. STEP: Setup LeaseRig Proxy

Download LeaseRig Proxy Software (Windows, Linux, BAMT, SMOS) (http://leaserig.net/leaserigproxy.zip) (current latest version is v0.06a). Detailed instructions are in README.txt file. But to sum it up with an example if you have one rig to offer.

1. Extract all files.
2. Open pools.conf and configure your starting pools.
3. Edit run.bat file - change PUT-YOUR-ID-HERE with ID you get on admin panel.
4. Double click run.bat to run it.

3. STEP: Configure your mining rig to use proxy pool

cgminer -o stratum+tcp://127.0.0.1:3333 -u whatever -p whatever

THAT IS ALL. However, there are some more advanced options which you would like to check out (such as realtime speed stats). Just read README.txt file. You can connect as many as you like rigs to this proxy and total hash power will be combined.

Note#1: If you use antminer, it is recommended to flash your firmware to achieve better stability.

Note#2: if you previously used method B and switched over to method A, make sure your method B is disabled (either remove your mining rig URL from admin panel or make your cgminer API inaccessible for LeaseRig.net).

B. Advanced method

1. STEP: Make your miner accessible via static IP or static domain name. If your mining rig already has static IP, then you can skip this step.

Solution A (Windows only)
If your mining rig has dynamic IP, then you will have to use domain name. You can sort this on your own or you can use dyn dns service like this one: https://www.noip.com/sign-up
After you register and choose domain, login and download client (http://www.noip.com/download?page=win) which you have to run to keep your domain name updated with your IP address. Launch it and after it loads click "Edit Hosts" button. Then check your domain name and click "Save" button. That is it, just leave this program running - it will update your domain name to your IP every 5 minutes.

Solution B (Windows&Linux)
Install Python 2.7. Download this (http://leaserig.net/LeaseRigUpdateIP.py) simple small python script (right click and save as). When you run it, you will need to provide parameters:
name - your nick name on this forum (if it contains spaces, encapsulate it with "")
password - your admin login password (you will receive that from me when you request to become provider)
rigid - is visible in admin panel for each rig (you get access when you request to become provider)
API-port - you choose this one next step

Then you simply run this script and you do not have to worry about IP changes - the script will auto update your IP on LeaseRig.net when your IP changes. You will have to run instance of this script for every rig you offer.

2. STEP: Configure cgminer, bfgminer,...(since many miners share same API, just follow this regardless of which miner you use)

You have to enable API listening on your cgminer. Following config options have to be added in cgminer config/command line:

Code:
--api-listen --api-allow W:89.212.242.33 --api-port 7777

You can choose whatever port you want, but you have to keep exactly IP 89.212.242.33. You can modify and create access rules. Following commands are needed to provide full functionality: summary, pools, switchpool, addpool, removepool, restart, save. Read API-README.txt in cgminer directory to get more details about cgminer API and how to configure access rules.

After checking API-README.txt, following should work:
Code:
--api-groups P:switchpool:addpool:removepool:restart:save:* --api-listen --api-allow P:89.212.242.33 --api-port 7777

For pool saving to properly work even after reboots or crashes, you need to specify config file in command line by adding (if using cgminer):

Code:
--config cgminer.conf

or (if using sgminer):

Code:
--config sgminer.conf

And include your startup pools inside that config file (NOT IN COMMAND LINE!).

3. STEP: Make sure miner is visible outside

If your mining rig is behind router (NAT), you need to configure your NAT. Forward API port of cgminer.

Once you configure NAT, you can verify cgminer API port here: http://www.checkmyports.net/
It must say OPENED, if not, then it is still closed and you did something wrong.

4. STEP: Verification

Verify your work (if all is properly configured) by visiting following URL from rig PC (must be same PC!):
http://leaserig.net/rigtest.jsp

Enter port of your choice and click Test button. The test should look like this:
Code:
Testing address: XXX.XXX.XXX.XXX:YYYY

Testing command "summary"... PASSED
STATUS=S,When=1391795452,Code=11,Msg=Summary,Description=cgminer 3.7.2|SUMMARY,Elapsed=7,MHS av=0.02,MHS 1s=0.02,Found Blocks=0,Getworks=1,Accepted=0,Rejected=0,Hardware Errors=0,Utility=0.00,Discarded=2,Stale=0,Get Failures=0,Local Work=8,Remote Failures=0,Network Blocks=1,Total MH=0.1252,Work Utility=42.24,Difficulty Accepted=0.00000000,Difficulty Rejected=0.00000000,Difficulty Stale=0.00000000,Best Share=8,Device Hardware%=0.0000,Device Rejected%=0.0000,Pool Rejected%=0.0000,Pool Stale%=0.0000|

Testing command "addpool"... PASSED
STATUS=S,When=1391795452,Code=55,Msg=Added pool 'http://leaserig.net:3333',Description=cgminer 3.7.2|

Testing command "pools"... PASSED
Contains data of added pool.

Testing command "switchpool"... PASSED
STATUS=S,When=1391795452,Code=27,Msg=Switching to pool 1:'http://leaserig.net:3333',Description=cgminer 3.7.2|

Waiting 10 seconds...

Testing command "removepool"...
PASSED STATUS=S,When=1391795462,Code=68,Msg=Removed pool 0:'stratum+tcp://usde.ny1.blockchasers.com:3333',Description=cgminer 3.7.2|

Testing command "save"... PASSED
STATUS=S,When=1391795462,Code=44,Msg=Configuration saved to file 'cgminer.conf',Description=cgminer 3.7.2|

Testing command "restart"... PASSED
RESTART

Waiting 10 seconds...

Testing command "pools"... PASSED
Contains data of added pool.

Checking pool priority... PASSED

Test complete! Everything seems to be OKAY.

5. STEP: Provide data to me (djeZo) - send me a personal message (https://bitcointalk.org/index.php?action=pm;sa=send;u=186611)

NOTE: If you are newbie with no reputation, security deposit (which is hold for 1 week) is needed. It is usually around 0.05 BTC, depending on speed of your rig.

In PM, include for each mining rig:
- mining rig name (choose on your own - alphanumeric characters)
- your trust thread (MANDATORY so customers can post feedback there)


If you have additional questions regarding HOW-TO, please post them here (PM me only data for adding your mining rig). I will update this posts if there are additional questions.


A few items to add to the How To notes:

1) While LeaseRig will try to save your settings so that if a rig reboots the client doesn't lose all their miner information, this does not work with a custom config file. You should only use the default cgminer.conf file.

2) At one point LeaseRig saved some settings for me and apparently GPU-threads was not specified or saved properly; the result was that when cgminer restarted with the updated config file, hash rates were about 10% lower (and could have been much worse on some PCs!) thanks to the incorrect threads setting, so make sure to include -g 1 (or -g 2 if that's what you want) in your cgminer options and not just in the conf file.

3) CGWatcher does work with LeaseRig, and you can configure it to use other ports. On version 3.5.2, look in the Settings->Miner tab for the API port. The default is 4028, but I've successfully used other ports.

4) I've found Windows' Firewall doesn't play well with LeaseRig and had to disable it on at least a couple of my leased rigs; this is not always necessary, but if you're unable to get LeaseRig to see your system after configuring everything else properly, try disabling your firewall for a bit and see if that fixes the issue. If it does, you can either run without the firewall, or try to fix the problem.

Happy mining/leasing everybody!

Can add to 4th point; you need to either allow cgminer in your firewall rules or allow cgminer API port for incoming connections, then there should be no problems with Windows firewall.

FYI, for those using BAMT, the save call in the api will create a new cgminer.conf under /.cgminer/cgminer.conf  .
This is of course useless since BAMT starts cgminer pointed to /etc/bamt/cgminer.conf

A workaround is to schedule a job to check for updates to /.cgminer/cgminer.conf and overwrite /etc/bamt/cgminer.conf . This will restore your customers pools in the event that you need to reboot/power outage/etc. Unfortunately the cgminer.conf created is a bit over-complicated, and duplicates values for each of your GPUs, even if the values are the same for all of them... regardless it does work, and is the best for the customer.

Login to your BAMT box using ssh and perform the following:
sudo crontab -e
Add the following to the bottom of the crontab (This will check for updates every 5 minutes and only overwrite when changes are made)
Code:
*/5 * * * * cp -u /.cgminer/cgminer.conf /etc/bamt/cgminer.conf >/dev/null 2>&1
Exit (and save)


Also, please keep in mind that SMOS linux has a script that will periodically mine for the developers, thus robbing your customers of time. Use BAMT or SMOS bee edition, or manually remove the offending code.

Basically, to use CGWatcher, i simply only use the miner .conf file to hold my pool addresses, nothing else. Every other parameter should be defined in "CGwatcher > Profiles > Miner Arguments" field. That way, these parameters will override anything given in the .conf (except pool addresses), to avoid changes being made that could affect hashrate,which i read has happened to some people here. Make sure you also point the CGwatcher profile to the correct .conf (or you will have no pools!), not sure if this can have a custom name, since the argument isn't present (since CGwatcher throws it in a seperate field).

Here's an example of my initial configuration.

Example .conf:
Code:
{
"pools" : [
{
"url" : "stratum+tcp://panda.united-miners.com:3311",
"user" : "Fattox.DigRig2",
"pass" : "x"
},
{
"url" : "stratum+tcp://panda.nitro.org:3338",
"user" : "Fattox.DigRig2",
"pass" : "x"
}
]
}

Example parameters in CGwatcher:
Code:
--api-groups P:switchpool:addpool:removepool:restart:save:* --api-listen --api-allow W:89.212.242.33 --api-port 7778 --failover-only --expiry 2 --queue 0 --scan-time 1 --gpu-threads 1 --intensity 20 --vectors 1 --worksize 256 --thread-concurrency 24550 --gpu-engine 1000 --gpu-memclock 1500 --gpu-powertune 20


Then after rental, your rig will switch back to the pools you define in the rig profile @ the LeaseRigs admin panel. So after the initial configuration, you probably never need to touch the .conf again... though i would always keep a backup, as you may need to re-copy it if your rig somehow restarts and the lease job never ends, or something, because then your own pools would possibly not be added back (or so i imagine!).


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: djeZo on January 15, 2014, 01:59:30 PM
I know that instructions are a bit long. I will work on solution to get rid of step 1. Step 3 will not be there anymore once service goes out of beta and I start charging small fees. You will be receiving payments directly to your BTC address few times a day (auto payments).


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: rednalexa on January 15, 2014, 06:03:49 PM
What is the payment for lets say each MH/s? :)


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: djeZo on January 15, 2014, 06:20:54 PM
What is the payment for lets say each MH/s? :)

You define payments (renting plans) on your own. Check this:

http://i42.tinypic.com/5nvkfr.png

Updated GUIDE, now is simpler. Will try to get rid of first step somehow...


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: djeZo on January 15, 2014, 09:01:37 PM
Mining rig providers are needed! PM me with info so I can add you in!


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: tw0r on January 15, 2014, 10:01:46 PM
Ill try it, but have some problems.
1) have managed accessible static IP
3) have set my router
4) can write you the setting

but

2) dont understand this part...summary, addpool, switchpool - I dont know what to set where - could you paste here the whole code?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: djeZo on January 15, 2014, 10:11:53 PM
Ill try it, but have some problems.
1) have managed accessible static IP
3) have set my router
4) can write you the setting

but

2) dont understand this part...summary, addpool, switchpool - I dont know what to set where - could you paste here the whole code?

Lets try with:
Code:
--api-groups P:switchpool,summary,pools,addpool,removepool,restart --api-listen --api-allow P:89.212.242.33 --api-port 7777


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: oroqen on January 15, 2014, 10:14:15 PM
you might want to drop the all caps on LEASERIG.NET
LeaseRig.net is easyer to read and far more obvious.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: nhytfdsa on January 15, 2014, 10:31:27 PM
I got a phishing warning from Firefox on this site.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: djeZo on January 15, 2014, 10:43:49 PM
Yeh, some idiot reported it as phishing, just click ignore and report back it is not phishing.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: GreekBitcoin on January 15, 2014, 10:49:23 PM
Yeh, some idiot reported it as phishing, just click ignore and report back it is not phishing.


Link says phising attempt from Chrome. Post moderated. You deleted my post warning about scam. If you delete this one you get a nice negative trust. my first one. Leave this here for people to see and decide!


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: djeZo on January 15, 2014, 10:56:08 PM
Yeh, some idiot reported it as phishing, just click ignore and report back it is not phishing.


Link says phising attempt from Chrome. Post moderated. You deleted my post warning about scam. If you delete this one you get a nice negative trust. my first one. Leave this here for people to see and decide!

Decide what? Please, open new thread and state there that this is scam site if you think so. And bring some proofs on and not just gibberish non-sense talk.

What is phishing?
Quote
A phishing website or message tries to trick you into revealing personal information by appearing to be from a legitimate source, such as a bank, social network, or even Google.

Do you have to provide any kind of personal information on leaserig.net? NO


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: claygraffix on January 16, 2014, 01:08:47 AM
I think this is a great idea.  I'm going to look at getting it setup, thanks.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: twistedtrick on January 16, 2014, 01:09:12 AM
Waiting for support on renting out my rig that I run Xubuntu on - unsure how to setup something like No-IP on Linux.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: Yeos on January 16, 2014, 04:47:23 PM
I'm having issues with adding,switching and removing pools on admin page.

I added the api groups setting to cgminer.config file but its not working


NM I got it


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: tw0r on January 16, 2014, 08:13:40 PM
Thx for helping djeZo - works great for me.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: s4ndm4ns on January 16, 2014, 11:23:23 PM
Question:
I run CGwatcher in case any cgminer failure, will that be a problem? Also, do I set own pool details when starting cgminer?
Afterwards renting person can change it to own via API? If cgminer crashes for some reason, it will restart again with my details...


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: Pustul on January 17, 2014, 05:13:40 AM
Interesting!
How do you set the admin password for the rig? Is it in cgminer or just for you to set up on the website?

If there is no pass on cgminer doesn't that means anyone with your ip could connect to the rig and change pool details, etc?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: djeZo on January 17, 2014, 12:20:54 PM
Interesting!
How do you set the admin password for the rig? Is it in cgminer or just for you to set up on the website?

If there is no pass on cgminer doesn't that means anyone with your ip could connect to the rig and change pool details, etc?

Admin pass is just for website. Noone else besides website can access your cgminer, because you specify such rule (allow only certain IP). And website limits who has access to change pools on your cgminer. Only customer and admin.

Question:
I run CGwatcher in case any cgminer failure, will that be a problem? Also, do I set own pool details when starting cgminer?
Afterwards renting person can change it to own via API? If cgminer crashes for some reason, it will restart again with my details...

No conflicts or problems with CGwatcher. Yes, you set own pool details when starting cgminer. Customer can manage pools via website. If cgminer crashes, your default pool is set and customer has to reenter pools of his choice.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: s4ndm4ns on January 17, 2014, 01:53:36 PM
Interesting!
How do you set the admin password for the rig? Is it in cgminer or just for you to set up on the website?

If there is no pass on cgminer doesn't that means anyone with your ip could connect to the rig and change pool details, etc?

Admin pass is just for website. Noone else besides website can access your cgminer, because you specify such rule (allow only certain IP). And website limits who has access to change pools on your cgminer. Only customer and admin.

Question:
I run CGwatcher in case any cgminer failure, will that be a problem? Also, do I set own pool details when starting cgminer?
Afterwards renting person can change it to own via API? If cgminer crashes for some reason, it will restart again with my details...

No conflicts or problems with CGwatcher. Yes, you set own pool details when starting cgminer. Customer can manage pools via website. If cgminer crashes, your default pool is set and customer has to reenter pools of his choice.

Would be nice to remember customer pools, otherwise any crash causes customer to mine for rig owner.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: djeZo on January 17, 2014, 03:38:05 PM
Currently, pool details are not remembered by the website, website only acts as a proxy for managing pools on mining rigs. When I do larger update, I will consider all such features.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: Pustul on January 17, 2014, 03:58:57 PM
Interesting!
How do you set the admin password for the rig? Is it in cgminer or just for you to set up on the website?

If there is no pass on cgminer doesn't that means anyone with your ip could connect to the rig and change pool details, etc?

Admin pass is just for website. Noone else besides website can access your cgminer, because you specify such rule (allow only certain IP). And website limits who has access to change pools on your cgminer. Only customer and admin.

Ok, thanks I get it now  ;)


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: Tigggger on January 17, 2014, 08:05:15 PM
This sounds very interesting and I may throw one of my rigs up to try.

Is there any specific reason 3.7.2 is required, all mine run 3.3.1 which is IMHO the best version for scrypt mining as it's the last version to immediately switch pools without delay, rather not update unless it's needed for some function that missing.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: djeZo on January 17, 2014, 08:24:23 PM
Test has shown that older versions aren't showing current speed correctly.  I was looking into it and couldn't come to any exact conclusion, because it was randomly flickering once displaying proper speed, then next time displaying faulty one. Someone would need to sniff traffic to find out whether older versions of cgminer send various data for command 'summary'.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: Tigggger on January 17, 2014, 09:17:56 PM
That's strange, I use CGRemote to monitor mine which uses the api and not noticed anything odd in the figures it displays.

If I put one up tomorrow you can have a look before it goes live, and i'll update if need be.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: s4ndm4ns on January 17, 2014, 11:12:52 PM
djeZo
would you consider adding my 2nd rig as well?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: s4ndm4ns on January 18, 2014, 12:28:10 AM
For those who want to use CGwatcher and share their rig:
1) you need to use cgwatcher port 4028
2) you need to allow localhost use API

Modified settings:

--api-groups P:switchpool:addpool:removepool:restart:* --api-listen --api-allow P:89.212.242.33,127.0.0.1 --api-port 4028



Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: hutnik on January 23, 2014, 03:48:18 PM
Is the restart really needed in api-group?
My rig can be little moody, and restart can cause it to hash at weird speeds.
I know what's best for my rig, and restart is not one of those things :p


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: R9Generation on January 24, 2014, 12:16:09 PM
Hey Guys,

I am running 2 rigs with Smos Linux distribution and 4 Mh/s.

My question is:

How would the config look like if I would add this into cgminer.conf:

--api-groups P:switchpool:addpool:removepool:restart:* --api-listen --api-allow P:89.212.242.33,127.0.0.1 --api-port 4028

Maybe like this?:

"api-listen" : "true",
"api-allow" : "89.212.242.33",
"api-port" : "4028",
"api-groups" : "switchpool,addpool,removepool,restart"  Here maybe with : instead of comma , ??

I'd like to ad my rigs as provider, but this need to be fixed first. Dyndns is available through the router by the way, which is a way to do it on linux instead of no-ip on windows ;)


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: djeZo on January 24, 2014, 04:19:26 PM
Is the restart really needed in api-group?
My rig can be little moody, and restart can cause it to hash at weird speeds.
I know what's best for my rig, and restart is not one of those things :p

Restart is not needed at this time - I didn't implement it due to R9 bug. If using sgminer 4.0.0, this bug is fixed.
Hey Guys,

I am running 2 rigs with Smos Linux distribution and 4 Mh/s.

My question is:

How would the config look like if I would add this into cgminer.conf:

--api-groups P:switchpool:addpool:removepool:restart:* --api-listen --api-allow P:89.212.242.33,127.0.0.1 --api-port 4028

Maybe like this?:

"api-listen" : "true",
"api-allow" : "89.212.242.33",
"api-port" : "4028",
"api-groups" : "switchpool,addpool,removepool,restart"  Here maybe with : instead of comma , ??

I'd like to ad my rigs as provider, but this need to be fixed first. Dyndns is available through the router by the way, which is a way to do it on linux instead of no-ip on windows ;)

I am not sure for the api-groups, but you can always combine; use config, but append this command line to your existing command line. Will work for sure.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: hutnik on January 24, 2014, 04:49:00 PM
this works for me, 2 groups, one with acces to everything, one for leaserig

Code:
"api-listen" : true,
"api-port" : "12345",
"api-allow" : "W:192.168.0.0/16,W:127.0.0.1,F:89.212.242.33",
"api-groups" : "F:switchpool:addpool:removepool:restart:*"

W group is reserved for all-inclusive acces, so no need to specify rights for that. Only for F, which is leaserig
All that info is in readme and api-readme of cgminer.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: netoguy on January 25, 2014, 12:43:51 AM
One step to your signup process is "Trust"; I'm a new member to this forum so I don't have any "trust" here I suppose.
Do you have any alternate methods of verifying trust so that I can lease my rig(s)?   I have up to 20 Mh/s available!


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: Neon001 on January 25, 2014, 03:08:43 AM
One step to your signup process is "Trust"; I'm a new member to this forum so I don't have any "trust" here I suppose.
Do you have any alternate methods of verifying trust so that I can lease my rig(s)?   I have up to 20 Mh/s available!

Was wondering the same.  How about ebay or heatware?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: ozoner on January 25, 2014, 06:00:05 AM
Hi all,

Ok I am almost sold on setting up my rig to be leased out. I have one burning question though.

I just leased someone else's rig for an hour to see how it works from the "other side". It works great, I'm mining away no problem. The issue is, it appeared to me that I was able, should I choose, to have deleted ALL the host's mining pools set up on the rig!! Is this correct?  (I didn't do it, for what it's worth!)

If I had deleted all his/her pools, when my lease runs out, would their rig sit there idle until the next lease came along, or the owner intervened????  

If so, this seems like a "bad thing".  Or does cgminer get restarted at the end of a lease (which would reset the pools to whatever you define on cgminer startup) ??

Thanks for the info. Look forward to coming onboard soon, assuming we can work this one through :)






Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: Pustul on January 25, 2014, 06:07:55 AM
Hi all,

Ok I am almost sold on setting up my rig to be leased out. I have one burning question though.

I just leased someone else's rig for an hour to see how it works from the "other side". It works great, I'm mining away no problem. The issue is, it appeared to me that I was able, should I choose, to have deleted ALL the host's mining pools set up on the rig!! Is this correct?  (I didn't do it, for what it's worth!)

If I had deleted all his/her pools, when my lease runs out, would their rig sit there idle until the next lease came along, or the owner intervened????  

If so, this seems like a "bad thing".  Or does cgminer get restarted at the end of a lease (which would reset the pools to whatever you define on cgminer startup) ??

Thanks for the info. Look forward to coming onboard soon, assuming we can work this one through :)

You can set up a default pool on the admin panel and when the lease ends this pool is used :)


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: ozoner on January 25, 2014, 06:57:23 AM

You can set up a default pool on the admin panel and when the lease ends this pool is used :)

Awesome! Thanks for the quick help. Obviously I can't see this until I set up my rig for lease :-)


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: Quacko on January 25, 2014, 09:41:41 AM
I asked this in the other thread but just realised that I probably should ask it here...

Can you setup multiple pools as default pool (failover)?
My current batfile sets up all the pools and clockspeeds and cgminer settings, do I keep this or do I have to add all those settings (with or without pools?) to the config instead of the batfile?

If u restart cgminer from api, it probably wont take the settings in the batfile right? Or can I tell the website to use the batfile?

-edit- once someone is set up and pm'd you the details and gets allowed to rent his rig, does the website do an api test to make sure everything works as is expected? I wouldn't want ppl leasing my rig having problems because I did something wrong (probably wont happen, but you never know) the first time. Don't want ppl to pay me and end up feeling cheated, it's a good service for ppl renting rigs if I see those prices.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: ozoner on January 25, 2014, 11:53:03 AM
I asked this in the other thread but just realised that I probably should ask it here...

Can you setup multiple pools as default pool (failover)?
My current batfile sets up all the pools and clockspeeds and cgminer settings, do I keep this or do I have to add all those settings (with or without pools?) to the config instead of the batfile?

If u restart cgminer from api, it probably wont take the settings in the batfile right? Or can I tell the website to use the batfile?

-edit- once someone is set up and pm'd you the details and gets allowed to rent his rig, does the website do an api test to make sure everything works as is expected? I wouldn't want ppl leasing my rig having problems because I did something wrong (probably wont happen, but you never know) the first time. Don't want ppl to pay me and end up feeling cheated, it's a good service for ppl renting rigs if I see those prices.

I don't know the answer about multiple pools... (good question though)

I do know that if you restart cgminer via the program interface (type S-C-Y) or via the API, it will reset all your pools etc to what you defined in your script.

Doing a restart via API, while a great solution, will cause some issues with some people, as some of the newer cards (290/290x) will crash the rig completely (both linux and windows) when cgminer is restarted. (This can be got around by making people upgrade to sgminer 4.0.0).





Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: ButterBread on January 25, 2014, 02:10:28 PM

You can set up a default pool on the admin panel and when the lease ends this pool is used :)


Only one? What if that one goes down? For example, for middlecoin pool I have 3 or 4 middlecoin servers set, ready for fail-over.

Are you saying that I'd have to choose just one of those?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: Pustul on January 25, 2014, 03:34:19 PM

You can set up a default pool on the admin panel and when the lease ends this pool is used :)


Only one? What if that one goes down? For example, for middlecoin pool I have 3 or 4 middlecoin servers set, ready for fail-over.

Are you saying that I'd have to choose just one of those?

Yes you can choose only one pool to switch back when the lease end. Multiple defaults is in the to-do list though.

But you can add pools from the admin panel, it means it will use the default only from the time the lease ends till the time you can connect and add some pools. Not the easiest way but it works until multiple defaults is implemented.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: ButterBread on January 25, 2014, 07:08:49 PM
Yes you can choose only one pool to switch back when the lease end. Multiple defaults is in the to-do list though.

But you can add pools from the admin panel, it means it will use the default only from the time the lease ends till the time you can connect and add some pools. Not the easiest way but it works until multiple defaults is implemented.

Thanks for the quick reply.

So when I connect, I can add 'some pools'.  This means I can then set my 3-4 middlecoin servers and the fail-over will work between them?

Would I have to do this after each lease-end? Would I have to do something (i.e. remove them) before each lease-begin as well?

Don't quite understand the process here, but would like to get a good idea of the possibilities before I put in the work to set it all up. Lots of steps for me.

Also, the rig owner's name on the front page.. Is that the same as the one on the bitcoin forum or can you choose another name?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: Pustul on January 25, 2014, 10:23:36 PM
Yes you can choose only one pool to switch back when the lease end. Multiple defaults is in the to-do list though.

But you can add pools from the admin panel, it means it will use the default only from the time the lease ends till the time you can connect and add some pools. Not the easiest way but it works until multiple defaults is implemented.

Thanks for the quick reply.

1)So when I connect, I can add 'some pools'.  This means I can then set my 3-4 middlecoin servers and the fail-over will work between them?

2)Would I have to do this after each lease-end? Would I have to do something (i.e. remove them) before each lease-begin as well?

Don't quite understand the process here, but would like to get a good idea of the possibilities before I put in the work to set it all up. Lots of steps for me.

3)Also, the rig owner's name on the front page.. Is that the same as the one on the bitcoin forum or can you choose another name?

1) Yes
2) Yes  each time the lease ends your miner will switch to your default pool but you have to do add the failovers you want. You don't have to do anything before the lease because it's the person who leases your rig who will delete your pools and add his.
3) I don't know, but since the trust system is based on this forum for now I think you have to use the same username. But djeZo is working on a delayed payment and trust rating system for the future :)


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: ButterBread on January 25, 2014, 10:43:09 PM
3) I don't know, but since the trust system is based on this forum for now I think you have to use the same username. But djeZo is working on a delayed payment and trust rating system for the future :)

Thanks again for the prompt reply, much appreciated.

Re.3) Does the person who leases see the static ip-address of the rig? Wouldn't want someone to target it because I didn't agree with them in some forum thread. Lots of tightly-wound weirdos in this place, me included probably  ;)


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: Pustul on January 25, 2014, 11:29:00 PM
3) I don't know, but since the trust system is based on this forum for now I think you have to use the same username. But djeZo is working on a delayed payment and trust rating system for the future :)

Thanks again for the prompt reply, much appreciated.

Re.3) Does the person who leases see the static ip-address of the rig? Wouldn't want someone to target it because I didn't agree with them in some forum thread. Lots of tightly-wound weirdos in this place, me included probably  ;)

No problem :)

No they won't see your ip, they have to go through the website to do any changes to the pools and they only see the ip of the website.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: coinguy98 on January 26, 2014, 12:37:40 AM
Ok, I can't figure out where to put the api listen command


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: ButterBread on January 26, 2014, 10:47:25 AM
Ok, I can't figure out where to put the api listen command

Either in the .conf file or as an extra command line parameter in your batch file. Check the readme file included in cgminer.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: coinguy98 on January 26, 2014, 07:58:12 PM
Ok I got cgminer working... now I just need to configure my NAT? How do I go about that... Also
whenever I add the --api listen command my miner gets reduced hashrates on two cards instead of the steady 725 I usually get


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: bishopcoin on January 27, 2014, 01:19:10 AM
I use BAMT for my rig.
I don't know the equivalent commands for "--api-groups P:switchpool:addpool:removepool:restart:*" to put on my cgminer.conf

Can anyone help me with this?

Thanks!


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: Pustul on January 27, 2014, 01:23:28 AM
I use BAMT for my rig.
I don't know the equivalent commands for "--api-groups P:switchpool:addpool:removepool:restart:*" to put on my cgminer.conf

Can anyone help me with this?

Thanks!

"api-groups" : "P:switchpool:addpool:removepool:restart:*"


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: bishopcoin on January 27, 2014, 01:26:58 AM
thank you so much!


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: dothetwist on January 27, 2014, 11:51:08 AM
Hi!

Currently running with these setting:
Code:
"expiry" : "15",
"failover-only" : true,
"log" : "5",
"queue" : "1",
"scan-time" : "15",

Is it OK? Should i turn load-balance on?

Thanks


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: Bralak on January 27, 2014, 07:24:21 PM
Hi,
I'm trying to provide a mining rig.

NAT is configured with port 7777.
For cgminer , Does a bat with my conf and api commands is enough (cgminer.conf is empty)??


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: trogdorjw73 on January 27, 2014, 07:55:40 PM
A few questions:

1) Port forwarding (with cgwatcher) -- do I forward 7777 to 7777, or 7777 to something else (4028), or do I use 4028 (the default)?
2) How many rigs can I put up for lease? If I have more than one, I need multiple port forwarding rules, so how do I configure that (e.g. they can't all be external port 7777)?
3) Is there a way for the owner of a rig to login through your site and test out the rig, to verify all is working properly?

Here's what I have as my cgminer startup command:

Code:
cgminer.exe --scrypt --config cgminer-lease.conf --auto-fan --failover-only --api-groups P:switchpool:addpool:removepool:restart:save:* --api-listen --api-allow P:89.212.242.33,127.0.0.1 --api-port 4028

The cgminer-lease.conf specifies my normal mining pools, which I assume would be active any time the rig isn't being leased. Did I miss anything?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: djeZo on January 27, 2014, 08:36:11 PM
A few questions:

1) Port forwarding (with cgwatcher) -- do I forward 7777 to 7777, or 7777 to something else (4028), or do I use 4028 (the default)?
2) How many rigs can I put up for lease? If I have more than one, I need multiple port forwarding rules, so how do I configure that (e.g. they can't all be external port 7777)?
3) Is there a way for the owner of a rig to login through your site and test out the rig, to verify all is working properly?

Here's what I have as my cgminer startup command:

Code:
cgminer.exe --scrypt --config cgminer-lease.conf --auto-fan --failover-only --api-groups P:switchpool:addpool:removepool:restart:save:* --api-listen --api-allow P:89.212.242.33,127.0.0.1 --api-port 4028

The cgminer-lease.conf specifies my normal mining pools, which I assume would be active any time the rig isn't being leased. Did I miss anything?

1. You can use 4028 - I heard cgwatcher can't be configured to use different port?

2. Each mining rig must have different external port, because all your rigs are accessible via single IP - so my server has to know which rig is which thus ports are used to distinguish between them. You can however use same internal ports (forwarded to). Such router rule would look something like this:
ext.       int.
7777 -> 4028
7778 -> 4028

3. Once you install your rig (put in your IP/domain + port) your rig will appear in the list and you will have full access to manage pools, set default pool, manage renting plans etc... You can manage pools via website on your own too, not only your customer.

4. You may want to grant your localhost full access, so use tag W instead of P for your local IP.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: trogdorjw73 on January 28, 2014, 05:09:29 AM
A few questions:

1) Port forwarding (with cgwatcher) -- do I forward 7777 to 7777, or 7777 to something else (4028), or do I use 4028 (the default)?
2) How many rigs can I put up for lease? If I have more than one, I need multiple port forwarding rules, so how do I configure that (e.g. they can't all be external port 7777)?
3) Is there a way for the owner of a rig to login through your site and test out the rig, to verify all is working properly?

Here's what I have as my cgminer startup command:

Code:
cgminer.exe --scrypt --config cgminer-lease.conf --auto-fan --failover-only --api-groups P:switchpool:addpool:removepool:restart:save:* --api-listen --api-allow P:89.212.242.33,127.0.0.1 --api-port 4028

The cgminer-lease.conf specifies my normal mining pools, which I assume would be active any time the rig isn't being leased. Did I miss anything?

1. You can use 4028 - I heard cgwatcher can't be configured to use different port?

2. Each mining rig must have different external port, because all your rigs are accessible via single IP - so my server has to know which rig is which thus ports are used to distinguish between them. You can however use same internal ports (forwarded to). Such router rule would look something like this:
ext.       int.
7777 -> 4028
7778 -> 4028

3. Once you install your rig (put in your IP/domain + port) your rig will appear in the list and you will have full access to manage pools, set default pool, manage renting plans etc... You can manage pools via website on your own too, not only your customer.

4. You may want to grant your localhost full access, so use tag W instead of P for your local IP.
For anyone that wants to know, you *can* use a different port on CGWatcher. It's on the "Miner" tab under the "Settings" tab. This may be useful as some routers don't do sensible port forwarding -- I have one that will only forward a port to the same port internally, so e.g. 7777 has to forward to 7777. Totally whack, but in the end for this specific use case it doesn't matter much.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: sowanted on January 28, 2014, 09:47:03 AM
we must open 7777 port ? or what we want?

musnt?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: Aaroenz0r on January 28, 2014, 10:54:56 AM
Can anybody help me?

I can not figure out how to get this to work,
I want to use the cgminer.conf file instead of a .bat file.

Does anybody has a working config line?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: trogdorjw73 on January 28, 2014, 11:39:15 AM
Can anybody help me?

I can not figure out how to get this to work,
I want to use the cgminer.conf file instead of a .bat file.

Does anybody has a working config line?
Sure:

Code:
cgminer.exe --config cgminer-rental.conf --auto-fan --failover-only --api-groups P:switchpool:addpool:removepool:restart:save:* --api-listen --api-allow P:89.212.242.33,127.0.0.1 --api-port 4028

There might be a better way to do a few things, but that will get you running at least.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: Aaroenz0r on January 28, 2014, 12:24:50 PM
Hi thanks for the help,
But i meant in the actual .config file of cgminer :)



Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: Gamer67 on January 28, 2014, 12:30:48 PM
Hi thanks for the help,
But i meant in the actual .config file of cgminer :)



Code:
"intensity" : "20,20",
"vectors" : "1,1",
"worksize" : "256,256",
"kernel" : "scrypt,scrypt",
"lookup-gap" : "2,2",
"thread-concurrency" : "32765,32765",
"shaders" : "0,0",
"gpu-engine" : "920-920,920-920",
"gpu-fan" : "0-100,0-100",
"gpu-memclock" : "1490,1490",
"gpu-memdiff" : "0,0",
"gpu-powertune" : "20,20",
"gpu-vddc" : "0.000,0.000",
"temp-cutoff" : "98,98",
"temp-overheat" : "97,97",
"temp-target" : "80,80",
"api-listen" : true,
"api-mcast-port" : "4028",
"api-network" : true,
"api-port" : "4030",
"auto-fan" : true,
"expiry" : "120",
"gpu-dyninterval" : "7",
"gpu-platform" : "1",
"log" : "5",
"log-dateformat" : "0",
"no-pool-disable" : true,
"queue" : "1",
"scan-time" : "20",
"scrypt" : true,
"temp-hysteresis" : "3",
"shares" : "0",
"kernel-path" : "/usr/local/bin",
"api-allow" : "P:89.212.242.33,W:127.0.0.1",
"api-groups" : "P:switchpool:addpool:removepool:restart:save:*"
}


Adjust to your system of course


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: Sy on January 28, 2014, 04:25:07 PM
This should work without static ip and dyndns too...


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: Lowkek on January 28, 2014, 04:27:52 PM
This should work without static ip and dyndns too...
This, please add dynamic ip functionality


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: sowanted on January 28, 2014, 06:42:39 PM
when i want to try to test :
 --api-groups P:switchpool:addpool:removepool:restart:save:* --api-listen --api-allow P:89.212.242.33 --api-port 2014
Quote
it says: need to specify at least one pool server.
Input server details.
URL


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: forestmining on January 28, 2014, 11:55:46 PM
Edit: problem solved.

For peoples who can access on rig only by local network (even if ports are open), and not by internet, you can try changeip.com instead no-ip. With no-ip and their program, i could not access to anything. with changeip, everything was solved. I don't know how this is possible but it works for me (probably my fault and my noob linux skills  :D).

Thanks again to alex28 (https://bitcointalk.org/index.php?topic=430790) for his help.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: trogdorjw73 on January 29, 2014, 06:29:32 AM
A few items to add to the How To notes:

1) While LeaseRig will try to save your settings so that if a rig reboots the client doesn't lose all their miner information, this does not work with a custom config file. You should only use the default cgminer.conf file.

2) At one point LeaseRig saved some settings for me and apparently GPU-threads was not specified or saved properly; the result was that when cgminer restarted with the updated config file, hash rates were about 10% lower (and could have been much worse on some PCs!) thanks to the incorrect threads setting, so make sure to include -g 1 (or -g 2 if that's what you want) in your cgminer options and not just in the conf file.

3) CGWatcher does work with LeaseRig, and you can configure it to use other ports. On version 3.5.2, look in the Settings->Miner tab for the API port. The default is 4028, but I've successfully used other ports.

4) I've found Windows' Firewall doesn't play well with LeaseRig and had to disable it on at least a couple of my leased rigs; this is not always necessary, but if you're unable to get LeaseRig to see your system after configuring everything else properly, try disabling your firewall for a bit and see if that fixes the issue. If it does, you can either run without the firewall, or try to fix the problem.

Happy mining/leasing everybody!


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: djeZo on January 29, 2014, 10:47:35 AM
Updated first post.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET
Post by: Patsak on January 29, 2014, 09:08:26 PM
Official thread: https://bitcointalk.org/index.php?topic=414009

What you will need:
- mining rig
- cgminer 3.7.2 or sgminer 4.0.0

1. STEP: Make your miner accessible via static IP or static domain name. If your mining rig already has static IP, then you can skip this step.

If your mining rig has dynamic IP, then you will have to use domain name. You can sort this on your own or you can use dyn dns service like this one: https://www.noip.com/sign-up
After you register and choose domain, login and download client (http://www.noip.com/download?page=win) which you have to run to keep your domain name updated with your IP address. Launch it and after it loads click "Edit Hosts" button. Then check your domain name and click "Save" button. That is it, just leave this program running - it will update your domain name to your IP every 5 minutes.

If you have linux miner, there is a way to achieve this, but unfortunately since I have no linux, I cannot test any possible solution. If someone here knows what exactly to do, it would be very nice to share and I will update my post with linux instructions.

2. STEP: Configure cgminer

You have to enable API listening on your cgminer. Following config options have to be added in cgminer config/command line:

Code:
--api-listen --api-allow W:89.212.242.33 --api-port 7777

You can choose whatever port you want, but you have to keep exactly IP 89.212.242.33. You can modify and create access rules. Following commands are needed to provide full functionality: summary, pools, switchpool, addpool, removepool, restart, save. Read API-README.txt in cgminer directory to get more details about cgminer API and how to configure access rules.

After checking API-README.txt, following should work:
Code:
--api-groups P:switchpool:addpool:removepool:restart:save:* --api-listen --api-allow P:89.212.242.33 --api-port 7777

3. STEP: Make sure cgminer is visible outside

If your mining rig is behind router (NAT), you need to configure your NAT. Forward API port of cgminer.

Once you configure NAT, you can verify cgminer API port here: http://www.checkmyports.net/
It must say OPENED, if not, then it is still closed and you did something wrong.

4. STEP: Provide data to me (djeZo) - send me PM

In PM, include for each mining rig:
- mining rig name (choose on your own - alphanumeric characters)
- your trust thread (MANDATORY NOW so customers can post feedback there)


If you have additional questions regarding HOW-TO, please post them here (PM me only data for adding your mining rig). I will update this posts if there are additional questions.


A few items to add to the How To notes:

1) While LeaseRig will try to save your settings so that if a rig reboots the client doesn't lose all their miner information, this does not work with a custom config file. You should only use the default cgminer.conf file.

2) At one point LeaseRig saved some settings for me and apparently GPU-threads was not specified or saved properly; the result was that when cgminer restarted with the updated config file, hash rates were about 10% lower (and could have been much worse on some PCs!) thanks to the incorrect threads setting, so make sure to include -g 1 (or -g 2 if that's what you want) in your cgminer options and not just in the conf file.

3) CGWatcher does work with LeaseRig, and you can configure it to use other ports. On version 3.5.2, look in the Settings->Miner tab for the API port. The default is 4028, but I've successfully used other ports.

4) I've found Windows' Firewall doesn't play well with LeaseRig and had to disable it on at least a couple of my leased rigs; this is not always necessary, but if you're unable to get LeaseRig to see your system after configuring everything else properly, try disabling your firewall for a bit and see if that fixes the issue. If it does, you can either run without the firewall, or try to fix the problem.

Happy mining/leasing everybody!

Can add to 4th point; you need to either allow cgminer in your firewall rules or allow cgminer API port for incoming connections, then there should be no problems with Windows firewall.
Hi i am so nube that i dont  know how i can get Trust thread? help pls. Thanks


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on January 30, 2014, 01:59:02 PM
SHA256 support added!


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Quacko on January 30, 2014, 06:51:21 PM
Hi,

is there anyway to check that the rig is actually mining for the person that  paid for it? It does say lease.myrigname. But it's mining on pool 2 apparently wich looks like it is middlecoin. But that is my default? Or is it the failover from the customer that is also middlecoin? Any way to check?
I want to make sure that it is the customer mining and not me...

Thx


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: BotwinBG on January 30, 2014, 07:15:08 PM
2) At one point LeaseRig saved some settings for me and apparently GPU-threads was not specified or saved properly; the result was that when cgminer restarted with the updated config file, hash rates were about 10% lower (and could have been much worse on some PCs!) thanks to the incorrect threads setting, so make sure to include -g 1 (or -g 2 if that's what you want) in your cgminer options and not just in the conf file.

That happened to me, took me a while to understand why the rigs were running slower. Where do I include the -g 2 , you mean as the runtime argument ?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on January 30, 2014, 07:51:17 PM
Hi,

is there anyway to check that the rig is actually mining for the person that  paid for it? It does say lease.myrigname. But it's mining on pool 2 apparently wich looks like it is middlecoin. But that is my default? Or is it the failover from the customer that is also middlecoin? Any way to check?
I want to make sure that it is the customer mining and not me...

Thx

The green marked pool on admin panel (and customers panel) is currently active pool. Sadly, cgminer does not report which pool it is mining on atm, but I calculate that by taking priorities and alive status into consideration.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Quacko on January 30, 2014, 09:01:02 PM
2) At one point LeaseRig saved some settings for me and apparently GPU-threads was not specified or saved properly; the result was that when cgminer restarted with the updated config file, hash rates were about 10% lower (and could have been much worse on some PCs!) thanks to the incorrect threads setting, so make sure to include -g 1 (or -g 2 if that's what you want) in your cgminer options and not just in the conf file.

That happened to me, took me a while to understand why the rigs were running slower. Where do I include the -g 2 , you mean as the runtime argument ?
same question. Should it be in the shell  file which I use to start or in the config? All my settings are in the config. Or is it actually best to not give restart privileges to the customer? Because in all honestly my rig never goes down (been stable 4 weeks without any issues), only a manual reboot once a week is what I do.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on January 31, 2014, 06:43:09 PM
Restart has so far haven't been put into use, due to obvious issues with R9 cards. You don't have to permit it for now, but even if you do, nothing will be different, because the site never uses it.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Dogebear on January 31, 2014, 06:52:38 PM
hmm im trying to figure out how to do it with linux i see that some one can point bamt stats

http://simplyaccomplished.com/cgi-bin/status.pl anyone know how?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: thehun on January 31, 2014, 07:09:12 PM
It doesn't matter what port I configure on the command line, cgminer will always listen on port 4028  ???

Am I missing something?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: thehun on February 01, 2014, 12:20:03 AM
It doesn't matter what port I configure on the command line, cgminer will always listen on port 4028  ???

Am I missing something?

Answering myself: wrong setting in cgminer.conf which overrides command line  :P


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: iarsenaux on February 01, 2014, 12:10:25 PM
i'm having trouble opening a port :( i already tried to port forward on my router and add port on firewall still no luck. :(


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Test User on February 01, 2014, 06:43:04 PM
When does leaserig actually issue a save command?

I was initially running with a custom .conf, but have switched to the default .conf file? I've also added the save command to the permitted command list, however, when I admin the pools from the admin console, no save command is issued, and a cgminer restart will re-load the original conf.

Is the command only issued when hiring starts and ends? Is it only customer that can issue save commands?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on February 01, 2014, 09:44:19 PM
Check from which folder you run cgminer. Config is saved in default cgminer.conf


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: kenshirothefist on February 02, 2014, 04:45:00 PM
Short notice for advanced API configuration with various restrictive permissions. In my case I want localhost (the rig itself) to have full permissions, remote monitoring system only read permissions and LEASERIG.NET only the permissions that are needed for LEASERIG.NET to work properly. One can achieve this with:

(LEASERIG.NET group permission)
"api-groups" : "L:switchpool:addpool:removepool:restart:save:*",

(W is special privileged access to commands that modify cgminer, thus all API commands)
(192.168.2.70 is my monitoring server with only default read access)
"api-allow" : "W:127.0.0.1,192.168.2.70,L:89.212.242.33",


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: driller on February 03, 2014, 05:50:40 PM
Restart has so far haven't been put into use, due to obvious issues with R9 cards. You don't have to permit it for now, but even if you do, nothing will be different, because the site never uses it.

sgminer and Kalroth's cgminer branch has the fix for R9 cards.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: SheepOnDrugs on February 03, 2014, 08:08:05 PM
I'm currently thinking about renting my 3.6 MHash on there.
If I provide api port, wouldn't that make other people able to change the pool even after their contract ran out or am I missing something here?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on February 04, 2014, 09:33:13 AM
I'm currently thinking about renting my 3.6 MHash on there.
If I provide api port, wouldn't that make other people able to change the pool even after their contract ran out or am I missing something here?

Only if service permitted that. But it doesn't. When lease expires, customer does not get access to management page anymore and all attempts are invalid.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: SheepOnDrugs on February 04, 2014, 03:21:36 PM
Oh okay, that sounds great. Probably will PM you soon.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on February 05, 2014, 10:43:12 PM
Updated first post (check 4th step!).


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: ozoner on February 06, 2014, 10:39:44 AM
Is there any quick way of resetting "connection stability" ??  I stupidly didn't take my rig offline when it was down for maintenance, and now it looks like my rig is unreliable when it's not.

Perhaps a "reset" button?

Thanks.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on February 06, 2014, 11:36:11 AM
If there was a reset button, everyone would be clicking it to improve their stats. Stats are reset every day, dont worry.


Title: BOUNTY OFFERED! Help configuring SMOS 1.3 to support SAVE command
Post by: dalenorman2005 on February 06, 2014, 07:47:33 PM
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>&1

my 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.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on February 07, 2014, 05:55:04 PM
Updated first post; verification is now intense and will tell you how far you have configured everything;

http://leaserig.net/rigtest.jsp

It is advised that even existing providers try it to make sure everything is in place. But do it when your rig is NOT rented!.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: salsamoves on February 12, 2014, 11:51:48 PM
How do I setup for vert and jane n factor?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on February 13, 2014, 03:14:02 PM
How do I setup for vert and jane n factor?

Use different (forked) cgminer - usually you can get it in a thread where new coin is advertised.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: salsamoves on February 13, 2014, 03:53:26 PM
How do I setup for vert and jane n factor?

Use different (forked) cgminer - usually you can get it in a thread where new coin is advertised.

aha, I thought so, just want sure. and is it correct that we can only advertise it one scrypt/nfacter ect  at a time?

I suppose it means a whole lot more programming for you to have more than one as they will all be priced differently! Although on the other side, you are particularly good at programming!


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Squirreljester on February 13, 2014, 07:14:15 PM
OK, I have a dedicated rig that's Linux, and I'm using CGRemote to monitor it. I had this all set up and working fine, before I got CGRemote. Now I can't figure out how to set them both up to work together. Here's my old line:

./cgminer --api-groups P:switchpool:addpool:removepool:restart:* --api-listen --api-allow P:89.212.242.33 --api-port 7777 --scrypt blah blah card config blah

So, P is the leaserig group, and I've gathered that I need to make another group for CGRemote, we'll use W. So, I've got (LOCALIP in place of my local IP address, I don't want to post that):

./cgminer --api-groups P:switchpool:addpool:removepool:restart:* --api-listen --api-allow P:89.212.242.33,W:LOCALIP --api-port 7777 --scrypt blah blah card config blah

The only thing I'm confused about is the port part. Page 2 of this thread is where I got this config from, except for how to enter the port. Do I have to specify that group W uses port 4028 or no because it's a default port? How do I tell --api-port that group P uses 7777 and group W uses 4028? Or is the entry "W:LOCALIP" enough for it to accept access from that IP using the default 4028 port? Don't you have to at least define that W group in the --api-groups string?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on February 13, 2014, 07:46:12 PM
How do I setup for vert and jane n factor?

Use different (forked) cgminer - usually you can get it in a thread where new coin is advertised.

aha, I thought so, just want sure. and is it correct that we can only advertise it one scrypt/nfacter ect  at a time?

I suppose it means a whole lot more programming for you to have more than one as they will all be priced differently! Although on the other side, you are particularly good at programming!


You can only advertise for one algorithm, never for more. Reasons are simple; my service can't swap your cgminers (there is no such API in cgminer) and you may have different pricing plans for different algorithms.

But I gave all providers ability to swap between algos quickly. Just look what market needs and put on what is needed to max your profit. That is all.

OK, I have a dedicated rig that's Linux, and I'm using CGRemote to monitor it. I had this all set up and working fine, before I got CGRemote. Now I can't figure out how to set them both up to work together. Here's my old line:

./cgminer --api-groups P:switchpool:addpool:removepool:restart:* --api-listen --api-allow P:89.212.242.33 --api-port 7777 --scrypt blah blah card config blah

So, P is the leaserig group, and I've gathered that I need to make another group for CGRemote, we'll use W. So, I've got (LOCALIP in place of my local IP address, I don't want to post that):

./cgminer --api-groups P:switchpool:addpool:removepool:restart:* --api-listen --api-allow P:89.212.242.33,W:LOCALIP --api-port 7777 --scrypt blah blah card config blah

The only thing I'm confused about is the port part. Page 2 of this thread is where I got this config from, except for how to enter the port. Do I have to specify that group W uses port 4028 or no because it's a default port? How do I tell --api-port that group P uses 7777 and group W uses 4028? Or is the entry "W:LOCALIP" enough for it to accept access from that IP using the default 4028 port? Don't you have to at least define that W group in the --api-groups string?

Port can be one only. All remote connections will use that port, no matter from which IP.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Squirreljester on February 13, 2014, 07:50:22 PM
Port can be one only. All remote connections will use that port, no matter from which IP.
Ah, so I'd have to change the port that CGRemote uses to 7777?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on February 14, 2014, 01:07:59 AM
Port can be one only. All remote connections will use that port, no matter from which IP.
Ah, so I'd have to change the port that CGRemote uses to 7777?

Or set port 4028 on leaserig, your choice, doesn't matter.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: miaviator on February 16, 2014, 03:00:54 AM
Quote
If you have linux miner, there is a way to achieve this, but unfortunately since I have no linux, I cannot test any possible solution. If someone here knows what exactly to do, it would be very nice to share and I will update my post with linux instructions.

PM me if you have this issue.

Quote
3. STEP: Make sure miner is visible outside

If your mining rig is behind router (NAT), you need to configure your NAT. Forward API port of cgminer.

Once you configure NAT, you can verify cgminer API port here: http://www.checkmyports.net/
It must say OPENED, if not, then it is still closed and you did something wrong.

If that test passes you have successfully given EVERYONE access to your miner!

Quote
4. STEP: Verification

Verify your work (if all is properly configured) by visiting following URL from rig PC (must be same PC!):
http://leaserig.net/rigtest.jsp

If you run secure linux miners (because you like your customers) there is no way to do this.

1 IP per rig on headless linux boxes.  Can't interact with a JSP page.  X-tunneling and VNC are really not worth the effort when there is easier ways to test.

I can't wait to get reply deleted in my Inbox.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: miaviator on February 16, 2014, 03:20:15 AM
How do I setup for vert and jane n factor?

Use different (forked) cgminer - usually you can get it in a thread where new coin is advertised.

aha, I thought so, just want sure. and is it correct that we can only advertise it one scrypt/nfacter ect  at a time?

I suppose it means a whole lot more programming for you to have more than one as they will all be priced differently! Although on the other side, you are particularly good at programming!


And extremely developer minded.  I can mine any coin and mine CPU+GPU+VANITY on the same rig.  But no chance for support on multi-mining to maximize provider profits.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on February 16, 2014, 11:00:48 AM
Quote
If you have linux miner, there is a way to achieve this, but unfortunately since I have no linux, I cannot test any possible solution. If someone here knows what exactly to do, it would be very nice to share and I will update my post with linux instructions.

PM me if you have this issue.

Quote
3. STEP: Make sure miner is visible outside

If your mining rig is behind router (NAT), you need to configure your NAT. Forward API port of cgminer.

Once you configure NAT, you can verify cgminer API port here: http://www.checkmyports.net/
It must say OPENED, if not, then it is still closed and you did something wrong.

If that test passes you have successfully given EVERYONE access to your miner!

Quote
4. STEP: Verification

Verify your work (if all is properly configured) by visiting following URL from rig PC (must be same PC!):
http://leaserig.net/rigtest.jsp

If you run secure linux miners (because you like your customers) there is no way to do this.

1 IP per rig on headless linux boxes.  Can't interact with a JSP page.  X-tunneling and VNC are really not worth the effort when there is easier ways to test.

I can't wait to get reply deleted in my Inbox.

3. STEP - not true, you limit access by IP - to LeaseRig.net only. Besides that, LeaseRig.net is only allowed to execute commands you listed in cgminer config. How hard is to understand that?

4. STEP - it is not question whether you can interact with JSP page, but if you have HTTP browser or if you can send and receive HTTP requests. On headless linux, you would need to read HTTP response in text I believe. This step is not mandatory; providers that would like to make sure they configured their rigs correctly would run it.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on February 16, 2014, 11:03:38 AM
How do I setup for vert and jane n factor?

Use different (forked) cgminer - usually you can get it in a thread where new coin is advertised.

aha, I thought so, just want sure. and is it correct that we can only advertise it one scrypt/nfacter ect  at a time?

I suppose it means a whole lot more programming for you to have more than one as they will all be priced differently! Although on the other side, you are particularly good at programming!


And extremely developer minded.  I can mine any coin and mine CPU+GPU+VANITY on the same rig.  But no chance for support on multi-mining to maximize provider profits.

All these algorithms utilize video cards. If you put 2 instances of cgminer with different algos on same rig, then they both suffer with reduced speed.

If there is CPU miner that uses cgminers API for pool management, then you can utilize CPU aswell. Here is the idea how; you run 2 instances of cgminer with different api port for each one, one should be doing GPU algo, another one CPU algo. Both can be listed on LeaseRig.net and both can be rented at any time.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: SheepOnDrugs on February 16, 2014, 11:56:17 AM
Not entirely true. You can deactivate one GPU in cgminer and use it in another instance.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on February 16, 2014, 01:57:51 PM
Not entirely true. You can deactivate one GPU in cgminer and use it in another instance.

Yes, that is another option. The point is that your aren't limited as it seems from first view.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: miaviator on February 16, 2014, 03:58:57 PM
How do I setup for vert and jane n factor?

Use different (forked) cgminer - usually you can get it in a thread where new coin is advertised.

aha, I thought so, just want sure. and is it correct that we can only advertise it one scrypt/nfacter ect  at a time?

I suppose it means a whole lot more programming for you to have more than one as they will all be priced differently! Although on the other side, you are particularly good at programming!


And extremely developer minded.  I can mine any coin and mine CPU+GPU+VANITY on the same rig.  But no chance for support on multi-mining to maximize provider profits.

All these algorithms utilize video cards. If you put 2 instances of cgminer with different algos on same rig, then they both suffer with reduced speed.

If there is CPU miner that uses cgminers API for pool management, then you can utilize CPU aswell. Here is the idea how; you run 2 instances of cgminer with different api port for each one, one should be doing GPU algo, another one CPU algo. Both can be listed on LeaseRig.net and both can be rented at any time.

I'll look if there is anything like a cgminer api for a cpu coin. 

I get the same performance based on 10 rigs tested over 7 day periods running scrypt, scrypt+cpu, scrypt+cpu+vanity.  It's not scrypt or the primary function that suffers it's the additional ones.

So instead of getting scrypt.  That's it. Scrypt out of a rig.  I can get scrypt + CPU mining at a reduced rate + vanity mining using the spare cycles of the GPU/CPU all with no performance decrease on scrypt.



Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Fattox on February 19, 2014, 12:29:41 PM
I think some people had trouble getting CGwatcher configured to play nice with LeaseRigs. I certainly had to make quite a few changes to my profiles to get it running correctly. I spoke to Djezo in PM's and he asked me to post my setup here to maybe push people in the right direction.

Basically, to use CGWatcher, i simply only use the miner .conf file to hold my pool addresses, nothing else. Every other parameter should be defined in "CGwatcher > Profiles > Miner Arguments" field. That way, these parameters will override anything given in the .conf (except pool addresses), to avoid changes being made that could affect hashrate,which i read has happened to some people here. Make sure you also point the CGwatcher profile to the correct .conf (or you will have no pools!), not sure if this can have a custom name, since the argument isn't present (since CGwatcher throws it in a seperate field).

Here's an example of my initial configuration.

Example .conf:
Code:
{
"pools" : [
{
"url" : "stratum+tcp://panda.united-miners.com:3311",
"user" : "Fattox.DigRig2",
"pass" : "x"
},
{
"url" : "stratum+tcp://panda.nitro.org:3338",
"user" : "Fattox.DigRig2",
"pass" : "x"
}
]
}

Example parameters in CGwatcher:
Code:
--api-groups P:switchpool:addpool:removepool:restart:save:* --api-listen --api-allow W:89.212.242.33 --api-port 7778 --failover-only --expiry 2 --queue 0 --scan-time 1 --gpu-threads 1 --intensity 20 --vectors 1 --worksize 256 --thread-concurrency 24550 --gpu-engine 1000 --gpu-memclock 1500 --gpu-powertune 20


Then after rental, your rig will switch back to the pools you define in the rig profile @ the LeaseRigs admin panel. So after the initial configuration, you probably never need to touch the .conf again... though i would always keep a backup, as you may need to re-copy it if your rig somehow restarts and the lease job never ends, or something, because then your own pools would possibly not be added back (or so i imagine!).

This was another important point, before i had access to the admin panel (which required the BTC deposit, etc), i had no idea how switching back to my own pools would work. It's a nice system, but this point should be highlighted more clearly in the guide. It certainly would have taken some of my worries while i was sending my deposit! :)


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on February 19, 2014, 12:34:05 PM
Is this compatible with save command? Let me know once your first renting period is over. Then I will quote it in first post.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: daGrumpf on February 19, 2014, 01:36:00 PM
Hi,
i'm newbie here


You can choose whatever port you want, but you have to keep exactly IP 89.212.242.33. You can modify and create access rules. Following commands are needed to provide full functionality: summary, pools, switchpool, addpool, removepool, restart, save. Read API-README.txt in cgminer directory to get more details about cgminer API and how to configure access rules.

After checking API-README.txt, following should work:
Code:
--api-groups P:switchpool:addpool:removepool:restart:save:* --api-listen --api-allow P:89.212.242.33 --api-port 7777

or in (c|s)gminer.conf add those 3 lines
Code:
"api-port" : "7777",
"api-groups" : "P:switchpool:addpool:removepool:restart:save:*",
"api-allow" : "P:89.212.242.33",


Quote
FYI, for those using BAMT, the save call in the api will create a new cgminer.conf under /.cgminer/cgminer.conf  .
This is of course useless since BAMT starts cgminer pointed to /etc/bamt/cgminer.conf
[...]
Login to your BAMT box using ssh and perform the following:
sudo crontab -e
Add the following to the bottom of the crontab (This will check for updates every 5 minutes and only overwrite when changes are made)
Code:
*/5 * * * * cp -u /.cgminer/cgminer.conf /etc/bamt/cgminer.conf >/dev/null 2>&1
Exit (and save)

Eerrrk, I pref a on the fly write , linking running config to default save path

for bamt with cgminer
Code:
sudo [ -f /root/.cgminer/cgminer.conf ] && rm -f /root/.cgminer/cgminer.conf ; ln -s /etc/bamt/cgminer.conf /root/.cgminer/cgminer.conf

for bamt with sgminer
Code:
sudo [ -f /root/.sgminer/sgminer.conf ] && rm -f /root/.sgminer/sgminer.conf ; ln -s /etc/bamt/cgminer.conf /root/.sgminer/sgminer.conf

this will be better


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Fattox on February 20, 2014, 09:42:44 AM
By the way, if i "disable" my rig in the admin panel, will it stop my current customer from renting/mining? I want to take a rig down later today to add some more RAM after his rental finishes, but obviously don't want to cut him off early. I want to disable the chance that someone rents it after his period has ended, otherwise i need to wait longer for the upgrade.  ;D

Cheers.

PS - Is there a way to message your customers or get them to leave feedback? I've had some customers already (1 ended in fact) but wonder if any will give feedback in my thread if they saw me from LeaseRigs.com and not from the forum/sig links?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on February 20, 2014, 04:37:58 PM
You can contact customer by the email.

You cannot disable rig when it is in lease mode. What you can do is higher your prices or remove renting plans - that will make it impossible to be rented again.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: BeeFer310 on February 20, 2014, 08:42:21 PM
I tried to setup a new miner.
When I run the test it give me this error:

Code:
FAILED STATUS=E,When=1392928585,Code=67,Msg=Cannot remove active pool 0:'stratum+tcp://eu.wafflepool.com:3333',Description=cgminer 3.7.2|

Any thoughts about this?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on February 20, 2014, 09:10:21 PM
I tried to setup a new miner.
When I run the test it give me this error:

Code:
FAILED STATUS=E,When=1392928585,Code=67,Msg=Cannot remove active pool 0:'stratum+tcp://eu.wafflepool.com:3333',Description=cgminer 3.7.2|

Any thoughts about this?

Retry the test after some minutes. Looks like the testing pool isn't working well right now. This does not mean your rig isn't properly configured. If you properly configured your first rig, there should be no issues with second one (as long as you did same configuration).


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: lobo13 on February 21, 2014, 11:28:22 PM
I have a problem, my two rigs connect to leaserig but for some reason it freezes cgwatcher, and i connet strait with cgminer and it works for a couple hours then it shuts down ports am using 7777,7778 anybody can help me to solve this issue???


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on February 21, 2014, 11:49:49 PM
I have a problem, my two rigs connect to leaserig but for some reason it freezes cgwatcher, and i connet strait with cgminer and it works for a couple hours then it shuts down ports am using 7777,7778 anybody can help me to solve this issue???

Try with this:

I think some people had trouble getting CGwatcher configured to play nice with LeaseRigs. I certainly had to make quite a few changes to my profiles to get it running correctly. I spoke to Djezo in PM's and he asked me to post my setup here to maybe push people in the right direction.

Basically, to use CGWatcher, i simply only use the miner .conf file to hold my pool addresses, nothing else. Every other parameter should be defined in "CGwatcher > Profiles > Miner Arguments" field. That way, these parameters will override anything given in the .conf (except pool addresses), to avoid changes being made that could affect hashrate,which i read has happened to some people here. Make sure you also point the CGwatcher profile to the correct .conf (or you will have no pools!), not sure if this can have a custom name, since the argument isn't present (since CGwatcher throws it in a seperate field).

Here's an example of my initial configuration.

Example .conf:
Code:
{
"pools" : [
{
"url" : "stratum+tcp://panda.united-miners.com:3311",
"user" : "Fattox.DigRig2",
"pass" : "x"
},
{
"url" : "stratum+tcp://panda.nitro.org:3338",
"user" : "Fattox.DigRig2",
"pass" : "x"
}
]
}

Example parameters in CGwatcher:
Code:
--api-groups P:switchpool:addpool:removepool:restart:save:* --api-listen --api-allow W:89.212.242.33 --api-port 7778 --failover-only --expiry 2 --queue 0 --scan-time 1 --gpu-threads 1 --intensity 20 --vectors 1 --worksize 256 --thread-concurrency 24550 --gpu-engine 1000 --gpu-memclock 1500 --gpu-powertune 20


Then after rental, your rig will switch back to the pools you define in the rig profile @ the LeaseRigs admin panel. So after the initial configuration, you probably never need to touch the .conf again... though i would always keep a backup, as you may need to re-copy it if your rig somehow restarts and the lease job never ends, or something, because then your own pools would possibly not be added back (or so i imagine!).

This was another important point, before i had access to the admin panel (which required the BTC deposit, etc), i had no idea how switching back to my own pools would work. It's a nice system, but this point should be highlighted more clearly in the guide. It certainly would have taken some of my worries while i was sending my deposit! :)


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: boubou on February 23, 2014, 05:23:45 PM
Ok, so I gave it a try, and do some tests.

All tests are good, but it stop on

Testing command "pools"... FAILED

My test was done on a computer of the same network, but not the one with the rig on it. The rig is on Bamt and I did not have a browser on it.

This is my Cgminer.conf
    "api-listen": true,
    "api-port": "4028",
    "api-allow": "W:127.0.0.1,L:89.212.242.33",
    "api-groups": "L:switchpool:addpool:removepool:restart:save:*",


Any advice?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on February 23, 2014, 05:41:09 PM
Ok, so I gave it a try, and do some tests.

All tests are good, but it stop on

Testing command "pools"... FAILED

My test was done on a computer of the same network, but not the one with the rig on it. The rig is on Bamt and I did not have a browser on it.

This is my Cgminer.conf
    "api-listen": true,
    "api-port": "4028",
    "api-allow": "W:127.0.0.1,L:89.212.242.33",
    "api-groups": "L:switchpool:addpool:removepool:restart:save:*",


Any advice?

Check if your cgminer has started up in 60 seconds. It may happen that wemineltc pool is unstable and causes cgminer not to startup at all. You can manually verify if you passed the test by checking generated cgminer.conf file. wemineltc pool should be added in while all your other pools removed. If this is the case, then you successfully completed the test.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: boubou on February 23, 2014, 06:06:37 PM
I use bamt, where should be the new cgminer.conf?

The former one was in /etc/bamt/cgminer.conf

The save status was successful so I shoul see a file somewhere if I understand correctly.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on February 23, 2014, 06:52:51 PM
I use bamt, where should be the new cgminer.conf?

The former one was in /etc/bamt/cgminer.conf

The save status was successful so I shoul see a file somewhere if I understand correctly.

https://bitcointalk.org/index.php?topic=417092.msg5236395#msg5236395


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: secbul on February 24, 2014, 12:16:16 PM
After CHECKING

http://leaserig.net/rigtest.jsp

All test done passed. Ok etc etc...

But my pool stuck at wemineltc  pool.. I had to manually change to my pool again. Is it ok ?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on February 24, 2014, 12:21:33 PM
After CHECKING

http://leaserig.net/rigtest.jsp

All test done passed. Ok etc etc...

But my pool stuck at wemineltc  pool.. I had to manually change to my pool again. Is it ok ?

Yes, this is OK.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: fforforest on February 25, 2014, 01:48:19 PM
Anyone have any experience getting KNCminer's Jupiter working with this?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on February 25, 2014, 01:59:48 PM
Try to contact existing 2 providers with jupiters. I heard that it is actually pretty simple.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: SlipperySlope on February 26, 2014, 09:26:14 PM
FYI. Leave the default log interval of 5 seconds alone when configuring cgminer. LeaseRigs cannot parse other than 1 or 5 second values according to a prompt PM conversation with djeZo. The administration POOLS panel reported accepted share values OK but each rig was getting set disabled. We fixed everything by resetting the cgminer log interval.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: quovadiz on February 27, 2014, 04:00:11 PM
I'm a newbie here trying to config my miner to work with leaserig.
Everything seems clear and almost the whole config is done but i have one question.
I'm actually mining rotating over 4 pools every 2 hours and i would like to keep this config even with leaserig.
Is it possible to configure the sgminer to rotate over 4 pools only when the miner is not for renting?
I mean:
1) sgminer starts with my actual rotate pools config
2) sgminer switches to mine for the customer's pool in case of renting
3) sgminer switches back in my rotate config at the end of the rental period.
What do you think, is it possible? If yes where to put the configuration?
Rotation option in command line and the pools in sgminer.config?
Thanks for your precious help!


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on February 27, 2014, 05:02:27 PM
I'm a newbie here trying to config my miner to work with leaserig.
Everything seems clear and almost the whole config is done but i have one question.
I'm actually mining rotating over 4 pools every 2 hours and i would like to keep this config even with leaserig.
Is it possible to configure the sgminer to rotate over 4 pools only when the miner is not for renting?
I mean:
1) sgminer starts with my actual rotate pools config
2) sgminer switches to mine for the customer's pool in case of renting
3) sgminer switches back in my rotate config at the end of the rental period.
What do you think, is it possible? If yes where to put the configuration?
Rotation option in command line and the pools in sgminer.config?
Thanks for your precious help!

A simple py script could be written to do this via admin panel.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on February 27, 2014, 10:17:20 PM
Added:

A. Simple method

1. STEP: Contact me (djeZo) - send me PM

If you are newbie with no reputation on this forum, send me PM with request to get listed, but tell me total speed of the rigs you would like to put on.

I will return to you with deposit amount. After deposit is made, send me PM and include:
- mining rig names (choose on your own - alphanumeric characters)
- your trust/reputation thread (this is mandatory so customers can post feedback there)

I will reply to you with access to admin panel on LeaseRig.net.

2. STEP: Setup LeaseRig Proxy

Download LeaseRig Proxy Software (Windows&Linux) (http://leaserig.net/leaserigproxy.zip). Detailed instructions are in README.txt file. But to sum it up with an example if you have one rig to offer.

1. Extract all files.
2. Open pools.conf and configure your starting pools.
3. Edit run.bat file - change PUT-YOUR-ID-HERE with ID you get on admin panel.
4. Double click run.bat to run it.
5. Configure your mining rig to use pool:

stratum+tcp://127.0.0.1:3333

THAT IS ALL. However, there are some more advanced options which you would like to check out (such as realtime speed stats). Just read README.txt file. You can connect as many as you like rigs to this proxy and total hash power will be increased.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: SlipperySlope on February 27, 2014, 11:12:33 PM
I executed ...
Code:
./leaserigproxy_linux 3333 PUT-YOUR-ID-HERE 0

and got this error message, using my actual generated ID on LeaseRig ...

Quote
--127.0.0.1:45669->connecting to pool yourpoolhere.com:3333
--127.0.0.1:45670->rig connected
--127.0.0.1:45670->connecting to pool yourpoolhere.com:3333
--127.0.0.1:45672->rig connected
--127.0.0.1:45672->connecting to pool yourpoolhere.com:3333
--127.0.0.1:45673->rig connected
--127.0.0.1:45673->connecting to pool yourpoolhere.com:3333
--127.0.0.1:45674->rig connected
ERROR: Failed to init socket




Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on February 28, 2014, 12:08:41 AM
I executed ...
Code:
./leaserigproxy_linux 3333 PUT-YOUR-ID-HERE 0

and got this error message, using my actual generated ID on LeaseRig ...

Quote
--127.0.0.1:45669->connecting to pool yourpoolhere.com:3333
--127.0.0.1:45670->rig connected
--127.0.0.1:45670->connecting to pool yourpoolhere.com:3333
--127.0.0.1:45672->rig connected
--127.0.0.1:45672->connecting to pool yourpoolhere.com:3333
--127.0.0.1:45673->rig connected
--127.0.0.1:45673->connecting to pool yourpoolhere.com:3333
--127.0.0.1:45674->rig connected
ERROR: Failed to init socket



By any chance did you put pool 127.0.0.1:3333 into pools.conf file? If yes, then you created a infinite connecting loop which will eventually use all sockets and crash. 127.0.0.1:3333 should be used in your cgminer!


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: emoomjean on February 28, 2014, 02:14:08 AM
djeZo,

So, if i'm understanding this correctly, the applet essentially works as a stratum server that your miner is pointed to which is then uplinked to the leaserig website?

If so, this sounds great since I will be receiving a bunch of gridseed miners tomorrow and I was scratching my head how to get them to work with Leaserig.  Now i'll just run the applet from my HTPC and point all the miners to it's IP as my pool address.

Just read the Readme and it sounds like this might be the solution I was looking for!  Now I just gotta sit here refreshing delivery details and wait for DHL to arrive....

-Eric



Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on February 28, 2014, 11:28:04 AM
djeZo,

So, if i'm understanding this correctly, the applet essentially works as a stratum server that your miner is pointed to which is then uplinked to the leaserig website?

If so, this sounds great since I will be receiving a bunch of gridseed miners tomorrow and I was scratching my head how to get them to work with Leaserig.  Now i'll just run the applet from my HTPC and point all the miners to it's IP as my pool address.

Just read the Readme and it sounds like this might be the solution I was looking for!  Now I just gotta sit here refreshing delivery details and wait for DHL to arrive....

-Eric



Yes, it is actually a stratum proxy. I have plans to expand it to support getwork&getblocktemplate HTTP requests, then even solo mining will be possible.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: contemptx on February 28, 2014, 03:43:43 PM
I get the error: can not execute this binary file?
when trying to run the stratum.

Also anyone know of a solution to add this so it starts up before cgminer within BAMT? and for it to check that its running / restart if not..?

UPDATE: BAMT = 32bit and the provided binary for the stratum is 64bit.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on February 28, 2014, 04:43:50 PM
Updated proxy to version 0.03b. Update is recommended, because some stratum pools did not work with previous releases.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: gsupp on February 28, 2014, 06:22:14 PM
I get the error: can not execute this binary file?
when trying to run the stratum.

Also anyone know of a solution to add this so it starts up before cgminer within BAMT? and for it to check that its running / restart if not..?

UPDATE: BAMT = 32bit and the provided binary for the stratum is 64bit.

Any chance of getting a 32bit compiled version of LeaseRigProxy for those of us running BAMT? Also do you have any ideas for setting this up redundantly (I don't want LeaseRigProxy to be a single point of failure)?

Thanks.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Tigggger on February 28, 2014, 08:08:01 PM
UPDATE: BAMT = 32bit and the provided binary for the stratum is 64bit.

Any chance of getting a 32bit compiled version of LeaseRigProxy for those of us running BAMT? Also do you have any ideas for setting this up redundantly (I don't want LeaseRigProxy to be a single point of failure)?

Thanks.

From the latest version I just downloaded, looks like it's already been fixed.

v0.03b
- fixed issue of some stratum pools not being supported
- linux executable is now 32-bit

Also many thanks to djeZo for working through some problems with my SHA256 rigs (hence the v0.02 and v0.03 !!)


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on February 28, 2014, 08:46:32 PM
I get the error: can not execute this binary file?
when trying to run the stratum.

Also anyone know of a solution to add this so it starts up before cgminer within BAMT? and for it to check that its running / restart if not..?

UPDATE: BAMT = 32bit and the provided binary for the stratum is 64bit.

Any chance of getting a 32bit compiled version of LeaseRigProxy for those of us running BAMT? Also do you have any ideas for setting this up redundantly (I don't want LeaseRigProxy to be a single point of failure)?

Thanks.

If you are referring to the possibility of proxy crashing, then the easy solution is to make a script which auto-restarts it in case of crashing. Pools are saved in file after each modification, and everything is established back when proxy is started again (connection with LeaseRig, pools are loaded again, cgminers attempt new connection to proxy after few seconds). I personally haven't experienced any crash yet, nor I got any reports of crashing proxy. It should be pretty stable.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: crazyates on February 28, 2014, 09:58:16 PM
I executed ...
Code:
./leaserigproxy_linux 3333 PUT-YOUR-ID-HERE 0

and got this error message, using my actual generated ID on LeaseRig ...

Quote
--127.0.0.1:45669->connecting to pool yourpoolhere.com:3333
--127.0.0.1:45670->rig connected
--127.0.0.1:45670->connecting to pool yourpoolhere.com:3333
--127.0.0.1:45672->rig connected
--127.0.0.1:45672->connecting to pool yourpoolhere.com:3333
--127.0.0.1:45673->rig connected
--127.0.0.1:45673->connecting to pool yourpoolhere.com:3333
--127.0.0.1:45674->rig connected
ERROR: Failed to init socket
By any chance did you put pool 127.0.0.1:3333 into pools.conf file? If yes, then you created a infinite connecting loop which will eventually use all sockets and crash. 127.0.0.1:3333 should be used in your cgminer!
I'm getting the same problem. I'm running the proxy on a VM, and trying to direct my AntMiners to them. The pools.conf has one starting pool, which is not itself (It's slush's, to be exact). The Antminer only has one pool, which is IP:3333 of the proxy VM. They're on the same network, and can ping each other.

It sits there for a while, and as soon as I start CGMiner on the AntMiner, the proxy crashes.

Listening on 3333 for miners
Connecting to LeaseRig.net
Pool connection established: stratum.bitcoin.cz:3333
Connected to LeaseRig.net
Pool authorized: stratum.bitcoin.cz:3333
Authorized with LeaseRig.net
*Sits here for a while, and as soon as I connect a miner, the following lines all show up, and then it closes*
--10.0.4.101:53767->rig connected
--10.0.4.101:53767->connecting to pool stratum.bitcoin.cz:3333
--10.0.4.101:53767->pool connection established
--10.0.4.101:53767->rig disconnected
--10.0.4.101:53768->rig connected
--10.0.4.101:53768->connecting to pool stratum.bitcoin.cz:3333
--10.0.4.101:53768->pool connection established
--10.0.4.101:53768->rig disconnected
--10.0.4.101:53769->rig connected
--10.0.4.101:53769->connecting to pool stratum.bitcoin.cz:3333
--10.0.4.101:53769->pool connection established
--10.0.4.101:53769->pool diff: 3
--10.0.4.101:53769->rig disconnected
--10.0.4.101:53770->rig connected
--10.0.4.101:53770->connecting to pool stratum.bitcoin.cz:3333
--10.0.4.101:53770->pool connection established
--10.0.4.101:53770->pool diff: 3


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on February 28, 2014, 10:08:09 PM
Could you give me some login details for this pool (PM me), will test on my own and see what happens.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Crypto Apprentice on March 01, 2014, 04:34:00 PM
When running the proxy with SMOS I get

Quote
/lib/i686/cmov/libc.so.6: version `GLIBC_2.15' not found

Any ideas?  I am using V 0.03b


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 01, 2014, 05:05:33 PM
When running the proxy with SMOS I get

Quote
/lib/i686/cmov/libc.so.6: version `GLIBC_2.15' not found

Any ideas?  I am using V 0.03b

Try to install: http://sourceware.org/ml/libc-alpha/2012-03/msg00836.html


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 01, 2014, 08:00:00 PM
Updated proxy; changelog is:

Quote
v0.04b
- localhost target pool not allowed (to prevent loopback attack)
- failed domain resolution prints warning
- improved failed connection detection on linux (no more crashing)

All providers using linux, you this update is mandatory. It should fix all crashes happening on linux.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 02, 2014, 08:55:12 AM
Quote
v0.5a
- added additional checks for 'broken pipe' to eliminate linux crashing


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: WireIT on March 02, 2014, 01:51:14 PM
Quote
v0.5a
- added additional checks for 'broken pipe' to eliminate linux crashing

Was running 0.04, woke up to "rig down (critical)". I've now upgraded to 0.05 and crossing my fingers.

Thanks for all your work!


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Tigggger on March 03, 2014, 07:24:03 PM
I'm currently having issues with all of my Antminers and am at a loss what the problem could be.

They had all been up without any issues for months, but going through the leaserig proxy at random intervals I get the 'rig disconnected' message and if I check in the miners web page it shows that cgminer isn't running. After some time the cron jobs fires it back up and it resumes mining.

This problem doesn't occur with my KNC equipment nor with my scrypt farm which are all running flawlessly.

Does anybody have an idea what's happening ?



Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 03, 2014, 07:27:14 PM
I'm currently having issues with all of my Antminers and am at a loss what the problem could be.

They had all been up without any issues for months, but going through the leaserig proxy at random intervals I get the 'rig disconnected' message and if I check in the miners web page it shows that cgminer isn't running. After some time the cron jobs fires it back up and it resumes mining.

This problem doesn't occur with my KNC equipment nor with my scrypt farm which are all running flawlessly.

Does anybody have an idea what's happening ?



What is the version of cgminer on antminers?

I know for a fact that cgminer version 3.7.2 and prior have bug related to stratum mining, which causes cgminer to crash - it doesn't happen often, but here and there.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Tigggger on March 03, 2014, 07:36:45 PM
I'm currently having issues with all of my Antminers and am at a loss what the problem could be.

They had all been up without any issues for months, but going through the leaserig proxy at random intervals I get the 'rig disconnected' message and if I check in the miners web page it shows that cgminer isn't running. After some time the cron jobs fires it back up and it resumes mining.

This problem doesn't occur with my KNC equipment nor with my scrypt farm which are all running flawlessly.

Does anybody have an idea what's happening ?



What is the version of cgminer on antminers?

I know for a fact that cgminer version 3.7.2 and prior have bug related to stratum mining, which causes cgminer to crash - it doesn't happen often, but here and there.

They are running 3.8.5


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 03, 2014, 07:48:14 PM
Is there an error log you could print out to figure out what caused it?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Tigggger on March 03, 2014, 08:00:54 PM
Is there an error log you could print out to figure out what caused it?

There is a system log and a kernel log, but neither have any clues I'm afraid


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 03, 2014, 08:36:49 PM
Is there an error log you could print out to figure out what caused it?

There is a system log and a kernel log, but neither have any clues I'm afraid

I am not a linux guru, but isn't there a way to know detailed why something crashed? If you could have provided me these logs, I may forward you somewhere...


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Tigggger on March 03, 2014, 08:45:21 PM
I am not a linux guru, but isn't there a way to know detailed why something crashed? If you could have provided me these logs, I may forward you somewhere...

I know nothing about linux either, the only 2 logs I know are the ones in the GUI which are below

The system log is filled with these nothing else
Code:
Mon Mar  3 20:33:01 2014 cron.info crond[575]: crond: USER root pid 28346 cmd /usr/bin/cgminer-monitor
Mon Mar  3 20:36:01 2014 cron.info crond[575]: crond: USER root pid 28363 cmd /usr/bin/cgminer-monitor
Mon Mar  3 20:39:01 2014 cron.info crond[575]: crond: USER root pid 28403 cmd /usr/bin/cgminer-monitor

The kernel log has a bit more in it

Code:
[    0.000000] Linux version 3.10.12 (xxl@ubuntu) (gcc version 4.6.4 (OpenWrt/Linaro GCC 4.6-2013.05 r38031) ) #10 Thu Dec 26 09:03:53 CST 2013
[    0.000000] MyLoader: sysp=1bec2fee, boardp=fdd6ef6f, parts=fc031564
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 00019374 (MIPS 24Kc)
[    0.000000] SoC: Atheros AR9330 rev 1
[    0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:25.000MHz
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x03ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x03ffffff]
[    0.000000] On node 0 totalpages: 16384
[    0.000000] free_area_init_node: node 0, pgdat 803005b0, node_mem_map 81000000
[    0.000000]   Normal zone: 128 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 16384 pages, LIFO batch:3
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line:  board=TL-WR741ND-v4 console=ttyATH0,115200 rootfstype=squashfs,jffs2 noinitrd
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 61336k/65536k available (2187k kernel code, 4200k reserved, 588k data, 232k init, 0k highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:51
[    0.080000] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
[    0.080000] pid_max: default: 32768 minimum: 301
[    0.080000] Mount-cache hash table entries: 512
[    0.090000] NET: Registered protocol family 16
[    0.100000] MIPS: machine is TP-LINK TL-WR741ND v4
[    0.100000] MAC FF:FF:FF:FF:FF:FF
[    0.100000] MAC 20:59:a0:b1:0f:65
[    0.560000] bio: create slab <bio-0> at 0
[    0.560000] Switching to clocksource MIPS
[    0.570000] NET: Registered protocol family 2
[    0.570000] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[    0.580000] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[    0.580000] TCP: Hash tables configured (established 512 bind 512)
[    0.590000] TCP: reno registered
[    0.590000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.600000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.610000] NET: Registered protocol family 1
[    0.610000] PCI: CLS 0 bytes, default 32
[    0.630000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.630000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.640000] msgmni has been set to 119
[    0.650000] io scheduler noop registered
[    0.650000] io scheduler deadline registered (default)
[    0.650000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.660000] ar933x-uart: ttyATH0 at MMIO 0x18020000 (irq = 11) is a AR933X UART
[    0.670000] console [ttyATH0] enabled, bootconsole disabled
[    0.680000] ath79-spi ath79-spi: master is unqueued, this is deprecated
[    0.690000] m25p80 spi0.0: found gd25q64, expected m25p80
[    0.690000] m25p80 spi0.0: gd25q64 (8192 Kbytes)
[    0.700000] 5 tp-link partitions found on MTD device spi0.0
[    0.700000] Creating 5 MTD partitions on "spi0.0":
[    0.710000] 0x000000000000-0x000000020000 : "u-boot"
[    0.710000] 0x000000020000-0x000000117d80 : "kernel"
[    0.720000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.730000] 0x000000117d80-0x0000007f0000 : "rootfs"
[    0.730000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.750000] mtd: partition "rootfs" set to be root filesystem
[    0.750000] mtd: partition "rootfs_data" created automatically, ofs=0x370000, len=0x480000
[    0.760000] 0x000000370000-0x0000007f0000 : "rootfs_data"
[    0.770000] 0x000000020000-0x0000007f0000 : "firmware"
[    0.770000] 0x0000007f0000-0x000000800000 : "art"
[    0.790000] libphy: ag71xx_mdio: probed
[    0.800000] eth0: Atheros AG71xx at 0xba000000, irq 5, mode:GMII
[    1.350000] eth0: Found an AR7240/AR9330 built-in switch
[    2.390000] eth1: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
[    2.940000] ag71xx ag71xx.0 eth1: connected to PHY at ag71xx-mdio.1:04 [uid=004dd041, driver=Generic PHY]
[    2.950000] TCP: cubic registered
[    2.950000] NET: Registered protocol family 17
[    2.960000] 8021q: 802.1Q VLAN Support v1.8
[    2.970000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    2.980000] Freeing unused kernel memory: 232K (80316000 - 80350000)
[    5.800000] usbcore: registered new interface driver usbfs
[    5.810000] usbcore: registered new interface driver hub
[    5.810000] usbcore: registered new device driver usb
[    5.820000] usbcore: registered new interface driver bitmain
[    5.830000] hash ok
[    5.830000] hashtest OK
[    5.830000] bitmain-asic: success to register device
[    5.840000] usbcore: registered new interface driver bitmainbl
[    5.850000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.850000] ehci-platform: EHCI generic platform driver
[    5.860000] ehci-platform ehci-platform: EHCI Host Controller
[    5.860000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
[    5.870000] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
[    5.900000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
[    5.900000] hub 1-0:1.0: USB hub found
[    5.900000] hub 1-0:1.0: 1 port detected
[    6.230000] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    6.380000] hub 1-1:1.0: USB hub found
[    6.380000] hub 1-1:1.0: 2 ports detected
[    6.670000] usb 1-1.1: new full-speed USB device number 3 using ehci-platform
[    6.800000] bitmain 1-1.1:1.0: USB Bitmain asic device now attached to USB Bitmain asic-0
[    6.810000] PIC microchip usb OK
[   10.560000] jffs2: notice: (327) jffs2_build_xattr_subsystem: complete building xattr subsystem, 25 of xdatum (0 unchecked, 24 orphan) and 41 of xref (0 dead, 26 orphan) found.
[   12.850000] hidraw: raw HID events driver (C) Jiri Kosina
[   12.860000] Loading modules backported from Linux version master-2013-06-27-0-gdcfa6d5
[   12.860000] Backport generated by backports.git backports-20130617-4-ge3220f5
[   12.880000] nf_conntrack version 0.5.0 (962 buckets, 3848 max)
[   12.900000] usbcore: registered new interface driver usbhid
[   12.910000] usbhid: USB HID core driver
[   12.920000] usbcore: registered new interface driver usbserial
[   12.920000] usbcore: registered new interface driver usbserial_generic
[   12.930000] usbserial: USB Serial support registered for generic
[   12.960000] xt_time: kernel timezone is -0000
[   12.980000] cfg80211: Calling CRDA to update world regulatory domain
[   12.990000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   13.000000] cfg80211: World regulatory domain updated:
[   13.000000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   13.010000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   13.010000] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   13.020000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   13.030000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   13.040000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   13.190000] ath: EEPROM regdomain: 0x0
[   13.190000] ath: EEPROM indicates default country code should be used
[   13.190000] ath: doing EEPROM country->regdmn map search
[   13.190000] ath: country maps to regdmn code: 0x3a
[   13.190000] ath: Country alpha2 being used: US
[   13.190000] ath: Regpair used: 0x3a
[   13.190000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   13.210000] cfg80211: Calling CRDA for country: US
[   13.210000] cfg80211: Regulatory domain changed to country: US
[   13.220000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   13.230000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
[   13.240000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
[   13.240000] cfg80211:   (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   13.250000] cfg80211:   (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   13.260000] cfg80211:   (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   13.270000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
[   13.290000] ieee80211 phy0: Atheros AR9330 Rev:1 mem=0xb8100000, irq=2
[   17.810000] device eth0 entered promiscuous mode
[   21.260000] eth1: link up (100Mbps/Full duplex)
[   23.040000] bitmain 1-1.1:1.0: USB Bitmain asic #0 now disconnected
[663248.860000] bitmain 1-1.1:1.0: USB Bitmain asic device now attached to USB Bitmain asic-0
[663248.870000] PIC microchip usb OK
[663251.310000] bitmain 1-1.1:1.0: USB Bitmain asic #0 now disconnected


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: kenshirothefist on March 03, 2014, 09:10:42 PM
I'm currently having issues with all of my Antminers and am at a loss what the problem could be.

They had all been up without any issues for months, but going through the leaserig proxy at random intervals I get the 'rig disconnected' message and if I check in the miners web page it shows that cgminer isn't running. After some time the cron jobs fires it back up and it resumes mining.

This problem doesn't occur with my KNC equipment nor with my scrypt farm which are all running flawlessly.

Does anybody have an idea what's happening ?



What is the version of cgminer on antminers?

I know for a fact that cgminer version 3.7.2 and prior have bug related to stratum mining, which causes cgminer to crash - it doesn't happen often, but here and there.

They are running 3.8.5

You can enable cgminer logging in the script/command line where you're starting cgminer; do like this:

cgminer ...cgminer-options... 2>>cgminer.log

This will redirect full cgminer logs into cgminer.log and so you'll be able to check what happened with cgminer just before it crashed.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Tigggger on March 03, 2014, 09:24:59 PM
You can enable cgminer logging in the script/command line where you're starting cgminer; do like this:

cgminer ...cgminer-options... 2>>cgminer.log

This will redirect full cgminer logs into cgminer.log and so you'll be able to check what happened with cgminer just before it crashed.

Thanks for that, it's running off an openwrt router and so there are probably space considerations hence no default logging, plus need to find where to edit.  Anyway it's heading in the right direction I'll ask in the antminer support thread someone there will know :)


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Brassguy on March 03, 2014, 09:27:38 PM
So I have 2 antminers mining through the proxy... but I'm not showing hshrate on the website side. What ip am I supposed to put in on the admin tab? I'm guessing that has something to do with it....

The proxy is accepting work, etc...

edit.... I'm a dumbass..... use the 's' parameter in cgminer, as stated in the readme...


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 03, 2014, 09:37:49 PM
So I have 2 antminers mining through the proxy... but I'm not showing hshrate on the website side. What ip am I supposed to put in on the admin tab? I'm guessing that has something to do with it....

The proxy is accepting work, etc...

from proxy README file:

Quote
ADVANCED - REALTIME SPEED READING (cgminer/sgminer and other forks)
-------------------------------------------------------------------

Speed is calculated according to shares being submited and can be off. To fix this usse when
using cgminer(s), LeaseRigProxy can obtain realtime speed stats via cgminer API. Enable API
support on cgminer and set third parameter for leaserig to API port of your cgminers. You will
have to use same port for all your cgminers. Example, if you choose to use port 7777, then
you launch LeaseRigProxy like this:

   leaserigproxy.exe 3333 PUT-YOUR-ID-HERE 7777

and another alternative for SHA rigs:

Quote
ADVANCED - SHA256 RIGS
----------------------

If you do not use realtime speed reading, you will have to fix speed calculations when offering
SHA256 rigs. Speed calculation is fixed if you pass in fourth parameter 's':

   leaserigproxy.exe 3333 PUT-YOUR-ID-HERE 0 s


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Burgertm on March 04, 2014, 12:49:37 AM
I'm using the Windows version of the proxy and I'm noticing these timeouts and reconnects fairly often.  Any idea why this is happening?

Listening on 3333 for miners
Connecting to LeaseRig.net
Connected to LeaseRig.net
Pool connection established: useast.wafflepool.com:3333
Pool connection established: us.clevermining.com:3333
Pool authorized: us.clevermining.com:3333
Pool authorized: useast.wafflepool.com:3333
Authorized with LeaseRig.net
--127.0.0.1:59255->rig connected
--127.0.0.1:59255->connecting to pool useast.wafflepool.com:3333
--127.0.0.1:59255->pool connection established
--127.0.0.1:59255->pool diff: 512
--127.0.0.1:59255->pool diff: 512
--127.0.0.1:59255->share ACCEPTED (diff=512)
--127.0.0.1:59255->share ACCEPTED (diff=512)
--127.0.0.1:59255->share ACCEPTED (diff=512)
--127.0.0.1:59255->share ACCEPTED (diff=512)
Connection to LeaseRig.net timed out!
Connecting to LeaseRig.net
Connected to LeaseRig.net
Authorized with LeaseRig.net
--127.0.0.1:59255->share ACCEPTED (diff=512)
--127.0.0.1:59255->share ACCEPTED (diff=512)
--127.0.0.1:59255->share ACCEPTED (diff=512)
--127.0.0.1:59255->share ACCEPTED (diff=512)
--127.0.0.1:59255->share ACCEPTED (diff=512)
--127.0.0.1:59255->share ACCEPTED (diff=512)
Connection to LeaseRig.net timed out!
Connecting to LeaseRig.net
Connected to LeaseRig.net
Authorized with LeaseRig.net
--127.0.0.1:59255->share ACCEPTED (diff=512)
--127.0.0.1:59255->share ACCEPTED (diff=512)


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 04, 2014, 07:16:22 AM
You have poor connection to LeaseRig. Where are you from?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Burgertm on March 04, 2014, 12:01:09 PM
Des Moines, IA


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Fattox on March 04, 2014, 12:17:59 PM
I just configured LRP but was leasing with it before now. Does it give me any extra benefits to use LRP? I was just testing it but wondered if i should keep on using it. How does the pool saving work when using LRP? Saves directly to the /LRP/pool.conf?

Cheers for info.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 04, 2014, 12:35:32 PM
I just configured LRP but was leasing with it before now. Does it give me any extra benefits to use LRP? I was just testing it but wondered if i should keep on using it. How does the pool saving work when using LRP? Saves directly to the /LRP/pool.conf?

Cheers for info.

Yes, saves to pools.conf automatically after any change is made. Generally, if you already used method B, the LRP won't bring you much (besides ability to create large rigs and have less management). However, LRP is better for pool management - there are no such issues as pools being lost or pools priority being lost after rig failure.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Fattox on March 04, 2014, 12:48:41 PM
I just configured LRP but was leasing with it before now. Does it give me any extra benefits to use LRP? I was just testing it but wondered if i should keep on using it. How does the pool saving work when using LRP? Saves directly to the /LRP/pool.conf?

Cheers for info.

Yes, saves to pools.conf automatically after any change is made. Generally, if you already used method B, the LRP won't bring you much (besides ability to create large rigs and have less management). However, LRP is better for pool management - there are no such issues as pools being lost or pools priority being lost after rig failure.


Cheers Djezo, the pool management is what i was hoping for. Quite a few times i had to copy my pools.conf from a backup, hopefully this fixes that little annoyance.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: dalenorman2005 on March 04, 2014, 07:12:32 PM
When running the proxy with SMOS I get

Quote
/lib/i686/cmov/libc.so.6: version `GLIBC_2.15' not found

Any ideas?  I am using V 0.03b

Try to install: http://sourceware.org/ml/libc-alpha/2012-03/msg00836.html

I've got the same issue.  SMOS v1.3, "GLIBC-2.15 not found".
And yes, at the website you listed, i do see links to various versions of glibc, including 2.15 and never (and older).

For the linux idiots such as myself, would someone kindly point out how, VERY SPECIFICALLY, one would "install" GLIBC from the website above?

Thanks in advance.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 04, 2014, 07:25:55 PM
maybe you could try with apt-get install?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: dalenorman2005 on March 04, 2014, 07:39:39 PM
maybe you could try with apt-get install?

Indeed, that would be the way...

Dreadfully sorry, and somewhat embarrassed to be asking this...

what, precisely, would someone type in order to download and install the required library?  I mean, hypothetically, for someone with no knowledge of linux... i mean, you know, for a friend of mine, not me.  definitely not me....

My friend is 5, so instructions for a 5 year old would be best.  and not a smart 5 year old...



Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 04, 2014, 08:26:08 PM
maybe you could try with apt-get install?

Indeed, that would be the way...

Dreadfully sorry, and somewhat embarrassed to be asking this...

what, precisely, would someone type in order to download and install the required library?  I mean, hypothetically, for someone with no knowledge of linux... i mean, you know, for a friend of mine, not me.  definitely not me....

My friend is 5, so instructions for a 5 year old would be best.  and not a smart 5 year old...



Maybe this can help:
http://stackoverflow.com/questions/10863613/how-to-upgrade-glibc-from-version-2-13-to-2-15-on-debian


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: BuildTheFuture on March 06, 2014, 09:12:48 PM
Hi, is anyone successful in getting an Antminer S1 to allow full cgminer API access so that you don't have to use the proxy software? So far mine will allow the status check but denies access to other commands.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Brassguy on March 06, 2014, 09:37:52 PM
Is there anyway to set the maximum share difficulty for the proxy?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 06, 2014, 10:52:32 PM
Is there anyway to set the maximum share difficulty for the proxy?

Share is implied by pool, proxy only forwards data, nothing more. When you use several workers on proxy, then several connections are established. At the end, it is same as if using several direct connections to the pool with same username.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: BuildTheFuture on March 06, 2014, 11:26:53 PM
If we want to keep everything separate, is it ok to run one copy of the proxy program for each rig, on a separate port? Also what if we have both SHA256 and scrypt rigs, do we run separate proxies for each? Is it possible to specify different pools.conf, or can we just run the proxy program without a pools.conf?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 06, 2014, 11:35:30 PM
If we want to keep everything separate, is it ok to run one copy of the proxy program for each rig, on a separate port? Also what if we have both SHA256 and scrypt rigs, do we run separate proxies for each? Is it possible to specify different pools.conf, or can we just run the proxy program without a pools.conf?

Create several directories and put copy of leaserigproxy and pools.conf in each one. Then configure each proxy to listen on different port (first parameter). You can run several thousands proxies that way ;)


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Tigggger on March 06, 2014, 11:39:01 PM
If we want to keep everything separate, is it ok to run one copy of the proxy program for each rig, on a separate port? Also what if we have both SHA256 and scrypt rigs, do we run separate proxies for each? Is it possible to specify different pools.conf, or can we just run the proxy program without a pools.conf?

Yes that's the way I do it with 8 seperate instances, just make a new directory for each, then each rig has it's own pools.conf file

Also in the bat file add a title so you can easily see which windows is which eg.

title Mining Rig 1
leaserigproxy.exe.....
pause

https://i.imgur.com/afaImXZ.jpg


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Brassguy on March 07, 2014, 01:05:31 AM
Is there anyway to set the maximum share difficulty for the proxy?

Share is implied by pool, proxy only forwards data, nothing more. When you use several workers on proxy, then several connections are established. At the end, it is same as if using several direct connections to the pool with same username.

Thanks for the info!

BTW.... Tigggger, I'm totally jealous of your stellar uptime stats!!! You had 100% going for days!!


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Brassguy on March 07, 2014, 01:08:52 AM
Well one more question... anyone else having any issues with switching to their own mining pool during non-rented time? I keep getting a message saying that my miners can't switch to my default pool... by the time I get to check on it, it's already rented... which is an great problem to have!


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: BuildTheFuture on March 07, 2014, 07:13:04 AM
Newb provider here. Is it normal/typical to get an email about "LeaseRig.net - cannot change pools" immediately upon a customer buying a lease? I checked the rig and it seems to be hashing away at full speed on something (using a proxy so I can't see what). I assume customer figured out the problem. How can I tell when a problem is more serious/needs attention vs. not serious?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: pajak666 on March 07, 2014, 01:18:35 PM
Well one more question... anyone else having any issues with switching to their own mining pool during non-rented time? I keep getting a message saying that my miners can't switch to my default pool... by the time I get to check on it, it's already rented... which is an great problem to have!

+1
what's the reason that pools added by renter do not dissapear when lease time ends?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 07, 2014, 01:31:57 PM
Make sure your pool is correctly configured with http:// or stratum+tcp:// at start and port at the end. The reason this is happening sometimes is mainly due to these issues.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: crazyates on March 07, 2014, 02:47:41 PM
Hey there! Had a problem with the LRP, and was hoping you could help.

We brought all of our rigs down yesterday for some maintenance. The only thing that changed was some PSU upgrades, and we added some GPUs to some rigs that weren't fully populated; no software changes were made. Brought them back up, and had terrible times getting BAMT to work with the LRP.

We'd had to restart the LRP several times to get all of our miners added in. Funny thing is, we actually condensed our rigs, from 10 systems to 8. Increased our hashrate from ~22 to ~27mh/s, but did it with fewer rigs.

We let it run for a few hours, and it seemed pretty stable. Someone tried to rent ProxIT02 in the middle of the night, and as soon as they did, it went down. No shares, no nothing. All of our rigs went idle.

We have a BAMT script that runs every hour that checks for idle GPUs, and reboots BAMT if needed. This script ran about 45 min after the proxy got rented (and crashed), and when they rebooted, the LRP picked them up and started working again. Well, it picked up 6 out of our 8 rigs, but the 2 that crashed share a PSU, and that's another separate issue.

So my question is why the LRP would drop our rigs, and then pick them back up after they rebooted?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: BuildTheFuture on March 07, 2014, 02:58:52 PM
Would it be possible to add something to the bottom of each rig's admin page showing a running total of its earnings/sales, and maybe the 5 or 10 most recent leases? Would help us a lot with the accounting!  ;D

edit: another good feature might be to see a graph of last 7 days hashrate so we can easily spot outages.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 07, 2014, 04:07:22 PM
Would it be possible to add something to the bottom of each rig's admin page showing a running total of its earnings/sales, and maybe the 5 or 10 most recent leases? Would help us a lot with the accounting!  ;D

edit: another good feature might be to see a graph of last 7 days hashrate so we can easily spot outages.

Stats are only recorded for past 3 days. The first thing you are talking about is on todo list.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 07, 2014, 04:08:11 PM
Hey there! Had a problem with the LRP, and was hoping you could help.

We brought all of our rigs down yesterday for some maintenance. The only thing that changed was some PSU upgrades, and we added some GPUs to some rigs that weren't fully populated; no software changes were made. Brought them back up, and had terrible times getting BAMT to work with the LRP.

We'd had to restart the LRP several times to get all of our miners added in. Funny thing is, we actually condensed our rigs, from 10 systems to 8. Increased our hashrate from ~22 to ~27mh/s, but did it with fewer rigs.

We let it run for a few hours, and it seemed pretty stable. Someone tried to rent ProxIT02 in the middle of the night, and as soon as they did, it went down. No shares, no nothing. All of our rigs went idle.

We have a BAMT script that runs every hour that checks for idle GPUs, and reboots BAMT if needed. This script ran about 45 min after the proxy got rented (and crashed), and when they rebooted, the LRP picked them up and started working again. Well, it picked up 6 out of our 8 rigs, but the 2 that crashed share a PSU, and that's another separate issue.

So my question is why the LRP would drop our rigs, and then pick them back up after they rebooted?

Since you are running it on BAMT, I will need some error logs to determine what was going on. I believe BAMT is stripped down version of linux and there may be some components missing that are needed for proper proxy operation.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: BuildTheFuture on March 07, 2014, 04:44:07 PM
Stats are only recorded for past 3 days. The first thing you are talking about is on todo list.

Ok, cool - is there somewhere in the admin side I can see the last 3 days of rig stats/graph?

Also, question on the pools.conf file. I noticed once my rig got leased that the proxy overwrote my starting pools.conf. Once the lease ends in a couple hours, will it get overwritten again with my default pools?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 07, 2014, 04:50:08 PM
Stats are only recorded for past 3 days. The first thing you are talking about is on todo list.

Ok, cool - is there somewhere in the admin side I can see the last 3 days of rig stats/graph?

Also, question on the pools.conf file. I noticed once my rig got leased that the proxy overwrote my starting pools.conf. Once the lease ends in a couple hours, will it get overwritten again with my default pools?

In admin panel click on rig you are interested into, then you have another submenu on right side - click on stats. When viewing stats you can select 72h stat graph and see for past 3 days.

Pools.conf will get overwritten with your default pools when lease is over.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: BuildTheFuture on March 07, 2014, 05:19:08 PM
Nice, thanks for pointing that out.

So if/when we suffer an internet or power outage and a lease gets interrupted, how is the customer service handled. Does the lease time get auto-extended to cover the outage?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: ebliever on March 07, 2014, 06:01:03 PM
Pardon my ignorance, but how do I find my "trust thread"? I've been poking around and doing searches but cannot figure it out. ???

UPDATE: Oh for crying out loud, I just saw the link at the lower left side....  ;D


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 07, 2014, 06:21:31 PM
Nice, thanks for pointing that out.

So if/when we suffer an internet or power outage and a lease gets interrupted, how is the customer service handled. Does the lease time get auto-extended to cover the outage?

No, because LeaseRig cannot record reliably whether outage really happened (can be other reasons such as temporary lost connection with LeaseRig).

Pardon my ignorance, but how do I find my "trust thread"? I've been poking around and doing searches but cannot figure it out. ???

UPDATE: Oh for crying out loud, I just saw the link at the lower left side....  ;D

Create one. Check my signature for example.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: BuildTheFuture on March 07, 2014, 06:46:50 PM
On my rigs not currently leased, I'm seeing more use of the backup pool than usual. Does the proxy load balance between the pools or try to always use the 1st pool if it's up?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 07, 2014, 07:13:54 PM
On my rigs not currently leased, I'm seeing more use of the backup pool than usual. Does the proxy load balance between the pools or try to always use the 1st pool if it's up?

Always use first pool - as soon as it is able to connect to first one, it will terminate connection with the other one and make miner connect to first one.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: BuildTheFuture on March 07, 2014, 07:22:10 PM
Yeah I found the problem, some ports were mapped wrong on my router.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: BuildTheFuture on March 07, 2014, 09:11:32 PM
Pools.conf will get overwritten with your default pools when lease is over.

Is there a bit of a time delay for this to occur? I had a lease expire several minutes ago, but it is still mining the customer's pool and pools.conf isn't updated so far on my proxy server.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 07, 2014, 10:13:30 PM
Pools.conf will get overwritten with your default pools when lease is over.

Is there a bit of a time delay for this to occur? I had a lease expire several minutes ago, but it is still mining the customer's pool and pools.conf isn't updated so far on my proxy server.

Quote
[2014-03-07T22:29:19.403+0100] [glassfish 4.0] [INFO] [] [engine.main] [tid: _ThreadID=210 _ThreadName=Thread-45] [timeMillis: 1394227759403] [levelValue: 800] [[
  Lease on mining rig A1Ant03 (SHA256 200.00 GH/s) terminated!]]

[2014-03-07T22:29:25.901+0100] [glassfish 4.0] [WARNING] [] [engine.psthread] [tid: _ThreadID=915 _ThreadName=Thread-145] [timeMillis: 1394227765901] [levelValue: 900] [[
  Failed to find pools on miner: A1Ant03 (SHA256 200.00 GH/s)]]

Looks like your default pool was not correct? Could you drop me a PM with image how you have it configured in admin panel?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: BuildTheFuture on March 07, 2014, 10:26:23 PM
PM sent


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: ebliever on March 08, 2014, 03:18:48 PM
Errhh, OK, so I'm new and trying to get things set up. I got the BAT file running and somehow got CGWATCHER running with my backup pools in action. I can see the stats updating on my backup pool  (Wafflepool) so that part seems OK.

But I haven't figured out how to run a test yet - whatever port I try just gets a failure to connect. In the meantime, I see my miner (Strongminer in Scrypt) listed on the page of rigs available for lease! Is it a safe bet that I have things set up correctly if it is listed and running my personal pools, even if I can't test it? Or should I shut it down until I'm more confident things will work if it gets rented?

Thanks!

UPDATE:
Two people have done 1-hour rentals since I posted this (I would have shut down after the first, but was out wrestling a goat...). The first one had a lot of trouble of some sort judging from what I could see, although at least part of the time it seemed to be running OK for him. I'm offering a refund though. The 2nd one seems to be working OK. So I asked the first if the problem might have been with their configuration or if they were confident they knew what they were doing.

One other oddity: at some point during the first rental the system rebooted and the Windows font size shrank to the smallest setting. I have no idea why that would happen, as it's not happened before and is something I've never messed with either related to mining or otherwise.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 08, 2014, 06:37:33 PM
Errhh, OK, so I'm new and trying to get things set up. I got the BAT file running and somehow got CGWATCHER running with my backup pools in action. I can see the stats updating on my backup pool  (Wafflepool) so that part seems OK.

But I haven't figured out how to run a test yet - whatever port I try just gets a failure to connect. In the meantime, I see my miner (Strongminer in Scrypt) listed on the page of rigs available for lease! Is it a safe bet that I have things set up correctly if it is listed and running my personal pools, even if I can't test it? Or should I shut it down until I'm more confident things will work if it gets rented?

Thanks!

UPDATE:
Two people have done 1-hour rentals since I posted this (I would have shut down after the first, but was out wrestling a goat...). The first one had a lot of trouble of some sort judging from what I could see, although at least part of the time it seemed to be running OK for him. I'm offering a refund though. The 2nd one seems to be working OK. So I asked the first if the problem might have been with their configuration or if they were confident they knew what they were doing.

One other oddity: at some point during the first rental the system rebooted and the Windows font size shrank to the smallest setting. I have no idea why that would happen, as it's not happened before and is something I've never messed with either related to mining or otherwise.

If you use method B, it is strongly suggested to run the test - so you know whether your config will save pools in case of rig failures so you do not loose customers pools.

Method A (LRP) does not need any test performed. It will work out of the box.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: ebliever on March 08, 2014, 06:44:55 PM
I wound up using the LRP option as I couldn't figure out the other option quickly. I gave a refund to the first renter. Just hope things are stable from here out. Thanks a lot for your excellent feedback and help.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 08, 2014, 07:57:36 PM
New LeaseRigProxy version released:

Quote
v0.5b
- connection keep-alive with LeaseRig (eliminate connection timeout
  with some routers/firwalls/OSs)
- share calculation time is now 10 minutes (previous 5 minutes)
- increased buffer for saved shares (to eliminate low speed error
  with large rigs when doing low diff shares)

Thanks to several providers helping me catch the issues so I could fix them. Basically, this update is recommended to be installed by anyone, unless you really have no issues with LRP. But if you do notice one of following, then you should install it:
- if your connection with LeaseRig is constantly timing out
- if you have large rig (7+ mhs) this version correctly displays hashing speed calculated out of shares when you are mining on pool with low diff shares


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: ebliever on March 09, 2014, 04:53:28 AM
Suggestion: Could the Status column of rigs have an indicator for each rig as to whether the hashrate is direct from CGminer or based on shares accepted (and thus fluctuating)? (Such as a D or A in each column?) That might reassure renters if they see numbers a bit off from the rating of each rig. (There should also be an explanation of the difference somewhere for new readers.)

Better yet, would be to make the field a link to the stats page of each rig (like we can see from the admin panel), so they can verify the rig's performance more accurately. [UPDATE: Never mind, I see that this very graph appears when you click "Hire"!]

I am a little concerned because Leaserig seems to be reporting a hashrate a little lower than (1) what I see in CGminer and CGWatcher and (2) lower than what Wafflepool is reporting. (I assume my hashrate is being measured by Accepts rate.) I'm getting 3.74 Mhash (vs. the 3.7 rating I gave it on Leaserig) for Strongminer in CGWatcher, and Wafflepool (my backup pool) has been reporting somewhat higher Mhash than I see at any given time on the Leaserig page. My accepts/minute is as good as ever on Wafflepool and things are running well. So any idea what might be happening or what I could do about it?

(BTW, I am on a tight bandwidth cap for internet, so I have to avoid anything that might boost traffic on my rig; since I assume a direct hashrate measurement from CGMiner would involve frequent extra data transfer I'd like to avoid it if possible.)


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: WireIT on March 09, 2014, 01:00:56 PM
Pools.conf will get overwritten with your default pools when lease is over.

Is there a bit of a time delay for this to occur? I had a lease expire several minutes ago, but it is still mining the customer's pool and pools.conf isn't updated so far on my proxy server.

Same here. I had a lease run out at 1:14am and it was not able to change back to my pool info. The last person that rented from me ended up with 7.5 free hours until I noticed and manually deleted his pools. He had about 8 pools configured and I could delete all but one. I could also see it swapping to his backup pools as I was deleting from the top of the list, but the last pool would not delete.

I had to edit the pools.conf in order to get my pool back up.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 09, 2014, 01:54:17 PM
Pools.conf will get overwritten with your default pools when lease is over.

Is there a bit of a time delay for this to occur? I had a lease expire several minutes ago, but it is still mining the customer's pool and pools.conf isn't updated so far on my proxy server.

Same here. I had a lease run out at 1:14am and it was not able to change back to my pool info. The last person that rented from me ended up with 7.5 free hours until I noticed and manually deleted his pools. He had about 8 pools configured and I could delete all but one. I could also see it swapping to his backup pools as I was deleting from the top of the list, but the last pool would not delete.

I had to edit the pools.conf in order to get my pool back up.

After checking out BuildTheFuture default pools - te issue was he had pools with final slash at the end - this is incorrect URL for stratum. Make sure your URL is correct.

Last pool cannot be deleted - same as with cgminer - you cant delete last pool out.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: pajak666 on March 09, 2014, 02:23:51 PM
If I want my LRP to be able to calculate speed from connected rigs I have to add:
Code:
--api-listen --api-allow W:192.168.1.110 --api-port 7777
??
192.168.1.110 is my cgminer pointed to the LRP
But it does not work, anyone could elaborate how to menage LRP to read speed from cgminer?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 09, 2014, 02:42:19 PM
Allow-ip has to be IP of your proxy.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: the.rx78 on March 09, 2014, 08:19:02 PM
-edit- nevermind


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: BuildTheFuture on March 10, 2014, 03:29:42 AM
Could you add an feature to the emails whenever a customer pays with DOGE, also include the equivalent current BTC amount. Or would an auto-trade to BTC be possible?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 10, 2014, 03:35:10 AM
You get mail with amount paid saying either BTC or DOGE.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: gsupp on March 10, 2014, 01:58:42 PM
You get mail with amount paid saying either BTC or DOGE.

Awesome work on adding Doge payments! Any plans to add Litecoin?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: BuildTheFuture on March 10, 2014, 02:05:59 PM
You get mail with amount paid saying either BTC or DOGE.

Right, I saw, but I would like to also always see the BTC equivalent when getting DOGE amount.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 10, 2014, 02:41:32 PM
You get mail with amount paid saying either BTC or DOGE.

Right, I saw, but I would like to also always see the BTC equivalent when getting DOGE amount.

Will be included in next update.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Flep182 on March 10, 2014, 06:55:24 PM
I've tried to run the Leaserigproxy from my raspberry but that doesn't seem to work due to the difference in architecture. Would it be possible to get a raspbian compiled version too?  ::)

For some reason my provider has my router configured in a way where the wireless and wired networks can't reach eachother so running the proxy on my (wifi connected) laptop would be impossible ;)


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Brassguy on March 11, 2014, 03:19:27 AM
well some strange things seem to be going on with the proxy and eligius.... or the proxy... I can connect my ants directly to eligius just fine. Just can't get the proxy to connect. This just happened at 11pm EST


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: BuildTheFuture on March 11, 2014, 03:23:52 AM
I agree, been seeing strange behavior between my ants and eligius, lots of "flapping" back and forth between eligius and my backup pool. This only happens when they are running through the proxy. Been seeing it since yesterday or maybe longer. It's nothing on my end or at my proxy server - I have one customer on an ant currently and his pool has been solid.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Brassguy on March 11, 2014, 03:32:14 AM
I actually disabled my backups on my ants to test... and just tried to use the proxy. They went straight to beeping even after forced reconnects and reboots.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: BuildTheFuture on March 11, 2014, 03:34:19 AM
I killed and restarted one of the proxies so I could watch what is happening. It just seems to mainly be connecting to eligius, hanging for a while, then disconnecting. For some reason also now my backup pool isn't connecting either.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: BuildTheFuture on March 11, 2014, 03:45:05 AM
Something is up with eligius I think, I tried connecting an ant directly to it and it won't connect. But I am going to have to pull all my ants off LR.NET for now because the proxy software is not properly switching to my backup pool on all my ants.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Brassguy on March 11, 2014, 04:49:33 AM
I pulled mine as well. I'll check back in 7 hours or so... time to sleep :)


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: railzand on March 11, 2014, 08:28:15 AM
I had very little success working on btcguild. bitminter was fine, but the leaserig stats inaccurate.

I learned that BTC Guild has no problems with the same worker from multiple connections.

I wonder if lr's proxies are not properly implementing stratum, specifically client.reconnect, which is required for BTC Guild to get past the botnet/DDoS validation server?

Also, the price tanked!


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Tigggger on March 11, 2014, 08:35:14 AM
It's not just Ants that are having a problem with Eligius, my KNC equipment is doing the exact same thing.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 11, 2014, 11:25:16 AM
PM me pool details (URL, username, password) and I will take a look into it and fix what can be fixed from my side.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Tigggger on March 11, 2014, 12:37:45 PM
PM me pool details (URL, username, password) and I will take a look into it and fix what can be fixed from my side.

It just runs off a bitcoin address so you can use your own

Pool: stratum+tcp://stratum.mining.eligius.st:3334
User: 1KhKRmqbuYh7gmt8DZMWQpPtGWSZ9eWuYk
Pass: x

PS When I manually add eligius to my miners it works ok, just seems to be through the proxy there is an issue.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Brassguy on March 11, 2014, 07:41:08 PM
PM me pool details (URL, username, password) and I will take a look into it and fix what can be fixed from my side.

It just runs off a bitcoin address so you can use your own

Pool: stratum+tcp://stratum.mining.eligius.st:3334
User: 1KhKRmqbuYh7gmt8DZMWQpPtGWSZ9eWuYk
Pass: x

PS When I manually add eligius to my miners it works ok, just seems to be through the proxy there is an issue.


Exact same thing with my rigs.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Brassguy on March 12, 2014, 05:54:20 AM
Anyone else have a buyer who is connected to btc.mupool.com? I'm using the proxy with the 's' setting... and leaserig.net is reporting very low hashrates. For example my rigs are running at 393gh and 394gh... and leaserig is reporting 256gh and 245gh ??? Ideas?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 12, 2014, 12:29:57 PM
PM me pool details (URL, username, password) and I will take a look into it and fix what can be fixed from my side.

It just runs off a bitcoin address so you can use your own

Pool: stratum+tcp://stratum.mining.eligius.st:3334
User: 1KhKRmqbuYh7gmt8DZMWQpPtGWSZ9eWuYk
Pass: x

PS When I manually add eligius to my miners it works ok, just seems to be through the proxy there is an issue.


Exact same thing with my rigs.

I am unable to test eligius problem. Looks like they immediately ban me if I do 1 wrong connection, because all my subsequent attempts cannot be authorized.

For now, I suggest you to use different pools for mining BTC. I believe there are tons of them, so I have no idea why you are so eager to stick with this one exactly :p


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 12, 2014, 12:32:23 PM
Anyone else have a buyer who is connected to btc.mupool.com? I'm using the proxy with the 's' setting... and leaserig.net is reporting very low hashrates. For example my rigs are running at 393gh and 394gh... and leaserig is reporting 256gh and 245gh ??? Ideas?

I would say bad luck. Except if the pool is unstable and your rigs are constantly reconnecting to it.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 12, 2014, 12:37:00 PM
New LeaseRigProxy:

Quote
v0.5c
- improved compatibility with some stratum pools
- sending "ping" data to keep connection alive


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: vvhiteknight on March 12, 2014, 01:12:45 PM
Does anyone know how to setup antminers using the advanced method...I am stuck trying to do this api stuff.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Tigggger on March 12, 2014, 01:30:12 PM
Does anyone know how to setup antminers using the advanced method...I am stuck trying to do this api stuff.

I only use the proxy with mine, but best guess is you'll need to edit

/etc/init.d/cgminer

there is a line that starts
PARAMS="AOPTIONS....

in there you will need to insert the commands you want to add.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Brassguy on March 12, 2014, 01:52:58 PM
Anyone else have a buyer who is connected to btc.mupool.com? I'm using the proxy with the 's' setting... and leaserig.net is reporting very low hashrates. For example my rigs are running at 393gh and 394gh... and leaserig is reporting 256gh and 245gh ??? Ideas?

I would say bad luck. Except if the pool is unstable and your rigs are constantly reconnecting to it.

What was weird was I never saw a rig disconnect or pool disconnect.... just accepted shares flying by on the proxy...


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Tigggger on March 12, 2014, 02:00:27 PM
New LeaseRigProxy:

Quote
v0.5c
- improved compatibility with some stratum pools
- sending "ping" data to keep connection alive

Just upgraded to this version and although it appeared to be working ok hashing, submitting shares and getting the speeds from the api, the leaserigs site was reporting it as OFF

Gone back to v0.5a and it's working again.

This is on a KNC Jupiter in case it's important.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 12, 2014, 02:38:08 PM
New LeaseRigProxy:

Quote
v0.5c
- improved compatibility with some stratum pools
- sending "ping" data to keep connection alive

Just upgraded to this version and although it appeared to be working ok hashing, submitting shares and getting the speeds from the api, the leaserigs site was reporting it as OFF

Gone back to v0.5a and it's working again.

This is on a KNC Jupiter in case it's important.

Will take a look into it. BTW, how long did you wait before switching back?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 12, 2014, 02:38:56 PM
Anyone else have a buyer who is connected to btc.mupool.com? I'm using the proxy with the 's' setting... and leaserig.net is reporting very low hashrates. For example my rigs are running at 393gh and 394gh... and leaserig is reporting 256gh and 245gh ??? Ideas?

I would say bad luck. Except if the pool is unstable and your rigs are constantly reconnecting to it.

What was weird was I never saw a rig disconnect or pool disconnect.... just accepted shares flying by on the proxy...

Bad luck then.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: BuildTheFuture on March 12, 2014, 02:58:26 PM
New LeaseRigProxy:

Quote
v0.5c
- improved compatibility with some stratum pools
- sending "ping" data to keep connection alive

Just upgraded to this version and although it appeared to be working ok hashing, submitting shares and getting the speeds from the api, the leaserigs site was reporting it as OFF

Gone back to v0.5a and it's working again.

This is on a KNC Jupiter in case it's important.

Will take a look into it. BTW, how long did you wait before switching back?

I am trying the c version now and also have the same problem. My ants on the site are constantly switching from OFF to full speed. Proxy log on my end shows no problems.. speed logging from API seems to be working.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: BuildTheFuture on March 12, 2014, 03:31:06 PM
I need a copy of the b proxy if c can't be fixed. I didn't keep a copy of it.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: mikk2k2 on March 12, 2014, 03:48:36 PM
Having a bit of an nightmare setting this up. I have my GPU rig mining away though the speed isn't measure (Method A) So then I set up:

Quote
--api-listen --api-allow W:89.212.242.33 --api-port 7777

and added 7777 to the proxy run.bat.

I've turned win firewall off to eliminate that.

I keep getting the error:

Quote
WARNING: cgminer API (127.0.0.1:7777) Closing connection - is IP allowed?

HELP?!

Disconnects from the proxy too even without the API commands... Could be similar issue to above this post?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Monty-Python on March 12, 2014, 05:18:05 PM
Having a bit of an nightmare setting this up. I have my GPU rig mining away though the speed isn't measure (Method A) So then I set up:

Quote
--api-listen --api-allow W:89.212.242.33 --api-port 7777

and added 7777 to the proxy run.bat.

I've turned win firewall off to eliminate that.

I keep getting the error:

Quote
WARNING: cgminer API (127.0.0.1:7777) Closing connection - is IP allowed?

HELP?!

Disconnects from the proxy too even without the API commands... Could be similar issue to above this post?

Use localhost: 127.0.0.1 as IP address - should work, assuming that LRP and cgminer run on the same machine.

Code:
--api-listen --api-allow W:127.0.0.1 --api-port 7777

The other IP mentioned in the guide is for the second connection type.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 12, 2014, 05:19:53 PM
Having a bit of an nightmare setting this up. I have my GPU rig mining away though the speed isn't measure (Method A) So then I set up:

Quote
--api-listen --api-allow W:89.212.242.33 --api-port 7777

and added 7777 to the proxy run.bat.

I've turned win firewall off to eliminate that.

I keep getting the error:

Quote
WARNING: cgminer API (127.0.0.1:7777) Closing connection - is IP allowed?

HELP?!

Disconnects from the proxy too even without the API commands... Could be similar issue to above this post?

Use localhost: 127.0.0.1 as IP address - should work.

Yes.

New LRP is being tested as we speak. Prepare to upgrade it again.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: mikk2k2 on March 12, 2014, 05:28:32 PM
Worked a treat - thanks guys. No more disconnects either! Edit, drops every 20/30 secs


M


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 12, 2014, 05:30:02 PM
Worked a treat - thanks guys. No more disconnects either! Edit, drops every 20/30 secs


M

Just testing new version... Wait 5min.

EDIT: Ok, looks like it is OK now, upgrade please.

Quote
v0.05d
- fixed ping issue from v0.05c


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: mikk2k2 on March 12, 2014, 05:53:29 PM
Worked a treat - thanks guys. No more disconnects either! Edit, drops every 20/30 secs


M

Just testing new version... Wait 5min.

EDIT: Ok, looks like it is OK now, upgrade please.

Quote
v0.05d
- fixed ping issue from v0.05c

Working flawlessly! Fantastic job!


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 12, 2014, 06:34:57 PM
Looks like there are no issues with eligius pool anymore. Just make sure you use latest 0.05d version of LRP.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Monty-Python on March 12, 2014, 06:35:56 PM
We can keep the pool.conf and the run.bat, right? ^^


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: mikk2k2 on March 12, 2014, 06:47:25 PM
We can keep the pool.conf and the run.bat, right? ^^

Yep worked for me!


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: WireIT on March 12, 2014, 07:18:07 PM
Does anyone know how to setup antminers using the advanced method...I am stuck trying to do this api stuff.

I have not tried it as the LRP is working out for me, but check out the following link. It tells you were to make the API config changes.

https://bitcointalk.org/index.php?topic=499837.0


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: mikk2k2 on March 12, 2014, 07:53:37 PM
Would it be possible to use p2p pools; im thinking not with the proxy?



Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 12, 2014, 07:56:15 PM
Would it be possible to use p2p pools; im thinking not with the proxy?



If the p2p pool is stratum, then yes.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: mikk2k2 on March 12, 2014, 09:08:56 PM
I just had two disconnects for some reason, any idea what might have caused them?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 12, 2014, 09:28:18 PM
I just had two disconnects for some reason, any idea what might have caused them?

Disconnects to what? Pool or LeaseRig?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: mikk2k2 on March 12, 2014, 09:45:54 PM
Proxy window said it disconnected from LeaseRig, same as it did before the upgrade to d


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 12, 2014, 09:52:56 PM
Proxy window said it disconnected from LeaseRig, same as it did before the upgrade to d

2 times only?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: mikk2k2 on March 12, 2014, 10:32:58 PM
Proxy window said it disconnected from LeaseRig, same as it did before the upgrade to d

2 times only?

Only saw two on the proxy window and the graph said the same - though one for a longer period than the other.

Might be my rig, updating a wallet and its taking ages!


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 12, 2014, 10:45:44 PM
Proxy window said it disconnected from LeaseRig, same as it did before the upgrade to d

2 times only?

Only saw two on the proxy window and the graph said the same - though one for a longer period than the other.

Might be my rig, updating a wallet and its taking ages!

That is not a problem then. Connections can often be interrupted. Internet is not 100% reliable :)


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: ebliever on March 13, 2014, 12:08:33 AM
I just tried proxy 0.5d with a 1 hour lease. I saw a couple disconnects (more than 2), worse than my prior 2 leases. Then the system hung or something while I wasn't paying attention at the end of the period. And now it is stuck on the customers' pool. I tried disabling and re-enabling the miner, switching pools on my end and then switching back, but it is still picking up the last lease pool each time I run on my Leaserig configuration.


UPDATE: At least part of my trouble was the same person took out a new lease without my initially realizing it. So I had to reconfigure for them, gave them an extra 15 minutes to make up for my fooling around under the hood....

UPDATE 2: OK... I tried replacing the pool.conf file that had my pool info with the pool.conf file (that I had backed up) that had the renters pool. But after running a few moments with the renters pool it defaults back to mine. How can I restore the renters' pool? I'm guessing there is something on the Leaserig server side that is rejecting my attempt to correct things. Extending the lease won't help if I can't get the rig to point at their pool.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Brassguy on March 13, 2014, 01:42:24 AM
I get a similar disconnect from pools... really it looks like "hiccups", meaning, it disconnects but immediately reconnects to the pool and 99% of the time doesn't change difficulty. However it seems to result in a lower 'appearing' hashrate at leaserig.net when using the 's' setting to measure speed.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Brassguy on March 13, 2014, 03:08:41 AM
This is what I can't understand...

https://i.imgur.com/4giDCRn.png

https://i.imgur.com/AniSZ8k.png

The customer has done some pool hopping and misconfiguration... dead pools, etc... but the disparity in the numbers is pretty strange... especially after so long a time frame...

edit... and right now this rig (doubleANT1) is showing "OFF" on leaserig.net

edit.. now showing 151gh. Customer is using https://mupool.com/ (never heard of it before)


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 13, 2014, 09:01:22 AM
I just tried proxy 0.5d with a 1 hour lease. I saw a couple disconnects (more than 2), worse than my prior 2 leases. Then the system hung or something while I wasn't paying attention at the end of the period. And now it is stuck on the customers' pool. I tried disabling and re-enabling the miner, switching pools on my end and then switching back, but it is still picking up the last lease pool each time I run on my Leaserig configuration.


UPDATE: At least part of my trouble was the same person took out a new lease without my initially realizing it. So I had to reconfigure for them, gave them an extra 15 minutes to make up for my fooling around under the hood....

UPDATE 2: OK... I tried replacing the pool.conf file that had my pool info with the pool.conf file (that I had backed up) that had the renters pool. But after running a few moments with the renters pool it defaults back to mine. How can I restore the renters' pool? I'm guessing there is something on the Leaserig server side that is rejecting my attempt to correct things. Extending the lease won't help if I can't get the rig to point at their pool.

You have to change pools on LeaseRig.net. If you do it manually in file, these pools will get overwritten. LeaseRig is since few days ago "forcing" pools, because this is what certain providers and most customers wanted.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 13, 2014, 09:03:03 AM
Brassguy: Measuring speed out of shares is all about luck. Sometimes you may even get only half the expected speed.

Your customer did obvious mistake, he wanted to mine on https://mupool.com/ - which is (by address) NOT stratum pool. Only stratum is supported in LRP and that is clearly written in instructions, in icon tooltip, in FAQ etc...


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: WireIT on March 14, 2014, 02:45:41 AM
I upgraded to version d yesterday. I run 2 instances, one for my AntMiners and one for me scrypt miners(ProxIT02). The scrypt miner LRP has locked up cold twice today. Both times while rented by the same person and looks to have the same pools all day.

Any ideas as to what may be the cause?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 14, 2014, 09:01:13 AM
It is STA, with non blocking sockets and select pooling before reads. However, it could be possible to block it for some time, if you send large data in and your upload speed is very small. But issue with this theory is that pool or miner would have to send large amount data, that is not specified by stratum, meaning someone is performing DOS attack on you. If you have packet sniffer, try to record traffic.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: WireIT on March 14, 2014, 01:53:07 PM
I've got a 100Mb/10Mb connection protected by ClearOS firewall and I don't show anything reported in IDS or IPS. My bandwidth activity was also very low last night when it locked up again.

It also seems to happen to just my scrypt LRP and not my SHA LRP, both running on same machine.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 14, 2014, 01:56:50 PM
I've got a 100Mb/10Mb connection protected by ClearOS firewall and I don't show anything reported in IDS or IPS. My bandwidth activity was also very low last night when it locked up again.

It also seems to happen to just my scrypt LRP and not my SHA LRP, both running on same machine.

Could you elaborate what you mean with locking up? I really have not enough information to go on. Also, are you using Windows or Linux version of it?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: WireIT on March 14, 2014, 04:36:12 PM
I'm using Ubuntu 12.04 in a VM. I have LRP in two different directories so that I can run two instances of LRP. One for ProxIT01 and one for ProxIT02. I have a startup script the starts both in their own "screen" session.

When I notice that ProxIT02 is not hashing, I SSH into my LRP VM and re-attach to the "screen" running it's LRP. I find that LRP is no longer doing anything. No errors, nothing. I get a screen of whatever it was doing before freezing. Usually it's showing the last several accepted shares that processed when it locked up.

I'll ctrl+c to abort and restart the LRP and it starts back up as normal.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 14, 2014, 04:44:18 PM
Is your rig meanwhile displayed as online on LeaseRig?

And what does your miners say? Do they "loose" connection with proxy and are unable to connect to it?

Do you check CPU usage when this happens? Is it 100%?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: WireIT on March 14, 2014, 05:59:28 PM
CPU is idle.

It seems to happen when the rigs are brought back online. The LRP will freeze. We just took some AntMiners offline and when reconnected, they only hashed for a little bit and then the lrp froze.

I bet what is happening with ProxIT02 is the same thing. We have a script that runs every hour to check temps and reboots the rig if the temps are too low(dead GPU protection). So if the rig reboots, I bet it's locking up the lrp on reconnect.

I can repeatedly make the lrp freeze by powering down some of the connected rigs and powering them back up. Not every time, but enough that it definitely locks when rigs reconnect.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 14, 2014, 06:09:43 PM
Is your rig meanwhile displayed as online on LeaseRig?

And what does your miners say? Do they "loose" connection with proxy and are unable to connect to it?

Still waiting for you to answer me these 2 questions, which are way more important than what you just told me.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: WireIT on March 14, 2014, 06:47:39 PM
The rig shows offline on LeaseRig.

Miners connect but remain idle with no work to be done. If I reboot a rig when lrp is frozen, it will connect to lrp but wait 15 seconds for work to become available and keep looping until I restart lrp.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 14, 2014, 07:49:30 PM
Can you try Windows version?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: WireIT on March 14, 2014, 09:20:56 PM
Might not be till next week, but I'll try Windows. (it hurts to say that you know...)


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 14, 2014, 10:39:06 PM
You are the only one reporting this issue.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: miaviator on March 14, 2014, 11:06:30 PM
Dick


build it for the Pi or give me some source to compile.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: miaviator on March 14, 2014, 11:11:56 PM
Dick


build it for the Pi or give me some source to compile.

 sudo apt-get install libc6-dev-i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libc6-dev-i386


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: miaviator on March 14, 2014, 11:26:20 PM
What if I have a Pi?  Then No? No Leaserig proxy?  Sad Sad  :'(

I'll sign a nondisclosure and compile the pos for amd64 and armv61

or just send you directions.   Mostly type make :)

Official thread: https://bitcointalk.org/index.php?topic=414009
WARNING: NEWBIE PROVIDERS WITH NO REPUTATION ON THIS FORUM WILL HAVE TO MAKE SECURITY DEPOSIT TO GET LISTED ON LEASERIG.NET. SECURITY DEPOSITS PREVENT SCAMMERS TO JOIN THIS SERVICE AND IS RETURNED AFTER 1 WEEK OF OPERATING ON LEASERIG.NET.

A. Simple method
(only stratum protocol is supported! stratum+tcp://...)

1. STEP: Contact me (djeZo) - send me PM

If you are newbie with no reputation on this forum, send me a personal message (https://bitcointalk.org/index.php?action=pm;sa=send;u=186611) with request to get listed, but tell me total speed of the rigs you would like to put on.

I will return to you with deposit amount in BTC (generally, it is around 0.05 for rig of around 3-4 MH/s). After deposit is made, send me PM and include:
- mining rig names (choose on your own - alphanumeric characters)
- your trust/reputation thread (this is mandatory so customers can post feedback there) in here: https://bitcointalk.org/index.php?board=129.0

I will reply to you with access to admin panel on LeaseRig.net.

2. STEP: Setup LeaseRig Proxy

Download LeaseRig Proxy Software (Windows&Linux) (http://leaserig.net/leaserigproxy.zip) (current latest version is v0.05d). Detailed instructions are in README.txt file. But to sum it up with an example if you have one rig to offer.

1. Extract all files.
2. Open pools.conf and configure your starting pools.
3. Edit run.bat file - change PUT-YOUR-ID-HERE with ID you get on admin panel.
4. Double click run.bat to run it.

3. STEP: Configure your mining rig to use proxy pool

cgminer -o stratum+tcp://127.0.0.1:3333 -u whatever -p whatever

THAT IS ALL. However, there are some more advanced options which you would like to check out (such as realtime speed stats). Just read README.txt file. You can connect as many as you like rigs to this proxy and total hash power will be combined.

Note#1: If you use antminer, it is recommended to flash your firmware to achieve better stability.

Note#2: if you previously used method B and switched over to method A, make sure your method B is disabled (either remove your mining rig URL from admin panel or make your cgminer API inaccessible for LeaseRig.net).

B. Advanced method

1. STEP: Make your miner accessible via static IP or static domain name. If your mining rig already has static IP, then you can skip this step.

Solution A (Windows only)
If your mining rig has dynamic IP, then you will have to use domain name. You can sort this on your own or you can use dyn dns service like this one: https://www.noip.com/sign-up
After you register and choose domain, login and download client (http://www.noip.com/download?page=win) which you have to run to keep your domain name updated with your IP address. Launch it and after it loads click "Edit Hosts" button. Then check your domain name and click "Save" button. That is it, just leave this program running - it will update your domain name to your IP every 5 minutes.

Solution B (Windows&Linux)
Install Python 2.7. Download this (http://leaserig.net/LeaseRigUpdateIP.py) simple small python script (right click and save as). When you run it, you will need to provide parameters:
name - your nick name on this forum (if it contains spaces, encapsulate it with "")
password - your admin login password (you will receive that from me when you request to become provider)
rigid - is visible in admin panel for each rig (you get access when you request to become provider)
API-port - you choose this one next step

Then you simply run this script and you do not have to worry about IP changes - the script will auto update your IP on LeaseRig.net when your IP changes. You will have to run instance of this script for every rig you offer.

2. STEP: Configure cgminer, bfgminer,...(since many miners share same API, just follow this regardless of which miner you use)

You have to enable API listening on your cgminer. Following config options have to be added in cgminer config/command line:

Code:
--api-listen --api-allow W:89.212.242.33 --api-port 7777

You can choose whatever port you want, but you have to keep exactly IP 89.212.242.33. You can modify and create access rules. Following commands are needed to provide full functionality: summary, pools, switchpool, addpool, removepool, restart, save. Read API-README.txt in cgminer directory to get more details about cgminer API and how to configure access rules.

After checking API-README.txt, following should work:
Code:
--api-groups P:switchpool:addpool:removepool:restart:save:* --api-listen --api-allow P:89.212.242.33 --api-port 7777

For pool saving to properly work even after reboots or crashes, you need to specify config file in command line by adding (if using cgminer):

Code:
--config cgminer.conf

or (if using sgminer):

Code:
--config sgminer.conf

And include your startup pools inside that config file (NOT IN COMMAND LINE!).

3. STEP: Make sure miner is visible outside

If your mining rig is behind router (NAT), you need to configure your NAT. Forward API port of cgminer.

Once you configure NAT, you can verify cgminer API port here: http://www.checkmyports.net/
It must say OPENED, if not, then it is still closed and you did something wrong.

4. STEP: Verification

Verify your work (if all is properly configured) by visiting following URL from rig PC (must be same PC!):
http://leaserig.net/rigtest.jsp

Enter port of your choice and click Test button. The test should look like this:
Code:
Testing address: XXX.XXX.XXX.XXX:YYYY

Testing command "summary"... PASSED
STATUS=S,When=1391795452,Code=11,Msg=Summary,Description=cgminer 3.7.2|SUMMARY,Elapsed=7,MHS av=0.02,MHS 1s=0.02,Found Blocks=0,Getworks=1,Accepted=0,Rejected=0,Hardware Errors=0,Utility=0.00,Discarded=2,Stale=0,Get Failures=0,Local Work=8,Remote Failures=0,Network Blocks=1,Total MH=0.1252,Work Utility=42.24,Difficulty Accepted=0.00000000,Difficulty Rejected=0.00000000,Difficulty Stale=0.00000000,Best Share=8,Device Hardware%=0.0000,Device Rejected%=0.0000,Pool Rejected%=0.0000,Pool Stale%=0.0000|

Testing command "addpool"... PASSED
STATUS=S,When=1391795452,Code=55,Msg=Added pool 'http://leaserig.net:3333',Description=cgminer 3.7.2|

Testing command "pools"... PASSED
Contains data of added pool.

Testing command "switchpool"... PASSED
STATUS=S,When=1391795452,Code=27,Msg=Switching to pool 1:'http://leaserig.net:3333',Description=cgminer 3.7.2|

Waiting 10 seconds...

Testing command "removepool"...
PASSED STATUS=S,When=1391795462,Code=68,Msg=Removed pool 0:'stratum+tcp://usde.ny1.blockchasers.com:3333',Description=cgminer 3.7.2|

Testing command "save"... PASSED
STATUS=S,When=1391795462,Code=44,Msg=Configuration saved to file 'cgminer.conf',Description=cgminer 3.7.2|

Testing command "restart"... PASSED
RESTART

Waiting 10 seconds...

Testing command "pools"... PASSED
Contains data of added pool.

Checking pool priority... PASSED

Test complete! Everything seems to be OKAY.

5. STEP: Provide data to me (djeZo) - send me a personal message (https://bitcointalk.org/index.php?action=pm;sa=send;u=186611)

NOTE: If you are newbie with no reputation, security deposit (which is hold for 1 week) is needed. It is usually around 0.05 BTC, depending on speed of your rig.

In PM, include for each mining rig:
- mining rig name (choose on your own - alphanumeric characters)
- your trust thread (MANDATORY so customers can post feedback there)


If you have additional questions regarding HOW-TO, please post them here (PM me only data for adding your mining rig). I will update this posts if there are additional questions.


A few items to add to the How To notes:

1) While LeaseRig will try to save your settings so that if a rig reboots the client doesn't lose all their miner information, this does not work with a custom config file. You should only use the default cgminer.conf file.

2) At one point LeaseRig saved some settings for me and apparently GPU-threads was not specified or saved properly; the result was that when cgminer restarted with the updated config file, hash rates were about 10% lower (and could have been much worse on some PCs!) thanks to the incorrect threads setting, so make sure to include -g 1 (or -g 2 if that's what you want) in your cgminer options and not just in the conf file.

3) CGWatcher does work with LeaseRig, and you can configure it to use other ports. On version 3.5.2, look in the Settings->Miner tab for the API port. The default is 4028, but I've successfully used other ports.

4) I've found Windows' Firewall doesn't play well with LeaseRig and had to disable it on at least a couple of my leased rigs; this is not always necessary, but if you're unable to get LeaseRig to see your system after configuring everything else properly, try disabling your firewall for a bit and see if that fixes the issue. If it does, you can either run without the firewall, or try to fix the problem.

Happy mining/leasing everybody!

Can add to 4th point; you need to either allow cgminer in your firewall rules or allow cgminer API port for incoming connections, then there should be no problems with Windows firewall.

FYI, for those using BAMT, the save call in the api will create a new cgminer.conf under /.cgminer/cgminer.conf  .
This is of course useless since BAMT starts cgminer pointed to /etc/bamt/cgminer.conf

A workaround is to schedule a job to check for updates to /.cgminer/cgminer.conf and overwrite /etc/bamt/cgminer.conf . This will restore your customers pools in the event that you need to reboot/power outage/etc. Unfortunately the cgminer.conf created is a bit over-complicated, and duplicates values for each of your GPUs, even if the values are the same for all of them... regardless it does work, and is the best for the customer.

Login to your BAMT box using ssh and perform the following:
sudo crontab -e
Add the following to the bottom of the crontab (This will check for updates every 5 minutes and only overwrite when changes are made)
Code:
*/5 * * * * cp -u /.cgminer/cgminer.conf /etc/bamt/cgminer.conf >/dev/null 2>&1
Exit (and save)


Also, please keep in mind that SMOS linux has a script that will periodically mine for the developers, thus robbing your customers of time. Use BAMT or SMOS bee edition, or manually remove the offending code.

Basically, to use CGWatcher, i simply only use the miner .conf file to hold my pool addresses, nothing else. Every other parameter should be defined in "CGwatcher > Profiles > Miner Arguments" field. That way, these parameters will override anything given in the .conf (except pool addresses), to avoid changes being made that could affect hashrate,which i read has happened to some people here. Make sure you also point the CGwatcher profile to the correct .conf (or you will have no pools!), not sure if this can have a custom name, since the argument isn't present (since CGwatcher throws it in a seperate field).

Here's an example of my initial configuration.

Example .conf:
Code:
{
"pools" : [
{
"url" : "stratum+tcp://panda.united-miners.com:3311",
"user" : "Fattox.DigRig2",
"pass" : "x"
},
{
"url" : "stratum+tcp://panda.nitro.org:3338",
"user" : "Fattox.DigRig2",
"pass" : "x"
}
]
}

Example parameters in CGwatcher:
Code:
--api-groups P:switchpool:addpool:removepool:restart:save:* --api-listen --api-allow W:89.212.242.33 --api-port 7778 --failover-only --expiry 2 --queue 0 --scan-time 1 --gpu-threads 1 --intensity 20 --vectors 1 --worksize 256 --thread-concurrency 24550 --gpu-engine 1000 --gpu-memclock 1500 --gpu-powertune 20


Then after rental, your rig will switch back to the pools you define in the rig profile @ the LeaseRigs admin panel. So after the initial configuration, you probably never need to touch the .conf again... though i would always keep a backup, as you may need to re-copy it if your rig somehow restarts and the lease job never ends, or something, because then your own pools would possibly not be added back (or so i imagine!).


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 16, 2014, 11:55:30 PM
New LRP version

Quote
v0.05e
- support for unofficial client.reconnect method in stratum protocol

I wasn't able to fully test this one, I don't have SHA rigs so I only tried on single GPU worker. Let me know if there are any issues regarding it.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: precrime3 on March 17, 2014, 04:30:16 PM
What flashing must you do to the antminer? Would like to start doing this, and will be running probably exclusively antminers.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 17, 2014, 04:31:14 PM
What flashing must you do to the antminer? Would like to start doing this, and will be running probably exclusively antminers.

To the latest firmware. Tigggger can tell you more about it.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: precrime3 on March 17, 2014, 04:33:39 PM
Do the instructions still apply to antminers as they are configured web interface? just go into there and set the pool info?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 17, 2014, 04:49:32 PM
Do the instructions still apply to antminers as they are configured web interface? just go into there and set the pool info?

Yep, place LRP on one of your computers, then point your antminers to that computers IP, simple as that.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: railzand on March 17, 2014, 05:13:27 PM
New LRP version

Quote
v0.05e
- support for unofficial client.reconnect method in stratum protocol

I wasn't able to fully test this one, I don't have SHA rigs so I only tried on single GPU worker. Let me know if there are any issues regarding it.

That's great news. We'll try it out and let you know. Thanks op, you're a star.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: precrime3 on March 17, 2014, 05:14:59 PM
Do the instructions still apply to antminers as they are configured web interface? just go into there and set the pool info?

Yep, place LRP on one of your computers, then point your antminers to that computers IP, simple as that.

Haha thanks mate, will I be required to place a security deposit? No need to rush, miners won't be acquired till april.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: goodensy on March 17, 2014, 07:27:06 PM
I wound up using the LRP option as I couldn't figure out the other option quickly. I gave a refund to the first renter. Just hope things are stable from here out. Thanks a lot for your excellent feedback and help


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: ebliever on March 17, 2014, 07:52:17 PM
I wound up using the LRP option as I couldn't figure out the other option quickly. I gave a refund to the first renter. Just hope things are stable from here out. Thanks a lot for your excellent feedback and help

Plagiarizing?  ;D

Just kidding, and welcome!


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: mikk2k2 on March 17, 2014, 10:43:30 PM
Quick question regarding back up pools. If I'm mining at pool1, as defined in the 'pools' section and it fails, which pool will take over, the next pool in the 'Pools' section or the 'default pools' in the configuration section?

Also does the type of scrypt that the rig is listed as matter when it comes to pools? IE. will it fail over to a scrypt coin when my primary coin in Dark.

By failover I mean when a pool fails and we automatically swap to the next pool without touching the mining config.

Thanks in advance,

M

PS. Is it possible to change the priority within the 'pools' section


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 17, 2014, 10:51:33 PM
With 'pools' section, are you referring to LeaseRig pool management on frontend?

If yes, then yes, this is basically a copy of data that is sent from cgminer; using LRP is no different - this is copy of data that LRP holds.

Default pools are only used when lease is over; LeaseRig performs switch, add default pool, switch to them and remove the other pools.

Type of rig is just a method to organize your rig - to let customer know what algo you are hashing so there is no confusion. Pools are not related to that.

You can change priority by pushing pools on top with switch button. You can create any kind of priority list that way.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: mikk2k2 on March 17, 2014, 10:57:15 PM
Perfect. Thanks!


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: emoomjean on March 18, 2014, 04:56:58 AM
What if I have a Pi?  Then No? No Leaserig proxy?  Sad Sad  :'(

I'll sign a nondisclosure and compile the pos for amd64 and armv61

or just send you directions.   Mostly type make :)



miaviator,

I'm running 2 RPI's with the LRP and haven't had any issues.  Just run it from a Linux or Windows box on your LAN (I know you have some dedicated machines around) or even run it as a Service if you don't like having the CMD box open/minimized.  I know you're asking for an installer so you can run it entirely on an RPI, but saying that users with RPI's cant use LRP is slightly innacurate.

FYI, I run mine with the API listening ports enabled so I get accurate hashrates and everything is peachy.  You might need to poke some holes in your local firewall to make things work, but once you point your RPIs at the machine running LRP it makes things actually easier to manage pools and such (especially if you're running more than 1 RPI)

Msg me if you want specifics on my configuration settings.

-EMoomjean


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: E on March 18, 2014, 05:49:32 AM
I had been having significant issues with LRP and my machine over the past two days. Luckily it only affected me and not customers.

Anyway, I was using stratum+tcp://stratum.mining.eligius.st:3334 as my default pool in pools.conf, and whenever LRP swtiched back to that after a lease it would start disconnecting from eligius and reconnecting, over and over very rapidly.

In all, this took my production from 3TH to ~1.5 while not leased. I watched LRP carefully during leases and it performed beautifully!

I upgraded to v0.05e, but the same behavior resulted.

Finally, I remembered that my KNC miner had similar problems with eligius, and that eligius has a "KNC Port" at stratum+tcp://stratum.mining.eligius.st:12234

I switched to port 12234 and everything has been great since then (except that I initially forgot to change the port on the leaserig config page and it switched back to 3334 :) )


Also, LRP has been reporting my speed at sometimes up to double what is actually hashing. I'm using the api method, and I see speed reports from all the right IPs that look reasonable and add up to 3TH. On leaserig, however, I see ~5-6TH!


Other than that -- this has been great so far! Thanks for creating it.

E


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Brassguy on March 18, 2014, 01:04:58 PM
E, I've been having the same issues in the last 24 hours with eligius... port 3334 doesn't work or at best works sporadically.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: WireIT on March 18, 2014, 01:36:37 PM
Also, LRP has been reporting my speed at sometimes up to double what is actually hashing. I'm using the api method, and I see speed reports from all the right IPs that look reasonable and add up to 3TH. On leaserig, however, I see ~5-6TH!

I don't remember what I was doing at the time, but I also had LRP report my hash rate as double then what it really was. A simple restart of LRP cleared that up and I have not had that happen since.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 18, 2014, 01:56:28 PM
Also, LRP has been reporting my speed at sometimes up to double what is actually hashing. I'm using the api method, and I see speed reports from all the right IPs that look reasonable and add up to 3TH. On leaserig, however, I see ~5-6TH!

I don't remember what I was doing at the time, but I also had LRP report my hash rate as double then what it really was. A simple restart of LRP cleared that up and I have not had that happen since.


That can happen if your miner establish two connections to LRP when using cgminer API. Not sure why is cgminer doing this, it is also extremely rare.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: E on March 18, 2014, 05:49:07 PM
Also, LRP has been reporting my speed at sometimes up to double what is actually hashing. I'm using the api method, and I see speed reports from all the right IPs that look reasonable and add up to 3TH. On leaserig, however, I see ~5-6TH!

I don't remember what I was doing at the time, but I also had LRP report my hash rate as double then what it really was. A simple restart of LRP cleared that up and I have not had that happen since.


That can happen if your miner establish two connections to LRP when using cgminer API. Not sure why is cgminer doing this, it is also extremely rare.

It happens to me consistently; I've restarted LRP several times.

It is no problem for me though -- we provide the advertised hashrate and that should be what matters :)


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 18, 2014, 05:51:26 PM
Also, LRP has been reporting my speed at sometimes up to double what is actually hashing. I'm using the api method, and I see speed reports from all the right IPs that look reasonable and add up to 3TH. On leaserig, however, I see ~5-6TH!

I don't remember what I was doing at the time, but I also had LRP report my hash rate as double then what it really was. A simple restart of LRP cleared that up and I have not had that happen since.


That can happen if your miner establish two connections to LRP when using cgminer API. Not sure why is cgminer doing this, it is also extremely rare.

It happens to me consistently; I've restarted LRP several times.

It is no problem for me though -- we provide the advertised hashrate and that should be what matters :)

Maybe it is about time I upgrade LRP with an input table so you specify IP:port for each rig you wish to read speed from. That will get rid of the issue and give you the ability to use different API ports.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Monty-Python on March 18, 2014, 06:27:37 PM
Hi,

I need some help with the configuration running BAMT 1.3. Everything is set up and rig is hashing fine. Unfortunately I fail at the rig test:
http://s7.directupload.net/images/140318/8nj75cit.png (http://www.directupload.net)

I already tried to change the cronjob
Quote
Login to your BAMT box using ssh and perform the following:
sudo crontab -e
Add the following to the bottom of the crontab (This will check for updates every 5 minutes and only overwrite when changes are made)
Code:

Code:
*/5 * * * * cp -u /.cgminer/cgminer.conf /etc/bamt/cgminer.conf >/dev/null 2>&1

Exit (and save)
and

Quote
Eerrrk, I pref a on the fly write , linking running config to default save path

for bamt with cgminer
Code:
Code:
sudo [ -f /root/.cgminer/cgminer.conf ] && rm -f /root/.cgminer/cgminer.conf ; ln -s /etc/bamt/cgminer.conf /root/.cgminer/cgminer.conf

for bamt with sgminer
Code:
Code:
sudo [ -f /root/.sgminer/sgminer.conf ] && rm -f /root/.sgminer/sgminer.conf ; ln -s /etc/bamt/cgminer.conf /root/.sgminer/sgminer.conf

this will be better

Any help is appreciated as I am new into linux. I am running sgminer 4.0.0 in BAMT. Thanks in advance. :)


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 18, 2014, 07:56:36 PM
First make sure wemineltc pool is up when you perform the test. Sometimes it is down, and cgminer will not start if pool is not reachable.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Monty-Python on March 18, 2014, 08:02:14 PM
I opened the sgminer windows in terminal (screen -r) and actually watched it switch pools in the first run. It seems that only the test after 60 seconds fails, everything else seems normal...


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 18, 2014, 08:15:23 PM
Well, it fails to start cgminer back up - in most cases, issue is dead pool.

BTW, why you don't simply use LRP?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Monty-Python on March 18, 2014, 08:19:07 PM
I would, if there was a download link for the linux version. ;) The link in the first post seems to be Windows only...


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 18, 2014, 08:20:52 PM
I would, if there was a download link for the linux version. ;) The link in the first post seems to be Windows only...

Not true:

Download LeaseRig Proxy Software (Windows&Linux) (http://leaserig.net/leaserigproxy.zip) (current latest version is v0.05e).

It contains linux binary too (named: leaserigproxy_linux).


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: miaviator on March 18, 2014, 08:34:29 PM
I would, if there was a download link for the linux version. ;) The link in the first post seems to be Windows only...

It's linux 32 bit FYI

2% isn't enough for Djezo to go out and buy a $20 raspberry pi or a $50 POS 64 bit system.

2% clearly isn't enough to let someone compile the POS for 64 bit or for pi.

Effing gates.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 18, 2014, 08:38:43 PM
I would, if there was a download link for the linux version. ;) The link in the first post seems to be Windows only...

It's linux 32 bit FYI

2% isn't enough for Djezo to go out and buy a $20 raspberry pi or a $50 POS 64 bit system.

2% clearly isn't enough to let someone compile the POS for 64 bit or for pi.

Effing gates.

32 bit apps work completely fine on 64bit OS.

I am still waiting for your response regarding rasp... Did the binary I sent you worked or not?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: miaviator on March 18, 2014, 08:43:43 PM
I would, if there was a download link for the linux version. ;) The link in the first post seems to be Windows only...

It's linux 32 bit FYI

2% isn't enough for Djezo to go out and buy a $20 raspberry pi or a $50 POS 64 bit system.

2% clearly isn't enough to let someone compile the POS for 64 bit or for pi.

Effing gates.

32 bit apps work completely fine on 64bit OS.

I am still waiting for your response regarding rasp... Did the binary I sent you worked or not?

I haven't had time yet.  I'll try to write it up tonight. 


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Monty-Python on March 18, 2014, 08:48:29 PM
I would, if there was a download link for the linux version. ;) The link in the first post seems to be Windows only...

Not true:

Download LeaseRig Proxy Software (Windows&Linux) (http://leaserig.net/leaserigproxy.zip) (current latest version is v0.05e).

It contains linux binary too (named: leaserigproxy_linux).

I get the following error in BAMT:
Quote
glibc_2.15' not found (required by ./leaserigproxy_linux

Ok, I admit, I am totally new to Linux and especially BAMT. So I downloaded the zip-file, extracted the content in a separate folder, opened a terminal window and followed the instructions in the readme - navigating to the leaserig folder of course...

Yeah, I do have a Windows machine I could point sgminer to which would mean an additional computer consuming power. Thanks for your patience so far, maybe I really need a step by step instruction guide. -.-


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: miaviator on March 18, 2014, 10:58:14 PM
I would, if there was a download link for the linux version. ;) The link in the first post seems to be Windows only...

Not true:

Download LeaseRig Proxy Software (Windows&Linux) (http://leaserig.net/leaserigproxy.zip) (current latest version is v0.05e).

It contains linux binary too (named: leaserigproxy_linux).

I get the following error in BAMT:
Quote
glibc_2.15' not found (required by ./leaserigproxy_linux

Ok, I admit, I am totally new to Linux and especially BAMT. So I downloaded the zip-file, extracted the content in a separate folder, opened a terminal window and followed the instructions in the readme - navigating to the leaserig folder of course...

Yeah, I do have a Windows machine I could point sgminer to which would mean an additional computer consuming power. Thanks for your patience so far, maybe I really need a step by step instruction guide. -.-

Upgrade your glibc to DjeZo's version and it will work just fine....

It's not you it's the Zo.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 18, 2014, 11:21:28 PM
I was trying to get LRP statically linked with idea of isolating gethostbyname call in a library. So, I created library - this part is fine. But when I try to link it with LRP, I constantly get error '/usr/bin/ld: cannot find -llrp'

Yes, I know all about naming - this part is correct, and library is there. I also used -L. switch and googled for all possible solutions.

I simply give up...

EDIT: Someone with good knowledge will know how to solve this issue. An idea is following; I am sure glibc.so of version 2.15 can be obtained? Then place it somewhere and make sure LRP uses this glibc and not the systems one. How to do it - linux expert will know it!


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: jason20005 on March 19, 2014, 05:17:20 AM
Hi, is it possible to open source the proxy software?
So that people can compile on their own platform: win, linux, pi, x86, x84, mips, etc...


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: jason20005 on March 19, 2014, 05:23:57 AM
I was trying to get LRP statically linked with idea of isolating gethostbyname call in a library. So, I created library - this part is fine. But when I try to link it with LRP, I constantly get error '/usr/bin/ld: cannot find -llrp'

Yes, I know all about naming - this part is correct, and library is there. I also used -L. switch and googled for all possible solutions.

I simply give up...

EDIT: Someone with good knowledge will know how to solve this issue. An idea is following; I am sure glibc.so of version 2.15 can be obtained? Then place it somewhere and make sure LRP uses this glibc and not the systems one. How to do it - linux expert will know it!

I downloaded glibc.so of version 2.15, but it does not solve the library problem.
leaserigproxy_linux runs and print some message and then got segmentation fault:
Quote
user@smos-1:~/Projects/leaserig$ ./leaserigproxy_linux 3333 XXXXX 0

LeaseRig.net mining rig proxy, v0.05b

ID: XXXXX
Segmentation fault



Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: jason20005 on March 19, 2014, 05:28:25 AM
I was trying to get LRP statically linked with idea of isolating gethostbyname call in a library. So, I created library - this part is fine. But when I try to link it with LRP, I constantly get error '/usr/bin/ld: cannot find -llrp'

Yes, I know all about naming - this part is correct, and library is there. I also used -L. switch and googled for all possible solutions.

I simply give up...

EDIT: Someone with good knowledge will know how to solve this issue. An idea is following; I am sure glibc.so of version 2.15 can be obtained? Then place it somewhere and make sure LRP uses this glibc and not the systems one. How to do it - linux expert will know it!

I downloaded glibc.so of version 2.15, but it does not solve the library problem.
leaserigproxy_linux runs and print some message and then got segmentation fault:
Quote
user@smos-1:~/Projects/leaserig$ ./leaserigproxy_linux 3333 XXXXX 0

LeaseRig.net mining rig proxy, v0.05b

ID: XXXXX
Segmentation fault



gdb does not show anything useful since it does not have any debug symbol in the binary


Quote
(gdb) set args 33333 635-848fb9de-6fae-4ed2-a02c-a5b2f020d336 0
(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /home/user/Projects/leaserig/leaserigproxy_linux 33333 635-848fb9de-6fae-4ed2-a02c-a5b2f020d336 0

LeaseRig.net mining rig proxy, v0.05b

ID: 635-848fb9de-6fae-4ed2-a02c-a5b2f020d336

Program received signal SIGSEGV, Segmentation fault.
0xb7e04fff in ?? ()



Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Monty-Python on March 19, 2014, 11:21:52 AM
Being unable to run the proxy in BAMT is one thing, getting API timeouts in the proxy software using Windows is something new:

http://s1.directupload.net/images/140319/2pyyvoxp.png (http://www.directupload.net)

Any ideas how to resolve this? It didn't happen with the previous Version of the proxy software and it makes my statistics look bad. :(


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 19, 2014, 11:29:59 AM
Timeout will happen if there is no response from your cgminer in 2 seconds time. cgminer API is capable of serving only 1 request at a time - others are blocked. Make sure there is no other program hooking cgminer API constantly.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 19, 2014, 11:31:57 AM
Hi, is it possible to open source the proxy software?
So that people can compile on their own platform: win, linux, pi, x86, x84, mips, etc...

I would very much like to do that. But one thing I have learned with this community is that there are plenty of copy pasters, work and idea stealers. And due to anonymity, I couldn't take any legal actions against such people.

A solution is for me to install OSes like BAMT, SMOS and everything that is being used and compile binary for each one.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Monty-Python on March 19, 2014, 11:43:54 AM
Timeout will happen if there is no response from your cgminer in 2 seconds time. cgminer API is capable of serving only 1 request at a time - others are blocked. Make sure there is no other program hooking cgminer API constantly.

Thanks. As BAMT offers a web-frontend showing details of the rig performance I found the second application hooking the API. Just wondering why I didn't find this piece of information in the cgminer documentation...


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: WireIT on March 19, 2014, 02:45:06 PM
Can you try Windows version?

I finally got around to trying lrp in Windows. The problem is when you disconnect a rig. This problem does not happen with the Windows version, only Linux.

In windows, disconnect a rig and watch lrp. You'll see a couple of rig timeouts and then a rig disconnect.

In linux, disconnect a rig and you'll see some rig timeouts, but never a rig disconnect. By the time you'd expect to see a disconnect, lrp just hangs waiting to hear from the disconnected rig. At this point every rig stops mining. Turn the disconnected rig back on and as soon as lrp can see it, everything starts mining again and you'll see every rig start over at a low difficulty.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 19, 2014, 03:29:32 PM
Can you try Windows version?

I finally got around to trying lrp in Windows. The problem is when you disconnect a rig. This problem does not happen with the Windows version, only Linux.

In windows, disconnect a rig and watch lrp. You'll see a couple of rig timeouts and then a rig disconnect.

In linux, disconnect a rig and you'll see some rig timeouts, but never a rig disconnect. By the time you'd expect to see a disconnect, lrp just hangs waiting to hear from the disconnected rig. At this point every rig stops mining. Turn the disconnected rig back on and as soon as lrp can see it, everything starts mining again and you'll see every rig start over at a low difficulty.

Will take a look into this. Do you use cgminer API for speed querying?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: WireIT on March 19, 2014, 06:22:38 PM
I start lrp with...

./leaserigproxy_linux 3333 my-info-removed 4028 s


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: halfsoft on March 19, 2014, 06:52:32 PM
Any ideas how can I improve the speed reporting while using the LRP?
sgcrypt reports steady 3650kh/s while the web interface shows huge fluctuations:
https://www.dropbox.com/s/rwv13mw8v0pkeao/Screen%20Shot%202014-03-19%20at%2019.48.03.png


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Monty-Python on March 19, 2014, 07:20:10 PM
Any ideas how can I improve the speed reporting while using the LRP?
sgcrypt reports steady 3650kh/s while the web interface shows huge fluctuations:
https://www.dropbox.com/s/rwv13mw8v0pkeao/Screen%20Shot%202014-03-19%20at%2019.48.03.png

Do you have API enabled?

If not edit your bat-file or config file

Code:
--api-listen --api-allow 127.0.0.1 --api-port 4028

127.0.0.1 if LRP is running on same machine and API port is more or less your choice, 4028 is default port.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 19, 2014, 07:35:12 PM
NOTICE to Linux users of LRP

There is a very weird issue of Linux simply stopping execution of LRP once dead connection is detected, but nothing is reported to LRP. I am investigating it, but have no ideas what else to check; I checked all network API calls and it doesn't seems any of it is blocking.

Windows version is unaffected and works without issues.

If your rigs are unstable (like, suddenly dying or going off the power), then either use Windows LRP or switch to method B. If you don't have Windows machine, running one in virtual environment on top of Linux should suffice too.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: halfsoft on March 19, 2014, 07:44:10 PM
Thanks, it seems like i need to configure BAMT to allow remote API calls, just adding the ip range didn't work...
well there is something that i will do this weekend it seems like, thanks for the tip


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Monty-Python on March 19, 2014, 07:54:41 PM
Thanks, it seems like i need to configure BAMT to allow remote API calls, just adding the ip range didn't work...
well there is something that i will do this weekend it seems like, thanks for the tip

If you manage to get method b going in BAMT, drop me a PM please. ^^ I get it to work but fail on the rigtest Website (see previous page of this thread). Switching pools seems to work but the second test after 60 seconds fails somehow.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 19, 2014, 08:36:40 PM
NOTICE to Linux users of LRP

There is a very weird issue of Linux simply stopping execution of LRP once dead connection is detected, but nothing is reported to LRP. I am investigating it, but have no ideas what else to check; I checked all network API calls and it doesn't seems any of it is blocking.

Windows version is unaffected and works without issues.

If your rigs are unstable (like, suddenly dying or going off the power), then either use Windows LRP or switch to method B. If you don't have Windows machine, running one in virtual environment on top of Linux should suffice too.

I believe it has been fixed, but I am waiting for WireIT to report me back with some testings.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 19, 2014, 10:36:12 PM
New LRP version Download (http://leaserig.net/leaserigproxy.zip)

Quote
v0.06a
- network protocol v0.02
- some bug fixes

This version is MANDATORY for all! It has new network protocol which will soon make old protocol obsolete and LRPs won't be able to connect to LeaseRig anymore. It also fixes Linux "lock bug".


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Monty-Python on March 19, 2014, 10:47:22 PM
Migrated to new version - seems to run smooth in Windows so far. Will check again in a few hours.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: miaviator on March 19, 2014, 11:12:05 PM
Migrated to new version - seems to run smooth in Windows so far. Will check again in a few hours.

I'll just put it on my pi nope, 64 bit native nope, other pi nope, other pi nope.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: E on March 20, 2014, 12:20:27 AM
New LRP version Download (http://leaserig.net/leaserigproxy.zip)

Quote
v0.06a
- network protocol v0.02
- some bug fixes

This version is MANDATORY for all! It has new network protocol which will soon make old protocol obsolete and LRPs won't be able to connect to LeaseRig anymore. It also fixes Linux "lock bug".

So far so good w/ 0.06a on linux; will update if that changes.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Monty-Python on March 20, 2014, 11:57:22 AM
0.06a has been running fine for a couple of hours in Windows now. As there was no other feedback than that, my guess is it's ok. ;D

Just out of curiosity:
Is it possible to implement email notifications if a pool went dead. The proxy software is checking anyway on startup and reports when a pool goes dead and it tries to switch pools and/or reconnect to a pool. In this case there has to be some form of communication with the Leaserig server I guess which could be used for email notification.

My point is, it would be a "Nice to have"(!) feature for both providers and customers to get an automatic notification so everyone can react appropriately. I admit I have no idea how to realize or even put this into code and cannot estimate the effort it would take. Any feedback is welcome.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 20, 2014, 12:15:38 PM
0.06a has been running fine for a couple of hours in Windows now. As there was no other feedback than that, my guess is it's ok. ;D

Just out of curiosity:
Is it possible to implement email notifications if a pool went dead. The proxy software is checking anyway on startup and reports when a pool goes dead and it tries to switch pools and/or reconnect to a pool. In this case there has to be some form of communication with the Leaserig server I guess which could be used for email notification.

My point is, it would be a "Nice to have"(!) feature for both providers and customers to get an automatic notification so everyone can react appropriately. I admit I have no idea how to realize or even put this into code and cannot estimate the effort it would take. Any feedback is welcome.

It wouldn't be hard at all. But I am more worried by the amount of emails that would have to be sent out. Especially in times when half of rented rigs are working on same pool and that one goes down -> bam, 300 mails with same content to be sent instantly and my server will be marked as SPAM source.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: BuildTheFuture on March 20, 2014, 03:28:58 PM
I don't know what the deal is between Eligius, my ants, and LRP, but they don't get along well. My ants came off a couple of leases in the past several hours, and LRP could not establish a stable connection to Eligius. It would connect, get the difficulty, then I get the rig disconnect message before any shares are done. Cgminer (updated to latest firmware) on my ants seems to reset. Eventually I had to give up and move to ghash.io which works fine so far.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 20, 2014, 04:06:46 PM
If I knew what is going on with eligius I would fix it...


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 20, 2014, 09:05:22 PM
UPDATE: I compiled linux binary for BAMT. Download (http://leaserig.net/leaserigproxy.zip)

Please, if you use SMOS, try if it is working for SMOS too (should do, but I need someone to confirm!)


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: miaviator on March 20, 2014, 09:16:41 PM
Just found out betarigs doesn't require you to use a CLOSED SOURCE NON COMMUNITY REVIEWED code or expose your system in order to lease.  (And supports the PI as a miner)

Get compiling zo



Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 20, 2014, 09:21:56 PM
Just found out betarigs doesn't require you to use a CLOSED SOURCE NON COMMUNITY REVIEWED code or expose your system in order to lease.  (And supports the PI as a miner)

Get compiling zo



Noone forces you to use method A. Method B is always an option - as long as miner is running cgminer or some fork of it, it is possible, but most people have issues configuring that cgminer and linux firewall.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Davemanwallet on March 21, 2014, 10:25:25 AM
Hey guys,

So yeah, ive been trying to get my 2 rigs to work on Leaserig, both are running SMOS, I am able to run them but only WITHOUT the API enabled. For example, when I put the API commands in the cgminer config, which I copied from the 2nd or 3rd page of this thread , nothing happens. When I remove the API settings from the config, it seems to run fine , but keeps telling me it failed to connect to port 7777 (which is the port I assigned) in the smos terminal.

This is what I'm currently using , when I try to run with API enabled.

{
"pools" : [
        {
                "url" : "stratum+tcp://127.0.0.1:3333",
                "user" : "Daveman85.2",
                "pass" : "2"
        },
        {
                "url" : "stratum+tcp://stratum.dogehouse.org:8081",
                "user" : "Daveman85.2",
                "pass" : "2"
}
],                           
"api-listen" : true,
"api-mcast-port" : "7777",
"api-network" : true,
"api-port" : "7777",
"expiry" : "120",
"failover-only" : true,
"kernel-path" : "/usr/local/bin",
"log" : "5",
"queue" : "1",
"scan-time" : "60",
"scrypt" : true,
"auto-fan" : true,
"gpu-threads" : "2",
"gpu-engine" : "1075",
"gpu-memclock" : "1500",
"gpu-powertune" : "10",
"intensity" : "13",
"temp-target" : "75",
"temp-overheat" : "85",
"temp-cutoff" : "90",
"temp-hysteresis" : "3",
"vectors" : "1",
"worksize" : "256",
"lookup-gap" : "2",
"shaders" : "2048",
"thread-concurrency" : "8192"
"api-allow" : "P:89.212.242.33,W:127.0.0.1",
"api-groups" : "P:switchpool:addpool:removepool:restart:save:*"
}

But nothing happens. I forwarded the 7777 port on my router for my local miner IPs... or is this wrong?

Any help would be apreciated, thanks!


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 21, 2014, 10:43:31 AM
, nothing happens.

Declare this.

BTW: Use only proxy pool - else your pool switching will be very slow (up to 5minutes) when doing switches on LeaseRig.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Davemanwallet on March 21, 2014, 10:46:54 AM
Nothing happens as in, the miners dont start mining.

About proxy pool, does that mean I am to ignore the SMOS configs and setup and run everything from the bat file in the proxypool folder?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: kenshirothefist on March 21, 2014, 11:00:27 AM
...
"lookup-gap" : "2",
"shaders" : "2048",
"thread-concurrency" : "8192"
"api-allow" : "P:89.212.242.33,W:127.0.0.1",
"api-groups" : "P:switchpool:addpool:removepool:restart:save:*"
...

You have a typo here. Each line (except the last one) in the JSON format has to end with "," ... the lines after

"thread-concurrency" : "8192"

are not parsed in your case because this line doesn't end with "," ... add comma to the end

"thread-concurrency" : "8192",

and try again.

You can also start cgminer with the --text-only option and also with the --verbose option ... this way you'll be able to see which part of config file wasn't properly loaded.

cgminer --text-only --verbose ... other parameters


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Davemanwallet on March 21, 2014, 11:07:02 AM
Goddangit, that worked...
Cant believe I missed that typo :-\
Its running now with the speeds updated through the leaserigproxy.

Thanks for the heads up man,
Much apreciated.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: kedalel on March 21, 2014, 05:38:48 PM
Hey guys,

I'm considering leasing my rig but I have a small issue.

Code:
Testing command "restart"... PASSED
RESTART

Waiting 60 seconds...

Testing command "pools" for the second time... FAILED

Still, if I restart the test it goes well until the same test...

Any idea?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 21, 2014, 07:21:23 PM
Sometimes wemineltc pool is dead. Check manually cgminer.conf file and see if wemineltc pool is inside. If yes, then the test was passed :)


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: cjek on March 21, 2014, 08:02:30 PM
Correct me if I'm wrong:

- you only need to setup a proxy on one of your mining rigs
- you only put one pool into the cgminer/vertminer config file, this one is the proxy "pool"
- you put other pools into the pools config file (the pools your rig mines at when it is not leased)

I have the BAMT OS set to do an automatic coldreboot every 3 hours. Can this be problematic? Do I need to configure to run the proxy on startup (with the "./leaserigproxy_bamt 3333 PUT-YOUR-ID-HERE 0" command) ?

Thanks  :D


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: ebliever on March 21, 2014, 08:07:37 PM
Just wanted to chime in and report that my miner seems to be running much more stable/smooth on LRP with the 0.6a proxy. I used to see lots of little down"blips" and momentary disconnects, but everything looks much more smooth/stable. So something has been fixed. :-)


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 21, 2014, 08:39:47 PM
Correct me if I'm wrong:

- you only need to setup a proxy on one of your mining rigs
- you only put one pool into the cgminer/vertminer config file, this one is the proxy "pool"
- you put other pools into the pools config file (the pools your rig mines at when it is not leased)

I have the BAMT OS set to do an automatic coldreboot every 3 hours. Can this be problematic? Do I need to configure to run the proxy on startup (with the "./leaserigproxy_bamt 3333 PUT-YOUR-ID-HERE 0" command) ?

Thanks  :D

This is correct.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: kedalel on March 21, 2014, 09:09:28 PM
Sometimes wemineltc pool is dead. Check manually cgminer.conf file and see if wemineltc pool is inside. If yes, then the test was passed :)

Yes everything works (I see the wemineltc pool, mining it for something like 5-10sec) until after the restart when the second pool list command is issued.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: cjek on March 21, 2014, 11:39:35 PM
Correct me if I'm wrong:

- you only need to setup a proxy on one of your mining rigs
- you only put one pool into the cgminer/vertminer config file, this one is the proxy "pool"
- you put other pools into the pools config file (the pools your rig mines at when it is not leased)

I have the BAMT OS set to do an automatic coldreboot every 3 hours. Can this be problematic? Do I need to configure to run the proxy on startup (with the "./leaserigproxy_bamt 3333 PUT-YOUR-ID-HERE 0" command) ?

Thanks  :D

This is correct.

Thanks! What about the last issue?

Quote
I have the BAMT OS set to do an automatic coldreboot every 3 hours. Can this be problematic? Do I need to configure to run the proxy on startup (with the "./leaserigproxy_bamt 3333 PUT-YOUR-ID-HERE 0" command) ?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Davemanwallet on March 22, 2014, 10:18:45 AM
Quote
I have the BAMT OS set to do an automatic coldreboot every 3 hours. Can this be problematic? Do I need to configure to run the proxy on startup (with the "./leaserigproxy_bamt 3333 PUT-YOUR-ID-HERE 0" command) ?

Why do you have that If I may ask? Is it for temps going to high or?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 22, 2014, 10:53:51 AM
You will need to schedule LRP to be started up too.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: cjek on March 22, 2014, 11:20:19 AM
Quote
I have the BAMT OS set to do an automatic coldreboot every 3 hours. Can this be problematic? Do I need to configure to run the proxy on startup (with the "./leaserigproxy_bamt 3333 PUT-YOUR-ID-HERE 0" command) ?

Why do you have that If I may ask? Is it for temps going to high or?

Sometimes my rig stopped mining if it was on for too long. These reboots give me 99% uptime (the only downtime is the time to reboot the rig).


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Burgertm on March 22, 2014, 07:12:37 PM
I downloaded the most recent version of LRP today and now I'm seeing the message "Speed buffer filled.  Speed reporting may be incorrect.".  Is this an issue on my end or a bug?


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 22, 2014, 08:19:00 PM
I downloaded the most recent version of LRP today and now I'm seeing the message "Speed buffer filled.  Speed reporting may be incorrect.".  Is this an issue on my end or a bug?

This has no effect on mining, but only on stats. If you have many workers hooked via LRP and there is pool with very low diff being used, the internal buffer for storing shares is filled and starts getting overwritten. The result is lower reported speed on LeaseRig.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Burgertm on March 22, 2014, 11:20:13 PM
I downloaded the most recent version of LRP today and now I'm seeing the message "Speed buffer filled.  Speed reporting may be incorrect.".  Is this an issue on my end or a bug?

This has no effect on mining, but only on stats. If you have many workers hooked via LRP and there is pool with very low diff being used, the internal buffer for storing shares is filled and starts getting overwritten. The result is lower reported speed on LeaseRig.

I have 3 cards that would be mining on wafflepool, which has a 512 difficulty.  Not exactly low.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: coincrypt on March 23, 2014, 08:59:22 PM
How do I configure my antminers for leaserig?

Do I point them to a pool? Or to a leaserigproxy on my pc?

Do I need to change something on the antminers tru an ssh connection? Parameters from cgminer?

I have been looking on the forum for hours, but can not find anything on how to configure antminers for leaserig.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 23, 2014, 09:03:54 PM
to a leaserigproxy on my pc?

this

It is suggested to flash firmware of antminers, to increase stability.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Strider3000 on March 24, 2014, 05:33:15 AM
Does anyone here have advice about how to run leaserigproxy @ boot on BAMT?
Also, is there an "easy" way to tie leaserigproxy into the BAMT "mine" service so it will stop/start with that service?

Looking for ways of improving speed of recovery with leaserigproxy in case BAMT borks.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: jason20005 on March 24, 2014, 07:45:34 AM
I tried leaserig proxy today, but then I decided to switch to Method A.
However, leaserig.net is showing my rig JASONBIFURY is still using LRP and hashrate is 0.
How can you "unuse" LRP?

Edit: I have already shutdown LRP process and restart cgminer using Method B as usual.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: E on March 24, 2014, 08:02:18 PM
to a leaserigproxy on my pc?

this

It is suggested to flash firmware of antminers, to increase stability.

Also, kano has released AntS1 binaries built from cgminer 4.2.0; it is working very well for me in terms of stability:

Quote
This directory contains binary executables for the AntS1 mining device

To update your executable:
--------------------------
Login to your ant, with ssh or putty, using the same root username and password
you use on the luci web interface
If your password is blank, then use the "System/Administration" tab in the web
interface to set a password, since you cannot login with a blank password

Then run the following commands:
 cd /usr/bin/
 wget http://kano-kun.net/AntS1/cgminer-ants1-4.2.0-00567a4
 chmod +x cgminer-ants1-4.2.0-00567a4

If you haven't done an update like this before (or undid the change):
 mv cgminer cgminer.original
 ln -s cgminer-ants1-4.2.0-00567a4 cgminer

If you HAVE done an update like this before and cgminer.original has
already been saved, then:
 rm cgminer
 ln -s cgminer-ants1-4.2.0-00567a4 cgminer

Next you need to restart cgminer on your AntS1
Clicking the "Save & Apply" button on the "Status/Miner Configuration" tab
in the web interface will do that
It can sometimes take up to 3 minutes before the AntS1 restarts cgminer

Note that this binary file is also in my cgminer-binaries git here:
 https://github.com/kanoi/cgminer-binaries/tree/master/AntS1
However, wget on the AntS1 won't allow https by default so I've copied it
to my link specified in the wget above
The md5sum checksum is in:
 https://github.com/kanoi/cgminer-binaries/blob/master/MD5SUM
The md5sum value is:
 12cd038a08b83d3f89fa1c454a6d4e67  AntS1/cgminer-ants1-4.2.0-00567a4
You can check the md5sum value when logged in to the ant with:
 md5sum /usr/bin/cgminer-ants1-4.2.0-00567a4

To undo the change:
 cd /usr/bin/
 rm cgminer
 mv cgminer.original cgminer
restart cgminer

https://github.com/kanoi/cgminer-binaries/tree/master/AntS1


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Monty-Python on March 24, 2014, 08:31:56 PM
Is it just me or is the website not updating renting plans, when they are changed? Tried it several times now but on the "Rigs" page nothing is changing...

EDIT: Changes also do not appear on the Administration page.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 24, 2014, 08:58:26 PM
Is it just me or is the website not updating renting plans, when they are changed? Tried it several times now but on the "Rigs" page nothing is changing...

EDIT: Changes also do not appear on the Administration page.

Check your BRP (best rated price) - only this is displayed on front page and in front admin panel.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Monty-Python on March 24, 2014, 09:01:12 PM
I modify all renting plans by factor 0.98 and nothing happens - this is definitely not normal. ^^ Just checked it again, not working.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 24, 2014, 09:05:43 PM
I modify all renting plans by factor 0.98 and nothing happens - this is definitely not normal. ^^ Just checked it again, not working.

Maybe you are trying to modify by too small factor :) All prices are rounded to 0.0001 BTC.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Monty-Python on March 24, 2014, 09:09:41 PM
I am trying to change my BRP from 0.0070 to 0.0068xxx. so this fits according to your minimum requirement. I've been with you for a while and know how to change prices. ;)

EDIT: And it worked until tonight. Did you change anything?

EDIT2:
I modify all renting plans by factor 0.98 and nothing happens - this is definitely not normal. ^^ Just checked it again, not working.

Maybe you are trying to modify by too small factor :) All prices are rounded to 0.0001 BTC.
Your minimum increment is wrong. I was able to change my BRP to .0066xx which is far more than the 0.0001BTC you were stating. Changing prices still works but I guess not in the way you are - and definitely not in the way I am - expecting it to work.
DISREGARD, I found the error - on my side...


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: WireIT on March 25, 2014, 05:47:34 PM
Can we get one more backup pool option? It's rare but I had my primary and backup pool go down. It would be nice to add a third pool.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: sonysasankan on March 26, 2014, 03:05:05 AM
Might be a noob question, but not sure. Im not able to join my smaller rigs to show up as one big rig. Any idea how to go about doing it? I generate the leasing rig proxy ID and use it on the run.bat file as instructed and it works for the first machine. When I try using the same ID on my second machine, it says connected to leaserigs.net.... and after a while it says connection dropped. What am I doing wrong? Can someone help? Im running Scrypt-n on vertminer and mining seems all ok on my pools.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: Brassguy on March 26, 2014, 04:15:31 AM
Might be a noob question, but not sure. Im not able to join my smaller rigs to show up as one big rig. Any idea how to go about doing it? I generate the leasing rig proxy ID and use it on the run.bat file as instructed and it works for the first machine. When I try using the same ID on my second machine, it says connected to leaserigs.net.... and after a while it says connection dropped. What am I doing wrong? Can someone help? Im running Scrypt-n on vertminer and mining seems all ok on my pools.

You would need to configure vertminer on your second machine to connect to the machine running LRP. I'm not familiar with vertminer, but in the config, point it at 192.168.1.xxx:3333 (yourmingrig LAN IP, port 3333 is default port for the proxy)... username and password don't matter. It should connect and start getting work from the machine you have running LRP (lease rig proxy). The generated LeaseRigProxy ID only allows one instance of LRP to connect to each ID.

Hope that made sense....


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: sonysasankan on March 26, 2014, 07:13:38 AM
Might be a noob question, but not sure. Im not able to join my smaller rigs to show up as one big rig. Any idea how to go about doing it? I generate the leasing rig proxy ID and use it on the run.bat file as instructed and it works for the first machine. When I try using the same ID on my second machine, it says connected to leaserigs.net.... and after a while it says connection dropped. What am I doing wrong? Can someone help? Im running Scrypt-n on vertminer and mining seems all ok on my pools.

You would need to configure vertminer on your second machine to connect to the machine running LRP. I'm not familiar with vertminer, but in the config, point it at 192.168.1.xxx:3333 (yourmingrig LAN IP, port 3333 is default port for the proxy)... username and password don't matter. It should connect and start getting work from the machine you have running LRP (lease rig proxy). The generated LeaseRigProxy ID only allows one instance of LRP to connect to each ID.

Hope that made sense....

Thanks.... I think its working  ;D


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: mikk2k2 on March 26, 2014, 07:51:48 PM
Quick question about p2p pools and renting. I've set up the pool with my wallet address and a password but the pool is saying dead even though i know people are mining on it. I get 'Pool failed to authorise:[address]' in the proxy.

Any ideas?

Edit pool is: stratum+tcp://hiro.qemulab.com:9408

Taking my rig off LR until p2p pools are working.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: DarkKnight on March 28, 2014, 11:45:19 PM
What's up with this?

Quote
LeaseRig.net is changing owner soon and moving server to another location. If you use method B (not LeaseRigProxy) to provide renting service, please add another allowip in your cgminer config: 23.236.58.114. We will try to make transfer procedure as painless as possible and with minimum downtime. Thank you for using LeaseRig.net.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 28, 2014, 11:55:13 PM
Owner change. Someone purchased LeaseRig. Will be announced soon. Meanwhile, service is running normally. Nothing to worry about.


Title: Re: [GUIDE] How to rent your rig on LEASERIG.NET - Scrypt & SHA256
Post by: djeZo on March 29, 2014, 12:08:01 AM
LeaseRig.net has changed the owner.
New official thread:
https://bitcointalk.org/index.php?topic=544732.0