Repository navigation
Description
After previously having problems with getting my ip address reached by Dashmate, i now have the problem that CActiveMasternodeManager can not connect to my ip address, after latest dashmate update 0.24.17 (which fixed my previous cannot read properties (ip) error and allowed me to finish the dashmate setup).
Expected Behavior
Full connection to my ip address / no error about this in the core.log
Current Behavior
CActiveMasternodeManager can not connect to my ip address
Possible Solution
I suspect the problem is currently with the dash.conf that dashmate generated and controls and does not allow me to bring changes to. I noticed the bind command is set to 0.0.0.0 instead of my ip address.
Should Dashmate not use my ip adress in a bind there ?
Current dash.conf (not editable, reverts back to below)
# general
daemon=0 # leave this set to 0 for Docker
logtimestamps=1
maxconnections=256
reindex=0
debuglogfile=/var/log/dash/core.log
logips=0
# JSONRPC
server=1
rpcuser=********
rpcpassword=*******
rpcwallet=main
rpcallowip=127.0.0.1
rpcallowip=172.16.0.0/12
rpcallowip=192.168.0.0/16
rpcworkqueue=64
rpcthreads=16
# external network
listen=1
dnsseed=0
allowprivatenet=0
externalip=********
# ZeroMQ notifications
zmqpubrawtx=tcp://0.0.0.0:29998
zmqpubrawtxlock=tcp://0.0.0.0:29998
zmqpubrawblock=tcp://0.0.0.0:29998
zmqpubhashblock=tcp://0.0.0.0:29998
zmqpubrawchainlocksig=tcp://0.0.0.0:29998
zmqpubrawchainlock=tcp://0.0.0.0:29998
zmqpubrawtxlocksig=tcp://0.0.0.0:29998
masternodeblsprivkey=*******
# network
port=9999
bind=0.0.0.0
rpcbind=0.0.0.0
rpcport=9998
core.log
2023-07-27T05:47:49Z Using data directory /home/dash/.dashcore
2023-07-27T05:47:49Z Config file: /home/dash/.dashcore/dash.conf
2023-07-27T05:47:49Z Config file arg: allowprivatenet="0"
2023-07-27T05:47:49Z Config file arg: bind="0.0.0.0"
2023-07-27T05:47:49Z Config file arg: daemon="0"
2023-07-27T05:47:49Z Config file arg: debuglogfile="/var/log/dash/core.log"
2023-07-27T05:47:49Z Config file arg: dnsseed="0"
2023-07-27T05:47:49Z Config file arg: externalip="********"
2023-07-27T05:47:49Z Config file arg: listen="1"
2023-07-27T05:47:49Z Config file arg: logips="0"
2023-07-27T05:47:49Z Config file arg: logtimestamps="1"
2023-07-27T05:47:49Z Config file arg: masternodeblsprivkey=****
2023-07-27T05:47:49Z Config file arg: maxconnections="256"
2023-07-27T05:47:49Z Config file arg: port="9999"
2023-07-27T05:47:49Z Config file arg: reindex="0"
2023-07-27T05:47:49Z Config file arg: rpcallowip="127.0.0.1"
2023-07-27T05:47:49Z Config file arg: rpcallowip="172.16.0.0/12"
2023-07-27T05:47:49Z Config file arg: rpcallowip="192.168.0.0/16"
2023-07-27T05:47:49Z Config file arg: rpcbind=****
2023-07-27T05:47:49Z Config file arg: rpcpassword=****
2023-07-27T05:47:49Z Config file arg: rpcport="9998"
2023-07-27T05:47:49Z Config file arg: rpcthreads="16"
2023-07-27T05:47:49Z Config file arg: rpcuser=****
2023-07-27T05:47:49Z Config file arg: rpcworkqueue="64"
2023-07-27T05:47:49Z Config file arg: server="1"
2023-07-27T05:47:49Z Config file arg: zmqpubhashblock="tcp://0.0.0.0:29998"
2023-07-27T05:47:49Z Config file arg: zmqpubrawblock="tcp://0.0.0.0:29998"
2023-07-27T05:47:49Z Config file arg: zmqpubrawchainlock="tcp://0.0.0.0:29998"
2023-07-27T05:47:49Z Config file arg: zmqpubrawchainlocksig="tcp://0.0.0.0:29998"
2023-07-27T05:47:49Z Config file arg: zmqpubrawtx="tcp://0.0.0.0:29998"
2023-07-27T05:47:49Z Config file arg: zmqpubrawtxlock="tcp://0.0.0.0:29998"
2023-07-27T05:47:49Z Config file arg: zmqpubrawtxlocksig="tcp://0.0.0.0:29998"
2023-07-27T05:47:49Z Using at most 256 automatic connections (1048576 file descriptors available)
2023-07-27T05:47:49Z Using 16 MiB out of 32/2 requested for signature cache, able to store 524288 elements
2023-07-27T05:47:49Z Using 16 MiB out of 32/2 requested for script execution cache, able to store 524288 elements
2023-07-27T05:47:49Z Script verification uses 7 additional threads
2023-07-27T05:48:12Z CActiveMasternodeManager::Init -- ERROR: Could not connect to ********
Activity
pshenmic commentedon Jul 27, 2023
What is CActiveMasternodeManager? Is the core crashing after this message, or what exactly happening? Need more info about the error
qwizzie commentedon Jul 27, 2023
Core is not crashing, it just can't seem to connect to the ip address of my Evo Node (4000 dash).
It is also failing quorum initialization most likely because of this. So i suspect i will get PoSe banned at some point.
core.log is old debug.log and CActiveMasternodeManager is just something that is mentioned there (no idea what it exactly is)
So this is not related to dashmate controlled dash.conf ? That one is as it should be ?
pshenmic commentedon Jul 27, 2023
It looks for me like connection issue. I checked the ports configuration of the core service, it binds local docker p2p port 9999 to the 0.0.0.0 (you can see via docker ps), could it be your firewall that is blocking it? You can test it via
telnet <your ip> 9999. Check 127.0.0.1 first, and then your external ipNo, this is not related to the dash.conf
qwizzie commentedon Jul 27, 2023
Is this still correct with regards to firewall settings (for an Evo node that is)
ufw allow ssh/tcp
ufw limit ssh/tcp
ufw allow 9999/tcp
ufw logging on
ufw enable
Source : https://docs.dash.org/en/stable/docs/user/masternodes/server-config.html
Or should there be more for Evo Node ?
qwizzie commentedon Jul 27, 2023
$ telnet 127.0.0.1 9999
Trying 127.0.0.1...
Connected to 127.0.0.1.
$ telnet myipaddress 9999
Trying **** ..
Connected to myipaddress
Done directly from my server, so no problem there.
Update 1 : ufw seems to be disabled (ufw status : disabled). Working on enabling it and testing further with reboot.
Update 2 : checked the ufw steps
ufw allow ssh/tcp ---> already running
ufw limit ssh/tcp ---> already running
ufw allow 9999/tcp --> existing rule
ufw logging on --> Could not update running firewall
ufw enable --> Firewall is active and enabled on system startup
So somehow ufw got disbled after reboot, even after having enabled ufw through root before (which should keep ufw enabled after reboot).
This happened to me before on a previous Ubuntu system, which i fixed in etc/rc.local (just added 'ufw enable' there) but this can't be done in Ubuntu 20.04.6 LTS that easily it seems.
Any tips / advice to keep ufw firewall enabled on Ubuntu 20.04.6 LTS even during server reboots ?
pshenmic commentedon Jul 27, 2023
Ohhh, I just remembered the similar same case a long time ago in the discord. So the answer was either have ufw disabled or allow traffic from a private subnets via
ufw allow from 172.16.0.0/12However, there were issue with the local network so I am not sure
qwizzie commentedon Jul 27, 2023
Problem seems solved when i enabled ufw, i just hope it wont disable itself like that again.
For now i will just do a ufw status after a reboot and check if it is still enabled.
Update : actually i found a way to make sure ufw firewall stays enabled after reboots --> https://www.linuxbabe.com/linux-server/how-to-enable-etcrc-local-with-systemd
pshenmic commentedon Jul 27, 2023
Sweet. I'm glad your issue is resolved
chore(platform)!: update rust-dashcore past the FFI removal
chore(platform)!: update rust-dashcore past the FFI removal
chore(platform)!: update rust-dashcore past the FFI removal
chore(platform)!: update rust-dashcore past the FFI removal
chore(platform)!: update rust-dashcore past the FFI removal
chore(platform)!: update rust-dashcore past the FFI removal
chore(platform)!: update rust-dashcore past the FFI removal
chore(platform)!: update rust-dashcore past the FFI removal
chore(platform)!: update rust-dashcore past the FFI removal
chore(platform)!: update rust-dashcore past the FFI removal
chore(platform)!: update rust-dashcore past the FFI removal
chore(platform)!: update rust-dashcore past the FFI removal
chore(platform)!: update rust-dashcore past the FFI removal
chore(platform)!: update rust-dashcore past the FFI removal
chore(platform)!: update rust-dashcore past the FFI removal
chore(platform)!: update rust-dashcore past the FFI removal
chore(platform)!: update rust-dashcore past the FFI removal