Welcome to the Dash Forum!

Please sign up to discuss the most innovative cryptocurrency!

Running p2p pool connecting to darkcoind

Discussion in 'Questions and Help' started by mattmct, Sep 28, 2014.

  1. mattmct

    mattmct Member

    Joined:
    Mar 13, 2014
    Messages:
    259
    Likes Received:
    92
    Trophy Points:
    88
    Hey guys,

    I have been running http://x11p2p.com:7903/static/ for the past few months, it's one of the most popular p2pools, normally with 200MH/s to 600Mh/s most of the time.

    I Finally got around to updating to RC5.

    Looks like that's running fine. But when I now start up the p2pool software, it's having connection problems.

    2014-09-28 15:29:20.408618 p2pool (version fac408d-dirty)
    2014-09-28 15:29:20.408759
    2014-09-28 15:29:20.408871 Testing bitcoind RPC connection to 'http://127.0.0.1:9998/' with username 'random_user_namedfgkre'...
    2014-09-28 15:29:20.460310 ...success!
    2014-09-28 15:29:20.460391 Current block hash: 1466cb2e2f32ea8df0074baadb9d0d9c19c33ca5603aeec42b4b0
    2014-09-28 15:29:20.460461 Current block height: 143856
    2014-09-28 15:29:20.460535
    2014-09-28 15:29:20.460615 Testing bitcoind P2P connection to '127.0.0.1:9999'...
    2014-09-28 15:29:25.460879 ...taking a while. Common reasons for this include all of bitcoind's connection slots being used...

    This is what I get.

    darkcoind has 8 connections currently. darkcoin.conf has 100 max connections set, so I'm not sure what the problem is.

    Was there a new p2pool software released?
     
  2. flare

    flare Administrator
    Dash Core Team Moderator

    Joined:
    May 18, 2014
    Messages:
    2,287
    Likes Received:
    2,406
    Trophy Points:
    1,183
    I have no experience with P2Pool, but did you already try to delete peers.dat in your .darkcoin folder? Maybe your darkcoind just banned your p2p-pool from connecting :)
     
    • Like Like x 1
  3. DrkMiner

    DrkMiner Member

    Joined:
    Jun 7, 2014
    Messages:
    204
    Likes Received:
    63
    Trophy Points:
    88
    Yes, 59502b0-dirty is the latest.

    you are running

    2014-09-28 15:29:20.408618 p2pool (version fac408d-dirty)
     
    • Like Like x 1
  4. mattmct

    mattmct Member

    Joined:
    Mar 13, 2014
    Messages:
    259
    Likes Received:
    92
    Trophy Points:
    88
    Ahhh. Where can this be found? Thanks

    This is one thing I hope we can improve on. Small things like this. I did do a quick search but didn't find anything usefil.
     
  5. DrkMiner

    DrkMiner Member

    Joined:
    Jun 7, 2014
    Messages:
    204
    Likes Received:
    63
    Trophy Points:
    88
    • Like Like x 2
  6. mattmct

    mattmct Member

    Joined:
    Mar 13, 2014
    Messages:
    259
    Likes Received:
    92
    Trophy Points:
    88
  7. mattmct

    mattmct Member

    Joined:
    Mar 13, 2014
    Messages:
    259
    Likes Received:
    92
    Trophy Points:
    88
    Annnnnnnnd it's up. Many thanks DrkMiner
     
  8. DrkMiner

    DrkMiner Member

    Joined:
    Jun 7, 2014
    Messages:
    204
    Likes Received:
    63
    Trophy Points:
    88
    Glad I could help!

    With the latest version I had a problem of open files. Just increase the limit to fix it.
     
    • Like Like x 1
  9. tungfa

    tungfa Administrator
    Dash Core Team Foundation Member Masternode Owner/Operator Moderator

    Joined:
    Apr 9, 2014
    Messages:
    8,950
    Likes Received:
    6,730
    Trophy Points:
    1,283
  10. thelazier

    thelazier Active Member

    Joined:
    Jan 5, 2015
    Messages:
    240
    Likes Received:
    184
    Trophy Points:
    103
    Dash Address:
    Xreiza1qGJMT5BpW6BDtRJqwtcBSxGwWYN
    Dear tungfa,
    Please use latest p2pool from
    1. https://github.com/vertoe/p2pool-drk
    2. https://github.com/vertoe/darkcoin_hash
    3. https://github.com/vertoe/darkcoin_subsidy
    as vertoe created in https://darkcointalk.org/threads/p2pool-repository-and-python-modules.3380/
     
    • Like Like x 2
  11. tungfa

    tungfa Administrator
    Dash Core Team Foundation Member Masternode Owner/Operator Moderator

    Joined:
    Apr 9, 2014
    Messages:
    8,950
    Likes Received:
    6,730
    Trophy Points:
    1,283
    • Like Like x 1
  12. tungfa

    tungfa Administrator
    Dash Core Team Foundation Member Masternode Owner/Operator Moderator

    Joined:
    Apr 9, 2014
    Messages:
    8,950
    Likes Received:
    6,730
    Trophy Points:
    1,283
    sorry me again

    that guy trying to set up p2pool sais
    (any pointers please):

    for p2pool-drk
    running on ubuntu
    two things
    it seems to require to be run as sudo
    and
    I can't get it past this: [email protected]:~/p2pool-drk$ sudo python run_p2pool.py
    2015-02-16 18:38:39.454235 p2pool (version 81fc6c5)
    2015-02-16 18:38:39.454615
    2015-02-16 18:38:39.454873 Testing bitcoind RPC connection to 'http://127.0.0.1:9998/' with username 'darkcoinrpc'...
    2015-02-16 18:38:39.492830 ...success!
    2015-02-16 18:38:39.493390 Current block hash: 45d93736342f443e72ef69969dd97cb0c09eb56ad5735ba37ad6e
    2015-02-16 18:38:39.493605 Current block height: 221049
    2015-02-16 18:38:39.493747
    2015-02-16 18:38:39.493901 Testing bitcoind P2P connection to '127.0.0.1:9999'...
    2015-02-16 18:38:44.494319 ...taking a while. Common reasons for this include all of bitcoind's connection slots being used...
    2015-02-16 18:45:43.691448 RECV inv 0105000000f1b12886650b7d8a71a5546b5bf15d5c66 851e11e90d07a639cc737c92bbf558
    2015-02-16 18:45:43.812638 > Error handling message: (see RECV line)
    2015-02-16 18:45:43.812797 > Traceback (most recent call last):
    2015-02-16 18:45:43.812851 > File "/usr/lib/python2.7/dist-packages/twisted/in ternet/tcp.py", line 215, in doRead
    2015-02-16 18:45:43.812891 > return self._dataReceived(data)
    2015-02-16 18:45:43.812925 > File "/usr/lib/python2.7/dist-packages/twisted/in ternet/tcp.py", line 221, in _dataReceived
    2015-02-16 18:45:43.812959 > rval = self.protocol.dataReceived(data)
    2015-02-16 18:45:43.812997 > File "/home/darkcoin/p2pool-drk/p2pool/util/p2pro tocol.py", line 27, in dataReceived
    2015-02-16 18:45:43.813041 > self.dataReceived2(data)
    2015-02-16 18:45:43.813098 > File "/home/darkcoin/p2pool-drk/p2pool/util/datac hunker.py", line 40, in _DataChunker
    2015-02-16 18:45:43.813154 > wants = receiver.send(buf.get(wants))
    2015-02-16 18:45:43.813192 > —- <exception caught here> —-
    2015-02-16 18:45:43.813225 > File "/home/darkcoin/p2pool-drk/p2pool/util/p2pro tocol.py", line 57, in dataReceiver
    2015-02-16 18:45:43.813256 > self.packetReceived(command, type_.unpack(paylo ad, self.ignore_trailing_payload))
    2015-02-16 18:45:43.814064 > File "/home/darkcoin/p2pool-drk/p2pool/util/pack. py", line 63, in unpack
    2015-02-16 18:45:43.814105 > obj = self._unpack(data, ignore_trailing)
    2015-02-16 18:45:43.814137 > File "/home/darkcoin/p2pool-drk/p2pool/util/pack. py", line 42, in _unpack
    2015-02-16 18:45:43.814168 > obj, (data2, pos) = self.read((data, 0))
    2015-02-16 18:45:43.814198 > File "/home/darkcoin/p2pool-drk/p2pool/util/pack. py", line 295, in read
    2015-02-16 18:45:43.814230 > item[key], file = type_.read(file)
    2015-02-16 18:45:43.814260 > File "/home/darkcoin/p2pool-drk/p2pool/util/pack. py", line 171, in read
    2015-02-16 18:45:43.814291 > res, file = self.type.read(file)
    2015-02-16 18:45:43.814321 > File "/home/darkcoin/p2pool-drk/p2pool/util/pack. py", line 295, in read
    2015-02-16 18:45:43.814352 > item[key], file = type_.read(file)
    2015-02-16 18:45:43.814382 > File "/home/darkcoin/p2pool-drk/p2pool/util/pack. py", line 151, in read
    2015-02-16 18:45:43.814413 > raise ValueError('enum data (%r) not in pack_to _unpack (%r)' % (data, self.pack_to_unpack))
    2015-02-16 18:45:43.814445 > exceptions.ValueError: enum data (5) not in pack_to _unpack ({1: 'tx', 2: 'block'})
    This is the error i keep on getting
     
  13. thelazier

    thelazier Active Member

    Joined:
    Jan 5, 2015
    Messages:
    240
    Likes Received:
    184
    Trophy Points:
    103
    Dash Address:
    Xreiza1qGJMT5BpW6BDtRJqwtcBSxGwWYN
    Since I'm running a p2pool server, here is my pointers
    - no need for sudo , sudo only for install python modules.
    - 2015-02-16 18:38:44.494319 ...taking a while. Common reasons for this include all of bitcoind's connection slots being used...
    This is about checking darkcoind 's param , listen=1 and maxconnections value.
    - Other error from RECV inv ....
    I currently ignore this error, the server still keep running fine just drop connection everytime from this error. ( I fixed my code to just ignore this error and not disconnect)
     
    • Like Like x 1
  14. mr.slaveg

    mr.slaveg Member

    Joined:
    Nov 26, 2014
    Messages:
    140
    Likes Received:
    45
    Trophy Points:
    78
    • Like Like x 3
  15. mr.slaveg

    mr.slaveg Member

    Joined:
    Nov 26, 2014
    Messages:
    140
    Likes Received:
    45
    Trophy Points:
    78
    2015-02-16 18:45:43.814413 > raise ValueError('enum data (%r) not in pack_to _unpack (%r)' % (data, self.pack_to_unpack))
    2015-02-16 18:45:43.814445 > exceptions.ValueError: enum data (5) not in pack_to _unpack ({1: 'tx', 2: 'block'})

    This is the error i keep on getting
    https://darkcointalk.org/threads/nekorrektnye-bloki.3949/#post-41842
     
    • Like Like x 1
  16. vertoe

    vertoe Three of Nine

    Joined:
    Mar 28, 2014
    Messages:
    2,573
    Likes Received:
    1,652
    Trophy Points:
    1,283
    • Like Like x 3
  17. tungfa

    tungfa Administrator
    Dash Core Team Foundation Member Masternode Owner/Operator Moderator

    Joined:
    Apr 9, 2014
    Messages:
    8,950
    Likes Received:
    6,730
    Trophy Points:
    1,283