Author

Topic: Issue with Stratum .. Any Help would be greatly Appreciated. (Read 2778 times)

member
Activity: 63
Merit: 10
i am also stuck in same place as you trying to setup ports for litecoim MPOS pool, i dont have any clue as to what ports to set in the config files, have you had any luck
member
Activity: 112
Merit: 10
The blockchain has now been fully downloaded and I still get the issue.

There seems to be a problem with Litecoin Daemon
My Litecoin RPC port is setup on Port 19334

When I look at Netstat I am seeing a lot of TIME_WAITS for this port. Im talking 20 or 30.

tcp6       0      0 127.0.0.1:19334         127.0.0.1:53045         TIME_WAIT  
tcp6       0      0 127.0.0.1:19334         127.0.0.1:54750         TIME_WAIT  
tcp6       0      0 127.0.0.1:19334         127.0.0.1:54732         TIME_WAIT  
tcp6       0      0 127.0.0.1:19334         127.0.0.1:53841         TIME_WAIT  
tcp6       0      0 127.0.0.1:19334         127.0.0.1:55356         TIME_WAIT  
tcp6       0      0 127.0.0.1:19334         127.0.0.1:55517         TIME_WAIT  


When I look at stratum log I see stratum is telling me its waiting for Litecoin RPC. This is the last entry in the log

2013-06-13 19:25:34,352 DEBUG coinbaser logger.get_logger # Logging initialized
2013-06-13 19:25:34,352 DEBUG mining logger.get_logger # Logging initialized
2013-06-13 19:25:34,352 INFO mining __init__.setup # Waiting for litecoind RPC..


Very strange.  Ports are also the same in all config files

more config/server.json|grep rpc

 "rpc.url" : "http://127.0.0.1:19334/",
  "rpc.user" : "username",
  "rpc.pass" : "password",
  "rpc.target.bits" : 21,


more /var/www/mmcfe-ng/public/include/config/global.inc.php|grep 19334
    'host' => 'localhost:19334',


more /stratum-mining/conf/config.py |grep LITECOIN
LITECOIN_TRUSTED_HOST = 'localhost'
LITECOIN_TRUSTED_PORT = 19334
LITECOIN_TRUSTED_USER = 'username'
LITECOIN_TRUSTED_PASSWORD = 'password'


more litecoin.conf|grep rpc
# You must set rpcuser and rpcpassword to secure the JSON-RPC api
rpcuser=username
rpcpassword=password
#rpctimeout=30
# as many rpcallowip= settings as you like to allow connections from
#rpcallowip=10.1.1.34
rpcallowip=*.*.*.*
rpcport=19334

Any pointers would be very helpful
member
Activity: 112
Merit: 10
I am configuring Stratum-Mining but when I check the stratum.log file it appears to be waiting for litcoind. In stratum the RPC port is configured to the same RPC port in litecoin.conf 19334

2013-06-13 19:25:34,247 DEBUG interfaces logger.get_logger # Logging initialized
2013-06-13 19:25:34,247 DEBUG subscription logger.get_logger # Logging initializ
ed
2013-06-13 19:25:34,250 DEBUG mining logger.get_logger # Logging initialized
2013-06-13 19:25:34,252 DEBUG block_updater logger.get_logger # Logging initiali
zed
2013-06-13 19:25:34,273 DEBUG template_registry logger.get_logger # Logging init
ialized
2013-06-13 19:25:34,340 DEBUG bitcoin_rpc logger.get_logger # Logging initialize
d
2013-06-13 19:25:34,351 DEBUG halfnode logger.get_logger # Logging initialized
2013-06-13 19:25:34,352 DEBUG coinbaser logger.get_logger # Logging initialized
2013-06-13 19:25:34,352 DEBUG mining logger.get_logger # Logging initialized
2013-06-13 19:25:34,352 INFO mining __init__.setup # Waiting for litecoind RPC..


Litecoin daemon is running fine however with this config

rpcuser=myusername
rpcpassword=mypassword
port=9333
rpcport=19334
gen=0
4way=1
server=1

I dont understand why Stratum appears to be waiting for litecoind RPC.

Does the block chain need to be fully downloaded for Stratum to connect to Litecoind RPC??


I also get this error on my mmcfe front end

Unable to connect to litecoind RPC service: Didn't receive 200 OK from remote server. (HTTP/1.0 401 Authorization Required)


Jump to: