Bitcoin Forum
December 08, 2016, 06:21:28 AM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: « 1 ... 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 [139] 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 ... 205 »
  Print  
Author Topic: bitHopper: Python Pool Hopper Proxy  (Read 332912 times)
cirz8
Jr. Member
*
Offline Offline

Activity: 42


View Profile
August 07, 2011, 12:17:49 PM
 #2761

Not sure if it's a bug or what it is, but if you start bitHopper from some other directory using a command like this

Code: (How to trigger)
cd / && /home/user/bithopper/bin/bitHopper/bitHopper.py --scheduler=AltSliceScheduler
Code: (reply from http://localhost:8337/stats)
web.Server Traceback (most recent call last):
<type 'exceptions.IOError'>: [Errno 2] No such file or directory: 'index-altslice.html'

/usr/lib/python2.6/dist-packages/twisted/web/server.py, line 125 in process
123    try:
124      resrc = self.site.getResourceFor(self)
125      self.render(resrc)
126    except:
Self
site
twisted.web.server.Site instance @ 0x96d45cc
<twisted.web.server.Site instance at 0x96d45cc>
Locals
resrc
website.dynamicSite instance @ 0x995f74c
<website.dynamicSite instance at 0x995f74c>
self
twisted.web.server.Request instance @ 0x995f38c
<GET /stats HTTP/1.1>
/usr/lib/python2.6/dist-packages/twisted/web/server.py, line 132 in render
130  def render(self, resrc):
131    try:
132      body = resrc.render(self)
133    except UnsupportedMethod, e:
Locals
resrc
website.dynamicSite instance @ 0x995f74c
<website.dynamicSite instance at 0x995f74c>
self
twisted.web.server.Request instance @ 0x995f38c
<GET /stats HTTP/1.1>
Globals
UnsupportedMethod <class 'twisted.web.error.UnsupportedMethod'>
/usr/lib/python2.6/dist-packages/twisted/web/resource.py, line 210 in render
208      from twisted.web.error import UnsupportedMethod
209      raise UnsupportedMethod(getattr(self, 'allowedMethods', ()))
210    return m(request)
211
Locals
m <bound method dynamicSite.render_GET of <website.dynamicSite instance at 0x995f74c>>
self
website.dynamicSite instance @ 0x995f74c
<website.dynamicSite instance at 0x995f74c>
request
twisted.web.server.Request instance @ 0x995f38c
<GET /stats HTTP/1.1>
/home/user/bithopper/bin/bitHopper/website.py, line 57 in render_GET
55    except:
56     index = index_name
57    file = open(index, 'r')
58    linestring = file.read()
Locals
index 'index-altslice.html'
index_name 'index-altslice.html'
<type 'exceptions.IOError'>: [Errno 2] No such file or directory: 'index-altslice.html'

Code: (what the shell says)
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/twisted/protocols/basic.py", line 251, in dataReceived
    why = self.lineReceived(line)
  File "/usr/lib/python2.6/dist-packages/twisted/web/http.py", line 1573, in lineReceived
    self.allContentReceived()
  File "/usr/lib/python2.6/dist-packages/twisted/web/http.py", line 1641, in allContentReceived
    req.requestReceived(command, path, version)
  File "/usr/lib/python2.6/dist-packages/twisted/web/http.py", line 807, in requestReceived
    self.process()
--- <exception caught here> ---
  File "/usr/lib/python2.6/dist-packages/twisted/web/server.py", line 125, in process
    self.render(resrc)
  File "/usr/lib/python2.6/dist-packages/twisted/web/server.py", line 132, in render
    body = resrc.render(self)
  File "/usr/lib/python2.6/dist-packages/twisted/web/resource.py", line 210, in render
    return m(request)
  File "/home/user/bithopper/bin/bitHopper/website.py", line 57, in render_GET
    file = open(index, 'r')
exceptions.IOError: [Errno 2] No such file or directory: 'index-altslice.html'

Other than the non-working web-page, the hopper works as intended.

Mandatory?  123ABCcirz8CcieVh9UwThEX2vkoJF33Te
1481178088
Hero Member
*
Offline Offline

Posts: 1481178088

View Profile Personal Message (Offline)

Ignore
1481178088
Reply with quote  #2

1481178088
Report to moderator
1481178088
Hero Member
*
Offline Offline

Posts: 1481178088

View Profile Personal Message (Offline)

Ignore
1481178088
Reply with quote  #2

1481178088
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481178088
Hero Member
*
Offline Offline

Posts: 1481178088

View Profile Personal Message (Offline)

Ignore
1481178088
Reply with quote  #2

1481178088
Report to moderator
1481178088
Hero Member
*
Offline Offline

Posts: 1481178088

View Profile Personal Message (Offline)

Ignore
1481178088
Reply with quote  #2

1481178088
Report to moderator
paraipan
Legendary
*
Offline Offline

Activity: 924


Firstbits: 1pirata


View Profile WWW
August 07, 2011, 12:32:34 PM
 #2762

cirz8 you could try changing to bH dir before launching it, like this:

Code:
cd /home/user/bithopper/bin/bitHopper/ && ./bitHopper.py --scheduler=AltSliceScheduler

absolute path detection it's not enabled for all the bH files like the html pages

BTCitcoin: An Idea Worth Saving - Q&A with bitcoins on rugatu.com - Check my rep
cirz8
Jr. Member
*
Offline Offline

Activity: 42


View Profile
August 07, 2011, 12:42:38 PM
 #2763

That's what I'm doing since that is the only way to make it work as intended.

Is there something that would prohibit an absolute path detection to be implemented on all files?

Mandatory?  123ABCcirz8CcieVh9UwThEX2vkoJF33Te
paraipan
Legendary
*
Offline Offline

Activity: 924


Firstbits: 1pirata


View Profile WWW
August 07, 2011, 12:53:44 PM
 #2764

That's what I'm doing since that is the only way to make it work as intended.

Is there something that would prohibit an absolute path detection to be implemented on all files?

hehe nope, nothing and no one prohibits that but atm is not really a priority and this behavior is considered somehow normal for allot of programs and scripts, you're welcome to contribute on this project if you like  Cheesy

BTCitcoin: An Idea Worth Saving - Q&A with bitcoins on rugatu.com - Check my rep
cirz8
Jr. Member
*
Offline Offline

Activity: 42


View Profile
August 07, 2011, 01:25:27 PM
 #2765

Ok, first time coding(not really, I'm a cut/paste master) python  Shocked
Seems to work, someone with knowledge please verify logic  Roll Eyes

Code:
--- website.py.orig     2011-08-07 14:53:03.106954661 +0200
+++ website.py.new      2011-08-07 15:21:38.006454500 +0200
@@ -53,7 +53,7 @@ class dynamicSite(resource.Resource):
                 application_path = os.path.dirname(__file__)
           index = parser.read(os.path.join(application_path, index_name))
         except:
-          index = index_name
+          index = os.path.join(application_path, index_name)
         file = open(index, 'r')
         linestring = file.read()
         file.close

Mandatory?  123ABCcirz8CcieVh9UwThEX2vkoJF33Te
ewibit
Legendary
*
Offline Offline

Activity: 1745


View Profile
August 07, 2011, 01:25:54 PM
 #2766

cgminer has a really cool way to change pools while mining so I switched manually to bitclocker. It gives me few connection errors here an there but shares are submitted and I get new work.
ok now I have done it like you and manually switched in cgminer to pool and I have lower Reject ratio
Code:
Pool: http://pool.bitclockers.com:8332/
 Queued work requests: 220
 Share submissions: 212
 Accepted shares: 208
 Rejected shares: 4
 Reject ratio: 1.9
 Efficiency (accepted / queued): 95%
 Discarded work due to new blocks: 1
 Stale submissions discarded due to new blocks: 17
 Unable to get work from server occasions: 0
 Submitting work remotely delay occasions: 16
MaGNeT
Legendary
*
Offline Offline

Activity: 1050


Founder of Orlycoin | O RLY? YA RLY!


View Profile WWW
August 07, 2011, 01:31:48 PM
 #2767

There's not much to hop right now  Grin

That gave me the time to put bitHopper on each of my 3 rigs.
Now I can experiment with it a bit more and would be a problem with one rig, the others are still hopping Tongue
muyoso
Member
**
Offline Offline

Activity: 84



View Profile
August 07, 2011, 01:55:40 PM
 #2768

Regarding the bitclocker issues: I don't think they slow down or disturb hoppers connections. Their server is just totally overloaded or in any other way can't handle things.
is this the reason too that I have <= 3% rejected and bithopper always disconnects from bitclocker?

Yep, that is the reason it always disconnects from bitclockers. Right now they appear to be completely down to me.

Then why does cherrypicker hop them flawlessly with .4% stales?  Its obviously an issue with the way bithopper works.

I drink it up!
MaGNeT
Legendary
*
Offline Offline

Activity: 1050


Founder of Orlycoin | O RLY? YA RLY!


View Profile WWW
August 07, 2011, 02:00:35 PM
 #2769

When bitHopper is mining on a pool and there is a problem, why does it hop to the backup pool while there's another pool available?
I'm using altslice.
burp
Member
**
Offline Offline

Activity: 98


View Profile
August 07, 2011, 02:02:58 PM
 #2770

By the way: kiwipool has an API now https://kiwipoolme1.appspot.com/api
MaGNeT
Legendary
*
Offline Offline

Activity: 1050


Founder of Orlycoin | O RLY? YA RLY!


View Profile WWW
August 07, 2011, 02:13:26 PM
 #2771

Experimented a bit with "mine" and "mine_slush" setting for Slush pool:

setting: "mine"  -         7197    2011-08-07 13:55:57    0:28:23    756490    0.03079831    139980    99 confirmations left
setting: "mine"  -         7173    2011-08-06 17:54:24    0:36:02    973207    0.07741029    139872    confirmed
setting: "mine"  -         7172    2011-08-06 17:18:22    0:29:47    800452    0.07217588    139869    confirmed

setting "mine_slush" -   7193    2011-08-07 08:58:18    0:39:06    1027781    0.00533275    139950    69 confirmations left
setting "mine_slush" -   7189    2011-08-07 07:59:48    0:29:45    791033    0.00554819    139938    57 confirmations left
setting "mine_slush" -   7181    2011-08-07 03:21:55    0:32:52    856621    0.00898394    139919    38 confirmations left

If I see those scores after testing, why use "mine_slush"  Huh

Detail: I always have 1 card @ 120Mhash/s pointed to the same worker @ Slush.

MaGNeT
Legendary
*
Offline Offline

Activity: 1050


Founder of Orlycoin | O RLY? YA RLY!


View Profile WWW
August 07, 2011, 02:22:43 PM
 #2772

By the way: kiwipool has an API now https://kiwipoolme1.appspot.com/api

Nice!
Now, how can we make it hop ready? Tongue
creativex
Sr. Member
****
Offline Offline

Activity: 420



View Profile
August 07, 2011, 02:36:56 PM
 #2773

When bitHopper is mining on a pool and there is a problem, why does it hop to the backup pool while there's another pool available?
I'm using altslice.

If you have a slice assigned to a pool and the pool gets disabled your slicer gets "trapped" and switches to backup when all other slices are emptied. Switching the offending pool to disable or info briefly and then back on releases the trapped slices. We need a way to free those slices without user intervention when slices are assigned to a pool that goes down.

https://bitcointalk.org/index.php?topic=130982.msg1401799#msg1401799 - [BTC-TC]bASIC-MINING
http://forum.litecoin.net/index.php/topic,886.0.html - [LTC-GLOBAL]LTC-DMF
http://forum.litecoin.net/index.php/topic,817.msg3279.html#msg3279 - [CRYPTOSTOCKS]AGLTC

BTC: 1Hfp99tugY4H5FYEoM3hj4JDLzShzZ9ifB

You have zero chance of changing others and only a slim chance at changing yourself. Be the change you want to see and others may follow.
MaGNeT
Legendary
*
Offline Offline

Activity: 1050


Founder of Orlycoin | O RLY? YA RLY!


View Profile WWW
August 07, 2011, 02:38:10 PM
 #2774

When bitHopper is mining on a pool and there is a problem, why does it hop to the backup pool while there's another pool available?
I'm using altslice.

If you have a slice assigned to a pool and the pool gets disabled your slicer gets "trapped" and switches to backup when all other slices are emptied. Switching the offending pool to disable or info briefly and then back on releases the trapped slices. We need a way to free those slices without user intervention when slices are assigned to a pool that goes down.

Yeah, you're right. I don't like to babysit all the time  Grin
cirz8
Jr. Member
*
Offline Offline

Activity: 42


View Profile
August 07, 2011, 02:44:58 PM
 #2775

If you have a slice assigned to a pool and the pool gets disabled your slicer gets "trapped" and switches to backup when all other slices are emptied. Switching the offending pool to disable or info briefly and then back on releases the trapped slices. We need a way to free those slices without user intervention when slices are assigned to a pool that goes down.
Nice find.
Fix should be a priority

Mandatory?  123ABCcirz8CcieVh9UwThEX2vkoJF33Te
EskimoBob
Legendary
*
Offline Offline

Activity: 910


Quality Printing Services by Federal Reserve Bank


View Profile
August 07, 2011, 03:15:31 PM
 #2776

If you have a slice assigned to a pool and the pool gets disabled your slicer gets "trapped" and switches to backup when all other slices are emptied. Switching the offending pool to disable or info briefly and then back on releases the trapped slices. We need a way to free those slices without user intervention when slices are assigned to a pool that goes down.
Nice find.
Fix should be a priority

Fixing the overactive and hyper switching is probably going to eliminate this problem too. I almost sure that 96% of those "SERVER DOWN! SWITCH NOW!" bitHopper panic attacks are false.  Did any of you test cirz8 simple fix (https://bitcointalk.org/index.php?topic=26866.msg437231#msg437231) ?
I am not a programmer but it looks logical to me Smiley 

While reading what I wrote, use the most friendliest and relaxing voice in your head.
BTW, Things in BTC bubble universes are getting ugly....
EskimoBob
Legendary
*
Offline Offline

Activity: 910


Quality Printing Services by Federal Reserve Bank


View Profile
August 07, 2011, 03:23:16 PM
 #2777

cgminer has a really cool way to change pools while mining so I switched manually to bitclocker. It gives me few connection errors here an there but shares are submitted and I get new work.

Code:
... 14:59:56] Accepted 479df52a GPU 0 thread 0 pool 8
[2011-08-07 15:00:02] Accepted 259ced85 GPU 0 thread 1 pool 8
[2011-08-07 15:00:10] Pool 8 communication failure, caching submissions
[2011-08-07 15:00:10] Stale share detected, discarding


BitHopper script is too hysterical about minor connection issues and switches pools way too often for no serious reason.


Yeah, that is the issue. As soon as bitHopper gets an empty/invalid getwork reply or hits a timeout it switches the pool. Not sure if this is the correct spot, but something like this might work:

Code:
iff --git a/work.py b/work.py
index 34330b2..9b23a6b 100644
--- a/work.py
+++ b/work.py
@@ -126,10 +126,10 @@ def jsonrpc_getwork(agent, server, data, j_id, request, bitHopper):
     work = None
     while work == None:
         i += 1
-        if data == [] and i > 1:
+        if data == [] and i > 4:
             server = bitHopper.get_new_server(server)
         try:
-            if i > 4:
+            if i > 8:
                 time.sleep(0.1)
             work = yield jsonrpc_call(agent, server,data,bitHopper)
         except Exception, e:

I patched my work.py and also changed  time.sleep(0.1) ->  time.sleep(0.2)  #not sure about that Smiley


BTW, BitMinersUnion.org is fucking with stats. (I did forget to dump those guys from my cfg file)  

While reading what I wrote, use the most friendliest and relaxing voice in your head.
BTW, Things in BTC bubble universes are getting ugly....
MaGNeT
Legendary
*
Offline Offline

Activity: 1050


Founder of Orlycoin | O RLY? YA RLY!


View Profile WWW
August 07, 2011, 03:44:28 PM
 #2778

cgminer has a really cool way to change pools while mining so I switched manually to bitclocker. It gives me few connection errors here an there but shares are submitted and I get new work.

Code:
... 14:59:56] Accepted 479df52a GPU 0 thread 0 pool 8
[2011-08-07 15:00:02] Accepted 259ced85 GPU 0 thread 1 pool 8
[2011-08-07 15:00:10] Pool 8 communication failure, caching submissions
[2011-08-07 15:00:10] Stale share detected, discarding


BitHopper script is too hysterical about minor connection issues and switches pools way too often for no serious reason.


BTW, BitMinersUnion.org is fucking with stats. (I did forget to dump those guys from my cfg file)  


Yup, when I add up their Top 10 hashers they did at least 2,016,514 shares this round, while stats are saying 569,533  Grin
user7516
Jr. Member
*
Offline Offline

Activity: 41


View Profile
August 07, 2011, 04:10:09 PM
 #2779

Nice!
Now, how can we make it hop ready? Tongue
Tried to add this pool, but this:
Code:
[kiwipool]
name: KiwiPool.me
mine_address: pool2.kiwipool.me:8332
api_address: http://www.kiwipool.me/json/%(kiwipool_apikey)s
api_method: json
api_key: total_round_shares
url: https://kiwipoolme1.appspot.com/

[kiwipool]
#Russian pool
#https://kiwipoolme1.appspot.com/
role: mine
kiwipool_apikey: gxnkwrusjtzxerhgeqzqndjicoxcukps
user: user
pass: any
is not working
creativex
Sr. Member
****
Offline Offline

Activity: 420



View Profile
August 07, 2011, 04:46:51 PM
 #2780

BTW, BitMinersUnion.org is fucking with stats. (I did forget to dump those guys from my cfg file)

Yeah they keep resetting to around 30%. Least they took the negative round estimates down.

https://bitcointalk.org/index.php?topic=130982.msg1401799#msg1401799 - [BTC-TC]bASIC-MINING
http://forum.litecoin.net/index.php/topic,886.0.html - [LTC-GLOBAL]LTC-DMF
http://forum.litecoin.net/index.php/topic,817.msg3279.html#msg3279 - [CRYPTOSTOCKS]AGLTC

BTC: 1Hfp99tugY4H5FYEoM3hj4JDLzShzZ9ifB

You have zero chance of changing others and only a slim chance at changing yourself. Be the change you want to see and others may follow.
Pages: « 1 ... 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 [139] 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 ... 205 »
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!