Finally got it working after changing the rpc port on the second masternode.
if you are getting this error:
Error: An error occurred while setting up the RPC address 0.0.0.0 port 9998 for listening: bind: Address already in use
just add this to dash.conf:
rpcport=9997
The masternode started...