A spice-html5 error

asked 2014-01-02 07:32:08 -0500

yu gravatar image

updated 2014-01-03 16:48:01 -0500

smaffulli gravatar image

When I used the url of nova get-spice-console in the chrome browser, it showed me a black screen and the below information is: **Error: Unexpected protocol mismatch**. and the monitor of nova spicehtml5proxy showed is : ignoring socket not ready.

I had already installed spice server, spice protocol,spice-client, spicehtml5 and nova-spicehtml5proxy in the node,configured nova.conf as:

vnc_enabled=False

[spice]
agent_enabled=True
enabled=True
html5proxy_base_url=http://192.168.137.23:6082/spice_auto.html
keymap=en-us
server_listen=0.0.0.0
server_proxyclient_address=192.168.137.23

when I use http://192.168.137.23:6082/spice.html , I can use IP and port (websocket transformed instans' port to websocket port), it works.

but when I use http://192.168.137.23:6082/spice_auto.html?token=ddcbb87e-6d89-4a42-b859-66e31eecbbfc in the browser, it showed: Error: Unexpected protocol mismatch.! In the meantime, the spicehtml5proxy monitor showed:

[root@spice yu]# nova-spicehtml5proxy
spice.com - - [02/Jan/2014 21:21:16] "GET /spice_auto.html?token=3d9c789b-fdb0-4b94-a661-40b9ba667923&title=CentOS6.4(a14381fe-71d5-4a46-b819-91cdb7af968b) HTTP/1.1" 200 -
spice.com - - [02/Jan/2014 21:21:17] "GET / HTTP/1.1" 101 -
spice.com - - [02/Jan/2014 21:21:17] 192.168.137.23: Plain non-SSL (ws://) WebSocket connection
spice.com - - [02/Jan/2014 21:21:17] 192.168.137.23: Version hybi-13, base64: 'False'
spice.com - - [02/Jan/2014 21:21:17] connecting to: ignore:ignore
spice.com - - [02/Jan/2014 21:21:20] "GET /spice_auto.html?token=3d9c789b-fdb0-4b94-a661-40b9ba667923&title=CentOS6.4(a14381fe-71d5-4a46-b819-91cdb7af968b) HTTP/1.1" 200 -
spice.com - - [02/Jan/2014 21:21:20] "GET / HTTP/1.1" 101 -
spice.com - - [02/Jan/2014 21:21:20] 192.168.137.23: Plain non-SSL (ws://) WebSocket connection
spice.com - - [02/Jan/2014 21:21:20] 192.168.137.23: Version hybi-13, base64: 'False'
spice.com - - [02/Jan/2014 21:21:20] connecting to: ignore:ignore

Appreciated if anyone could give me a help.

edit retag flag offensive close delete