Trying to work thru the problem I'm having. Here's the latest update. I have ./monoecid running in one instance.
In another window, I can run ./monoeci-cli getinfo and everything looks good. I can also run ./monoeci-cli mnsync status and recieve:
{
"AssetID": 999,
"AssetName": "MASTERNODE_SYNC_FINISHED",
"Attempt": 0,
"IsBlockchainSynced": true,
"IsMasternodeListSynced": true,
"IsWinnersListSynced": true,
"IsSynced": true,
"IsFailed": false
}
But when I do the Sentinel setup, that's where my problems are. I created in my main directory (/home/USER/monoeci.conf) the config file. I added this directory in Sentinel's conf file. When I run the Sentinel test, I get this:
============================= test session starts ==============================
platform linux2 -- Python 2.7.6, pytest-3.0.1, py-1.4.31, pluggy-0.3.1
rootdir: /home/xmccbob/sentinel, inifile:
collected 20 items
test/integration/test_jsonrpc.py F
test/unit/test_models.py ..
test/unit/test_monoeci_config.py .
test/unit/test_monoecid_data_shims.py ..
test/unit/test_monoeciy_things.py .....
test/unit/test_submit_command.py .
test/unit/models/test_proposals.py ...
test/unit/models/test_superblocks.py .....
=================================== FAILURES ===================================
________________________________ test_monoecid _________________________________
def test_monoecid():
config_text = monoeciConfig.slurp_config_file(config.monoeci_conf)
network = 'mainnet'
is_testnet = False
genesis_hash = u'0000005be1eb05b05fb45ae38ee9c1441514a65343cd146100a574de4278f1a3'
for line in config_text.split("\n"):
if line.startswith('testnet=1'):
network = 'testnet'
is_testnet = True
genesis_hash = u'000008f18ad6913eed878632efbb83909272d493e5c065789330eb23ab65b5cf'
creds = monoeciConfig.get_rpc_creds(config_text, network)
monoecid = monoeciDaemon(**creds)
assert monoecid.rpc_command is not None
assert hasattr(monoecid, 'rpc_connection')
# monoeci testnet block 0 hash == 00000bafbc94add76cb75e2ec92894837288a481e5c005f6563d91623bf8bc2c
# test commands without arguments
> info = monoecid.rpc_command('getinfo')
test/integration/test_jsonrpc.py:34:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
lib/monoecid.py:42: in rpc_command
return self.rpc_connection.__getattr__(params[0])(*params[1:])
venv/local/lib/python2.7/site-packages/bitcoinrpc/authproxy.py:139: in __call__
response = self._get_response()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self =
def _get_response(self):
http_response = self.__conn.getresponse()
if http_response is None:
raise JSONRPCException({
'code': -342, 'message': 'missing HTTP response from server'})
content_type = http_response.getheader('Content-Type')
if content_type != 'application/json':
raise JSONRPCException({
> 'code': -342, 'message': 'non-JSON HTTP response with \'%i %s\' from server' % (http_response.status, http_response.reason)})
E JSONRPCException: -342: non-JSON HTTP response with '401 Unauthorized' from server
venv/local/lib/python2.7/site-packages/bitcoinrpc/authproxy.py:187: JSONRPCException
===================== 1 failed, 19 passed in 0.58 seconds ======================
It says the problem is authentication. I'm not sure what I'm doing wrong. There are no spaces in my conf file :
rpcuser=username
rpcpassword=password
rpcallowip=127.0.0.1
server=1
listen=1
daemon=1
maxconnections=24
masternode=1
masternodeprivkey=privatekeygeneratedfromwindowswallet
externalip=ip.here
This is on a fresh Ubuntu 14 VPS. Sorry for the noob questions, this is my first masternode and all the tutorials reference the old monacoCoinCore stuff that apparently no longer exists.....
I presume that I shouldn't send my 1,000 tokens over until the Sentinel test passes 100%, right?