How to fix error message “Bind address already in use” when starting server daemon.
So, if you do not have a cronjob created, all you have to do is run the server daemon with these arguments:
./saronited --service-node --zmq-rpc-bind-port 34236 --p2p-bind-port 42158 --rpc-bind-port 32915
If you have a cronjob setup and are using the “Saroscript” you will have to update it to something like the below code.
Saroscript should look something like this:
set -eux -o pipefail
[[ $(pgrep -fu $(whoami) 'saronited') ]] || screen -dmS saronited -- /media/md0/YOURUSERNAME/saronite-linux64-v188.8.131.52/saronited --service-node --zmq-rpc-bind-port 34236 --p2p-bind-port 42158 --rpc-bind-port 32915
You will have to adjust the direct path and your username obviously.
That’s it, the cronjob stays the same, just the script needed updating to run with the new arguments. If you get an error saying the bind address is already in use, try changing the port numbers: 34236 42158 32915 to something random in range 1100 – 65535 range. If the error continues to occur, change the ports again until it works.