Bitcoin Forum

Bitcoin => Mining support => Topic started by: joshv06 on April 18, 2014, 04:04:47 PM



Title: [Cgminer] connection to pool 0 interrupted (15$ btc bounty)
Post by: joshv06 on April 18, 2014, 04:04:47 PM
Hey guys, was wondering if you could help me out.

I am running 12 HashLast baby jets on 2 separate computers. They keep to seem going down at random times due to the error:

connection to pool 0 interrupted

These are hosted at a datacenter. Is the internet there dropping?

Pool 1: us1.ghash.io

Pool 2: uk2.ghash.io

I am running them in IP format because the ant miners there seem to finicky when running the typed out URL, work perfect with IP.

Cgminer conf.

Code:
{
"pools" : [
{
"url" : "46.229.169.89:3333",
"user" : "joshv06.11",
"pass" : "123"
},
{
"url" : "88.150.205.242:333",
"user" : "joshv06.11",
"pass" : "123"
}
],

"failover-only" : true,
"no-submit-stale" : true,
"api-listen" : true,
"api-port" : "4028",
"api-allow" : "W:192.168.1.0/24,W:127.0.0.1"
}

Command line

cgminer --hfa-hash-clock 600



Title: Re: [Cgminer] connection to pool 0 interrupted (15$ btc bounty)
Post by: -ck on April 18, 2014, 10:02:48 PM
It is just as the message says: the connection is being interrupted. Usually it's a pool issue where they're dropping connections though it could be a routing problem or just an operating system flakiness. Trying a different pool, checking your routers upstream aren't overloaded for some other reason (because mining takes very little bandwidth), and using an operating system with a reliable network stack (like linux) are about all you can do. The message itself is actually relatively harmless since cgminer will just reconnect immediately if it can, the only issue is any shares you may be losing when it happens. As always, also make sure you are using the latest cgminer.


Title: Re: [Cgminer] connection to pool 0 interrupted (15$ btc bounty)
Post by: joshv06 on April 19, 2014, 07:41:13 AM
It is just as the message says: the connection is being interrupted. Usually it's a pool issue where they're dropping connections though it could be a routing problem or just an operating system flakiness. Trying a different pool, checking your routers upstream aren't overloaded for some other reason (because mining takes very little bandwidth), and using an operating system with a reliable network stack (like linux) are about all you can do. The message itself is actually relatively harmless since cgminer will just reconnect immediately if it can, the only issue is any shares you may be losing when it happens. As always, also make sure you are using the latest cgminer.

Would there be any way to make Cgminer keep scanning for the pool or some what for that if the connection is lost, I don't have to remote in just to start it back up again?

Thanks!


Title: Re: [Cgminer] connection to pool 0 interrupted (15$ btc bounty)
Post by: -ck on April 19, 2014, 09:43:53 AM
I already said it tries to reconnect immediately - and it keeps retrying at regular intervals indefinitely. If it's disconnecting and then never reconnecting you have other problems in your networking.


Title: Re: [Cgminer] connection to pool 0 interrupted (15$ btc bounty)
Post by: byt411 on April 19, 2014, 04:31:01 PM
It is just as the message says: the connection is being interrupted. Usually it's a pool issue where they're dropping connections though it could be a routing problem or just an operating system flakiness. Trying a different pool, checking your routers upstream aren't overloaded for some other reason (because mining takes very little bandwidth), and using an operating system with a reliable network stack (like linux) are about all you can do. The message itself is actually relatively harmless since cgminer will just reconnect immediately if it can, the only issue is any shares you may be losing when it happens. As always, also make sure you are using the latest cgminer.

Would there be any way to make Cgminer keep scanning for the pool or some what for that if the connection is lost, I don't have to remote in just to start it back up again?

Thanks!

It should attempt to reconnect itself. I suggest you add a backup pool, so when ghash goes down you continue mining.

By the way, you have the wrong port on pool 2. Its port 3333, not port 333.


Title: Re: [Cgminer] connection to pool 0 interrupted (15$ btc bounty)
Post by: Jaqen on April 19, 2014, 05:21:33 PM
Are your settings formatted the way they are shown in your post? Have you tried indenting the lines starting with "failover-only" so that they are in line with the { and } of the pool settings?


Title: Re: [Cgminer] connection to pool 0 interrupted (15$ btc bounty)
Post by: byt411 on April 19, 2014, 05:37:49 PM
Are your settings formatted the way they are shown in your post? Have you tried indenting the lines starting with "failover-only" so that they are in line with the { and } of the pool settings?

The problem is not the pool selection method, it is the connection.
And of course his settings are that way, otherwise why would he post them?


Title: Re: [Cgminer] connection to pool 0 interrupted (15$ btc bounty)
Post by: Jaqen on April 19, 2014, 05:52:25 PM
Are your settings formatted the way they are shown in your post? Have you tried indenting the lines starting with "failover-only" so that they are in line with the { and } of the pool settings?

The problem is not the pool selection method, it is the connection.
And of course his settings are that way, otherwise why would he post them?

Well based on my experience with cgminer, the formatting is important like every other programming language. Just trying to rule out all possibilities...


Title: Re: [Cgminer] connection to pool 0 interrupted (15$ btc bounty)
Post by: byt411 on April 19, 2014, 06:05:41 PM
Are your settings formatted the way they are shown in your post? Have you tried indenting the lines starting with "failover-only" so that they are in line with the { and } of the pool settings?

The problem is not the pool selection method, it is the connection.
And of course his settings are that way, otherwise why would he post them?

Well based on my experience with cgminer, the formatting is important like every other programming language. Just trying to rule out all possibilities...

The connection can be established, but it drops, so that's the server's problem.


Title: Re: [Cgminer] connection to pool 0 interrupted (15$ btc bounty)
Post by: scratchy on April 20, 2014, 10:16:25 PM
Its a connection interruption.
It can be on your side (if youre using wlan or any wireless connection),
otherwise its a pool issue.

Anyways you should setup a second pool as fail-over otherwise youre loosing mining time!