Closed WeihongPan closed 1 year ago
Hi,
the line ERROR:root:initializing
is not an error as it has been inserted into visdom by mistake.
I have opened a PR to remove that message (see #894).
Regarding the underlying issue:
looking at the html-output you've sent, it seems that you are trying to use visdom through a proxy. Is this correct?
Possibly, the config on the proxy-site is missing websocket upgrades.
If you cannot adapt the config of the proxy I suggest you to start a non-websocket visdom server using visdom -use_frontend_client_polling
.
Please let me know if this worked.
In the long run:
I think it would be a good idea to let visdom try the non-websocket option itself as a fallback, or at least, do a better job at giving the user some feedback about the faulty connection state.
Until that is implemented, I would like to open a PR to show the -use_frontend_client_polling
option more prominently in the README.md
.
Good Morning! Thank for your such quick reply!
after check the $http_proxy
output, I find that our company does use proxy
Unfortunately, although I tried to use visdom -use_frontend_client_polling
, I still got the same html error message. Here's the terminal output:
ERROR:tornado.application:Exception in callback <bound method SocketWrapper.socket_wrap_monitor_thread of <visdom.server.handlers.socket_handlers.SocketWrapper object at 0x7fc57afaf950>>
Traceback (most recent call last):
File ".../.conda/envs/pytorch113/lib/python3.7/site-packages/tornado/ioloop.py", line 921, in _run
val = self.callback()
File ".../Downloads/visdom/py/visdom/server/handlers/socket_handlers.py", line 336, in socket_wrap_monitor_thread
if time.time() - sub.last_read_time > MAX_SOCKET_WAIT:
AttributeError: 'VisSocketHandler' object has no attribute 'last_read_time'
which seems like, as you said, a websocket error
However, when I changed the server from localhost
to the real ip of my computer, it worked! It's quite amazing, though I can't figure out why :)
Many thanks for your patience!
when I run:
I got this output:
then I run
vis.check_connection()
but getFalse
. I can see navigation bar on the top of the web page, and the online button is also on, but I still can't put anything on it. Every time I try, I will get some html code as output like this:Basically it's an error page telling me that I got a connection error.
Here's some network test:
server started:
server closed:
Do you have any idea how to solve it? Many thanks in advance for your kindly help!