Open victorterpstra opened 2 years ago
If you use cntr-C
in the terminal, the port is released properly.
Not with cntr-Z
or ctrl-X
.
In another attempt, running the dashboard on a different port did work well.
How to kill a process:
ps aux
to see all processeskill -9 <yourPID>
, e.g. kill -9 1234
Typically, the Dash app claims port 8050. Killing the Python process running in a CPD/JupyterLab terminal is NOT releasing the port. So re-starting the dashboard is not possible, because the port is still 'in use'.
For this reason, the dse-do-dashboard contains a 'stop' button that properly ends the app server and releases the port. However, if a use forgets to 'stop' the dashboard and the process gets killed, it is very hard to be able to restart the dashboard. Using another port also didn't work well.
What can be done in the DSE-DO-Dashboard and/or the watson-studio-jupyter-applications to release the port properly.