Ask Your Question
1

nova-novncproxy.log - gaierror: [Errno -8] Servname not supported for ai_socktype

asked 2014-08-11 10:11:19 -0500

Ramesh gravatar image

I am getting "gaierror: [Errno -8] Servname not supported for ai_socktype" in var/log/upstart/nova-novncproxy.log when trying to connect to vnc server. I am stuck on this now for long time. Please help.

One thing I am reasonably sure wrong is the line "connecting to: 10.10.10.61:-1" (the port should not be -1, right), but not sure how to address it.

/var/log/upstart/nova-novncproxy.log

WebSocket server settings:
  - Listen on 0.0.0.0:6080
  - Flash security policy server
  - Web server. Web root: /usr/share/novnc
  - No SSL/TLS support (no cert file)
  - proxying from 0.0.0.0:6080 to ignore:ignore

  1: 192.168.100.51: new handler Process
  1: 192.168.100.51: "GET /vnc_auto.html?token=be0689f5-9a57-45ba-a543-8738f7d2ffee HTTP/1.1" 200 -
  2: 192.168.100.51: new handler Process
  2: 192.168.100.51: Plain non-SSL (ws://) WebSocket connection
  2: 192.168.100.51: Version hybi-13, base64: 'False'
  2: 192.168.100.51: Path: '/websockify'
  2: **connecting to: 10.10.10.61:-1**
  2: handler exception: [Errno -8] Servname not supported for ai_socktype
  2: Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/websockify/websocket.py", line 797, in top_new_client
    self.new_client()
  File "/usr/lib/python2.7/dist-packages/nova/console/websocketproxy.py", line 68, in new_client
    tsock = self.socket(host, port, connect=True)
  File "/usr/lib/python2.7/dist-packages/websockify/websocket.py", line 185, in socket
    socket.IPPROTO_TCP, flags)
gaierror: [Errno -8] Servname not supported for ai_socktype

====================================================================

Following is my set up

Compute Node - nova.conf

novnc_enabled=true
novncproxy_base_url=http://192.168.100.51:6080/vnc_auto.html
novncproxy_port=6080
vncserver_proxyclient_address=10.10.10.61
vncserver_listen=0.0.0.0

=========================================================================

Controller Node

vncserver_listen=0.0.0.0
novncproxy_base_url=http://10.10.10.51:6080/vnc_auto.html novncproxy_port=6080
novnc_enabled=true

============================

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-12-21 08:07:25 -0500

stavitskiy gravatar image

I had the same trouble.

As I can see from logs, novnc tried to connect to the server with a negative port value: connecting to: 10.10.10.61:-1.

My solution was to check VMs status (it was SHUTDOWN), so after nova start VM, port in vnc got normal positive value.

Hope that helps.

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

3 followers

Stats

Asked: 2014-08-11 10:03:01 -0500

Seen: 1,523 times

Last updated: Dec 21 '15