masternodes / vps

A handy bash script to setup crypto masternodes in no time. Initially developed for $PIVX. Now many more ;-)
https://masternodes.github.io/vps/
GNU General Public License v3.0
250 stars 490 forks source link

duplicate RPCPORT #132

Open MarianMatys opened 6 years ago

MarianMatys commented 6 years ago

This gave me a bit of a headache, but finally, I figured that out.

I've installed two different projects, but can't get them running at once. The first one was always OK (I've even reinstalled server and tried over in opposite direction), but second never returned cli result ("error: incorrect rpcuser or rpcpassword (authorization failed)").

So the thing is you count with different ports if installing multiple instances of the same MN rpcport=555XXX_NUM_XXX but this NUM is not increasing when installing different projects. So both my projects had the same port, thus it wasn't working. I had to manually change the port in .conf file.

I guess this might cause a lot of confusion for noobs like me :)

Anyway, thanks a million for this automated script!

ImTheDeveloper commented 6 years ago

Personally I use this script for bulk creation of the same coin nodes on one server. I would create a whole new server for other coins. I fully see your issue here, it would need to do a check to see which ports are in use and if they are then it starts its counting from the first freely available port.