It means that there is a problem with sentinel.
What is the result of ./monacoCoin-cli masternode status ?
Did you install sentinel ?
If yes, did you replace YOUR HOME DIRECTORY by your username in the sentinel.conf ? (edited)
If, yes, was the test : ./venv/bin/py.test ./test ok ?
If yes, did you replace YOURUSERNAME by your username in the crontab ?
If everything is ok,
root@cs36265:~/sentinel# ./venv/bin/py.test ./test
[hide]
================================================================================================================================================================ test session starts =================================================================================================================================================================
platform linux2 -- Python 2.7.12, pytest-3.0.1, py-1.4.31, pluggy-0.3.1
rootdir: /root/sentinel, inifile:
collected 20 items
test/integration/test_jsonrpc.py F
test/unit/test_models.py ..
test/unit/test_monacoCoin_config.py .
test/unit/test_monacoCoind_data_shims.py ..
test/unit/test_monacoCoiny_things.py .....
test/unit/test_submit_command.py .
test/unit/models/test_proposals.py ...
test/unit/models/test_superblocks.py .....
====================================================================================================================================================================== FAILURES ======================================================================================================================================================================
_______________________________________________________________________________ _______________________________________________________________________________ ____ test_monacoCoind _______________________________________________________________________________ _______________________________________________________________________________ ____
def test_monacoCoind():
config_text = monacoCoinConfig.slurp_config_file(config.monacoCoin_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 = monacoCoinConfig.get_rpc_creds(config_text, network)
monacoCoind = monacoCoinDaemon(**creds)
assert monacoCoind.rpc_command is not None
assert hasattr(monacoCoind, 'rpc_connection')
# monacoCoin testnet block 0 hash == 00000bafbc94add76cb75e2ec92894837288a481e5c005f6563d91623bf8bc2c
# test commands without arguments
> info = monacoCoind.rpc_command('getinfo')
test/integration/test_jsonrpc.py:34:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
lib/monacoCoind.py:42: in rpc_command
return self.rpc_connection.__getattr__(params[0])(*params[1:])
venv/local/lib/python2.7/site-packages/bitcoinrpc/authproxy.py:136: in __call__
'Content-type': 'application/json'})
/usr/lib/python2.7/httplib.py:1057: in request
self._send_request(method, url, body, headers)
/usr/lib/python2.7/httplib.py:1097: in _send_request
self.endheaders(body)
/usr/lib/python2.7/httplib.py:1053: in endheaders
self._send_output(message_body)
/usr/lib/python2.7/httplib.py:897: in _send_output
self.send(msg)
/usr/lib/python2.7/httplib.py:859: in send
self.connect()
/usr/lib/python2.7/httplib.py:836: in connect
self.timeout, self.source_address)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
address = ('127.0.0.1', 24156), timeout = 30, source_address = None
def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT,
source_address=None):
"""Connect to *address* and return the socket object.
Convenience function. Connect to *address* (a 2-tuple ``(host,
port)``) and return the socket object. Passing the optional
*timeout* parameter will set the timeout on the socket instance
before attempting to connect. If no *timeout* is supplied, the
global default timeout setting returned by :func:`getdefaulttimeout`
is used. If *source_address* is set it must be a tuple of (host, port)
for the socket to bind as a source address before making the connection.
A host of '' or port 0 tells the OS to use the default.
"""
host, port = address
err = None
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
af, socktype, proto, canonname, sa = res
sock = None
try:
sock = socket(af, socktype, proto)
if timeout is not _GLOBAL_DEFAULT_TIMEOUT:
sock.settimeout(timeout)
if source_address:
sock.bind(source_address)
sock.connect(sa)
return sock
except error as _:
err = _
if sock is not None:
sock.close()
if err is not None:
> raise err
E error: [Errno 111] Connection refused
/usr/lib/python2.7/socket.py:575: error
======================================================================================================================================================== 1 failed, 19 passed in 0.24 seconds =========================================================================================================================================================
[/hide]
root@cs36265:~/sentinel# cat sentinel.conf
# specify path to monacoCoin.conf or leave blank
# default is the same as monacoCoinCore
#monacoCoin_conf=/home/YOUR HOME DIRECTORY/.monacoCoinCore/monacoCoin.conf
monacoCoin_conf=/home/phoenix/configs/monaco.conf
# valid options are mainnet, testnet (default=mainnet)
network=mainnet
#network=testnet
# database connection details
db_name=database/sentinel.db
db_driver=sqlite
root@cs36265:~/sentinel# cat sentinel.conf
# specify path to monacoCoin.conf or leave blank
# default is the same as monacoCoinCore
#monacoCoin_conf=/home/YOUR HOME DIRECTORY/.monacoCoinCore/monacoCoin.conf
monacoCoin_conf=/home/phoenix/configs/monaco.conf
# valid options are mainnet, testnet (default=mainnet)
network=mainnet
#network=testnet
# database connection details
db_name=database/sentinel.db
db_driver=sqlite
root@cs36265:/home/phoenix/configs# cat monaco.conf
rpcuser=coin_xmcc
rpcport=35000
rpcpassword=qwe123wqe
rpcallowip=127.0.0.1
listen=1
server=1
daemon=1
discover=0
createwalletbackups=0
irc=0
dns=1
dnsseed=1
logips=1
printtoconsole=1
why port 24156 ?
root@cs36265:/home/phoenix/configs# netstat -natpd |grep mona
tcp 0 0 qwe:24157 0.0.0.0:* LISTEN 15267/monaco
tcp 0 0 qwe:53788 136.243.60.19:24157 ESTABLISHED 15267/monaco