p2pool / p2pool

Peer-to-peer Bitcoin mining pool
http://p2pool.in/
GNU General Public License v3.0
1.15k stars 1.02k forks source link

Error in DeferredResource handler #138

Open jedimstr opened 11 years ago

jedimstr commented 11 years ago

Every once in awhile I received this large error block. It recovers and continues to work without crashing afterwards, but it is a bit disconcerting:

2013-11-12 13:22:37.948454 > Error in DeferredResource handler:
2013-11-12 13:22:37.948565 > Traceback (most recent call last):
2013-11-12 13:22:37.948609 >   File "/Users/jedimstr/p2pool/p2pool/util/deferred_resource.py", line 24, in render
2013-11-12 13:22:37.948649 >     defer.maybeDeferred(resource.Resource.render, self, request).addCallbacks(finish, finish_error)
2013-11-12 13:22:37.948689 >   File "/Library/Python/2.7/site-packages/Twisted-13.1.0-py2.7-macosx-10.8-intel.egg/twisted/internet/defer.py", line 137, in maybeDeferred
2013-11-12 13:22:37.948728 >     result = f(*args, **kw)
2013-11-12 13:22:37.948770 >   File "/Library/Python/2.7/site-packages/Twisted-13.1.0-py2.7-macosx-10.8-intel.egg/twisted/web/resource.py", line 250, in render
2013-11-12 13:22:37.948809 >     return m(request)
2013-11-12 13:22:37.948846 >   File "/Library/Python/2.7/site-packages/Twisted-13.1.0-py2.7-macosx-10.8-intel.egg/twisted/internet/defer.py", line 1213, in unwindGenerator
2013-11-12 13:22:37.948885 >     return _inlineCallbacks(None, gen, Deferred())
2013-11-12 13:22:37.948922 > --- <exception caught here> ---
2013-11-12 13:22:37.948958 >   File "/Library/Python/2.7/site-packages/Twisted-13.1.0-py2.7-macosx-10.8-intel.egg/twisted/internet/defer.py", line 1070, in _inlineCallbacks
2013-11-12 13:22:37.948996 >     result = g.send(result)
2013-11-12 13:22:37.949033 >   File "/Users/jedimstr/p2pool/p2pool/web.py", line 189, in render_GET
2013-11-12 13:22:37.949069 >     res = yield self.func(*self.args)
2013-11-12 13:22:37.949105 >   File "/Users/jedimstr/p2pool/p2pool/web.py", line 444, in <lambda>
2013-11-12 13:22:37.949179 >     new_root.putChild('graph_data', WebInterface(lambda source, view: hd.datastreams[source].dataviews[view].get_data(time.time())))
2013-11-12 13:22:37.949218 > exceptions.KeyError: 'outgoing_peers'
2013-11-12 13:22:37.950037 > Error in DeferredResource handler:
2013-11-12 13:22:37.950082 > Traceback (most recent call last):
2013-11-12 13:22:37.950119 >   File "/Users/jedimstr/p2pool/p2pool/util/deferred_resource.py", line 24, in render
2013-11-12 13:22:37.950157 >     defer.maybeDeferred(resource.Resource.render, self, request).addCallbacks(finish, finish_error)
2013-11-12 13:22:37.950195 >   File "/Library/Python/2.7/site-packages/Twisted-13.1.0-py2.7-macosx-10.8-intel.egg/twisted/internet/defer.py", line 137, in maybeDeferred
2013-11-12 13:22:37.950234 >     result = f(*args, **kw)
2013-11-12 13:22:37.950271 >   File "/Library/Python/2.7/site-packages/Twisted-13.1.0-py2.7-macosx-10.8-intel.egg/twisted/web/resource.py", line 250, in render
2013-11-12 13:22:37.950309 >     return m(request)
2013-11-12 13:22:37.950346 >   File "/Library/Python/2.7/site-packages/Twisted-13.1.0-py2.7-macosx-10.8-intel.egg/twisted/internet/defer.py", line 1213, in unwindGenerator
2013-11-12 13:22:37.950385 >     return _inlineCallbacks(None, gen, Deferred())
2013-11-12 13:22:37.950421 > --- <exception caught here> ---
2013-11-12 13:22:37.950458 >   File "/Library/Python/2.7/site-packages/Twisted-13.1.0-py2.7-macosx-10.8-intel.egg/twisted/internet/defer.py", line 1070, in _inlineCallbacks
2013-11-12 13:22:37.950496 >     result = g.send(result)
2013-11-12 13:22:37.950532 >   File "/Users/jedimstr/p2pool/p2pool/web.py", line 189, in render_GET
2013-11-12 13:22:37.950568 >     res = yield self.func(*self.args)
2013-11-12 13:22:37.950605 >   File "/Users/jedimstr/p2pool/p2pool/web.py", line 444, in <lambda>
2013-11-12 13:22:37.950641 >     new_root.putChild('graph_data', WebInterface(lambda source, view: hd.datastreams[source].dataviews[view].get_data(time.time())))
2013-11-12 13:22:37.950680 > exceptions.KeyError: 'local_share_hash_rate'
2013-11-12 13:22:37.986647 > Error in DeferredResource handler:
2013-11-12 13:22:37.986757 > Traceback (most recent call last):
2013-11-12 13:22:37.986801 >   File "/Users/jedimstr/p2pool/p2pool/util/deferred_resource.py", line 24, in render
2013-11-12 13:22:37.986843 >     defer.maybeDeferred(resource.Resource.render, self, request).addCallbacks(finish, finish_error)
2013-11-12 13:22:37.986886 >   File "/Library/Python/2.7/site-packages/Twisted-13.1.0-py2.7-macosx-10.8-intel.egg/twisted/internet/defer.py", line 137, in maybeDeferred
2013-11-12 13:22:37.986928 >     result = f(*args, **kw)
2013-11-12 13:22:37.986969 >   File "/Library/Python/2.7/site-packages/Twisted-13.1.0-py2.7-macosx-10.8-intel.egg/twisted/web/resource.py", line 250, in render
2013-11-12 13:22:37.987009 >     return m(request)
2013-11-12 13:22:37.987047 >   File "/Library/Python/2.7/site-packages/Twisted-13.1.0-py2.7-macosx-10.8-intel.egg/twisted/internet/defer.py", line 1213, in unwindGenerator
2013-11-12 13:22:37.987087 >     return _inlineCallbacks(None, gen, Deferred())
2013-11-12 13:22:37.987123 > --- <exception caught here> ---
2013-11-12 13:22:37.987159 >   File "/Library/Python/2.7/site-packages/Twisted-13.1.0-py2.7-macosx-10.8-intel.egg/twisted/internet/defer.py", line 1070, in _inlineCallbacks
2013-11-12 13:22:37.987197 >     result = g.send(result)
2013-11-12 13:22:37.987232 >   File "/Users/jedimstr/p2pool/p2pool/web.py", line 189, in render_GET
2013-11-12 13:22:37.987268 >     res = yield self.func(*self.args)
2013-11-12 13:22:37.987304 >   File "/Users/jedimstr/p2pool/p2pool/web.py", line 444, in <lambda>
2013-11-12 13:22:37.987341 >     new_root.putChild('graph_data', WebInterface(lambda source, view: hd.datastreams[source].dataviews[view].get_data(time.time())))
2013-11-12 13:22:37.987379 > exceptions.KeyError: 'incoming_peers'

This is on a Mac Pro running OSX 10.9 Mavericks.

Rav3nPL commented 11 years ago

You are using extended front end? It is "normal" because of changes in P2pool that are not updated in it. 12 lis 2013 19:29 "Philip De Leon" notifications@github.com napisa³(a):

Every once in awhile I received this large error block. It recovers and continues to work without crashing afterwards, but it is a bit disconcerting:

2013-11-12 13:22:37.948454 > Error in DeferredResource handler: 2013-11-12 13:22:37.948565 > Traceback (most recent call last): 2013-11-12 13:22:37.948609 > File "/Users/jedimstr/p2pool/p2pool/util/deferred_resource.py", line 24, in render 2013-11-12 13:22:37.948649 > defer.maybeDeferred(resource.Resource.render, self, request).addCallbacks(finish, finish_error) 2013-11-12 13:22:37.948689 > File "/Library/Python/2.7/site-packages/Twisted-13.1.0-py2.7-macosx-10.8-intel.egg/twisted/internet/defer.py", line 137, in maybeDeferred 2013-11-12 13:22:37.948728 > result = f(_args, _kw) 2013-11-12 13:22:37.948770 > File "/Library/Python/2.7/site-packages/Twisted-13.1.0-py2.7-macosx-10.8-intel.egg/twisted/web/resource.py", line 250, in render 2013-11-12 13:22:37.948809 > return m(request) 2013-11-12 13:22:37.948846 > File "/Library/Python/2.7/site-packages/Twisted-13.1.0-py2.7-macosx-10.8-intel.egg/twisted/internet/defer.py", line 1213, in unwindGenerator 2013-11-12 13:22:37.948885 > return _inlineCallbacks(None, gen, Deferred()) 2013-11-12 13:22:37.948922 > --- --- 2013-11-12 13:22:37.948958 > File "/Library/Python/2.7/site-packages/Twisted-13.1.0-py2.7-macosx-10.8-intel.egg/twisted/internet/defer.py", line 1070, in _inlineCallbacks 2013-11-12 13:22:37.948996 > result = g.send(result) 2013-11-12 13:22:37.949033 > File "/Users/jedimstr/p2pool/p2pool/web.py", line 189, in render_GET 2013-11-12 13:22:37.949069 > res = yield self.func(_self.args) 2013-11-12 13:22:37.949105 > File "/Users/jedimstr/p2pool/p2pool/web.py", line 444, in 2013-11-12 13:22:37.949179 > new_root.putChild('graph_data', WebInterface(lambda source, view: hd.datastreams[source].dataviews[view].get_data(time.time()))) 2013-11-12 13:22:37.949218 > exceptions.KeyError: 'outgoing_peers' 2013-11-12 13:22:37.950037 > Error in DeferredResource handler: 2013-11-12 13:22:37.950082 > Traceback (most recent call last): 2013-11-12 13:22:37.950119 > File "/Users/jedimstr/p2pool/p2pool/util/deferred_resource.py", line 24, in render 2013-11-12 13:22:37.950157 > defer.maybeDeferred(resource.Resource.render, self, request).addCallbacks(finish, finish_error) 2013-11-12 13:22:37.950195 > File "/Library/Python/2.7/site-packages/Twisted-13.1.0-py2.7-macosx-10.8-intel.egg/twisted/internet/defer.py", line 137, in maybeDeferred 2013-11-12 13:22:37.950234 > result = f(_args, _kw) 2013-11-12 13:22:37.950271 > File "/Library/Python/2.7/site-packages/Twisted-13.1.0-py2.7-macosx-10.8-intel.egg/twisted/web/resource.py", line 250, in render 2013-11-12 13:22:37.950309 > return m(request) 2013-11-12 13:22:37.950346 > File "/Library/Python/2.7/site-packages/Twisted-13.1.0-py2.7-macosx-10.8-intel.egg/twisted/internet/defer.py", line 1213, in unwindGenerator 2013-11-12 13:22:37.950385 > return _inlineCallbacks(None, gen, Deferred()) 2013-11-12 13:22:37.950421 > --- --- 2013-11-12 13:22:37.950458 > File "/Library/Python/2.7/site-packages/Twisted-13.1.0-py2.7-macosx-10.8-intel.egg/twisted/internet/defer.py", line 1070, in _inlineCallbacks 2013-11-12 13:22:37.950496 > result = g.send(result) 2013-11-12 13:22:37.950532 > File "/Users/jedimstr/p2pool/p2pool/web.py", line 189, in render_GET 2013-11-12 13:22:37.950568 > res = yield self.func(_self.args) 2013-11-12 13:22:37.950605 > File "/Users/jedimstr/p2pool/p2pool/web.py", line 444, in 2013-11-12 13:22:37.950641 > new_root.putChild('graph_data', WebInterface(lambda source, view: hd.datastreams[source].dataviews[view].get_data(time.time()))) 2013-11-12 13:22:37.950680 > exceptions.KeyError: 'local_share_hash_rate' 2013-11-12 13:22:37.986647 > Error in DeferredResource handler: 2013-11-12 13:22:37.986757 > Traceback (most recent call last): 2013-11-12 13:22:37.986801 > File "/Users/jedimstr/p2pool/p2pool/util/deferred_resource.py", line 24, in render 2013-11-12 13:22:37.986843 > defer.maybeDeferred(resource.Resource.render, self, request).addCallbacks(finish, finish_error) 2013-11-12 13:22:37.986886 > File "/Library/Python/2.7/site-packages/Twisted-13.1.0-py2.7-macosx-10.8-intel.egg/twisted/internet/defer.py", line 137, in maybeDeferred 2013-11-12 13:22:37.986928 > result = f(_args, _kw) 2013-11-12 13:22:37.986969 > File "/Library/Python/2.7/site-packages/Twisted-13.1.0-py2.7-macosx-10.8-intel.egg/twisted/web/resource.py", line 250, in render 2013-11-12 13:22:37.987009 > return m(request) 2013-11-12 13:22:37.987047 > File "/Library/Python/2.7/site-packages/Twisted-13.1.0-py2.7-macosx-10.8-intel.egg/twisted/internet/defer.py", line 1213, in unwindGenerator 2013-11-12 13:22:37.987087 > return _inlineCallbacks(None, gen, Deferred()) 2013-11-12 13:22:37.987123 > --- --- 2013-11-12 13:22:37.987159 > File "/Library/Python/2.7/site-packages/Twisted-13.1.0-py2.7-macosx-10.8-intel.egg/twisted/internet/defer.py", line 1070, in _inlineCallbacks 2013-11-12 13:22:37.987197 > result = g.send(result) 2013-11-12 13:22:37.987232 > File "/Users/jedimstr/p2pool/p2pool/web.py", line 189, in render_GET 2013-11-12 13:22:37.987268 > res = yield self.func(self.args) 2013-11-12 13:22:37.987304 > File "/Users/jedimstr/p2pool/p2pool/web.py", line 444, in 2013-11-12 13:22:37.987341 > new_root.putChild('graph_data', WebInterface(lambda source, view: hd.datastreams[source].dataviews[view].get_data(time.time()))) 2013-11-12 13:22:37.987379 > exceptions.KeyError: 'incoming_peers'

Reply to this email directly or view it on GitHubhttps://github.com/forrestv/p2pool/issues/138 .

jedimstr commented 11 years ago

Thanks, yes, I'm using the extended front end. I'll open up an issue on their git-hub repository. Unfortunately they don't seem very active with the last commit from months and months ago.

Rav3nPL commented 11 years ago

Issue opened some time ago... 12 lis 2013 20:05 "Philip De Leon" notifications@github.com napisa³(a):

Thanks, yes, I'm using the extended front end. I'll open up an issue on their git-hub repository. Unfortunately they don't seem very active with the last commit from months and months ago.

Reply to this email directly or view it on GitHubhttps://github.com/forrestv/p2pool/issues/138#issuecomment-28322660 .

int03h commented 11 years ago

what can we do to encourage the dev to fix it ? I love the extended front end.

buzztiaan commented 10 years ago

I have fixed these errors in https://github.com/buzztiaan/P2PoolExtendedFrontEnd Enjoy

jedimstr commented 10 years ago

Thanks Buzztiaan... using your fork of the ExtendedFrontEnd now (with some visual tweaks). Any idea why Memory Usage graph doesn't work when running P2Pool on a Mac?

buzztiaan commented 10 years ago

sorry, i dont have a mac :)

j0nny55555 commented 10 years ago

Would you know how to limit connecting wallet addresses and how to block one permanently? We have someone we a suspecting to be running a botnet mining against us. Also, it appeared as if someone was using out p2pool as a reflection ddos attack. Are there further python hardening techniques?