Ask Your Question
0

Failed to connect to server (code: 1006) error

asked 2019-02-15 02:52:45 -0500

godfrey_tan2001 gravatar image

Hi,

These are the values in nova.conf file for vnc in Controller node:

server_listen=127.0.0.1

server_proxyclient_address=127.0.0.1

novncproxy_base_url=http://192.168.1.133:6080/vnc_auto.html

xvpvncproxy_host=0.0.0.0

novncproxy_host=0.0.0.0

This is the error message: 2019-02-15 03:29:10.013 20039 INFO nova.console.websocketproxy [-] 192.168.1.8 - - [15/Feb/2019 03:29:10] 192.168.1.8: Plain non-SSL (ws://) WebSocket connection 2019-02-15 03:29:10.014 20039 INFO nova.console.websocketproxy [-] 192.168.1.8 - - [15/Feb/2019 03:29:10] 192.168.1.8: Version hybi-13, base64: 'False' 2019-02-15 03:29:10.014 20039 INFO nova.console.websocketproxy [-] 192.168.1.8 - - [15/Feb/2019 03:29:10] 192.168.1.8: Path: '/websockify' 2019-02-15 03:29:10.204 20039 INFO nova.console.websocketproxy [req-17dadbc5-780b-4dfb-ba94-0c0f149d1119 - - - - -] 2: connect info: {u'instance_uuid': u'9ac7fe8c-c77c-48cb-a199-6849126bc5dd', u'internal_access_path': None, u'last_activity_at': 1550219349.753975, u'console_type': u'novnc', u'host': u'queens-compute-2.godfrey.com', u'token': u'ca199553-01fd-42ac-a3a5-0c1e0bdded83', u'access_url': u'http://192.168.1.133:6080/vnc_auto.html?token=ca199553-01fd-42ac-a3a5-0c1e0bdded83', u'port': u'-1'} 2019-02-15 03:29:10.205 20039 INFO nova.console.websocketproxy [req-17dadbc5-780b-4dfb-ba94-0c0f149d1119 - - - - -] 2: connecting to: queens-compute-2.godfrey.com:-1 2019-02-15 03:29:11.385 20039 INFO nova.console.websocketproxy [req-17dadbc5-780b-4dfb-ba94-0c0f149d1119 - - - - -] handler exception: [Errno -2] No address found

What do I need to set on the Controller and Compute nova.conf file to resolve this?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-03-14 02:59:38 -0500

godfrey_tan2001 gravatar image

I have solved my own problem. Just configure these in /etc/nova/nova.conf file in Cluster Controller and Compute nodes.

eg on Compute-2 node

my_ip=192.168.1.136 [vnc] enabled=true server_listen=0.0.0.0 server_proxyclient_address=$my_ip novncproxy_base_url=http://192.168.1.133/vnc_auto.html novncproxy_host=0.0.0.0 novncproxy_port=6080

eg on Cluster Controller

my_ip=192.168.1.133 [vnc] enabled=true server_listen=0.0.0.0 server_proxyclient_address=$my_ip novncproxy_base_url=http://192.168.1.133/vnc_auto.html novncproxy_host=0.0.0.0 novncproxy_port=6080

edit flag offensive delete link more

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

1 follower

Stats

Asked: 2019-02-15 02:52:45 -0500

Seen: 143 times

Last updated: Mar 14