Bitcoin Forum
November 14, 2024, 09:34:40 AM *
News: Check out the artwork 1Dq created to commemorate this forum's 15th anniversary
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Issue with Stratum .. Any Help would be greatly Appreciated.  (Read 2781 times)
seocrow (OP)
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
June 13, 2013, 03:48:40 PM
 #1

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)


seocrow (OP)
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
June 13, 2013, 10:10:54 PM
 #2

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
antminerman
Member
**
Offline Offline

Activity: 63
Merit: 10


View Profile
March 11, 2014, 02:32:30 AM
 #3

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
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!