Bitcoin Forum
May 06, 2024, 07:40:07 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 [9] 10 11 12 13 14 15 16 17 18 19 20 21 »  All
  Print  
Author Topic: CKPOOL - Open source pool/proxy/passthrough/redirector/library in c for Linux  (Read 123941 times)
chiguireitor
Legendary
*
Offline Offline

Activity: 872
Merit: 1010


Coins, Games & Miners


View Profile WWW
February 09, 2016, 04:23:56 AM
 #161

Was going to ask questions about constant disconnection of the clients on the proxy, but it seems it was just uplink unstability.

On another note, is there any documentation on ckpmsg? I would love to see what nifty things i can do with it/add to it...

Btw, loving your perpetual while conditions Smiley some Douglas Adams loving there.

1715024407
Hero Member
*
Offline Offline

Posts: 1715024407

View Profile Personal Message (Offline)

Ignore
1715024407
Reply with quote  #2

1715024407
Report to moderator
1715024407
Hero Member
*
Offline Offline

Posts: 1715024407

View Profile Personal Message (Offline)

Ignore
1715024407
Reply with quote  #2

1715024407
Report to moderator
1715024407
Hero Member
*
Offline Offline

Posts: 1715024407

View Profile Personal Message (Offline)

Ignore
1715024407
Reply with quote  #2

1715024407
Report to moderator
Once a transaction has 6 confirmations, it is extremely unlikely that an attacker without at least 50% of the network's computation power would be able to reverse it.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715024407
Hero Member
*
Offline Offline

Posts: 1715024407

View Profile Personal Message (Offline)

Ignore
1715024407
Reply with quote  #2

1715024407
Report to moderator
1715024407
Hero Member
*
Offline Offline

Posts: 1715024407

View Profile Personal Message (Offline)

Ignore
1715024407
Reply with quote  #2

1715024407
Report to moderator
-ck (OP)
Legendary
*
Offline Offline

Activity: 4102
Merit: 1632


Ruu \o/


View Profile WWW
February 09, 2016, 04:30:28 AM
 #162

Was going to ask questions about constant disconnection of the clients on the proxy, but it seems it was just uplink unstability.

On another note, is there any documentation on ckpmsg? I would love to see what nifty things i can do with it/add to it...

Btw, loving your perpetual while conditions Smiley some Douglas Adams loving there.
Heh 42 indeed. There's no real documentation for anything ckpmsg has over and above what's in the main readme. If you can read the code you can issue direct commands to each of the main process loops provided you know the syntax but generally it's only expected people will use ckpmsg to speak to the main ckpool process which will forward on the relevant message. The other processes aren't obliged to provide a response whereas the main pool process always does as a rule.

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
chiguireitor
Legendary
*
Offline Offline

Activity: 872
Merit: 1010


Coins, Games & Miners


View Profile WWW
February 09, 2016, 04:42:54 AM
 #163

...

Heh 42 indeed. There's no real documentation for anything ckpmsg has over and above what's in the main readme. If you can read the code you can issue direct commands to each of the main process loops provided you know the syntax but generally it's only expected people will use ckpmsg to speak to the main ckpool process which will forward on the relevant message. The other processes aren't obliged to provide a response whereas the main pool process always does as a rule.

Ok, will keep searching if there's some functionality already implemented for what i want to do. If i happen to add something useful, you wouldn't mind a PR?

-ck (OP)
Legendary
*
Offline Offline

Activity: 4102
Merit: 1632


Ruu \o/


View Profile WWW
February 09, 2016, 04:59:31 AM
 #164

...

Heh 42 indeed. There's no real documentation for anything ckpmsg has over and above what's in the main readme. If you can read the code you can issue direct commands to each of the main process loops provided you know the syntax but generally it's only expected people will use ckpmsg to speak to the main ckpool process which will forward on the relevant message. The other processes aren't obliged to provide a response whereas the main pool process always does as a rule.

Ok, will keep searching if there's some functionality already implemented for what i want to do. If i happen to add something useful, you wouldn't mind a PR?
I always welcome outside code, but I'm very fussy...

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
chiguireitor
Legendary
*
Offline Offline

Activity: 872
Merit: 1010


Coins, Games & Miners


View Profile WWW
February 09, 2016, 05:18:04 AM
 #165

...

I always welcome outside code, but I'm very fussy...

Sure thing, i will use ckproxy for a product i'm developing, and as per the GPL i must release the source, so i'll be sure to let you know when/if i do changes.

vh
Hero Member
*****
Offline Offline

Activity: 699
Merit: 666


View Profile
February 10, 2016, 02:11:45 PM
 #166

quick question: do i need to wire the notifier to a bitcoind node to pick up block solve messages from upstream in proxy mode?   trying to read through the stratum protocol docs to understand it a bit more, but thought i'd just ask.

chiguireitor
Legendary
*
Offline Offline

Activity: 872
Merit: 1010


Coins, Games & Miners


View Profile WWW
February 10, 2016, 02:37:32 PM
 #167

quick question: do i need to wire the notifier to a bitcoind node to pick up block solve messages from upstream in proxy mode?   trying to read through the stratum protocol docs to understand it a bit more, but thought i'd just ask.

From ckpool's readme:

Code:
notifier - An application designed to be run with bitcoind's -blocknotify to notify ckpool of block changes.

So you must set your blocknotify option on either bitcoind's command line or bitcoin.conf's

vh
Hero Member
*****
Offline Offline

Activity: 699
Merit: 666


View Profile
February 10, 2016, 02:44:35 PM
 #168

From ckpool's readme:

Code:
notifier - An application designed to be run with bitcoind's -blocknotify to notify ckpool of block changes.

So you must set your blocknotify option on either bitcoind's command line or bitcoin.conf's

trying it out was my next step.   initially sounded like it applied only in solo mining mode, was unsure if proxy mode get broadcasts from upstream pools.

chiguireitor
Legendary
*
Offline Offline

Activity: 872
Merit: 1010


Coins, Games & Miners


View Profile WWW
February 10, 2016, 02:49:46 PM
 #169

...
trying it out was my next step.   initially sounded like it applied only in solo mining mode, was unsure if proxy mode get broadcasts from upstream pools.

There's a stratum message that just does that, but i doubt ckproxy has a way to handle it from the command line, you could watch the log for the block hash change messages though.

-ck (OP)
Legendary
*
Offline Offline

Activity: 4102
Merit: 1632


Ruu \o/


View Profile WWW
February 10, 2016, 08:29:21 PM
 #170

quick question: do i need to wire the notifier to a bitcoind node to pick up block solve messages from upstream in proxy mode?   trying to read through the stratum protocol docs to understand it a bit more, but thought i'd just ask.
Bitcoind is not used at all in proxy modes except for node mode.

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
Subw
Hero Member
*****
Offline Offline

Activity: 672
Merit: 500


View Profile
February 13, 2016, 11:34:30 PM
 #171

Code:
[2016-02-13 20:44:15.742] Proxy 1:stratum+tcp://stratum.f2pool.com:3333 failed, attempting reconnect
[2016-02-13 20:44:20.742] Proxy 1:stratum+tcp://stratum.f2pool.com:3333 recovered
[2016-02-13 20:57:25.442] Proxy 0:stratum+tcp://sha256.eu.nicehash.com:3334 recovered
[2016-02-13 20:57:25.442] Successfully connected to pool 0 stratum+tcp://sha256.eu.nicehash.com:3334 as proxy
[2016-02-13 20:59:30.354] Proxy 1:stratum+tcp://stratum.f2pool.com:3333 reconnect issue to zombies.f2pool.com:3333, dropping existing connection
[2016-02-13 20:59:30.354] Proxy 1:zombies.f2pool.com:3333 failed, attempting reconnect
[2016-02-13 20:59:35.354] Proxy 1:zombies.f2pool.com:3333 recovered
[2016-02-13 21:01:55.891] Proxy 0:stratum+tcp://sha256.eu.nicehash.com:3334 reconnect issue to stratum+tcp://sha256.eu.nicehash.com:3334, dropping existing connection
[2016-02-13 21:01:55.891] Proxy 0:stratum+tcp://sha256.eu.nicehash.com:3334 failed, attempting reconnect
[2016-02-13 21:01:55.892] Successfully connected to pool 1 zombies.f2pool.com:3333 as proxy
[2016-02-13 21:02:00.892] Proxy 0:stratum+tcp://sha256.eu.nicehash.com:3334 recovered
[2016-02-13 21:02:00.892] Successfully connected to pool 0 stratum+tcp://sha256.eu.nicehash.com:3334 as proxy
[2016-02-13 21:08:56.245] Proxy 0:stratum+tcp://sha256.eu.nicehash.com:3334 failed, attempting reconnect
[2016-02-13 21:08:56.245] Successfully connected to pool 1 zombies.f2pool.com:3333 as proxy
[2016-02-13 21:20:20.762] Proxy 1:zombies.f2pool.com:3333 failed, attempting reconnect
[2016-02-13 21:20:25.763] Proxy 1:zombies.f2pool.com:3333 recovered
[2016-02-13 21:40:31.450] Proxy 1:zombies.f2pool.com:3333 failed, attempting reconnect
[2016-02-13 21:40:36.450] Proxy 1:zombies.f2pool.com:3333 recovered
[2016-02-13 22:01:31.443] Proxy 1:zombies.f2pool.com:3333 failed, attempting reconnect
[2016-02-13 22:01:36.443] Proxy 1:zombies.f2pool.com:3333 recovered
[2016-02-13 22:22:30.755] Proxy 1:zombies.f2pool.com:3333 failed, attempting reconnect
[2016-02-13 22:22:35.755] Proxy 1:zombies.f2pool.com:3333 recovered
[2016-02-13 22:42:48.924] Proxy 1:zombies.f2pool.com:3333 failed, attempting reconnect
[2016-02-13 22:42:53.924] Proxy 1:zombies.f2pool.com:3333 recovered
[2016-02-13 23:03:09.367] Proxy 1:zombies.f2pool.com:3333 failed, attempting reconnect
[2016-02-13 23:03:14.368] Proxy 1:zombies.f2pool.com:3333 recovered
[2016-02-13 23:25:08.741] Proxy 1:zombies.f2pool.com:3333 failed, attempting reconnect
[2016-02-13 23:25:13.741] Proxy 1:zombies.f2pool.com:3333 recovered
[2016-02-13 23:45:31.433] Proxy 1:zombies.f2pool.com:3333 failed, attempting reconnect
[2016-02-13 23:45:36.433] Proxy 1:zombies.f2pool.com:3333 recovered
[2016-02-14 00:06:11.522] Proxy 1:zombies.f2pool.com:3333 failed, attempting reconnect
[2016-02-14 00:06:16.522] Proxy 1:zombies.f2pool.com:3333 recovered
[2016-02-14 00:26:31.409] Proxy 1:zombies.f2pool.com:3333 failed, attempting reconnect
[2016-02-14 00:26:36.409] Proxy 1:zombies.f2pool.com:3333 recovered
[2016-02-14 00:46:48.799] Proxy 1:zombies.f2pool.com:3333 failed, attempting reconnect
[2016-02-14 00:46:53.799] Proxy 1:zombies.f2pool.com:3333 recovered
[2016-02-14 00:57:21.523] Proxy 0:stratum+tcp://sha256.eu.nicehash.com:3334 recovered
[2016-02-14 00:57:21.524] Successfully connected to pool 0 stratum+tcp://sha256.eu.nicehash.com:3334 as proxy
[2016-02-14 01:04:16.722] Proxy 0:stratum+tcp://sha256.eu.nicehash.com:3334 failed, attempting reconnect
[2016-02-14 01:04:16.723] Successfully connected to pool 1 zombies.f2pool.com:3333 as proxy
[2016-02-14 01:08:28.734] Proxy 1:zombies.f2pool.com:3333 failed, attempting reconnect
[2016-02-14 01:08:33.734] Proxy 1:zombies.f2pool.com:3333 recovered
[2016-02-14 01:28:48.041] Proxy 1:zombies.f2pool.com:3333 failed, attempting reconnect
[2016-02-14 01:28:53.041] Proxy 1:zombies.f2pool.com:3333 recovered
[2016-02-14 01:49:08.817] Proxy 1:zombies.f2pool.com:3333 failed, attempting reconnect
[2016-02-14 01:49:13.817] Proxy 1:zombies.f2pool.com:3333 recovered
[2016-02-14 02:09:28.039] Proxy 1:zombies.f2pool.com:3333 failed, attempting reconnect
[2016-02-14 02:09:33.039] Proxy 1:zombies.f2pool.com:3333 recovered

Code:
[2016-02-14 02:36:43.014] ckproxy generator starting
[2016-02-14 02:36:43.015] ckproxy connector starting
[2016-02-14 02:36:43.015] ckproxy connector ready
[2016-02-14 02:36:43.015] ckproxy stratifier starting
[2016-02-14 02:36:43.015] ckproxy stratifier ready
[2016-02-14 02:36:43.517] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 connection established
[2016-02-14 02:36:43.572] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 failed, attempting reconnect
[2016-02-14 02:36:44.025] Successfully connected to pool 0 stratum+tcp://eu-01.miningrigrentals.com:3333 as proxy
[2016-02-14 02:36:44.025] ckproxy generator ready
[2016-02-14 02:36:48.572] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 recovered
[2016-02-14 02:36:48.572] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 failed, attempting reconnect
[2016-02-14 02:36:53.573] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 recovered
[2016-02-14 02:36:53.573] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 failed, attempting reconnect
[2016-02-14 02:36:58.573] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 recovered
[2016-02-14 02:36:58.573] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 failed, attempting reconnect
[2016-02-14 02:37:03.573] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 recovered
[2016-02-14 02:37:03.573] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 failed, attempting reconnect
[2016-02-14 02:37:08.574] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 recovered
[2016-02-14 02:37:08.574] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 failed, attempting reconnect
[2016-02-14 02:37:13.574] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 recovered
[2016-02-14 02:37:13.574] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 failed, attempting reconnect
[2016-02-14 02:37:18.574] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 recovered
[2016-02-14 02:37:18.574] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 failed, attempting reconnect
[2016-02-14 02:37:23.574] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 recovered
[2016-02-14 02:37:23.574] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 failed, attempting reconnect
[2016-02-14 02:37:28.574] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 recovered
[2016-02-14 02:37:28.575] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 failed, attempting reconnect


why do i have so many reconnects? i belive my connection is not a problem here
-ck (OP)
Legendary
*
Offline Offline

Activity: 4102
Merit: 1632


Ruu \o/


View Profile WWW
February 14, 2016, 12:23:33 AM
 #172

Code:
[2016-02-13 20:44:15.742] Proxy 1:stratum+tcp://stratum.f2pool.com:3333 failed, attempting reconnect
[2016-02-13 20:44:20.742] Proxy 1:stratum+tcp://stratum.f2pool.com:3333 recovered
[2016-02-13 20:57:25.442] Proxy 0:stratum+tcp://sha256.eu.nicehash.com:3334 recovered
[2016-02-13 20:57:25.442] Successfully connected to pool 0 stratum+tcp://sha256.eu.nicehash.com:3334 as proxy
[2016-02-13 20:59:30.354] Proxy 1:stratum+tcp://stratum.f2pool.com:3333 reconnect issue to zombies.f2pool.com:3333, dropping existing connection
[2016-02-13 20:59:30.354] Proxy 1:zombies.f2pool.com:3333 failed, attempting reconnect
[2016-02-13 20:59:35.354] Proxy 1:zombies.f2pool.com:3333 recovered
[2016-02-13 21:01:55.891] Proxy 0:stratum+tcp://sha256.eu.nicehash.com:3334 reconnect issue to stratum+tcp://sha256.eu.nicehash.com:3334, dropping existing connection
[2016-02-13 21:01:55.891] Proxy 0:stratum+tcp://sha256.eu.nicehash.com:3334 failed, attempting reconnect
[2016-02-13 21:01:55.892] Successfully connected to pool 1 zombies.f2pool.com:3333 as proxy
[2016-02-13 21:02:00.892] Proxy 0:stratum+tcp://sha256.eu.nicehash.com:3334 recovered
[2016-02-13 21:02:00.892] Successfully connected to pool 0 stratum+tcp://sha256.eu.nicehash.com:3334 as proxy
[2016-02-13 21:08:56.245] Proxy 0:stratum+tcp://sha256.eu.nicehash.com:3334 failed, attempting reconnect
[2016-02-13 21:08:56.245] Successfully connected to pool 1 zombies.f2pool.com:3333 as proxy
[2016-02-13 21:20:20.762] Proxy 1:zombies.f2pool.com:3333 failed, attempting reconnect
[2016-02-13 21:20:25.763] Proxy 1:zombies.f2pool.com:3333 recovered
[2016-02-13 21:40:31.450] Proxy 1:zombies.f2pool.com:3333 failed, attempting reconnect
[2016-02-13 21:40:36.450] Proxy 1:zombies.f2pool.com:3333 recovered
[2016-02-13 22:01:31.443] Proxy 1:zombies.f2pool.com:3333 failed, attempting reconnect
[2016-02-13 22:01:36.443] Proxy 1:zombies.f2pool.com:3333 recovered
[2016-02-13 22:22:30.755] Proxy 1:zombies.f2pool.com:3333 failed, attempting reconnect
[2016-02-13 22:22:35.755] Proxy 1:zombies.f2pool.com:3333 recovered
[2016-02-13 22:42:48.924] Proxy 1:zombies.f2pool.com:3333 failed, attempting reconnect
[2016-02-13 22:42:53.924] Proxy 1:zombies.f2pool.com:3333 recovered
[2016-02-13 23:03:09.367] Proxy 1:zombies.f2pool.com:3333 failed, attempting reconnect
[2016-02-13 23:03:14.368] Proxy 1:zombies.f2pool.com:3333 recovered
[2016-02-13 23:25:08.741] Proxy 1:zombies.f2pool.com:3333 failed, attempting reconnect
[2016-02-13 23:25:13.741] Proxy 1:zombies.f2pool.com:3333 recovered
[2016-02-13 23:45:31.433] Proxy 1:zombies.f2pool.com:3333 failed, attempting reconnect
[2016-02-13 23:45:36.433] Proxy 1:zombies.f2pool.com:3333 recovered
[2016-02-14 00:06:11.522] Proxy 1:zombies.f2pool.com:3333 failed, attempting reconnect
[2016-02-14 00:06:16.522] Proxy 1:zombies.f2pool.com:3333 recovered
[2016-02-14 00:26:31.409] Proxy 1:zombies.f2pool.com:3333 failed, attempting reconnect
[2016-02-14 00:26:36.409] Proxy 1:zombies.f2pool.com:3333 recovered
[2016-02-14 00:46:48.799] Proxy 1:zombies.f2pool.com:3333 failed, attempting reconnect
[2016-02-14 00:46:53.799] Proxy 1:zombies.f2pool.com:3333 recovered
[2016-02-14 00:57:21.523] Proxy 0:stratum+tcp://sha256.eu.nicehash.com:3334 recovered
[2016-02-14 00:57:21.524] Successfully connected to pool 0 stratum+tcp://sha256.eu.nicehash.com:3334 as proxy
[2016-02-14 01:04:16.722] Proxy 0:stratum+tcp://sha256.eu.nicehash.com:3334 failed, attempting reconnect
[2016-02-14 01:04:16.723] Successfully connected to pool 1 zombies.f2pool.com:3333 as proxy
[2016-02-14 01:08:28.734] Proxy 1:zombies.f2pool.com:3333 failed, attempting reconnect
[2016-02-14 01:08:33.734] Proxy 1:zombies.f2pool.com:3333 recovered
[2016-02-14 01:28:48.041] Proxy 1:zombies.f2pool.com:3333 failed, attempting reconnect
[2016-02-14 01:28:53.041] Proxy 1:zombies.f2pool.com:3333 recovered
[2016-02-14 01:49:08.817] Proxy 1:zombies.f2pool.com:3333 failed, attempting reconnect
[2016-02-14 01:49:13.817] Proxy 1:zombies.f2pool.com:3333 recovered
[2016-02-14 02:09:28.039] Proxy 1:zombies.f2pool.com:3333 failed, attempting reconnect
[2016-02-14 02:09:33.039] Proxy 1:zombies.f2pool.com:3333 recovered

Code:
[2016-02-14 02:36:43.014] ckproxy generator starting
[2016-02-14 02:36:43.015] ckproxy connector starting
[2016-02-14 02:36:43.015] ckproxy connector ready
[2016-02-14 02:36:43.015] ckproxy stratifier starting
[2016-02-14 02:36:43.015] ckproxy stratifier ready
[2016-02-14 02:36:43.517] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 connection established
[2016-02-14 02:36:43.572] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 failed, attempting reconnect
[2016-02-14 02:36:44.025] Successfully connected to pool 0 stratum+tcp://eu-01.miningrigrentals.com:3333 as proxy
[2016-02-14 02:36:44.025] ckproxy generator ready
[2016-02-14 02:36:48.572] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 recovered
[2016-02-14 02:36:48.572] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 failed, attempting reconnect
[2016-02-14 02:36:53.573] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 recovered
[2016-02-14 02:36:53.573] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 failed, attempting reconnect
[2016-02-14 02:36:58.573] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 recovered
[2016-02-14 02:36:58.573] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 failed, attempting reconnect
[2016-02-14 02:37:03.573] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 recovered
[2016-02-14 02:37:03.573] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 failed, attempting reconnect
[2016-02-14 02:37:08.574] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 recovered
[2016-02-14 02:37:08.574] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 failed, attempting reconnect
[2016-02-14 02:37:13.574] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 recovered
[2016-02-14 02:37:13.574] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 failed, attempting reconnect
[2016-02-14 02:37:18.574] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 recovered
[2016-02-14 02:37:18.574] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 failed, attempting reconnect
[2016-02-14 02:37:23.574] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 recovered
[2016-02-14 02:37:23.574] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 failed, attempting reconnect
[2016-02-14 02:37:28.574] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 recovered
[2016-02-14 02:37:28.575] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 failed, attempting reconnect


why do i have so many reconnects? i belive my connection is not a problem here
Why blame the code? Your "pools" are disconnecting you, probably because you're idle. They look like they have 5 minute idle timeouts.

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
Subw
Hero Member
*****
Offline Offline

Activity: 672
Merit: 500


View Profile
February 14, 2016, 12:27:31 AM
 #173

true, no miners connected through proxy, but look at a second log it is constant reconnects, no 5 min delays there, it reconnects every 5 seconds
-ck (OP)
Legendary
*
Offline Offline

Activity: 4102
Merit: 1632


Ruu \o/


View Profile WWW
February 14, 2016, 12:34:39 AM
 #174

true, no miners connected through proxy, but look at a second log it is constant reconnects, no 5 min delays there, it reconnects every 5 seconds
I can't speak for what your upstream pools do with your chosen credentials. Try logging in debug mode and you might get more info.

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
Subw
Hero Member
*****
Offline Offline

Activity: 672
Merit: 500


View Profile
February 14, 2016, 12:39:20 AM
 #175

credential are valid i copied them from miner's config.


here is level 7 log:
Code:
sudo ./ckpool --proxy -c ckproxy.conf --loglevel 7
[2016-02-14 03:37:57.104] ckproxy connector starting
[2016-02-14 03:37:57.104] ckproxy connector ready
[2016-02-14 03:37:57.105] ckproxy stratifier starting
[2016-02-14 03:37:57.105] ckproxy generator starting
[2016-02-14 03:37:57.105] ckproxy stratifier ready
[2016-02-14 03:37:57.480] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 connection established
[2016-02-14 03:37:57.536] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 failed, attempting reconnect
[2016-02-14 03:37:58.117] Successfully connected to pool 0 stratum+tcp://eu-01.miningrigrentals.com:3333 as proxy
[2016-02-14 03:37:58.117] ckproxy generator ready
[2016-02-14 03:38:02.536] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 recovered
[2016-02-14 03:38:02.537] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 failed, attempting reconnect
[2016-02-14 03:38:07.537] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 recovered
[2016-02-14 03:38:07.537] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 failed, attempting reconnect
[2016-02-14 03:38:12.537] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 recovered
[2016-02-14 03:38:12.537] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 failed, attempting reconnect
[2016-02-14 03:38:17.537] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 recovered
[2016-02-14 03:38:17.537] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 failed, attempting reconnect
[2016-02-14 03:38:22.538] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 recovered
[2016-02-14 03:38:22.538] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 failed, attempting reconnect
[2016-02-14 03:38:27.538] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 recovered
[2016-02-14 03:38:27.539] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 failed, attempting reconnect
[2016-02-14 03:38:32.539] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 recovered
[2016-02-14 03:38:32.539] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 failed, attempting reconnect
-ck (OP)
Legendary
*
Offline Offline

Activity: 4102
Merit: 1632


Ruu \o/


View Profile WWW
February 14, 2016, 12:42:07 AM
 #176

credential are valid i copied them from miner's config.


here is level 7 log:
Code:
sudo ./ckpool --proxy -c ckproxy.conf --loglevel 7
[2016-02-14 03:37:57.104] ckproxy connector starting
[2016-02-14 03:37:57.104] ckproxy connector ready
[2016-02-14 03:37:57.105] ckproxy stratifier starting
[2016-02-14 03:37:57.105] ckproxy generator starting
[2016-02-14 03:37:57.105] ckproxy stratifier ready
[2016-02-14 03:37:57.480] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 connection established
[2016-02-14 03:37:57.536] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 failed, attempting reconnect
[2016-02-14 03:37:58.117] Successfully connected to pool 0 stratum+tcp://eu-01.miningrigrentals.com:3333 as proxy
[2016-02-14 03:37:58.117] ckproxy generator ready
[2016-02-14 03:38:02.536] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 recovered
[2016-02-14 03:38:02.537] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 failed, attempting reconnect
[2016-02-14 03:38:07.537] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 recovered
[2016-02-14 03:38:07.537] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 failed, attempting reconnect
[2016-02-14 03:38:12.537] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 recovered
[2016-02-14 03:38:12.537] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 failed, attempting reconnect
[2016-02-14 03:38:17.537] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 recovered
[2016-02-14 03:38:17.537] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 failed, attempting reconnect
[2016-02-14 03:38:22.538] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 recovered
[2016-02-14 03:38:22.538] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 failed, attempting reconnect
[2016-02-14 03:38:27.538] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 recovered
[2016-02-14 03:38:27.539] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 failed, attempting reconnect
[2016-02-14 03:38:32.539] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 recovered
[2016-02-14 03:38:32.539] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 failed, attempting reconnect

That's the console output, not the log...

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
Subw
Hero Member
*****
Offline Offline

Activity: 672
Merit: 500


View Profile
February 14, 2016, 12:48:06 AM
 #177

Code:
[2016-02-14 03:46:32.283] Setting maxclients to 921 due to max open file limit of 1024
[2016-02-14 03:46:32.284] ckproxy stratifier starting
[2016-02-14 03:46:32.283] ckproxy connector starting
[2016-02-14 03:46:32.283] ckproxy connector ready
[2016-02-14 03:46:32.284] ckproxy generator starting
[2016-02-14 03:46:32.284] ckproxy stratifier ready
[2016-02-14 03:46:32.283] File /tmp/ckproxy/generator.pid exists
[2016-02-14 03:46:32.283] File /tmp/ckproxy/stratifier.pid exists
[2016-02-14 03:46:32.283] File /tmp/ckproxy/connector.pid exists
[2016-02-14 03:46:32.507] Found notify for new proxy 0:0 with enonce f800002e nonce2len 4
[2016-02-14 03:46:32.507] Got updated subscribe for proxy 0
[2016-02-14 03:46:32.507] Stratifier added new proxy 0
[2016-02-14 03:46:32.507] Upstream pool stratum+tcp://eu-01.miningrigrentals.com:3333 0 extranonce2 length 4, max proxy clients 256
[2016-02-14 03:46:32.657] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 connection established
[2016-02-14 03:46:32.712] Proxy 0:0 stratum+tcp://eu-01.miningrigrentals.com:3333 failed to epoll/read_socket_line in proxy_recv
[2016-02-14 03:46:32.712] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 failed, attempting reconnect
[2016-02-14 03:46:32.923] Found notify for new proxy 0:0 with enonce f800002e nonce2len 4
[2016-02-14 03:46:32.923] Got updated subscribe for proxy 0
[2016-02-14 03:46:32.923] Upstream pool stratum+tcp://eu-01.miningrigrentals.com:3333 0 extranonce2 length 4, max proxy clients 256
[2016-02-14 03:46:33.285] Pool:{"runtime": 1, "lastupdate": 1455410793, "Users": 0, "Workers": 0, "Idle": 0, "Disconnected": 0}
[2016-02-14 03:46:33.285] Pool:{"hashrate1m": "0", "hashrate5m": "0", "hashrate15m": "0", "hashrate1hr": "0", "hashrate6hr": "0", "hashrate1d": "0", "hashrate7d": "0"}
[2016-02-14 03:46:33.285] Pool:{"SPS1m": 0.0, "SPS5m": 0.0, "SPS15m": 0.0, "SPS1h": 0.0}
[2016-02-14 03:46:33.294] Successfully connected to pool 0 stratum+tcp://eu-01.miningrigrentals.com:3333 as proxy
[2016-02-14 03:46:33.295] ckproxy generator ready
[2016-02-14 03:46:37.712] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 recovered
[2016-02-14 03:46:37.713] Proxy 0:0 stratum+tcp://eu-01.miningrigrentals.com:3333 failed to epoll/read_socket_line in proxy_recv
[2016-02-14 03:46:37.713] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 failed, attempting reconnect
[2016-02-14 03:46:37.927] Found notify for new proxy 0:0 with enonce f800002e nonce2len 4
[2016-02-14 03:46:37.927] Got updated subscribe for proxy 0
[2016-02-14 03:46:37.927] Upstream pool stratum+tcp://eu-01.miningrigrentals.com:3333 0 extranonce2 length 4, max proxy clients 256
[2016-02-14 03:46:42.713] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 recovered
[2016-02-14 03:46:42.713] Proxy 0:0 stratum+tcp://eu-01.miningrigrentals.com:3333 failed to epoll/read_socket_line in proxy_recv
[2016-02-14 03:46:42.713] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 failed, attempting reconnect
[2016-02-14 03:46:42.928] Found notify for new proxy 0:0 with enonce f800002e nonce2len 4
[2016-02-14 03:46:42.928] Got updated subscribe for proxy 0
[2016-02-14 03:46:42.928] Upstream pool stratum+tcp://eu-01.miningrigrentals.com:3333 0 extranonce2 length 4, max proxy clients 256
[2016-02-14 03:46:47.713] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 recovered
[2016-02-14 03:46:47.713] Proxy 0:0 stratum+tcp://eu-01.miningrigrentals.com:3333 failed to epoll/read_socket_line in proxy_recv
[2016-02-14 03:46:47.713] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 failed, attempting reconnect
[2016-02-14 03:46:47.922] Found notify for new proxy 0:0 with enonce f800002e nonce2len 4
[2016-02-14 03:46:47.922] Got updated subscribe for proxy 0
[2016-02-14 03:46:47.922] Upstream pool stratum+tcp://eu-01.miningrigrentals.com:3333 0 extranonce2 length 4, max proxy clients 256
[2016-02-14 03:46:52.713] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 recovered
[2016-02-14 03:46:52.713] Proxy 0:0 stratum+tcp://eu-01.miningrigrentals.com:3333 failed to epoll/read_socket_line in proxy_recv
[2016-02-14 03:46:52.713] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 failed, attempting reconnect
[2016-02-14 03:46:52.927] Found notify for new proxy 0:0 with enonce f800002e nonce2len 4
[2016-02-14 03:46:52.928] Got updated subscribe for proxy 0
[2016-02-14 03:46:52.928] Upstream pool stratum+tcp://eu-01.miningrigrentals.com:3333 0 extranonce2 length 4, max proxy clients 256
[2016-02-14 03:46:53.645] Parent process ckproxy received signal 2, shutting down
-ck (OP)
Legendary
*
Offline Offline

Activity: 4102
Merit: 1632


Ruu \o/


View Profile WWW
February 14, 2016, 12:54:07 AM
 #178

Code:
[2016-02-14 03:46:32.283] Setting maxclients to 921 due to max open file limit of 1024
[2016-02-14 03:46:32.284] ckproxy stratifier starting
[2016-02-14 03:46:32.283] ckproxy connector starting
[2016-02-14 03:46:32.283] ckproxy connector ready
[2016-02-14 03:46:32.284] ckproxy generator starting
[2016-02-14 03:46:32.284] ckproxy stratifier ready
[2016-02-14 03:46:32.283] File /tmp/ckproxy/generator.pid exists
[2016-02-14 03:46:32.283] File /tmp/ckproxy/stratifier.pid exists
[2016-02-14 03:46:32.283] File /tmp/ckproxy/connector.pid exists
[2016-02-14 03:46:32.507] Found notify for new proxy 0:0 with enonce f800002e nonce2len 4
[2016-02-14 03:46:32.507] Got updated subscribe for proxy 0
[2016-02-14 03:46:32.507] Stratifier added new proxy 0
[2016-02-14 03:46:32.507] Upstream pool stratum+tcp://eu-01.miningrigrentals.com:3333 0 extranonce2 length 4, max proxy clients 256
[2016-02-14 03:46:32.657] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 connection established
[2016-02-14 03:46:32.712] Proxy 0:0 stratum+tcp://eu-01.miningrigrentals.com:3333 failed to epoll/read_socket_line in proxy_recv
[2016-02-14 03:46:32.712] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 failed, attempting reconnect
[2016-02-14 03:46:32.923] Found notify for new proxy 0:0 with enonce f800002e nonce2len 4
[2016-02-14 03:46:32.923] Got updated subscribe for proxy 0
[2016-02-14 03:46:32.923] Upstream pool stratum+tcp://eu-01.miningrigrentals.com:3333 0 extranonce2 length 4, max proxy clients 256
[2016-02-14 03:46:33.285] Pool:{"runtime": 1, "lastupdate": 1455410793, "Users": 0, "Workers": 0, "Idle": 0, "Disconnected": 0}
[2016-02-14 03:46:33.285] Pool:{"hashrate1m": "0", "hashrate5m": "0", "hashrate15m": "0", "hashrate1hr": "0", "hashrate6hr": "0", "hashrate1d": "0", "hashrate7d": "0"}
[2016-02-14 03:46:33.285] Pool:{"SPS1m": 0.0, "SPS5m": 0.0, "SPS15m": 0.0, "SPS1h": 0.0}
[2016-02-14 03:46:33.294] Successfully connected to pool 0 stratum+tcp://eu-01.miningrigrentals.com:3333 as proxy
[2016-02-14 03:46:33.295] ckproxy generator ready
[2016-02-14 03:46:37.712] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 recovered
[2016-02-14 03:46:37.713] Proxy 0:0 stratum+tcp://eu-01.miningrigrentals.com:3333 failed to epoll/read_socket_line in proxy_recv
[2016-02-14 03:46:37.713] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 failed, attempting reconnect
[2016-02-14 03:46:37.927] Found notify for new proxy 0:0 with enonce f800002e nonce2len 4
[2016-02-14 03:46:37.927] Got updated subscribe for proxy 0
[2016-02-14 03:46:37.927] Upstream pool stratum+tcp://eu-01.miningrigrentals.com:3333 0 extranonce2 length 4, max proxy clients 256
[2016-02-14 03:46:42.713] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 recovered
[2016-02-14 03:46:42.713] Proxy 0:0 stratum+tcp://eu-01.miningrigrentals.com:3333 failed to epoll/read_socket_line in proxy_recv
[2016-02-14 03:46:42.713] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 failed, attempting reconnect
[2016-02-14 03:46:42.928] Found notify for new proxy 0:0 with enonce f800002e nonce2len 4
[2016-02-14 03:46:42.928] Got updated subscribe for proxy 0
[2016-02-14 03:46:42.928] Upstream pool stratum+tcp://eu-01.miningrigrentals.com:3333 0 extranonce2 length 4, max proxy clients 256
[2016-02-14 03:46:47.713] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 recovered
[2016-02-14 03:46:47.713] Proxy 0:0 stratum+tcp://eu-01.miningrigrentals.com:3333 failed to epoll/read_socket_line in proxy_recv
[2016-02-14 03:46:47.713] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 failed, attempting reconnect
[2016-02-14 03:46:47.922] Found notify for new proxy 0:0 with enonce f800002e nonce2len 4
[2016-02-14 03:46:47.922] Got updated subscribe for proxy 0
[2016-02-14 03:46:47.922] Upstream pool stratum+tcp://eu-01.miningrigrentals.com:3333 0 extranonce2 length 4, max proxy clients 256
[2016-02-14 03:46:52.713] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 recovered
[2016-02-14 03:46:52.713] Proxy 0:0 stratum+tcp://eu-01.miningrigrentals.com:3333 failed to epoll/read_socket_line in proxy_recv
[2016-02-14 03:46:52.713] Proxy 0:stratum+tcp://eu-01.miningrigrentals.com:3333 failed, attempting reconnect
[2016-02-14 03:46:52.927] Found notify for new proxy 0:0 with enonce f800002e nonce2len 4
[2016-02-14 03:46:52.928] Got updated subscribe for proxy 0
[2016-02-14 03:46:52.928] Upstream pool stratum+tcp://eu-01.miningrigrentals.com:3333 0 extranonce2 length 4, max proxy clients 256
[2016-02-14 03:46:53.645] Parent process ckproxy received signal 2, shutting down
All I see is lots of disconnects from the upstream pool. Are you using the latest git code? The code is a continual work in progress and it's easy to find a spot where things are broken if you're not careful. Current git is stable though.

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
Subw
Hero Member
*****
Offline Offline

Activity: 672
Merit: 500


View Profile
February 14, 2016, 12:58:47 AM
 #179

yes, latest git version.
i point proxy to sha256.eu.nicehash.com and there is no such disconnects.
but my miners are pointed to eu-01.miningrigrentals.com directly and they are doing fine.

btw is it possible to switch pools in the proxy list on the fly while miners are connected and working?
-ck (OP)
Legendary
*
Offline Offline

Activity: 4102
Merit: 1632


Ruu \o/


View Profile WWW
February 14, 2016, 01:14:49 AM
 #180

yes, latest git version.
i point proxy to sha256.eu.nicehash.com and there is no such disconnects.
but my miners are pointed to eu-01.miningrigrentals.com directly and they are doing fine.

btw is it possible to switch pools in the proxy list on the fly while miners are connected and working?
Not at the moment, no. I suspect it's just some incompatibility with MRR but I can't guess what it might be sorry. Earlier on I had tested with MRR and saw they *always* disconnect idle miners, and additionally they use redirects with reconnects for changes in where the rentals are pointed.

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
Pages: « 1 2 3 4 5 6 7 8 [9] 10 11 12 13 14 15 16 17 18 19 20 21 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!