Smartcashd - unable to start HTTP server


#1

Hello all,

I´m about to install my first masternode but the smartcashd deamon will not start.

debug.log:
2018-05-24 00:59:30 Smartcash version v1.1.1.0-g032d7dbd
2018-05-24 00:59:30 InitParameterInteraction: parameter interaction: -externalip set -> setting -discover=0
2018-05-24 00:59:30 InitParameterInteraction: parameter interaction: -whitelistforcerelay=1 -> setting -whitelistrelay=1
2018-05-24 00:59:30 Default data directory /home/ubuntu/.smartcash
2018-05-24 00:59:30 Using data directory /home/ubuntu/.smartcash
2018-05-24 00:59:30 Using config file /home/ubuntu/.smartcash/smartcash.conf
2018-05-24 00:59:30 Using at most 64 connections (1024 file descriptors available)
2018-05-24 00:59:30 Using 0 threads for script verification
2018-05-24 00:59:30 Binding RPC on address :: port 9679 failed.
2018-05-24 00:59:30 Binding RPC on address 0.0.0.0 port 9679 failed.
2018-05-24 00:59:30 Unable to bind any endpoint for RPC server
2018-05-24 00:59:30 Error: Unable to start HTTP server. See debug log for details.
2018-05-24 00:59:30 Shutdown: In progress…
2018-05-24 00:59:30 StopNode()
2018-05-24 00:59:30 Shutdown: done

smartcash.conf:
rpcuser=oX1sWtxxxxx
rpcpassword=yPeurR5z7xxxxxxxxxxxxxxxx
rpcallowip=127.0.0.1
listen=1
server=1
daemon=1
logtimestamps=1
maxconnections=64
txindex=1
smartnode=1
externalip=172.31.20.50:9678
smartnodeprivkey=7OsWkotFyxxxxxxxxxxxxxxxxxxxxxxxxxx

After checking status with “smartcash-cli getinfo” the following message occurs:
error: incorrect rpcuser or rpcpassword (authorization failed)

Does anybody know what´s wrong here?


#2

try to restart VPS, maybe after start smartcashd the first time, you modify the rpcuser and rpcpassword.


#3

Thanks for the answer. VPS restart doesn´t help.

Anything else I could try?


#4

in the log i see
2018-05-24 00:59:30 Binding RPC on address :: port 9679 failed. 2018-05-24 00:59:30 Binding RPC on address 0.0.0.0 port 9679 failed.
where do you put 9679.
Maybe you have wrong config somewhere.
the easiest way now you can install smartnode again with https://github.com/SmartCash/smartnode and leave all default config

Thanks


#5

I don´t know where port 9679 comes from, I never changed the port to 9679. I also don´t know where I could change it other than via the smartcash.conf file.
Smartcash.conf shows 9678 as it should be. When I put in “rpcport=9678” and restart the daemon the debug.log file shows:

Binding RPC on address 0.0.0.0 port 9678 failed.

So for my understanding the daemon should use the right config otherwise this change souldn´t be visible in the debug.log file after changing.

Nevertheless I reinstalled the smartnode again as you suggested but the problem stays the same. I also tried it on another vps with no success.

I´m using Ubuntu 16.04.4 LTS on an Amazon VPS (1gb Ram) and connecting to it via MAC Terminal SSH

One more idea from my side:
The setup guide says login to VPS via Root (Root@IP). But I do not know how to do it with the special KeyFile I ned to put in the SSH Terminal so I´m logging in as normal User (Ubuntu@IP) and change it after login via “sudo -s” to get root access (user switches from Ubuntu@IP to Root@IP). Could this be the Problem somehow?


#6

can you go to http://discord.smartcash.cc and send private message to me @hoangton#6301