Bitcoin Forum
June 16, 2024, 04:19:43 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: P2POOL/Twisted Error on Miner Login  (Read 2792 times)
pwalker0863 (OP)
Newbie
*
Offline Offline

Activity: 14
Merit: 0


View Profile
February 25, 2015, 02:18:40 AM
 #1

Would appreciate whatever info could be provided.  I am running p2pool on a Fedora 21 server, and I have built p2pool per the instructions and have started it performing bitcoin mining and when my miner (Antminer S5) tries logging in, this is the error I get.  Can anyone lend a hand??  Thanks in advance!!


015-02-24 21:07:16.968106 > Squelched JSON error:
2015-02-24 21:07:16.968312 > Traceback (most recent call last):
2015-02-24 21:07:16.968395 >   File "/usr/lib64/python2.7/site-packages/twisted/protocols/basic.py", line 454, in dataReceived
2015-02-24 21:07:16.968472 >     self.lineReceived(line)
2015-02-24 21:07:16.968543 >   File "/home/miner/p2pool/p2pool/util/jsonrpc.py", line 164, in lineReceived
2015-02-24 21:07:16.968613 >     _handle(line, self, response_handler=self._matcher.got_response).addCallback(lambda line2: self.sendLine(line2) if line2 is not None else None)
2015-02-24 21:07:16.968689 >   File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 1237, in unwindGenerator
2015-02-24 21:07:16.968760 >     return _inlineCallbacks(None, gen, Deferred())
2015-02-24 21:07:16.968830 >   File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 1099, in _inlineCallbacks
2015-02-24 21:07:16.968902 >     result = g.send(result)
2015-02-24 21:07:16.968970 > --- <exception caught here> ---
2015-02-24 21:07:16.969038 >   File "/home/miner/p2pool/p2pool/util/jsonrpc.py", line 85, in _handle
2015-02-24 21:07:16.969123 >     result = yield method_meth(*list(preargs) + list(params))
2015-02-24 21:07:16.969193 >   File "/home/miner/p2pool/p2pool/bitcoin/stratum.py", line 36, in rpc_authorize
2015-02-24 21:07:16.969263 >     if self._authentication(username, password, ''):
2015-02-24 21:07:16.969330 >   File "/home/miner/p2pool/p2pool/bitcoin/stratum.py", line 45, in _authentication
2015-02-24 21:07:16.969398 >     userWorker = config.dbService.checkAuthentication(username, password, ip)
2015-02-24 21:07:16.969488 > exceptions.AttributeError: 'dict' object has no attribute 'checkAuthentication'
2015-02-24 21:07:22.026620 > Squelched JSON error:
2015-02-24 21:07:22.026826 > Traceback (most recent call last):
2015-02-24 21:07:22.026908 >   File "/usr/lib64/python2.7/site-packages/twisted/protocols/basic.py", line 454, in dataReceived
2015-02-24 21:07:22.026981 >     self.lineReceived(line)
2015-02-24 21:07:22.027054 >   File "/home/miner/p2pool/p2pool/util/jsonrpc.py", line 164, in lineReceived
2015-02-24 21:07:22.027148 >     _handle(line, self, response_handler=self._matcher.got_response).addCallback(lambda line2: self.sendLine(line2) if line2 is not None else None)
2015-02-24 21:07:22.027225 >   File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 1237, in unwindGenerator
2015-02-24 21:07:22.027295 >     return _inlineCallbacks(None, gen, Deferred())
2015-02-24 21:07:22.027363 >   File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 1099, in _inlineCallbacks
2015-02-24 21:07:22.027434 >     result = g.send(result)
2015-02-24 21:07:22.027503 > --- <exception caught here> ---
2015-02-24 21:07:22.027570 >   File "/home/miner/p2pool/p2pool/util/jsonrpc.py", line 85, in _handle
2015-02-24 21:07:22.027637 >     result = yield method_meth(*list(preargs) + list(params))
2015-02-24 21:07:22.027706 >   File "/home/miner/p2pool/p2pool/bitcoin/stratum.py", line 36, in rpc_authorize
2015-02-24 21:07:22.027775 >     if self._authentication(username, password, ''):
2015-02-24 21:07:22.027842 >   File "/home/miner/p2pool/p2pool/bitcoin/stratum.py", line 45, in _authentication
2015-02-24 21:07:22.027910 >     userWorker = config.dbService.checkAuthentication(username, password, ip)
2015-02-24 21:07:22.027977 > exceptions.AttributeError: 'dict' object has no attribute 'checkAuthentication'
2015-02-24 21:07:23.502433 Peer sent entire transaction 96d17a86cc1d91501f89d3d657c768fc79b080fb0629f83ed859d3d8e5a9cf91 that was already received
2015-02-24 21:07:27.093284 > Squelched JSON error:
2015-02-24 21:07:27.094539 > Traceback (most recent call last):
2015-02-24 21:07:27.094713 >   File "/usr/lib64/python2.7/site-packages/twisted/protocols/basic.py", line 454, in dataReceived
2015-02-24 21:07:27.094793 >     self.lineReceived(line)
2015-02-24 21:07:27.094866 >   File "/home/miner/p2pool/p2pool/util/jsonrpc.py", line 164, in lineReceived
2015-02-24 21:07:27.094940 >     _handle(line, self, response_handler=self._matcher.got_response).addCallback(lambda line2: self.sendLine(line2) if line2 is not None else None)
2015-02-24 21:07:27.095019 >   File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 1237, in unwindGenerator
2015-02-24 21:07:27.095117 >     return _inlineCallbacks(None, gen, Deferred())
2015-02-24 21:07:27.095186 >   File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 1099, in _inlineCallbacks
2015-02-24 21:07:27.095261 >     result = g.send(result)
2015-02-24 21:07:27.095326 > --- <exception caught here> ---
2015-02-24 21:07:27.095421 >   File "/home/miner/p2pool/p2pool/util/jsonrpc.py", line 85, in _handle
2015-02-24 21:07:27.095497 >     result = yield method_meth(*list(preargs) + list(params))
2015-02-24 21:07:27.095565 >   File "/home/miner/p2pool/p2pool/bitcoin/stratum.py", line 36, in rpc_authorize
2015-02-24 21:07:27.095636 >     if self._authentication(username, password, ''):
2015-02-24 21:07:27.095703 >   File "/home/miner/p2pool/p2pool/bitcoin/stratum.py", line 45, in _authentication
2015-02-24 21:07:27.095773 >     userWorker = config.dbService.checkAuthentication(username, password, ip)
2015-02-24 21:07:27.095839 > exceptions.AttributeError: 'dict' object has no attribute 'checkAuthentication'
2015-02-24 21:07:28.838734 P2Pool: 17563 shares in chain (10223 verified/17568 total) Peers: 6 (0 incoming)
2015-02-24 21:07:28.838921  Local: 0H/s in last 0.0 seconds Local dead on arrival: Huh Expected time to share: Huh
2015-02-24 21:07:28.838979  Shares: 0 (0 orphan, 0 dead) Stale rate: Huh Efficiency: Huh Current payout: 0.0000 BTC
2015-02-24 21:07:28.839041  Pool: 1277TH/s Stale rate: 10.4% Expected time to block: 1.8 days
2015-02-24 21:07:32.150554 > Squelched JSON error:
2015-02-24 21:07:32.150719 > Traceback (most recent call last):
2015-02-24 21:07:32.150767 >   File "/usr/lib64/python2.7/site-packages/twisted/protocols/basic.py", line 454, in dataReceived
2015-02-24 21:07:32.150811 >     self.lineReceived(line)
2015-02-24 21:07:32.150848 >   File "/home/miner/p2pool/p2pool/util/jsonrpc.py", line 164, in lineReceived
2015-02-24 21:07:32.150886 >     _handle(line, self, response_handler=self._matcher.got_response).addCallback(lambda line2: self.sendLine(line2) if line2 is not None else None)
2015-02-24 21:07:32.150927 >   File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 1237, in unwindGenerator
2015-02-24 21:07:32.150968 >     return _inlineCallbacks(None, gen, Deferred())
2015-02-24 21:07:32.151005 >   File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 1099, in _inlineCallbacks
2015-02-24 21:07:32.151043 >     result = g.send(result)
2015-02-24 21:07:32.151108 > --- <exception caught here> ---
2015-02-24 21:07:32.151146 >   File "/home/miner/p2pool/p2pool/util/jsonrpc.py", line 85, in _handle
2015-02-24 21:07:32.151183 >     result = yield method_meth(*list(preargs) + list(params))
2015-02-24 21:07:32.151223 >   File "/home/miner/p2pool/p2pool/bitcoin/stratum.py", line 36, in rpc_authorize
2015-02-24 21:07:32.151259 >     if self._authentication(username, password, ''):
2015-02-24 21:07:32.151295 >   File "/home/miner/p2pool/p2pool/bitcoin/stratum.py", line 45, in _authentication
2015-02-24 21:07:32.151330 >     userWorker = config.dbService.checkAuthentication(username, password, ip)
zvs
Legendary
*
Offline Offline

Activity: 1680
Merit: 1000


https://web.archive.org/web/*/nogleg.com


View Profile WWW
February 25, 2015, 02:32:30 AM
 #2

newer version of cgminer?
pwalker0863 (OP)
Newbie
*
Offline Offline

Activity: 14
Merit: 0


View Profile
February 25, 2015, 02:54:37 AM
 #3

newer version of cgminer?

Thanks for the response - I would have thought that bitminers would have come with 'latest' code on them.  Is this a common occurrence?

cr1776
Legendary
*
Offline Offline

Activity: 4060
Merit: 1303


View Profile
February 25, 2015, 06:03:07 PM
 #4

A couple of questions:
1. Is your bitcoind fully synched?
2. If you want to try it on a different node to see if it is on the client side, you can try pointing it to mine.p2pool.com (see www.p2pool.com for the full info).
3. Can you post what you are using to run it?  (minus your username and password of course).
4. You have python-twisted python-twisted-web installed?

Those are a few things I'd check first.  ;-)
pwalker0863 (OP)
Newbie
*
Offline Offline

Activity: 14
Merit: 0


View Profile
February 25, 2015, 07:17:17 PM
 #5

A couple of questions:
1. Is your bitcoind fully synched?
2. If you want to try it on a different node to see if it is on the client side, you can try pointing it to mine.p2pool.com (see www.p2pool.com for the full info).
3. Can you post what you are using to run it?  (minus your username and password of course).
4. You have python-twisted python-twisted-web installed?

Those are a few things I'd check first.  ;-)

Thanks for responding! Yeah, I know what you mean about checking the basics, but yes, bitcoind is fully sync'd
2.  I'll give it a shot once I finish this
3.  Here is the conf and commandline:

### bitcoin.conf configuration file. Lines beginning with # are comments.
### Uncomment and edit options you wish to use.

## JSON-RPC options (for controlling a running bitcoin-qt/bitcoind process)

# server=1 tells Bitcoin to accept JSON-RPC commands.
server=1
listen=1
daemon=1

# You must set rpcuser and rpcpassword to secure the JSON-RPC api
# You should create your own new random password.
# The username and password MUST NOT be the same.

rpcuser=mylogin
rpcpassword=mypassword

# How many seconds bitcoin will wait for a complete RPC HTTP request
# after the HTTP connection is established.
rpctimeout=30

# By default, only RPC connections from localhost are allowed. Specify
# as many rpcallowip= settings as you like to allow connections from
# other hosts (and you may use * as a wildcard character):
rpcallowip=127.0.0.1
rpcallowip=192.168.0.0/255.255.255.0

# Listen for RPC connections on this TCP port:
rpcport=8332

# You can use bitcoind to send commands to bitcoin-qt/bitcoind
# running on another host using this option:
rpcconnect=127.0.0.1
rpcconnect=192.168.0.14
# Use Secure Sockets Layer (also known as TLS or HTTPS) to communicate
# with Bitcoin -server or bitcoind
#rpcssl=1

# OpenSSL settings used when rpcssl=1
#rpcsslciphers=TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH
#rpcsslcertificatechainfile=server.cert
#rpcsslprivatekeyfile=server.pem


## Network-related settings:

# Run on the test network instead of the real bitcoin network.
#testnet=1

# Connect via a socks proxy
#proxy=127.0.0.1:9050

# Select the version of socks proxy to use (4-5, default: 5)
#socks=5

# Use proxy to reach tor hidden services (default: same as -proxy)
#tor=         

##############################################################
## Quick Primer on addnode vs connect ##
## Let's say for instance you use addnode=4.2.2.4 ##
## addnode will connect you to and tell you about the ##
## nodes connected to 4.2.2.4. In addition it will tell##
## the other nodes connected to it that you exist so ##
## they can connect to you. ##
## connect will not do the above when you 'connect' to it.##
## It will *only* connect you to 4.2.2.4 and no one else.##
## ##
## So if you're behind a firewall, or have other problems ##
## finding nodes, add some using 'addnode'. ##
## ##
## If you want to stay private, use 'connect' to only ##
## connect to "trusted" nodes. ##
## ##
## If you run multiple nodes on a LAN, there's no need for##
## all of them to open lots of connections. Instead ##
## 'connect' them all to one node that is port forwarded ##
## and has lots of connections. ##
## Thanks goes to [Noodle] on Freenode. ##
##############################################################

# Use as many addnode= settings as you like to attempt connection to specific peers
#addnode=69.164.218.197
#addnode=10.0.0.2:8333

# or use as many connect= settings as you like to connect ONLY to specific peers:
#connect=69.164.218.197
#connect=192.168.1.20:8333

# Do not use Internet Relay Chat to find peers.
noirc=0

# Maximum number of inbound+outbound connections.
maxconnections=125

# Miscellaneous options

# Pre-generate this many public/private key pairs, so wallet backups will be valid
# after future transactions.
keypool=100

# Add an optional transaction fee every time you send bitcoins.
paytxfee=0.01

# Add timestamps to debug.log
logtimestamps=1         


# User interface options

# Start Bitcoin minimized
#min=1

# Minimize to the system tray
gen=1
minimizetotray=0
maxblocksize=1000000

_______________________________________________________________________________ ___________________

/usr/local/bin/bitcoind -disablewallet
cd "/home/miner/p2pool"
python run_p2pool.py --give-author .001 --net bitcoin --bitcoind-config-path /home/miner/.bitcoind -a [external wallet address] -f 0

4.  Yes.  Python-twisted and twisted-web are installed

Thanks again for your help!


cr1776
Legendary
*
Offline Offline

Activity: 4060
Merit: 1303


View Profile
February 26, 2015, 11:29:11 AM
 #6

Hi,
You can definitely connect to bitcoind/bitcoin-cli via the command line?
e.g.
bitcoin-cli getinfo

(I'm asking because I see the authentication errors)


That is the main question I'd have next.  :-)
pwalker0863 (OP)
Newbie
*
Offline Offline

Activity: 14
Merit: 0


View Profile
February 27, 2015, 12:36:15 AM
 #7

 Smiley  No worries.  Yes.  I can log into the bitcoind process - actually watch'ing the getinfo command and seeing updates.
Rabinovitch
Legendary
*
Offline Offline

Activity: 2030
Merit: 1076


BTCLife.global participant


View Profile
March 02, 2015, 09:46:21 AM
 #8

Do not forget to forward some ports to PC where you are trying to deploy a node in your router's settings:

Quote
8333/tcp - Bitcoin Wallet Node Port - For communicating with other nodes.  Forward this port to allow inbound wallet connections.  This is not required, but recommended to fully participate in the Bitcoin network.

9332/tcp - Bitcoin P2Pool miner and web interface port.  Forward this port if you want to allow other miners to mine on your node.  And forward if you want to check your statistics (access web page) from outside your LAN.
9333/tcp - Bitcoin P2Pool node port.  Forward this port to allow inbound connections from other P2Pool nodes.  This is not required, but recommended to fully participate in the P2Pool network.

From Siberia with love! Hosting by Rabinovitch!
Fundraising for BOINC Farm
Пpoфeccиoнaльнo зaнимaюcь paзвёpтывaниeм фepм (ASIC, GPU, BURST, STORJ, Filecoin), oбopyдoвaниeм пoмeщeний для мaйнингa.
Pages: [1]
  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!