can't open tensorboard 0.0.0.0:6006 or localhost:6006

Viewed 53672

when i use tensorboard in cmd with win10

D:\python document\tensorflow>tensorboard --logdir=D:\python document\tensorflow Starting TensorBoard b'47' at http://0.0.0.0:6006

But when i open the webpage,it shows

"dial tcp 0.0.0.0:6006: connectex: The requested address is not valid in its context."

and i tried localhost:6006 then,and it shows

"No scalar data was found."

so what should i do now

4 Answers

@Johnson Lai's solution( tensorboard --logdir=YOUR_LOG_DIR --host=127.0.0.1) is works, just add --host=127.0.0.1 at the command tail.

but you shoud replace log_dir with your own log dir.

tips: in log dir, log file(folder) likes run-20180422085300.


here is my test!

launch your cmd in anywhrer:

run commond tensorboard --logdir [your log dir] --host=127.0.0.1

or

launch your cmd with log dir, or commond cd [your log dir]

run commond tensorboard --logdir ./ --host=127.0.0.1

I prefer the second method!

In my case (running on docker), I was able to work it as follows:

First, make sure you start docker with -p 6006:6006. Then, in Jupyter terminal, navigate to log dir and start tensorboard as:

tensorboard --logdir ./ --bind_all

You should see this output: enter image description here

Now you can access the board on URL: http://localhost:6006/

enter image description here

Hope this helps.

Related