-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TensorBoard in Jupyter "localhost refused to connect" issue on Windows #2481
Comments
OK, guess work ... but it seems to be responding again. A quick scan of the docs on this site mentioned network security issue on Macs: Under that heading it mentioned specifying "localhost" instead of the default "0.0.0.0" I amended my code above to:
I ran the code again from Jupyter notebook. 1st attempt timed out, 2nd attempt brought up the Tensorboard dashboard, which I will claim is it working now. Still not sure why it seems to have worked but I'll accept that right now it is! |
@JimmyMcWeb: Thanks for the report! Responses below.
That’s all correct. Running TensorBoard under Jupyter doesn’t affect the
The “Reusing TensorBoard” message isn’t an error; it’s just an
On Linux or macOS, you just write I’ve just looked into the details, and it looks like there’s no simple I’ll update the messaging on Windows accordingly—thanks for bringing
For a quick workaround, you can run the following commands in any
If either of those gives an error (probably “process "tensorboard.exe" |
I’ve opened #2483 to track a better fix, so given the workaround above, |
Thanks William Restarting work today (Th 1/8/19) I found that the "localhost refuses to connect" message was back when I asked Tensorboard to graph the log files created yesterday. I ran
from cmd.exe as you suggested. 1st command threw an error saying tensorboard wasn't running. Back in Jupyter I reran the
commands. 1st attempt timed out again. Thanks for your help. Glad it wasn't just me! I can progress again! Best regards |
Yes; unfortunately, I suspected that this might be the case, because
This is the expected behavior when TensorBoard takes more than 10
Glad to hear it! And you’re quite welcome. |
It's works for me with connection refused error. Thanks |
The above process worked for me thank you so much |
An equivalent Powershell command would look like this:-
|
ENVIRONMENT:
About Jupyter Notebook
Server Information:
You are using Jupyter notebook.
The version of the notebook server is: 5.7.8
The server is running on this version of Python:
Python 3.7.3 (default, Mar 27 2019, 17:13:21) [MSC v.1915 64 bit (AMD64)]
Current Kernel Information:
Python 3.7.3 (default, Mar 27 2019, 17:13:21) [MSC v.1915 64 bit (AMD64)]
Type 'copyright', 'credits' or 'license' for more information
IPython 7.4.0 -- An enhanced Interactive Python. Type '?' for help.
I'm not sure where to start here other than to relay the issue that I can't fix!
I am learning neural networks and I am trying to run code within Jupyter notebooks.
Tensorboard is a useful visualisation tool and I thought that I had got it to work embedded into a Jupyter notebook. It worked once but then stopped connecting to the localhost.
I've tried to follow through solutions to this issue from StackOverflow and GitHub postings but they either reference commands without giving the context (i.e. environment) in which those commands should be executed or they just get closed off because nobody has responded or redirected to here, the Tensorboard hub.
I'm stuck and I am struggling because I don't fully understand how the various pieces of technology hang together.
So my understanding is this:
What I don't really understand is how the port numbers are working.
My code is this:
There are log files in the /logs directory created under another notebook.
The error message is this:
Reusing TensorBoard on port 6006 (pid 17596), started 1 day, 23:56:21 ago. (Use '!kill 17596' to kill it.)
I have shutdown the PC and restarted but this process seems to persist?
I can't find anything on port 6006 when I've run:
netstat -abno
from Windows cmd (as admin)
I've tried to guess how to use !kill 17596 but I am not guessing correctly!
In a nutshell I want to clear out the system memory and just run Tensorboard again, but it won't work! (but it did work once!)
I would be grateful for any help, but please assume that I don't know from which terminal / notebook commands need to be run from. I'd be grateful if you could make that explicit in any answers / suggestions.
The text was updated successfully, but these errors were encountered: