Error in install on prem-local

`-------------------- Where are you installing Hopsworks? --------------------

On what platform are you installing Hopsworks?

(1) On-premises or private cloud.

(2) AWS.

(3) GCP.

(4) Azure.

Please enter your choice 1, 2, 3, 4 : 1

Press ENTER to continue
Found karamel
Running command from /home/aappspoc/karamel-0.6:
setsid ./bin/karamel -headless -launch …/cluster-defns/hopsworks-installer-active.yml > …/installation.log 2>&1 &


Installation has started, but may take 1 hour or more…

The Karamel installer UI will soon start at: http://10.11.42.4:9090/index.html
Note: port 9090 must be open for external traffic and Karamel will shutdown when installation finishes.

=====================================================================

You can view the installation logs with this command:

tail -f installation.log
`

$ tail -f installation.log ERROR [2020-04-29 19:45:34,339] se.kth.karamel.webservice.KaramelServiceApplication: An instance of Karamel is already running. Exiting... ERROR [2020-04-29 19:45:34,345] se.kth.karamel.webservice.KaramelServiceApplication: java.net.BindException: Address already in use (Bind failed) ! java.net.BindException: Address already in use (Bind failed) ! at java.net.PlainSocketImpl.socketBind(Native Method) ~[na:1.8.0_222-ea] ! at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387) ~[na:1.8.0_222-ea] ! at java.net.ServerSocket.bind(ServerSocket.java:375) ~[na:1.8.0_222-ea] ! at java.net.ServerSocket.<init>(ServerSocket.java:237) ~[na:1.8.0_222-ea] ! at se.kth.karamel.webservice.KaramelServiceApplication.<clinit>(KaramelServiceApplication.java:112) ~[karamel-ui-0.6.jar:na]

Hi,
From the error java.net.BindException: Address already in use (Bind failed) it seems that the port is already in use.
Are you sure you don’t have another installation ongoing or that the port 9090 isn’t used by another service? You can check that by running netstat -ltnp | grep 9090 as superuser.


Fabio

Hi.
With hopsworks-installer.sh, you can kill any ongoing installations AND fully remove and versions of hopsworks installed by running:
./hopswork-installer.sh -i purge -ni
If you have installed a hopsworks cluster on many servers, you purge the whole cluster by running:
./hopswork-installer.sh -i purge-all -ni

Then, after that you can try and install hopsworks again.