Author

Topic: stratum-mining rpc connection problem? (Read 2547 times)

sr. member
Activity: 412
Merit: 250
January 23, 2014, 05:33:12 AM
#3
How you solve this error?
[HTTPPageGetter,client] Stopping factory http://localhost:9335>

newbie
Activity: 6
Merit: 0
Hm, I actually don't see any error in the log you pasted. But some points: rpc login shouldn't be the same as rpc password afaik; format *.*.*.* for rpc allow ip I see for the first time -- are you sure this is how it ought to be?
newbie
Activity: 19
Merit: 0
I use https://github.com/viperaus/stratum-mining and I can't connect to server.

Server output:
Quote
oot@pool:/opt/stratum-mining# twistd -ny launcher.tac -l -
----------------
Custom settings:
LITECOIN_TRUSTED_PASSWORD : ********
LISTEN_WSS_TRANSPORT : None
DATABASE_USER : pool
MEMCACHE_HOST : localhost:11211
THREAD_POOL_SIZE : 300
INSTANCE_ID : 31
LISTEN_WS_TRANSPORT : None
CENTRAL_WALLET : LLxLbccF2BTpQHB5A6cM1dcNDLGXwTceSn
LOGFILE : stratum.log
DATABASE_HOST : localhost
LISTEN_HTTP_TRANSPORT : None
MEMC_AUTH_TIMEOUT : 900
LITECOIN_TRUSTED_USER : pool
PREVHASH_REFRESH_INTERVAL : 5
LISTEN_HTTPS_TRANSPORT : None
LITECOIN_TRUSTED_HOST : localhost
ADMIN_PASSWORD_SHA256 : ********
LITECOIN_TRUSTED_PORT : 9332
HOSTNAME : localhost
DATABASE_DBNAME : pool
COINBASE_EXTRAS : /stratum/
DATABASE_PASSWORD : ********
MERKLE_REFRESH_INTERVAL : 60
----------------
2013-05-17 22:43:39,677 DEBUG example logger.get_logger # Logging initialized
2013-05-17 22:43:39,785 DEBUG interfaces logger.get_logger # Logging initialized
2013-05-17 22:43:39,787 DEBUG subscription logger.get_logger # Logging initialized
2013-05-17 22:43:39,792 DEBUG mining logger.get_logger # Logging initialized
2013-05-17 22:43:39,803 DEBUG block_updater logger.get_logger # Logging initialized
2013-05-17 22:43:39,812 DEBUG template_registry logger.get_logger # Logging initialized
2013-05-17 22:43:40,005 DEBUG bitcoin_rpc logger.get_logger # Logging initialized
2013-05-17 22:43:40,024 DEBUG halfnode logger.get_logger # Logging initialized
2013-05-17 22:43:40,030 DEBUG coinbaser logger.get_logger # Logging initialized
2013-05-17 22:43:40,043 DEBUG mining logger.get_logger # Logging initialized
2013-05-17 22:43:40,051 INFO mining __init__.setup # Waiting for litecoind RPC...
2013-05-17 22:43:40+0200 [-] Log opened.
2013-05-17 22:43:40+0200 [-] twistd 12.0.0 (/usr/bin/python 2.7.3) starting up.
2013-05-17 22:43:40+0200 [-] reactor class: twisted.internet.epollreactor.EPollReactor.
2013-05-17 22:43:41+0200 [HTTPPageGetter,client] Starting factory http://localhost:9332>
2013-05-17 22:43:41+0200 [HTTPPageGetter,client] Stopping factory http://localhost:9332>
2013-05-17 22:43:42+0200 [HTTPPageGetter,client] Starting factory http://localhost:9332>
2013-05-17 22:43:42+0200 [HTTPPageGetter,client] Stopping factory http://localhost:9332>
2013-05-17 22:43:43+0200 [HTTPPageGetter,client] Starting factory http://localhost:9332>
^C2013-05-17 22:43:53+0200 [HTTPPageGetter,client] Received SIGINT, shutting down.
2013-05-17 22:43:53+0200 [HTTPPageGetter,client] Starting factory http://localhost:9332>
2013-05-17 22:43:53+0200 [HTTPPageGetter,client] Stopping factory http://localhost:9332>
2013-05-17 22:43:53+0200 [-] Main loop terminated.
2013-05-17 22:43:53+0200 [-] Server Shut Down.

config.py:
Code:
'''
This is example configuration for Stratum server.
Please rename it to settings.py and fill correct values.
'''

# ******************** GENERAL SETTINGS ***************

# Enable some verbose debug (logging requests and responses).
# Turn this off once ready to go live  -  True|False
DEBUG = True

# Destination for application logs, files rotated once per day.
# log in current directory - ensure log directory exists
LOGDIR = 'log/'

# Main application log file.
LOGFILE = 'stratum.log'

# Possible values: DEBUG, INFO, WARNING, ERROR, CRITICAL
# Turn this to INFO once ready to go live
LOGLEVEL = 'DEBUG'

# How many threads use for synchronous methods (services).
# 30 is enough for small installation, for real usage
# it should be slightly more, say 100-300.
THREAD_POOL_SIZE = 300


#Not sure what this is.. lol
ENABLE_EXAMPLE_SERVICE = True

# ******************** TRANSPORTS *********************
# Hostname or external IP to expose
HOSTNAME = 'localhost'

# Port used for Socket transport. Use 'None' for disabling the transport.
LISTEN_SOCKET_TRANSPORT = 3333

# Port used for HTTP Poll transport. Use 'None' for disabling the transport
LISTEN_HTTP_TRANSPORT = None

# Port used for HTTPS Poll transport
LISTEN_HTTPS_TRANSPORT = None

# Port used for WebSocket transport, 'None' for disabling WS
LISTEN_WS_TRANSPORT = None

# Port used for secure WebSocket, 'None' for disabling WSS
LISTEN_WSS_TRANSPORT = None

# Hostname and credentials for one trusted Bitcoin node ("Satoshi's client").
# Stratum uses both P2P port (which is 8333 already) and RPC port
#update this information - user/password from ~/.litecoin/litecoin.conf
LITECOIN_TRUSTED_HOST = 'localhost'
LITECOIN_TRUSTED_PORT = 9332
LITECOIN_TRUSTED_USER = 'sannin'
LITECOIN_TRUSTED_PASSWORD = 'sannin'

# Use "echo -n '' | sha256sum | cut -f1 -d' ' "
# for calculating SHA256 of your preferred password
ADMIN_PASSWORD_SHA256 = NONE
#ADMIN_PASSWORD_SHA256 = '9e6c0c1db1e0dfb3fa5159deb4ecd9715b3c8cd6b06bd4a3ad77e9a8c5694219' # SHA256 of the password

IRC_NICK = None

# MYSQL connection details

DATABASE_HOST = 'localhost'
DATABASE_DBNAME = 'sannin'
DATABASE_USER = 'sannin'
DATABASE_PASSWORD = 'sannin'

# Memcache server host and port
MEMCACHE_HOST = 'localhost:11211'

# Memcache authorization timeout - in seconds
MEMC_AUTH_TIMEOUT = 900


# Pool related settings
# to get central_wallet address: bitcoind/litecoind getaccountaddress ""

INSTANCE_ID = 31
CENTRAL_WALLET = 'LLxLbccF2BTpQHB5A6cM1dcNDLGXwTceSn'
PREVHASH_REFRESH_INTERVAL = 5 # in sec
MERKLE_REFRESH_INTERVAL = 60 # How often check memorypool
COINBASE_EXTRAS = '/stratum/'

litecoin.conf:
Code:
rpcuser=sannin
rpcpassword=sannin
rpcport=9332
rpcallowip=*.*.*.*
rpctimeout=30

port=9333
server=1
daemon=1
gen=0

Anyone help me?
Jump to: