notebook: Jupyter Notebook won't start due to ports being already in use
Fresh install of anaconda 3.6 on Linux Mint. After restarting my computer I tried running a notebook server using the command
jupyter notebook
which returns the following error:
[I 16:33:05.169 NotebookApp] The port 8888 is already in use, trying another port.
[I 16:33:05.169 NotebookApp] The port 8889 is already in use, trying another port.
[I 16:33:05.169 NotebookApp] The port 8890 is already in use, trying another port.
[I 16:33:05.170 NotebookApp] The port 8891 is already in use, trying another port.
[I 16:33:05.170 NotebookApp] The port 8892 is already in use, trying another port.
[I 16:33:05.170 NotebookApp] The port 8788 is already in use, trying another port.
[I 16:33:05.170 NotebookApp] The port 8885 is already in use, trying another port.
[I 16:33:05.171 NotebookApp] The port 8896 is already in use, trying another port.
[I 16:33:05.171 NotebookApp] The port 8792 is already in use, trying another port.
[I 16:33:05.171 NotebookApp] The port 8987 is already in use, trying another port.
[I 16:33:05.171 NotebookApp] The port 8983 is already in use, trying another port.
[I 16:33:05.171 NotebookApp] The port 8814 is already in use, trying another port.
[I 16:33:05.172 NotebookApp] The port 8823 is already in use, trying another port.
[I 16:33:05.172 NotebookApp] The port 8923 is already in use, trying another port.
[I 16:33:05.172 NotebookApp] The port 8797 is already in use, trying another port.
[I 16:33:05.172 NotebookApp] The port 8800 is already in use, trying another port.
[I 16:33:05.173 NotebookApp] The port 8863 is already in use, trying another port.
[I 16:33:05.173 NotebookApp] The port 8835 is already in use, trying another port.
[I 16:33:05.173 NotebookApp] The port 8899 is already in use, trying another port.
[I 16:33:05.173 NotebookApp] The port 8883 is already in use, trying another port.
[I 16:33:05.173 NotebookApp] The port 8824 is already in use, trying another port.
[I 16:33:05.174 NotebookApp] The port 8806 is already in use, trying another port.
[I 16:33:05.174 NotebookApp] The port 8813 is already in use, trying another port.
[I 16:33:05.174 NotebookApp] The port 8980 is already in use, trying another port.
[I 16:33:05.174 NotebookApp] The port 8899 is already in use, trying another port.
[I 16:33:05.175 NotebookApp] The port 8888 is already in use, trying another port.
[I 16:33:05.175 NotebookApp] The port 8815 is already in use, trying another port.
[I 16:33:05.175 NotebookApp] The port 8926 is already in use, trying another port.
[I 16:33:05.175 NotebookApp] The port 8860 is already in use, trying another port.
[I 16:33:05.175 NotebookApp] The port 8848 is already in use, trying another port.
[I 16:33:05.176 NotebookApp] The port 8891 is already in use, trying another port.
[I 16:33:05.176 NotebookApp] The port 8910 is already in use, trying another port.
[I 16:33:05.176 NotebookApp] The port 8968 is already in use, trying another port.
[I 16:33:05.176 NotebookApp] The port 8936 is already in use, trying another port.
[I 16:33:05.177 NotebookApp] The port 8807 is already in use, trying another port.
[I 16:33:05.177 NotebookApp] The port 8860 is already in use, trying another port.
[I 16:33:05.177 NotebookApp] The port 8855 is already in use, trying another port.
[I 16:33:05.177 NotebookApp] The port 8980 is already in use, trying another port.
[I 16:33:05.177 NotebookApp] The port 8935 is already in use, trying another port.
[I 16:33:05.178 NotebookApp] The port 8920 is already in use, trying another port.
[I 16:33:05.178 NotebookApp] The port 8866 is already in use, trying another port.
[I 16:33:05.178 NotebookApp] The port 8790 is already in use, trying another port.
[I 16:33:05.178 NotebookApp] The port 8861 is already in use, trying another port.
[I 16:33:05.178 NotebookApp] The port 8960 is already in use, trying another port.
[I 16:33:05.179 NotebookApp] The port 8908 is already in use, trying another port.
[I 16:33:05.179 NotebookApp] The port 8962 is already in use, trying another port.
[I 16:33:05.179 NotebookApp] The port 8804 is already in use, trying another port.
[I 16:33:05.180 NotebookApp] The port 8974 is already in use, trying another port.
[I 16:33:05.180 NotebookApp] The port 8814 is already in use, trying another port.
[I 16:33:05.180 NotebookApp] The port 8889 is already in use, trying another port.
[I 16:33:05.180 NotebookApp] The port 8888 is already in use, trying another port.
[C 16:33:05.181 NotebookApp] ERROR: the notebook server could not be started because no available port could be found.
Is there any suggestion on how to resolve this issue?
I even tried providing a custom port with the --port flag but still the same issue.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 37 (7 by maintainers)
On the system that it’s running on,
jupyter notebook stop 8888
should work.I faced exact the same problem. Using --ip=0.0.0.0 solved it:
jupyter notebook --ip=0.0.0.0 --port=8888
This cleared it for me. it is an issue with windows/hyperv
Same error I was facing, One of the issues with your antivirus installed… SO one thing you can check or allow python.exe from the firewall of antivirus… This solved my problems… Hope it works for you also…
https://docs.microsoft.com/en-us/troubleshoot/windows-server/networking/default-dynamic-port-range-tcpip-chang After setting hyperv’s dynamic port range to 10000 plus and restart my computer, i resolve the problem
netsh int ipv4 set dynamicport tcp start=10000 num=1000
Thanks, It worked for me!
I was having this exact same issue. Running:
fixed my problem
https://127.0.0.1/8889
(unless that was a typo just when you posted here). The port number needs to be separated with a colon, not a slash.Here’s the output.