Closed drothermel closed 6 years ago
Hi @drothermel - have you used visdom at any point in the past? This behavior seems somewhat related to having existing env files from a previous build before we added some of the more recent features. Then again the fact that you were able to request the path /env/env/main
is somewhat strange, let me investigate that.
ws://localhost:8097/env/socket
isn't a real address on the visdom server, so I'm actually fairly certain that's the issue - are you just going to localhost:8097
and still getting those addresses?
Ahh, yup, thats the problem, I went to localhost:8097/env (based on some docs I'll update). When I went to just localhost:8097 then it works as expected, thank you!
Yeah that's somewhat related to https://github.com/facebookresearch/visdom/issues/273, the feature used to work properly so the docs had prepopulated an empty env but I haven't had a chance to fix the env access by path yet. Thanks for noting it!
Hi, I have a similiar problem with you, but what I try to open is still localhost:8097. There always present an red 'offline' button on top right of the web page. And there is nothing wrong in the sever and also prints correct outputs in the command when I try to show something to localhost:8097.
The localhost:8097 page have performed correctly before, but these days it began to go wrong and remains offline as shown in the following figure. I have no idea for what I have done to it. Is this because I have done some wrong operations I didn's know? And I am also very confused about the meaning of this 'offline'.
Looking forward to your reply. Thanks very much in advance!
Hi @fangxiaoke - I'll need to know more details about your server logs as well as those in your JavaScript console. Offline means that the client is unable to open a socket with the server, thus no information is being sent. Any number of network configuration problems can cause this issue.
@JackUrb - Thanks for you reply. I have opened a SSH channel at my local host for 8097 port at local 8098 port in order to view the output page through 'ssh -L 8098:localhost:8097 fangyuke@10.112.220.47' command (fangyuke is my host name on the server).
After running the code example: import visdom import numpy as np vis = visdom.Visdom() vis.text('Hello, world!') vis.image(np.ones((3, 10, 10)))
Following messages output: INFO:tornado.access:200 POST /events (127.0.0.1) 0.31ms INFO:tornado.access:200 POST /events (127.0.0.1) 0.28ms And nothing shows up at my local 8098 port and show the offline as before.
When I try to open a new localhost:8098 page at my local host, the visdom server prints this message: INFO:root:Opened new socket from ip: 127.0.0.1 INFO:tornado.access:200 GET /favicon.png (127.0.0.1) 5.50ms And when I click the inspect button in the chrome, the visdom server prints this message: WARNING:tornado.access:404 GET /static/js/react-grid-layout.min.js.map (127.0.0.1) 1.16ms WARNING:tornado.access:404 GET /static/fonts/layout-bin-packer.js.map (127.0.0.1) 1.04ms WARNING:tornado.access:404 GET /static/css/bootstrap.min.css.map (127.0.0.1) 1.12ms
The console has the following warning: mathjax-MathJax.js?v=8bafcfb6872e60dd315531cc5a91a521:32 WARNING: cdn.mathjax.org has been retired. Check https://www.mathjax.org/cdn-shutting-down/ for migration tips. replaceScript @ mathjax-MathJax.js?v=8bafcfb6872e60dd315531cc5a91a521:32
This behavior is particularly strange, as the tornado server believes you are successfully opening up a socket, but the client doesn't agree. It's possible something is going on with the way the socket handler in the client is managing the url that you're visiting, which causes the error. I haven't tried to access via ssh tunnel personally so I'm just trying to think of what could be wrong.
"Offline" by the way means that the JavaScript client is unable to hold an open socket with the server. Generally it's assumed that this happens because the server has been shut down, but it's also possible that something is being configured improperly. Does visdom work for you in a scenario where you don't need to tunnel? (If you have such a scenario)
@JackUrb Because my server dosen't have a visual interface, I can only use a SSH tunnel to send the page info to my client and thus I can see the varitions in time.
Are you not able to access the server directly via ip, like x.x.x.x:8097
? In this case you could run your visdom server on the server and access via ip without tunneling. Otherwise you'll have to add a log to https://github.com/facebookresearch/visdom/blob/master/js/main.js in the socket.onerror = socket.onclose = ...
function block to log the argument passed to onerror so you can see what's going on. (You'll need to rebuild the JavaScript with npm install; npm run build
, and then pip install -e .
)
At this time, after I tried to access the server directly via ip, the page is also at the offline state as before.
@JackUrb - I'm still confused about my problem. Now I accessed the server directly via ip and it doesn't work. On the 8097 page, only two input boxes and the offline button are available and can be clicked while other items are invalid. And when I click the offline button, terminal output the infomation as below. INFO:tornado.access:101 GET /socket (10.112.221.96) 0.93ms INFO:root:Opened new socket from ip: 10.112.221.96
I have no idea why it cannot work properly as before.
I meet the same problem with fangxiaoke, I want to ask if there are some methods to solve it? I am a new user to visdom.
I cloned visdom, installed from source (using pip install -e .) and then also ran (python setup.py install) to finish the installation (visdom==0.1.7.2). I started up the server (python -m visdom.server) and was able to bring up visdom in Chrome but it remains offline.
I can only click on the two dropdowns and when I click on "main", the following error prints out:
The javascript console then has the following error:
When I try to run the code example:
The following is output but nothing shows up in visdom.
The javascript console then has the following error:
Are there setup steps that I missed?