So I am trying to get stratum working on my server. However, I cannot seem to get around this problem.
Clients can connect but get disconnected immediately. I suspect it has to do with: "***** Is service_repository missing? Add service_repository module to your python path!"
Anyone know what I am doing wrong?
The poster of answer that leads to the solution will be sent the 50 DigitalCoins
# twistd -ny launcher.tac
----------------
Custom settings:
ADMIN_PASSWORD_SHA256 : ********
SIGNING_ID : stratum.mypool.com
THREAD_POOL_SIZE : 100
BITCOIN_TRUSTED_PORT : 9999
HOSTNAME : xx.xx.xx.xx
BITCOIN_TRUSTED_USER : bitcoinrpc
SIGNING_KEY : signing_key.pem
LISTEN_WS_TRANSPORT : None
DATABASE_DBNAME : pooltest
LISTEN_WSS_TRANSPORT : None
BITCOIN_TRUSTED_PASSWORD : ********
DATABASE_DRIVER : MySQLdb
DATABASE_PASSWORD : ********
IRC_HOSTNAME : xx.xx.xx.xx
LOGFILE : stratum.log
DATABASE_HOST : localhost
DATABASE_USER : pooluser
----------------
2013-05-23 17:05:12,258 DEBUG example logger.get_logger # Logging initialized
2013-05-23 17:05:12,288 DEBUG stats logger.get_logger # Logging initialized
2013-05-23 17:05:12,289 DEBUG protocol logger.get_logger # Logging initialized
2013-05-23 17:05:12,289 DEBUG socket_transport logger.get_logger # Logging initialized
2013-05-23 17:05:12,292 DEBUG http_transport logger.get_logger # Logging initialized
2013-05-23 17:05:12,296 DEBUG irc logger.get_logger # Logging initialized
***** Is service_repository missing? Add service_repository module to your python path!
2013-05-23 17:05:12+0930 [-] Log opened.
2013-05-23 17:05:12+0930 [-] twistd 13.0.0 (/usr/bin/python 2.6.6) starting up.
2013-05-23 17:05:12+0930 [-] reactor class: twisted.internet.epollreactor.EPollReactor.
2013-05-23 17:05:12+0930 [-] SocketTransportFactory starting on 3333
2013-05-23 17:05:12+0930 [-] Starting factory
2013-05-23 17:05:12+0930 [-] Site starting on 8000
2013-05-23 17:05:12+0930 [-] Starting factory
2013-05-23 17:05:12+0930 [-] Site (TLS) starting on 8001
2013-05-23 17:05:12+0930 [-] heartbeat
2013-05-23 17:08:33,909 INFO stats stats.print_stats # 1 peers connected, state changed 1 times
2013-05-23 17:08:33,909 DEBUG protocol protocol.connectionMade # Connected xx.xx.xx.xx
2013-05-23 17:08:33,912 DEBUG protocol protocol.lineReceived # > {u'params': [u'cgminer/3.1.1'], u'id': 30, u'method': u'mining.subscribe'}
2013-05-23 17:08:34,287 INFO stats stats.print_stats # 0 peers connected, state changed 1 times
2013-05-23 17:08:34,658 INFO stats stats.print_stats # 1 peers connected, state changed 1 times
2013-05-23 17:08:34,659 DEBUG protocol protocol.connectionMade # Connected xx.xx.xx.xx
2013-05-23 17:08:34,661 DEBUG protocol protocol.lineReceived # > {u'params': [], u'id': 31, u'method': u'mining.subscribe'}
2013-05-23 17:08:35,030 INFO stats stats.print_stats # 0 peers connected, state changed 1 times