Bitcoin Forum

Bitcoin => Mining support => Topic started by: smooth on January 08, 2014, 11:02:54 PM



Title: bfgminer stratum proxy
Post by: smooth on January 08, 2014, 11:02:54 PM
I'm trying to get my ant miner S1's to work through bfgminer stratum proxy so I can control my pool in one spot rather than connecting to the web interface on each miner.  I start bfgminer with --stratum-port X then set pool 1 appropriately to IP:X on each miner. I have bfgminer configured with eligius as my first pool. The Ants seem to connect and show the pool as "alive." Bfgminer reports eligius as alive. But I get 100% rejects and bfgminer reports 100% HW errors. Ant miners work fine when connected to eligius (or most other pools) directly.

How can I debug (or fix) this? Not much in the way of debug output on the ant miner side.



Title: Re: bfgminer stratum proxy
Post by: gigica viteazu` on January 08, 2014, 11:16:39 PM
I have tried with the same results.

you can`t fix this until bitman release v3.9.0 of the cgminer fork he is using


Title: Re: bfgminer stratum proxy
Post by: smooth on January 08, 2014, 11:29:26 PM
I have tried with the same results.

you can`t fix this until bitman release v3.9.0 of the cgminer fork he is using

Oh right, I remember seeing that somewhere. Thanks.


Title: Re: bfgminer stratum proxy
Post by: pjcltd on January 08, 2014, 11:35:45 PM
Hi
I have the same problem
I have been trying to get this to work
Now I know why lol
I will wait .


Title: Re: bfgminer stratum proxy
Post by: pjcltd on January 09, 2014, 08:24:59 PM
I'm trying to get my ant miner S1's to work through bfgminer stratum proxy so I can control my pool in one spot rather than connecting to the web interface on each miner.  I start bfgminer with --stratum-port X then set pool 1 appropriately to IP:X on each miner. I have bfgminer configured with eligius as my first pool. The Ants seem to connect and show the pool as "alive." Bfgminer reports eligius as alive. But I get 100% rejects and bfgminer reports 100% HW errors. Ant miners work fine when connected to eligius (or most other pools) directly.

How can I debug (or fix) this? Not much in the way of debug output on the ant miner side.


Hi I have found a way round this
If you go to
Www.tompool.org
And setup an account
It will do the pool swapping for you and it works well
You can setup your own pools that you want to mine
and it will move your miners to the most profitable one
For you.



Title: Re: bfgminer stratum proxy
Post by: smooth on January 09, 2014, 10:30:43 PM
I'm trying to get my ant miner S1's to work through bfgminer stratum proxy so I can control my pool in one spot rather than connecting to the web interface on each miner.  I start bfgminer with --stratum-port X then set pool 1 appropriately to IP:X on each miner. I have bfgminer configured with eligius as my first pool. The Ants seem to connect and show the pool as "alive." Bfgminer reports eligius as alive. But I get 100% rejects and bfgminer reports 100% HW errors. Ant miners work fine when connected to eligius (or most other pools) directly.

How can I debug (or fix) this? Not much in the way of debug output on the ant miner side.


Hi I have found a way round this
If you go to
[redacted]


That's missing the point. Let's say I decide [redacted] is the best thing since lap dances and program it into all of my miners. If I later decide [redacted] is not really that great for whatever reason, I have to go and reprogram all of my miners.  The idea is to have a central point on my own network and under my own control.


Title: Re: bfgminer stratum proxy
Post by: gigica viteazu` on January 10, 2014, 12:56:29 AM
I gave up on bfgminer proxy and right now I`m working on a python script that (currently as a wip) move my miners (via api) on the most profitable (based on coinwarz.com api information) coin pool (defined by user).

I may decide to publish it if there is enough interest.


Title: Re: bfgminer stratum proxy
Post by: smooth on January 10, 2014, 01:51:18 AM
I gave up on bfgminer proxy and right now I`m working on a python script that (currently as a wip) move my miners (via api) on the most profitable (based on coinwarz.com api information) coin pool (defined by user).

I may decide to publish it if there is enough interest.

The Ant Miners have an API? Where is that documented?


Title: Re: bfgminer stratum proxy
Post by: gigica viteazu` on January 10, 2014, 05:03:33 AM

The Ant Miners have an API? Where is that documented?

S1 have cgminer 3.8.5 embedded... so yeah they have. To access it you need to alter /etc/config/cgminer file


Title: Re: bfgminer stratum proxy
Post by: smooth on January 10, 2014, 10:43:14 AM

The Ant Miners have an API? Where is that documented?

S1 have cgminer 3.8.5 embedded... so yeah they have. To access it you need to alter /etc/config/cgminer file

Thank you yes. I forgot about the cgminer api.


Title: Re: bfgminer stratum proxy
Post by: southerngentuk on February 18, 2014, 04:23:02 AM
I have tried with the same results.

you can`t fix this until bitman release v3.9.0 of the cgminer fork he is using

I've just  received my ant and according to the Installed packages it is running CGminer 3.12.0-1

The results are the same, 100% error.

Someone smart should provide a work around for this.

Am guessing its not a CGminer bug as I read elsewhere ( and it would be fixed in the next version of CG)
and more to do with bitmain's driver/alterations to CGminer.


Title: Re: bfgminer stratum proxy
Post by: whatsthestory on February 19, 2014, 02:26:59 PM
I gave up on bfgminer proxy and right now I`m working on a python script that (currently as a wip) move my miners (via api) on the most profitable (based on coinwarz.com api information) coin pool (defined by user).

I may decide to publish it if there is enough interest.
When will you publish it ? As it is really interesting to know more about mining on most profitable pool.


Title: Re: bfgminer stratum proxy
Post by: That--Guy on March 29, 2014, 07:05:05 AM
I have both of my Antminer S1s proxying through bfgminer.  It works for me with the 02072014 firmware, once I figured out (thanks to this thread) to use --stratum-port instead of --http-port.

bfgminer.exe --stratum-port 8330 -o us2.eclipsemc.com:3333 -u myusername -p mypass

...is my cmdline, with just the IP:port (no protocol specifier) set in the Antminers' miner configs


Title: Re: bfgminer stratum proxy
Post by: southerngentuk on March 29, 2014, 10:06:37 AM
I have both of my Antminer S1s proxying through bfgminer.  It works for me with the 02072014 firmware, once I figured out (thanks to this thread) to use --stratum-port instead of --http-port.

bfgminer.exe --stratum-port 8330 -o us2.eclipsemc.com:3333 -u myusername -p mypass

...is my cmdline, with just the IP:port (no protocol specifier) set in the Antminers' miner configs

Its always the little details some of us miss..   :D


Title: Re: bfgminer stratum proxy
Post by: blackvoice on March 29, 2014, 03:24:32 PM
 ant miner is hard to use

I will never try it


Title: Re: bfgminer stratum proxy
Post by: filflarn on September 14, 2014, 12:10:26 AM
sorry for bumping an old thread...

ok i just found this thread and figured id give it a shot solmining with my ants for a certain altcoin. and i like most of the other users here cant get it to work. here is my cmd line

bfgminer.exe --stratum-port 11067 -o 127.0.0.1:11067 -u user -p password -S antminer:all --set-device antminer:clock=x0A81


do i need to setup a different instance to run just my s1's or can i use my u2+'s in the same instance of bfg?
 without the "--stratum-port 11067" my usb miners run fine and it solo's perfectly finding blocks and all so the wallet is set up right. I also tried using the port 8330 for the stratum port. My ant says the pool is dead and bfgminer gets weird with low hashrates or saying all pools are dead. I am using the bfgminer 4.8.0 luke-jr 32bit version.

My ant s1 pools are set as follows i also enabled wifi to see if that work using my computers wifi address with the same port.


pool 0: 192.168.1.88:11067
username: user
password: password


Now if i dump the --stratum-port on bfg miner and point the ants to the wallet on either ethernet or wifi it shows the pool is alive and gets work but it rejects all blocks found.

thanks in advance for any help you can give



Title: Re: bfgminer stratum proxy
Post by: Axiste on September 14, 2014, 06:18:36 AM
bfgminer.exe --stratum-port 11067 -o 127.0.0.1:11067 -u user -p password -S antminer:all --set-device antminer:clock=x0A81

Here you have the same port set to be your Stratum Proxy port, and your local wallet port. They need to be different.

On the S1's just use normal ethernet to your network, make sure it points to the Network Ip of the bfg stratum proxy and its new port (ensuring its not the same as the wallet port)

make sure each S1 has a different username (eg Ant1, Ant2) and just put X for password.


Title: Re: bfgminer stratum proxy
Post by: filflarn on September 15, 2014, 02:04:10 PM
Thanks.

bfgminer.exe --stratum-port 8330 -o 127.0.0.1:11067 -u user -p password -S antminer:all --set-device antminer:clock=x0A81

Ant s1 shows its a dead pool. bfgminer keeps saying im going to play around with this and hopefully its something easy im just overlooking. ill mess with it when i get home. thanks again


Title: Re: bfgminer stratum proxy
Post by: Axiste on September 15, 2014, 07:48:38 PM
make sure that 8330 is open in Windows Firewall if you have it running, otherwise it wont be seen by the Antminer S1 (or turn off Windows Firewall  ;D )


Title: Re: bfgminer stratum proxy
Post by: filflarn on September 15, 2014, 10:30:08 PM
ok so here's what i have found i completely disabled the firewall to ensure i could communicate through the ports for this. if i get a port to work ill then fix the firewall.

if i use bfgminer-4.8.0-win32\bfgminer-4.8.0-win32\bfgminer.exe --stratum-port 11066 -o 127.0.0.1:11067 -u user -p password -S antminer:all --set-device antminer:clock=x0A81

my s1 shows dead pool and bfgminer says "SSM: No Usable 2d Work Upstream!"

If i use bfgminer-4.8.0-win32\bfgminer-4.8.0-win32\bfgminer.exe --http-port 11066 -o 127.0.0.1:11067 -u user -p password -S antminer:all --set-device antminer:clock=x0A81

my s1 shows the pool is alive and bfgminer shows PXY:0 but says "Sick!"

in both instances i also tried port 8330, 8332, and on the ants i tried the same username and password and also tried a uique user name and x as the password with identical results


Title: Re: bfgminer stratum proxy
Post by: mannyg on November 30, 2015, 04:35:42 PM
Was this ever fixed? Having the same issue


Title: Re: bfgminer stratum proxy
Post by: morantis on November 30, 2015, 04:39:50 PM
This is not a fix for your hardware issue but a workaround.  I used to use a mining rental service.  it was miningrigrentals.com I think.  The idea is that you point your miner at that and then people can rent it.  The thing is that you can set your own pools for when it is not rented and you do that through their website.  You can then  also set your rig to not being available to rent and it pretty much runs straight to the pool you set and nothing else.  You also get a decent amount of feedback from the site itself about speed.


Title: Re: bfgminer stratum proxy
Post by: mannyg on November 30, 2015, 04:53:17 PM
ok, but i'm not looking to mine to pools.

I'm looking to point some antminer S1's at a local wallet to solo mine a low diff coin.

the --stratum-port command when issued doesnt allow the S1s to connect to the host running bfgminer.

I get this message:
Code:
SSM: No usable 2D work upstream!

if i issue the --http-port,  i get the message that it is listening on the port i configure

both methods show the address as DEAD on the Antminers config page