Ask Your Question
1

Unable to noVNC the instance

asked 2015-01-13 00:35:12 -0500

sudharsan gravatar image

updated 2015-01-13 01:36:08 -0500

9lives gravatar image

When I tried to open VNC console of any instance, getting the error - "server disconnected (code : 1006)" in the browser.

Config files looks fine. Tried "python /usr/bin/nova-novncproxy --verbose --debug --web /usr/share/novnc/"

2015-01-13 17:29:50.571 31134 INFO nova.console.websocketproxy [-] WebSocket server settings:
2015-01-13 17:29:50.571 31134 INFO nova.console.websocketproxy [-] WebSocket server settings:
2015-01-13 17:29:50.572 31134 INFO nova.console.websocketproxy [-]   - Listen on 0.0.0.0:6080
2015-01-13 17:29:50.572 31134 INFO nova.console.websocketproxy [-]   - Listen on 0.0.0.0:6080
2015-01-13 17:29:50.573 31134 INFO nova.console.websocketproxy [-]   - Flash security policy server
2015-01-13 17:29:50.573 31134 INFO nova.console.websocketproxy [-]   - Flash security policy server
2015-01-13 17:29:50.573 31134 INFO nova.console.websocketproxy [-]   - Web server. Web root: /usr/share/novnc
2015-01-13 17:29:50.573 31134 INFO nova.console.websocketproxy [-]   - Web server. Web root: /usr/share/novnc
2015-01-13 17:29:50.574 31134 INFO nova.console.websocketproxy [-]   - No SSL/TLS support (no cert file)
2015-01-13 17:29:50.574 31134 INFO nova.console.websocketproxy [-]   - No SSL/TLS support (no cert file)
2015-01-13 17:29:50.575 31134 CRITICAL nova [-] error: [Errno 98] Address already in use
2015-01-13 17:29:50.575 31134 TRACE nova Traceback (most recent call last):
2015-01-13 17:29:50.575 31134 TRACE nova   File "/usr/bin/nova-novncproxy", line 10, in <module>
2015-01-13 17:29:50.575 31134 TRACE nova     sys.exit(main())
2015-01-13 17:29:50.575 31134 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/cmd/novncproxy.py", line 89, in main
2015-01-13 17:29:50.575 31134 TRACE nova     server.start_server()
2015-01-13 17:29:50.575 31134 TRACE nova   File "/usr/lib/python2.7/dist-packages/websockify/websocket.py", line 905, in start_server
2015-01-13 17:29:50.575 31134 TRACE nova     tcp_keepintvl=self.tcp_keepintvl)
2015-01-13 17:29:50.575 31134 TRACE nova   File "/usr/lib/python2.7/dist-packages/websockify/websocket.py", line 694, in socket
2015-01-13 17:29:50.575 31134 TRACE nova     sock.bind(addrs[0][4])
2015-01-13 17:29:50.575 31134 TRACE nova   File "/usr/lib/python2.7/socket.py", line 224, in meth
2015-01-13 17:29:50.575 31134 TRACE nova     return getattr(self._sock,name)(*args)
2015-01-13 17:29:50.575 31134 TRACE nova error: [Errno 98] Address already in use
2015-01-13 17:29:50.575 31134 TRACE nova

Tried nova db sync as well but no use.

Any help is much appreciated.

edit retag flag offensive close merge delete

Comments

Which browser are you using? I've seen that error before in Firefox.

jeffrey-olsen gravatar imagejeffrey-olsen ( 2015-01-13 01:15:22 -0500 )edit

Google Chrome.

sudharsan gravatar imagesudharsan ( 2015-01-13 01:30:52 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-01-13 01:41:36 -0500

9lives gravatar image

In controller node, try the following to check if any process is listening to the port 6080 netstat -anltp |grep 6080

Then kill this process if found by its pid and restart the nova-novncproxy process and try again.

Hope that helps!

Vic

edit flag offensive delete link more

Comments

Tried killing the process & restarted novnc. still not working. It is working fine in mozilla firefox but not in Chrome.

sudharsan gravatar imagesudharsan ( 2015-01-13 01:52:23 -0500 )edit

ok, sounds like the browser issue not with your infrastructure, could you try to turn the chrome debug mode on by press F12 then try to access the novavnc again and see if any errors in the chrome debug window?

9lives gravatar image9lives ( 2015-01-13 02:04:05 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2015-01-13 00:35:12 -0500

Seen: 1,580 times

Last updated: Jan 13 '15