0.12.1 update: Error when trying to start Sentinel

KryptoTypek

New Member
Oct 1, 2016
19
11
3
39
Hi, I updated my MN to version 0.12.1. Following this guide: https://dashpay.atlassian.net/wiki/display/DOC/Updating+to+12.1+-+Masternodes

My dashd is running and fully synced. But when I try to run Sentinel, I get this error message:

-342: non-JSON HTTP response with '401 Unauthorized' from server
Cannot connect to dashd. Please ensure dashd is running and the JSONRPC port is open to Sentinel.

How can I fix this?
 
  • Like
Reactions: fible1

SirHikmat

Member
Nov 15, 2014
93
57
68
Do you use a custom path to dash.conf?
If yes, then add the following line to sentinel/test/test_sentinel.conf:
Code:
dash_conf=/path/to/dash.conf
 
  • Like
Reactions: stan.distortion

UdjinM6

Official Dash Dev
Dash Core Team
Moderator
May 20, 2014
3,639
3,537
1,183
Make sure you started daemon AFTER you copied/configured dash.conf - try "dash-cli getinfo" - should get you a similar error.
If that is the case:
- rename dash.conf to smth else "mv ~/.dashcore/dash.conf ~/.dashcore/dash_.conf"
- stop daemon "dash-cli stop"
- rename dash.conf back to it's normal name "mv ~/.dashcore/dash_.conf ~/.dashcore/dash.conf"
- start daemon "dashd"

Wait for it to finish syncing and try to run sentinel again.
 
  • Like
Reactions: stan.distortion

KryptoTypek

New Member
Oct 1, 2016
19
11
3
39
I started the deamon after the configuration. The deamon is running correctly and is synchronized. "dash-cli getinfo" works ok.
 

borkanagar

New Member
Apr 18, 2014
10
6
3
Was trying to build a new masternode from scratch and got the following error when trying to setup sentinel:

venv/bin/python bin/sentinel.py

[Errno -2] Name or service not known
Cannot connect to dashd. Please ensure dashd is running and the JSONRPC port is open to Sentinel.​

@chaeplin suggested me to look for any special characters in the rpcpassword in dash.conf file and voula! I had put many symbols there...
Changed the password by removing special characters and now sentinel is doing fine. Many thanks to @chaeplin for helping me on this issue,
 

prole

New Member
Jan 28, 2018
1
0
1
36
Zombie thread sorry, but i ended up here from searching this error. I accidentally typed "rpcusername=XXXX" instead of "rpcuser=XXXX" in my dash.conf and i was getting this same 401 error from sentinel but querying dash-cli worked fine and other symptoms were the same as above. Hopefully it helps someone who maybe did the same thing and is bashing their head against the keyboard.