luke-jr/bfgminer

Pool 0: Unknown stratum msg: {"id":auth,"result":true,"error":null}

sroller opened this issue · 1 comments

I'm getting this message from time to time. I'm running under Windows 10 on a very slow system. I tried different versions of bfgminer. It happens in 4.8, 5.0 and 5.5.
The system stops as it would be an error.
Any idea what to do about it?

16c7x commented

I have had the same problem and have a work around that does the job, though somewhat clunky.
I'll include everything I'm doing in case anything is important.
I'm on a Raspberry pi, in /etc/rc.local I have a line /home/pi/bfgstarter.sh that file looks like this:

#!/bin/bash
sleep 60
screen -dmS bfgminer /usr/bin/bfgminer -S all -c /home/pi/bfgminer.conf 

The sleep just makes sure wifi has connected and everything has settled down before starting.
screen means I can login and run screen -r to see what's going on.
My workaround was to create 4 workers numbered 1 to 4 and put them in the bfgimer.conf file like this:

{
	"pools": [
                {
                "url": "stratum+tcp://eu.stratum.slushpool.com:3333",
                "user": "<workername>1",
                "pass": "x"
                },
                {
                "url": "stratum+tcp://eu.stratum.slushpool.com:3333",
                "user": "<workername>2",
                "pass": "x"
                },
		{
		"url": "stratum+tcp://eu.stratum.slushpool.com:3333",
		"user": "<workername>3",
		"pass": "x"
		},
                {
                "url": "stratum+tcp://eu.stratum.slushpool.com:3333",
                "user": "<workername>4",
                "pass": "x"
                }

	]
}

So I end up with an error that looks like this:

 [2018-11-18 17:13:21] Loaded configuration file /home/pi/bfgminer.conf
 [2018-11-18 17:13:21] Probing for an alive pool
 [2018-11-18 17:13:26] Pool 1: Unknown stratum msg: {"id":auth,"result":true,"er
ror":null}
 [2018-11-18 17:13:26] Pool 3: Unknown stratum msg: {"id":auth,"result":true,"er
ror":null}
 [2018-11-18 17:13:26] Pool 2: Unknown stratum msg: {"id":auth,"result":true,"er
ror":null}
 [2018-11-18 17:13:26] Pool 0 stratum+tcp://eu.stratum.slushpool.com:3333 alive

As you can see, once it's failed a couple of pools it'll connect. If bfgminer in Windows uses the bfgminer.conf you may be able to use a similar work around.