-
Notifications
You must be signed in to change notification settings - Fork 776
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
Problem with novnc-websockify on Windows #67
Comments
@doriwal I notice you closed the issue. Does that mean you figured it out? |
No its an open issue
|
I reopened the issue as it wasnt solved |
looks like my local novnc is working , and the response is onload So I guess that i did installed novnc locally , I dont know why returned "noVNC ready: native WebSockets, canvas rendering" and after 2 seconds i get "Connect timeout" |
I was having the same issue with the websockify.exe that came with noVNC. I'm not sure if it's the same problem, but when I tried to run the websocketproxy.py file directly with Python 2.7, I get this error:
Apparently that's because When I try to run websockify with Python 3.3, I get a different error message:
|
@doriwal , @smithkl42 : are you still experiencing this issue? |
I was able to get websockify running on Windows if I used Python 3.2. Neither 2.7 nor 3.3 seem to have the necessary support for pseudo-forking processes on Windows. I haven't tried it with any other versions. |
@smithkl42 : it would appear that Python pickles and then unpickles the Process in order to do a fork, and something in websockify isn't pickleable. It's strange, though, that it works on 3.2 and not 3.3. Can you get a more extended stack trace for Python 3.3? I think it's at least worth trying to fix the issue for Python 3.3+ if we can. |
I agree that it'd be worth fixing. I'm not a Python coder, so I'm not sure how to get a more detailed stack trace - that's just what shows up on my console when I try to run it under Python 3.3. Any suggestions? |
Whoops, didn't mean to close this. Must have clicked the wrong button. def __getstate__(self):
raise TypeError("Cannot serialize socket object") While Python 3.2 doesn't specify a |
Yeah, 3.2 is working fine for me. I haven't tested it under load, but under the limited load I've thrown at it, it's been working just fine. Whatever serialization problems there might be, I suspect they must be of the sort that (for whatever reason) aren't affecting websockify. |
@kanaka : I am trying to run the websockify on Windows 2012 R2 Standard (64 bit). Issue : When I try to connect via the web url (http://localhost/vnc.html?host=localhost&port=6080), I am getting handler exception : "can't pickle thread.lock objects" Please suggest a resolution. I get a feeling that there has not been robust successful running experience of this tool in Windows. Please let me know if it is not intended to run on Windows. Or am I missing something from my side? Appreciate your response |
@kabilraj1979 websockify does not work on Windows using python 2.X. There has been some success using python 3.X. However, the node.js version of websockify apparently (I don't have a Windows system to test with) works pretty well on Windows so I suggest you use the node.js version if it that is an option for you. |
@kanaka : Thanks for the response. The websockify.js allowed me to connect. Thanks. Need to explore what code is there in the web content. The js file was more or less doing the send and receive part of the web socket connection (kind of a reverse proxy)? |
Is there a way to build the nodejs version in a simple script/exe version that is easy to deploy? |
@kanaka: Every time I have to proxy to a VNC server, I need to have different instances of the websockify.js. Is there a way to run it as a listener that can allow multiple connections on the fly? WebSocketConnections can be opened from one instance of the websockify.js on the fly right? |
@kabilraj1979 multiple clients can connect to the same instance of websockify.js at the same time. However, you need to have one instance of websockify.js per target that you want to connect to. The python version of websockify supports target plugins which allow the target to be selected by an opaque token provided by the client. However, this functionality has not been ported to the websockify.js yet. |
I tested the SIGCHLD thing, but as you've noticed there are a lot of issues remaining with |
@sonicnkt: I managed to create an exe (from the Node.js version) so you don't need to install Node.js and the components.
|
That works well for me too. Tested on Windows 10 and with noVNC + TigerVNC Windows server. |
@gdan101 Could you tell me what version of node you had when you got this to run? I'm running into an issue with nodejs 10.1.0 and websockify: https://github.com/novnc/websockify/issues/307#issuecomment-391125660 |
@mliudev I had node-v6.11.4 on a Windows 7 x64 machine! |
@kanaka @CendioOssman Does NOVNC support Reverse VNC connection the way it is supported by tightvnc. How can we open novnc viewer in listening mode if answer is yes for above question. We are using novnc to capture devices inside network however we want to use same web application for capturing(vnc) devices outside the network over the internet. This is because web server can not reach devices with private ip behind the router. We would like to use reverse vnc feature that should allow devices with private ip to share screen to novnc client on web server |
@SiddharthJyoti Please stop spamming the same question in mutliple places |
@samhed Your prompt response on the question will be appreciated. |
noVNC does not support reverse connections like the one described in that blog. |
1- I download the https://github.com/downloads/kanaka/websockify/Websockify%20Windows%20Service.zip
2- i unzip the folder at C:\Websockify Windows Service
3- i download https://github.com/downloads/kanaka/websockify/websockify.zip
and unzip and copy its content to C:\Websockify Windows Service
4- i download novnc from https://github.com/kanaka/noVNC
5- i unzip it at C:\Users\waldman\Downloads\noVNC-master\noVNC-master
6- i run the command
C:\Websockify Windows Service>websockify.exe --web "C:\Users\waldman\Downloads\noVNC-master\noVNC-master" 6080 localhost
:5901
the log is :
WARNING: no 'resource' module, daemonizing support disabled
WebSocket server settings:
In my browser i am going to
http://localhost:6080/vnc_auto.html?host=localhost&port=6080&true_color=1
also tried with
http://localhost:6080/vnc_auto.html?host=localhost&port=5901&true_color=1
I am getting server disconnected --> WHY ? ? ?
The server is fine as when i am trying to use
http://kanaka.github.com/noVNC/noVNC/vnc_auto.html?host=localhost&port=5901&true_color=1
I can login to my server with no problem
So my question is What is missing in order that i will be able to use my novnc service and not to use the "http://kanaka.github.com/noVNC/noVNC/vnc_auto.html"
I want to have my nonvc and not use external "kanaka.github.com"
Thanks for help
B.T.W same issue happened both at windows & linux (I prefer windows solution)
the log is
2: 127.0.0.1: ignoring socket not ready
3: 127.0.0.1: ignoring empty handshake
4: 127.0.0.1: "GET /auto.vnc.html?host=localhost&port=6080&true_color=1 HTTP/1.1" 404 -
5: 127.0.0.1: ignoring socket not ready
6: 127.0.0.1: "GET /auto-vnc.html?host=localhost&port=6080&true_color=1 HTTP/1.1" 404 -
9: 127.0.0.1: ignoring socket not ready
10: 127.0.0.1: ignoring empty handshake
12: 127.0.0.1: ignoring socket not ready
13: 127.0.0.1: ignoring empty handshake
14: 127.0.0.1: ignoring empty handshake
15: 127.0.0.1: ignoring empty handshake
16: 127.0.0.1: ignoring empty handshake
17: 127.0.0.1: ignoring empty handshake
18: 127.0.0.1: ignoring empty handshake
19: 127.0.0.1: ignoring empty handshake
20: 127.0.0.1: ignoring empty handshake
21: 127.0.0.1: ignoring empty handshake
22: 127.0.0.1: ignoring empty handshake
23: 127.0.0.1: ignoring empty handshake
24: 127.0.0.1: ignoring empty handshake
25: 127.0.0.1: ignoring empty handshake
26: 127.0.0.1: ignoring empty handshake
27: 127.0.0.1: ignoring empty handshake
28: 127.0.0.1: ignoring empty handshake
29: 127.0.0.1: ignoring empty handshake
30: 127.0.0.1: ignoring empty handshake
31: 127.0.0.1: ignoring empty handshake
33: 127.0.0.1: ignoring socket not ready
34: 127.0.0.1: ignoring empty handshake
35: 127.0.0.1: ignoring empty handshake
36: 127.0.0.1: ignoring empty handshake
The text was updated successfully, but these errors were encountered: